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
basic
genksyms
kconfig
ksymoops
lxdialog
mod
package
.gitignore -rw-r--r-- 32 bytes
Kbuild.include -rw-r--r-- 3.4 KB
Lindent -rwxr-xr-x 60 bytes
Makefile -rw-r--r-- 801 bytes
Makefile.build -rw-r--r-- 10.0 KB
Makefile.clean -rw-r--r-- 3.0 KB
Makefile.host -rw-r--r-- 5.8 KB
Makefile.lib -rw-r--r-- 6.5 KB
Makefile.modinst -rw-r--r-- 827 bytes
Makefile.modpost -rw-r--r-- 3.4 KB
bin2c.c -rw-r--r-- 702 bytes
binoffset.c -rw-r--r-- 3.9 KB
checkconfig.pl -rwxr-xr-x 1.7 KB
checkincludes.pl -rwxr-xr-x 529 bytes
checkstack.pl -rw-r--r-- 3.5 KB
checkversion.pl -rwxr-xr-x 1.9 KB
conmakehash.c -rw-r--r-- 6.0 KB
extract-ikconfig -rwxr-xr-x 1.6 KB
gcc-version.sh -rw-r--r-- 338 bytes
gen_initramfs_list.sh -rw-r--r-- 4.7 KB
kallsyms.c -rw-r--r-- 11.8 KB
kernel-doc -rwxr-xr-x 50.1 KB
makelst -rwxr-xr-x 941 bytes
mkcompile_h -rwxr-xr-x 2.3 KB
mkmakefile -rw-r--r-- 563 bytes
mksysmap -rw-r--r-- 1.3 KB
mkuboot.sh -rwxr-xr-x 293 bytes
mkversion -rw-r--r-- 74 bytes
namespace.pl -rw-r--r-- 13.1 KB
patch-kernel -rwxr-xr-x 9.7 KB
pnmtologo.c -rw-r--r-- 11.7 KB
reference_discarded.pl -rw-r--r-- 3.0 KB
reference_init.pl -rw-r--r-- 3.3 KB
setlocalversion -rw-r--r-- 1.3 KB
show_delta -rw-r--r-- 3.0 KB
ver_linux -rwxr-xr-x 3.1 KB

back to top