BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 19950, name: syz-executor.5 2 locks held by syz-executor.5/19950: #0: ffffffff899a0b20 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff899a0b20 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x40a/0xb00 net/core/rtnetlink.c:5220 #1: ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: spin_lock_bh include/linux/spinlock.h:343 [inline] #1: ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: sch_tree_lock include/net/sch_generic.h:544 [inline] #1: ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: sfb_change+0x257/0xe90 net/sched/sch_sfb.c:519 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:343 [inline] [] sch_tree_lock include/net/sch_generic.h:544 [inline] [] sfb_change+0x257/0xe90 net/sched/sch_sfb.c:519 CPU: 1 PID: 19950 Comm: syz-executor.5 Not tainted 5.3.0+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 ___might_sleep.cold+0x1fb/0x23e kernel/sched/core.c:6807 __might_sleep+0x95/0x190 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:935 [inline] __mutex_lock+0xc5/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_del.isra.0+0x34/0x3e0 net/sched/cls_api.c:774 tcf_block_put_ext.part.0+0x2a/0x80 net/sched/cls_api.c:1345 tcf_block_put_ext net/sched/cls_api.c:1343 [inline] tcf_block_put+0xbf/0x110 net/sched/cls_api.c:1358 sfb_destroy+0x37/0x80 net/sched/sch_sfb.c:467 qdisc_destroy+0x11f/0x630 net/sched/sch_generic.c:968 qdisc_put+0x85/0xa0 net/sched/sch_generic.c:995 sfb_change+0x3d8/0xe90 net/sched/sch_sfb.c:522 qdisc_change net/sched/sch_api.c:1321 [inline] tc_modify_qdisc+0xfcf/0x1c50 net/sched/sch_api.c:1623 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x803/0x920 net/socket.c:2311 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356 __do_sys_sendmsg net/socket.c:2365 [inline] __se_sys_sendmsg net/socket.c:2363 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459a09 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f27a4037c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a09 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000007 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f27a40386d4 R13: 00000000004c7933 R14: 00000000004dd328 R15: 00000000ffffffff ===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.3.0+ #0 Tainted: G W ----------------------------------------------------- syz-executor.5/19950 [HC0[0]:SC0[2]:HE1:SE0] is trying to acquire: ffff88808bba60a0 (&block->lock){+.+.}, at: tcf_chain0_head_change_cb_del.isra.0+0x34/0x3e0 net/sched/cls_api.c:774 and this task is already holding: ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: spin_lock_bh include/linux/spinlock.h:343 [inline] ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: sch_tree_lock include/net/sch_generic.h:544 [inline] ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: sfb_change+0x257/0xe90 net/sched/sch_sfb.c:519 which would create a new lock dependency: (&(&sch->q.lock)->rlock){+.-.} -> (&block->lock){+.+.} but this new dependency connects a SOFTIRQ-irq-safe lock: (&(&sch->q.lock)->rlock){+.-.} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] net_tx_action+0x672/0xd10 net/core/dev.c:4625 __do_softirq+0x262/0x98c kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082 do_softirq.part.0+0x11a/0x170 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x211/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:688 [inline] ip6_finish_output2+0x10a0/0x2520 net/ipv6/ip6_output.c:117 __ip6_finish_output+0x444/0xa50 net/ipv6/ip6_output.c:142 ip6_finish_output+0x38/0x1f0 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x235/0x7c0 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:436 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip6_xmit+0xe35/0x1fe0 net/ipv6/ip6_output.c:279 sctp_v6_xmit+0x313/0x660 net/sctp/ipv6.c:217 sctp_packet_transmit+0x1b9f/0x3650 net/sctp/output.c:629 sctp_packet_singleton net/sctp/outqueue.c:772 [inline] sctp_outq_flush_ctrl.constprop.0+0x73c/0xd30 net/sctp/outqueue.c:903 sctp_outq_flush+0xe8/0x2780 net/sctp/outqueue.c:1185 sctp_outq_uncork+0x6c/0x80 net/sctp/outqueue.c:757 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1781 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1184 [inline] sctp_do_sm+0x4b9/0x5170 net/sctp/sm_sideeffect.c:1155 sctp_primitive_ASSOCIATE+0x9d/0xd0 net/sctp/primitive.c:73 __sctp_connect+0xa73/0xcd0 net/sctp/socket.c:1213 sctp_connect net/sctp/socket.c:4841 [inline] sctp_inet_connect+0x14d/0x1c0 net/sctp/socket.c:4856 __sys_connect+0x264/0x330 net/socket.c:1828 __do_sys_connect net/socket.c:1839 [inline] __se_sys_connect net/socket.c:1836 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1836 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe to a SOFTIRQ-irq-unsafe lock: (&block->lock){+.+.} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x156/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_add net/sched/cls_api.c:740 [inline] tcf_block_get_ext+0x3d6/0x16a0 net/sched/cls_api.c:1294 tcf_block_get+0xb9/0x100 net/sched/cls_api.c:1333 cbq_init+0x1f9/0xbb0 net/sched/sch_cbq.c:1163 qdisc_create+0x4ee/0x1210 net/sched/sch_api.c:1237 tc_modify_qdisc+0x524/0x1c50 net/sched/sch_api.c:1652 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2311 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg net/socket.c:2439 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2439 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&block->lock); local_irq_disable(); lock(&(&sch->q.lock)->rlock); lock(&block->lock); lock(&(&sch->q.lock)->rlock); *** DEADLOCK *** 2 locks held by syz-executor.5/19950: #0: ffffffff899a0b20 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff899a0b20 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x40a/0xb00 net/core/rtnetlink.c:5220 #1: ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: spin_lock_bh include/linux/spinlock.h:343 [inline] #1: ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: sch_tree_lock include/net/sch_generic.h:544 [inline] #1: ffff88808ef1c740 (&(&sch->q.lock)->rlock){+.-.}, at: sfb_change+0x257/0xe90 net/sched/sch_sfb.c:519 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&(&sch->q.lock)->rlock){+.-.} { HARDIRQ-ON-W at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:343 [inline] some_qdisc_is_busy net/sched/sch_generic.c:1168 [inline] dev_deactivate_many+0x60a/0xc20 net/sched/sch_generic.c:1220 dev_deactivate+0x115/0x1e0 net/sched/sch_generic.c:1236 linkwatch_do_dev+0x160/0x190 net/core/link_watch.c:157 __linkwatch_run_queue+0x203/0x690 net/core/link_watch.c:204 linkwatch_event+0x4e/0x70 net/core/link_watch.c:243 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 IN-SOFTIRQ-W at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] net_tx_action+0x672/0xd10 net/core/dev.c:4625 __do_softirq+0x262/0x98c kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082 do_softirq.part.0+0x11a/0x170 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x211/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:688 [inline] ip6_finish_output2+0x10a0/0x2520 net/ipv6/ip6_output.c:117 __ip6_finish_output+0x444/0xa50 net/ipv6/ip6_output.c:142 ip6_finish_output+0x38/0x1f0 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x235/0x7c0 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:436 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip6_xmit+0xe35/0x1fe0 net/ipv6/ip6_output.c:279 sctp_v6_xmit+0x313/0x660 net/sctp/ipv6.c:217 sctp_packet_transmit+0x1b9f/0x3650 net/sctp/output.c:629 sctp_packet_singleton net/sctp/outqueue.c:772 [inline] sctp_outq_flush_ctrl.constprop.0+0x73c/0xd30 net/sctp/outqueue.c:903 sctp_outq_flush+0xe8/0x2780 net/sctp/outqueue.c:1185 sctp_outq_uncork+0x6c/0x80 net/sctp/outqueue.c:757 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1781 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1184 [inline] sctp_do_sm+0x4b9/0x5170 net/sctp/sm_sideeffect.c:1155 sctp_primitive_ASSOCIATE+0x9d/0xd0 net/sctp/primitive.c:73 __sctp_connect+0xa73/0xcd0 net/sctp/socket.c:1213 sctp_connect net/sctp/socket.c:4841 [inline] sctp_inet_connect+0x14d/0x1c0 net/sctp/socket.c:4856 __sys_connect+0x264/0x330 net/socket.c:1828 __do_sys_connect net/socket.c:1839 [inline] __se_sys_connect net/socket.c:1836 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1836 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe INITIAL USE at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:343 [inline] some_qdisc_is_busy net/sched/sch_generic.c:1168 [inline] dev_deactivate_many+0x60a/0xc20 net/sched/sch_generic.c:1220 dev_deactivate+0x115/0x1e0 net/sched/sch_generic.c:1236 linkwatch_do_dev+0x160/0x190 net/core/link_watch.c:157 __linkwatch_run_queue+0x203/0x690 net/core/link_watch.c:204 linkwatch_event+0x4e/0x70 net/core/link_watch.c:243 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 } ... key at: [] __key.79329+0x0/0x40 ... acquired at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x156/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_del.isra.0+0x34/0x3e0 net/sched/cls_api.c:774 tcf_block_put_ext.part.0+0x2a/0x80 net/sched/cls_api.c:1345 tcf_block_put_ext net/sched/cls_api.c:1343 [inline] tcf_block_put+0xbf/0x110 net/sched/cls_api.c:1358 sfb_destroy+0x37/0x80 net/sched/sch_sfb.c:467 qdisc_destroy+0x11f/0x630 net/sched/sch_generic.c:968 qdisc_put+0x85/0xa0 net/sched/sch_generic.c:995 sfb_change+0x3d8/0xe90 net/sched/sch_sfb.c:522 qdisc_change net/sched/sch_api.c:1321 [inline] tc_modify_qdisc+0xfcf/0x1c50 net/sched/sch_api.c:1623 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x803/0x920 net/socket.c:2311 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356 __do_sys_sendmsg net/socket.c:2365 [inline] __se_sys_sendmsg net/socket.c:2363 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (&block->lock){+.+.} { HARDIRQ-ON-W at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x156/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_add net/sched/cls_api.c:740 [inline] tcf_block_get_ext+0x3d6/0x16a0 net/sched/cls_api.c:1294 tcf_block_get+0xb9/0x100 net/sched/cls_api.c:1333 cbq_init+0x1f9/0xbb0 net/sched/sch_cbq.c:1163 qdisc_create+0x4ee/0x1210 net/sched/sch_api.c:1237 tc_modify_qdisc+0x524/0x1c50 net/sched/sch_api.c:1652 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2311 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg net/socket.c:2439 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2439 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe SOFTIRQ-ON-W at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x156/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_add net/sched/cls_api.c:740 [inline] tcf_block_get_ext+0x3d6/0x16a0 net/sched/cls_api.c:1294 tcf_block_get+0xb9/0x100 net/sched/cls_api.c:1333 cbq_init+0x1f9/0xbb0 net/sched/sch_cbq.c:1163 qdisc_create+0x4ee/0x1210 net/sched/sch_api.c:1237 tc_modify_qdisc+0x524/0x1c50 net/sched/sch_api.c:1652 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2311 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg net/socket.c:2439 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2439 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe INITIAL USE at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x156/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_add net/sched/cls_api.c:740 [inline] tcf_block_get_ext+0x3d6/0x16a0 net/sched/cls_api.c:1294 tcf_block_get+0xb9/0x100 net/sched/cls_api.c:1333 cbq_init+0x1f9/0xbb0 net/sched/sch_cbq.c:1163 qdisc_create+0x4ee/0x1210 net/sched/sch_api.c:1237 tc_modify_qdisc+0x524/0x1c50 net/sched/sch_api.c:1652 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2311 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg net/socket.c:2439 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2439 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe } ... key at: [] __key.76961+0x0/0x40 ... acquired at: lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x156/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_del.isra.0+0x34/0x3e0 net/sched/cls_api.c:774 tcf_block_put_ext.part.0+0x2a/0x80 net/sched/cls_api.c:1345 tcf_block_put_ext net/sched/cls_api.c:1343 [inline] tcf_block_put+0xbf/0x110 net/sched/cls_api.c:1358 sfb_destroy+0x37/0x80 net/sched/sch_sfb.c:467 qdisc_destroy+0x11f/0x630 net/sched/sch_generic.c:968 qdisc_put+0x85/0xa0 net/sched/sch_generic.c:995 sfb_change+0x3d8/0xe90 net/sched/sch_sfb.c:522 qdisc_change net/sched/sch_api.c:1321 [inline] tc_modify_qdisc+0xfcf/0x1c50 net/sched/sch_api.c:1623 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x803/0x920 net/socket.c:2311 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356 __do_sys_sendmsg net/socket.c:2365 [inline] __se_sys_sendmsg net/socket.c:2363 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe stack backtrace: CPU: 1 PID: 19950 Comm: syz-executor.5 Tainted: G W 5.3.0+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_bad_irq_dependency kernel/locking/lockdep.c:2095 [inline] check_irq_usage.cold+0x586/0x6fe kernel/locking/lockdep.c:2293 check_prev_add kernel/locking/lockdep.c:2480 [inline] check_prevs_add kernel/locking/lockdep.c:2581 [inline] validate_chain kernel/locking/lockdep.c:2971 [inline] __lock_acquire+0x25d0/0x4e70 kernel/locking/lockdep.c:3955 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x156/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 tcf_chain0_head_change_cb_del.isra.0+0x34/0x3e0 net/sched/cls_api.c:774 tcf_block_put_ext.part.0+0x2a/0x80 net/sched/cls_api.c:1345 tcf_block_put_ext net/sched/cls_api.c:1343 [inline] tcf_block_put+0xbf/0x110 net/sched/cls_api.c:1358 sfb_destroy+0x37/0x80 net/sched/sch_sfb.c:467 qdisc_destroy+0x11f/0x630 net/sched/sch_generic.c:968 qdisc_put+0x85/0xa0 net/sched/sch_generic.c:995 sfb_change+0x3d8/0xe90 net/sched/sch_sfb.c:522 qdisc_change net/sched/sch_api.c:1321 [inline] tc_modify_qdisc+0xfcf/0x1c50 net/sched/sch_api.c:1623 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x803/0x920 net/socket.c:2311 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356 __do_sys_sendmsg net/socket.c:2365 [inline] __se_sys_sendmsg net/socket.c:2363 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459a09 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f27a4037c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a09 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000007 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f27a40386d4 R13: 00000000004c7933 R14: 00000000004dd328 R15: 00000000ffffffff BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 19950, name: syz-executor.5 INFO: lockdep is turned off. Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:343 [inline] [] sch_tree_lock include/net/sch_generic.h:544 [inline] [] sfb_change+0x257/0xe90 net/sched/sch_sfb.c:519 CPU: 1 PID: 19950 Comm: syz-executor.5 Tainted: G W 5.3.0+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 ___might_sleep.cold+0x1fb/0x23e kernel/sched/core.c:6807 __might_sleep+0x95/0x190 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:935 [inline] __mutex_lock+0xc5/0x13c0 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 refcount_dec_and_mutex_lock lib/refcount.c:319 [inline] refcount_dec_and_mutex_lock+0x56/0x90 lib/refcount.c:314 __tcf_block_put+0x32/0x540 net/sched/cls_api.c:1124 tcf_block_put_ext.part.0+0x69/0x80 net/sched/cls_api.c:1348 tcf_block_put_ext net/sched/cls_api.c:1343 [inline] tcf_block_put+0xbf/0x110 net/sched/cls_api.c:1358 sfb_destroy+0x37/0x80 net/sched/sch_sfb.c:467 qdisc_destroy+0x11f/0x630 net/sched/sch_generic.c:968 qdisc_put+0x85/0xa0 net/sched/sch_generic.c:995 sfb_change+0x3d8/0xe90 net/sched/sch_sfb.c:522 qdisc_change net/sched/sch_api.c:1321 [inline] tc_modify_qdisc+0xfcf/0x1c50 net/sched/sch_api.c:1623 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x803/0x920 net/socket.c:2311 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356 __do_sys_sendmsg net/socket.c:2365 [inline] __se_sys_sendmsg net/socket.c:2363 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459a09 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f27a4037c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a09 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000007 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f27a40386d4 R13: 00000000004c7933 R14: 00000000004dd328 R15: 00000000ffffffff