mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* do_filp_open fails to detect dentry revalidate of 1 and crashes
@ 2008-10-02  6:17 jmerkey
       [not found] ` <44010.166.70.238.43.1222928236.squirrel@webmail.wolfmountaingroup.com >
  0 siblings, 1 reply; 2+ messages in thread
From: jmerkey @ 2008-10-02  6:17 UTC (permalink / raw)
  To: linux-kernel


On assignment of a negative dentry, do_filp_open will crash with an oops
in do_sys_open because do_filp_open returns "1" from revalidate rather
than properly detect a negative dentry which has a dentry revalidate
function before the file actually exists.


Easy to reproduce.  Create negative dentry and attach a revalidate
function which returns 1 instead of 0 on non-existent file entry.   The
convoluted code in do_filp_open does not detect dentry errors in all cases
properly.

Jeff


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-02  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-02  6:17 do_filp_open fails to detect dentry revalidate of 1 and crashes jmerkey
     [not found] ` <44010.166.70.238.43.1222928236.squirrel@webmail.wolfmountaingroup.com >
2008-10-02  6:41   ` jmerkey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®