alistair23-linux/fs/afs
Andrew Morton 54b21a7992 [PATCH] fix possible PAGE_CACHE_SHIFT overflows
We've had two instances recently of overflows when doing

	64_bit_value = (32_bit_value << PAGE_CACHE_SHIFT)

I did a tree-wide grep of `<<.*PAGE_CACHE_SHIFT' and this is the result.

- afs_rxfs_fetch_descriptor.offset is of type off_t, which seems broken.

- jfs and jffs are limited to 4GB anyway.

- reiserfs map_block_for_writepage() takes an unsigned long for the block -
  it should take sector_t.  (It'll fail for huge filesystems with
  blocksize<PAGE_CACHE_SIZE)

- cramfs_read() needs to use sector_t (I think cramsfs is busted on large
  filesystems anyway)

- affs is limited in file size anyway.

- I generally didn't fix 32-bit overflows in directory operations.

- arm's __flush_dcache_page() is peculiar.  What if the page lies beyond 4G?

- gss_wrap_req_priv() needs checking (snd_buf->page_base)

Cc: Oleg Drokin <green@linuxhacker.ru>
Cc: David Howells <dhowells@redhat.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: <reiserfs-dev@namesys.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Anton Altaparmakov <aia21@cantab.net>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: <linux-fsdevel@vger.kernel.org>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-08 20:13:54 -08:00
..
cache.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
callback.c fs/afs/callback.c should #include "cmservice.h" 2005-11-08 16:56:17 +01:00
cell.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cell.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cmservice.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cmservice.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dir.c [PATCH] fix possible PAGE_CACHE_SHIFT overflows 2006-01-08 20:13:54 -08:00
errors.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file.c [PATCH] kfree cleanup: fs 2005-11-07 07:54:06 -08:00
fsclient.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fsclient.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode.c [PATCH] afs: use generic_ro_fops 2005-11-07 07:53:41 -08:00
internal.h [PATCH] afs: use generic_ro_fops 2005-11-07 07:53:41 -08:00
kafsasyncd.c [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
kafsasyncd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kafstimod.c [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
kafstimod.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
main.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
misc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mntpt.c [PATCH] Fix up symlink function pointers 2005-08-19 18:08:21 -07:00
mount.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
server.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
server.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
super.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
super.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
transport.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
types.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vlclient.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vlclient.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vlocation.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vnode.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vnode.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
volume.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
volume.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00