linux-hardened/fs/sysfs
James Bottomley 36676bcbf9 [PATCH] Fix oops in sysfs_hash_and_remove_file()
The problem arises if an entity in sysfs is created and removed without
ever having been made completely visible.  In SCSI this is triggered by
removing a device while it's initialising.

The problem appears to be that because it was never made visible in sysfs,
the sysfs dentry has a null d_inode which oopses when a reference is made
to it.  The solution is simply to check d_inode and assume the object was
never made visible (and thus doesn't need deleting) if it's NULL.

(akpm: possibly a stopgap for 2.6.13 scsi problems.  May not be the
long-term fix)

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-26 19:37:13 -07:00
..
bin.c [PATCH] sysfs: if show/store is missing return -EIO 2005-06-20 15:15:02 -07:00
dir.c [PATCH] remove duplicate get_dentry functions in various places 2005-06-23 09:45:20 -07:00
file.c [PATCH] sysfs: fix sysfs_chmod_file 2005-07-29 13:12:49 -07:00
group.c [PATCH] remove duplicate get_dentry functions in various places 2005-06-23 09:45:20 -07:00
inode.c [PATCH] Fix oops in sysfs_hash_and_remove_file() 2005-08-26 19:37:13 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c [PATCH] sysfs-iattr: set inode attributes 2005-06-20 15:15:37 -07:00
symlink.c Fix nasty ncpfs symlink handling bug. 2005-08-19 18:02:56 -07:00
sysfs.h [PATCH] remove duplicate get_dentry functions in various places 2005-06-23 09:45:20 -07:00