diff options
| author | Cosmin Ratiu <[email protected]> | 2025-05-05 19:47:13 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-05-07 01:31:32 +0000 |
| commit | 08e9f2d584c4732180edee4cb2dbfa7586d7d5a3 (patch) | |
| tree | 2323946ca5233c8fe93e842e7989880e0208cd53 /net/core/dev_api.c | |
| parent | ice: use DSN instead of PCI BDF for ice_adapter index (diff) | |
| download | kernel-08e9f2d584c4732180edee4cb2dbfa7586d7d5a3.tar.gz kernel-08e9f2d584c4732180edee4cb2dbfa7586d7d5a3.zip | |
net: Lock netdevices during dev_shutdown
__qdisc_destroy() calls into various qdiscs .destroy() op, which in turn
can call .ndo_setup_tc(), which requires the netdev instance lock.
This commit extends the critical section in
unregister_netdevice_many_notify() to cover dev_shutdown() (and
dev_tcx_uninstall() as a side-effect) and acquires the netdev instance
lock in __dev_change_net_namespace() for the other dev_shutdown() call.
This should now guarantee that for all qdisc ops, the netdev instance
lock is held during .ndo_setup_tc().
Fixes: a0527ee2df3f ("net: hold netdev instance lock during qdisc ndo_setup_tc")
Signed-off-by: Cosmin Ratiu <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions
