• Miklos Szeredi's avatar
    [PATCH] fuse: fix Oops in lookup · 3cc15f4f
    Miklos Szeredi authored
    Fix bug in certain error paths of lookup routines.  The request object was
    reused for sending FORGET, which is illegal.  This bug could cause an Oops
    in 2.6.18.  In earlier versions it might silently corrupt memory, but this
    is very unlikely.
    
    These error paths are never triggered by libfuse, so this wasn't noticed
    even with the 2.6.18 kernel, only with a filesystem using the raw kernel
    interface.
    
    Thanks to Russ Cox for the bug report and test filesystem.
    Signed-off-by: default avatarMiklos Szeredi <miklos@szeredi.hu>
    Cc: <stable@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    [chrisw: backport to 2.6.18 -stable]
    Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
    3cc15f4f
dir.c 32.6 KB