]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Fix oops in xfs_file_readdir()
authorDavid Chinner <dgc@sgi.com>
Wed, 6 Feb 2008 02:37:40 +0000 (13:37 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:24:13 +0000 (18:24 +1100)
commitc5d34735b939b07be060d6e3335c762d55502cba
tree4951fb3e7fae21a791fd7c4b161a1d3f0e6dc571
parentf8aa7c9e5ebf8ee3107e4cc7ff0c089b040e0a98
[XFS] Fix oops in xfs_file_readdir()

When xfs_file_readdir() exactly fills a buffer, it can move it's index
past the end of the buffer and dereference it even though the result of
the dereference is never used. On some platforms this causes an oops.

SGI-PV: 976923
SGI-Modid: xfs-linux-melb:xfs-kern:30458a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_file.c