aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNiels Dossche <[email protected]>2022-03-10 23:27:08 +0000
committerJakub Kicinski <[email protected]>2022-03-12 06:53:14 +0000
commit46b348fd2d81a341b15fb3f3f986204b038f5c42 (patch)
tree983bff76abe22d31e92ecc1eb421a2508c88ccdd /net/unix/af_unix.c
parentnet: ipv6: fix skb_over_panic in __ip6_append_data (diff)
downloadkernel-46b348fd2d81a341b15fb3f3f986204b038f5c42.tar.gz
kernel-46b348fd2d81a341b15fb3f3f986204b038f5c42.zip
alx: acquire mutex for alx_reinit in alx_change_mtu
alx_reinit has a lockdep assertion that the alx->mtx mutex must be held. alx_reinit is called from two places: alx_reset and alx_change_mtu. alx_reset does acquire alx->mtx before calling alx_reinit. alx_change_mtu does not acquire this mutex, nor do its callers or any path towards alx_change_mtu. Acquire the mutex in alx_change_mtu. The issue was introduced when the fine-grained locking was introduced to the code to replace the RTNL. The same commit also introduced the lockdep assertion. Fixes: 4a5fe57e7751 ("alx: use fine-grained locking instead of RTNL") Signed-off-by: Niels Dossche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions