aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/netpoll.h
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2013-10-24 12:09:24 +0200
committerDavid S. Miller <davem@davemloft.net>2013-10-25 19:26:58 -0400
commitc7c6effdeffcafd792b9f880ad52e48689eea4ad (patch)
treeb80c4d38acd41a1d7b3afcbc5ba5a2f1958d401e /include/linux/netpoll.h
parentnetconsole: fix NULL pointer dereference (diff)
downloadwireguard-linux-c7c6effdeffcafd792b9f880ad52e48689eea4ad.tar.xz
wireguard-linux-c7c6effdeffcafd792b9f880ad52e48689eea4ad.zip
netconsole: fix multiple race conditions
In every netconsole option that can be set through configfs there's a race when checking for nt->enabled since it can be modified at the same time. Probably the most damage can be done by store_enabled when racing with another instance of itself. Fix all the races with one stone by moving the mutex lock around the ->store call for all options. Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netpoll.h')
0 files changed, 0 insertions, 0 deletions