xfs
[Top] [All Lists]

TAKE 976923 - Fix oops in xfs_file_readdir()

To: sgi.bugs.xfs@xxxxxxxxxxxx
Subject: TAKE 976923 - Fix oops in xfs_file_readdir()
From: dgc@xxxxxxx (David Chinner)
Date: Wed, 6 Feb 2008 10:42:05 +1100 (EST)
Cc: xfs@xxxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
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.


Date:  Wed Feb  6 10:41:34 AEDT 2008
Workarea:  chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by:  lachlan@xxxxxxx

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:30458a
fs/xfs/linux-2.6/xfs_file.c - 1.163 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_file.c.diff?r1=text&tr1=1.163&r2=text&tr2=1.162&f=h
        - Only update the current offset in xfs_file_readdir() when it is safe 
to do so.



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 976923 - Fix oops in xfs_file_readdir(), David Chinner <=