aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2008-02-06 01:39:56 -0800
committerLinus Torvalds <[email protected]>2008-02-06 10:41:19 -0800
commit177a99b23ef9878c0cedcc7273108eba8a6e9472 (patch)
tree616dd718e94a1e5e8ca536114d5fb91fa780bbc8 /net/unix/sysctl_net_unix.c
parenta17184a911195c274104df98a79bec10f57e735d (diff)
md: fix use-after-free bug when dropping an rdev from an md array
Due to possible deadlock issues we need to use a schedule work to kobject_del an 'rdev' object from a different thread. A recent change means that kobject_add no longer gets a refernce, and kobject_del doesn't put a reference. Consequently, we need to explicitly hold a reference to ensure that the last reference isn't dropped before the scheduled work get a chance to call kobject_del. Also, rename delayed_delete to md_delayed_delete to that it is more obvious in a stack trace which code is to blame. Cc: Al Viro <[email protected]> Signed-off-by: Neil Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions