public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6.6-mm3] sysfs backing store ver 0.6
@ 2004-05-17 12:04 Maneesh Soni
  2004-05-17 12:05 ` [2.6.6-mm3] sysfs-leaves-mount.patch Maneesh Soni
  0 siblings, 1 reply; 7+ messages in thread
From: Maneesh Soni @ 2004-05-17 12:04 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Greg KH, LKML

Hello Andrew,

Please find the following patch set for sysfs backing store for 2.6.6-mm3 
kernel. I have fixed the rejects and there are also a few code changes.

The main change is related to providing protection against vulnerability of 
parent dentry going off before the sysfs file being deleted. If you have 
seen there was a oops message reported with 2.6.6-mm1 in which parent 
dentry's ref count is zero when it was trying to remove a sysfs link.

http://marc.theaimsgroup.com/?l=linux-kernel&m=108422899203505&w=2

The changes I did are in fs/sysfs/inode.c:sysfs_hash_and_remove() and
sysfs_remove_dir(), where it is now checking s_dentry field of the 
corresponding sysfs_dirent to get the dentry (if valid) of the file 
being deleted. Apart from being safe against parent dentry going off 
before the child, this change also avoids allocating the dentry in the 
removal path by not doing the lookup. 

Please include the following patches in the next -mm and also note that they
all depend on the fix-sysfs-symlinks.patch, I just mailed.
http://marc.theaimsgroup.com/?l=linux-kernel&m=108479506507825&w=2

Thanks
Maneesh

-- 
Maneesh Soni
Linux Technology Center, 
IBM Software Lab, Bangalore, India
email: maneesh@in.ibm.com
Phone: 91-80-25044999 Fax: 91-80-25268553
T/L : 9243696

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

end of thread, other threads:[~2004-05-17 12:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-17 12:04 [2.6.6-mm3] sysfs backing store ver 0.6 Maneesh Soni
2004-05-17 12:05 ` [2.6.6-mm3] sysfs-leaves-mount.patch Maneesh Soni
2004-05-17 12:06   ` [2.6.6-mm3] sysfs-leaves-dir.patch Maneesh Soni
2004-05-17 12:06     ` [2.6.6-mm3] sysfs-leaves-file.patch Maneesh Soni
2004-05-17 12:07       ` [2.6.6-mm3] sysfs-leaves-bin.patch Maneesh Soni
2004-05-17 12:07         ` [2.6.6-mm3] sysfs-leaves-symlink.patch Maneesh Soni
2004-05-17 12:08           ` [2.6.6-mm3] sysfs-leaves-misc.patch Maneesh Soni

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