https://github.com/torvalds/linux
Revision 30f04a4efa73dc80bf3f59f3f19ad5a24ac5ac0a authored by Paolo 'Blaisorblade' Giarrusso on 29 December 2005, 16:39:57 UTC, committed by Linus Torvalds on 29 December 2005, 17:48:15 UTC
Prevent page->index << PAGE_CACHE_SHIFT from overflowing.

There is a casting there, but was added without care, so it's at the wrong
place. Note the extra parens around the shift - "+" is higher precedence than
"<<", leading to a GCC warning which saved all us.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 3d0a07e
History
Tip revision: 30f04a4efa73dc80bf3f59f3f19ad5a24ac5ac0a authored by Paolo 'Blaisorblade' Giarrusso on 29 December 2005, 16:39:57 UTC
[PATCH] uml: hostfs - fix possible PAGE_CACHE_SHIFT overflows
Tip revision: 30f04a4
File Mode Size
Kconfig -rw-r--r-- 9.3 KB
Makefile -rw-r--r-- 1.1 KB
aes.c -rw-r--r-- 11.3 KB
anubis.c -rw-r--r-- 27.9 KB
api.c -rw-r--r-- 5.5 KB
arc4.c -rw-r--r-- 2.0 KB
blowfish.c -rw-r--r-- 17.3 KB
cast5.c -rw-r--r-- 34.6 KB
cast6.c -rw-r--r-- 22.8 KB
cipher.c -rw-r--r-- 11.1 KB
compress.c -rw-r--r-- 1.8 KB
crc32c.c -rw-r--r-- 2.4 KB
crypto_null.c -rw-r--r-- 3.3 KB
deflate.c -rw-r--r-- 5.4 KB
des.c -rw-r--r-- 35.1 KB
digest.c -rw-r--r-- 2.5 KB
hmac.c -rw-r--r-- 3.1 KB
internal.h -rw-r--r-- 2.6 KB
khazad.c -rw-r--r-- 52.4 KB
md4.c -rw-r--r-- 6.1 KB
md5.c -rw-r--r-- 7.1 KB
michael_mic.c -rw-r--r-- 3.4 KB
proc.c -rw-r--r-- 2.7 KB
scatterwalk.c -rw-r--r-- 2.8 KB
scatterwalk.h -rw-r--r-- 2.0 KB
serpent.c -rw-r--r-- 19.8 KB
sha1.c -rw-r--r-- 3.2 KB
sha256.c -rw-r--r-- 11.1 KB
sha512.c -rw-r--r-- 10.8 KB
tcrypt.c -rw-r--r-- 29.6 KB
tcrypt.h -rw-r--r-- 100.3 KB
tea.c -rw-r--r-- 6.5 KB
tgr192.c -rw-r--r-- 31.9 KB
twofish.c -rw-r--r-- 44.9 KB
wp512.c -rw-r--r-- 60.7 KB

back to top