summaryrefslogtreecommitdiff
path: root/include/linux/ext2_fs.h
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2013-09-19 13:02:36 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-09-19 18:15:53 (GMT)
commitc71380ff0b199f1e8be5ca46dd91262f7fbe4cb4 (patch)
tree4d753b6aa3cb50f68f15e85b02cc7f17a443c802 /include/linux/ext2_fs.h
parentd0fe8c888b1fd1a2f84b9962cabcb98a70988aec (diff)
downloadlinux-fsl-qoriq-c71380ff0b199f1e8be5ca46dd91262f7fbe4cb4.tar.xz
netconsole: fix a deadlock with rtnl and netconsole's mutex
This bug was introduced by commit 7a163bfb7ce50895bbe67300ea610d31b9c09230 ("netconsole: avoid a crash with multiple sysfs writers"). In store_enabled() we have the following sequence: acquire nt->mutex then rtnl, but in the netconsole netdev notifier we have rtnl then nt->mutex effectively leading to a deadlock. The NULL pointer dereference that the above commit tries to fix is actually due to another bug in netpoll_cleanup(). This is fixed by dropping the mutex from the netdev notifier as it's already protected by rtnl. Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ext2_fs.h')
0 files changed, 0 insertions, 0 deletions