bisecting fixing commit since c3038e718a19fc596f7b1baba0f83d5146dc7784 building syzkaller on 8c88c9c1c99c8cd8dabc951164c820b9c9f25114 testing commit c3038e718a19fc596f7b1baba0f83d5146dc7784 with gcc (GCC) 8.4.1 20210217 kernel signature: 6245b63757f4425a100b455bb4889c3fdd42b1a7d194e4c8d77e2b772cf840c2 all runs: crashed: BUG: sleeping function called from invalid context in htb_destroy testing current HEAD 125222814e7b8f84df767d6ab622aff2a6d2f234 testing commit 125222814e7b8f84df767d6ab622aff2a6d2f234 with gcc (GCC) 8.4.1 20210217 kernel signature: 1286303c42ddf92a719c9894a25406b1435fec4283abca817c2d742b397de586 all runs: crashed: BUG: sleeping function called from invalid context in htb_destroy revisions tested: 2, total time: 21m51.982496295s (build: 15m16.943169874s, test: 5m55.023512565s) the crash still happens on HEAD commit msg: Linux 4.19.182 crash: BUG: sleeping function called from invalid context in htb_destroy IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 8021q: adding VLAN 0 to HW filter on device batadv0 BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6544, name: syz-executor.3 2 locks held by syz-executor.3/6544: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 00000000945a4137 (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 00000000945a4137 (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 00000000945a4137 (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 1 PID: 6544 Comm: syz-executor.3 Not tainted 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f99790331a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007f99790336bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6560, name: syz-executor.2 2 locks held by syz-executor.2/6560: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 0000000091cce3d1 (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 0000000091cce3d1 (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 0000000091cce3d1 (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 1 PID: 6560 Comm: syz-executor.2 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9e4b2021a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007f9e4b2026bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6575, name: syz-executor.3 2 locks held by syz-executor.3/6575: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 00000000b4eaef46 (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 00000000b4eaef46 (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 00000000b4eaef46 (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 1 PID: 6575 Comm: syz-executor.3 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f99790331a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007f99790336bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6596, name: syz-executor.1 2 locks held by syz-executor.1/6596: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 0000000042effe47 (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 0000000042effe47 (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 0000000042effe47 (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 0 PID: 6596 Comm: syz-executor.1 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7ef30c11a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007f7ef30c16bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6616, name: syz-executor.3 2 locks held by syz-executor.3/6616: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 00000000a7abe97d (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 00000000a7abe97d (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 00000000a7abe97d (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 0 PID: 6616 Comm: syz-executor.3 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f99790331a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007f99790336bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6652, name: syz-executor.4 2 locks held by syz-executor.4/6652: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 00000000a7b38e30 (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 00000000a7b38e30 (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 00000000a7b38e30 (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 1 PID: 6652 Comm: syz-executor.4 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff1834871a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007ff1834876bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6672, name: syz-executor.4 2 locks held by syz-executor.4/6672: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 000000009e52d58b (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 000000009e52d58b (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 000000009e52d58b (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 0 PID: 6672 Comm: syz-executor.4 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff1834871a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007ff1834876bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6694, name: syz-executor.2 2 locks held by syz-executor.2/6694: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 0000000015dbd958 (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 0000000015dbd958 (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 0000000015dbd958 (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 1 PID: 6694 Comm: syz-executor.2 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9e4b2021a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004f6ab8 R14: 00000000004b3761 R15: 00007f9e4b2026bc BUG: sleeping function called from invalid context at kernel/workqueue.c:2861 in_atomic(): 1, irqs_disabled(): 0, pid: 6714, name: syz-executor.1 2 locks held by syz-executor.1/6714: #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:77 [inline] #0: 000000003c3084c3 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x301/0x8f0 net/core/rtnetlink.c:4775 #1: 0000000019317d8e (&qdisc_rx_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:334 [inline] #1: 0000000019317d8e (&qdisc_rx_lock){+...}, at: sch_tree_lock include/net/sch_generic.h:477 [inline] #1: 0000000019317d8e (&qdisc_rx_lock){+...}, at: red_change+0x40a/0x1870 net/sched/sch_red.c:230 Preemption disabled at: [] spin_lock_bh include/linux/spinlock.h:334 [inline] [] sch_tree_lock include/net/sch_generic.h:477 [inline] [] red_change+0x40a/0x1870 net/sched/sch_red.c:230 CPU: 1 PID: 6714 Comm: syz-executor.1 Tainted: G W 4.19.182-syzkaller #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+0x123/0x171 lib/dump_stack.c:118 ___might_sleep.cold.86+0x1bb/0x1f4 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 start_flush_work kernel/workqueue.c:2861 [inline] __flush_work+0xc7/0x800 kernel/workqueue.c:2924 __cancel_work_timer+0x2f1/0x430 kernel/workqueue.c:3012 cancel_work_sync+0xb/0x10 kernel/workqueue.c:3048 htb_destroy+0x20/0x4c0 net/sched/sch_htb.c:1241 qdisc_destroy+0x134/0x6d0 net/sched/sch_generic.c:983 red_change+0x626/0x1870 net/sched/sch_red.c:236 qdisc_change net/sched/sch_api.c:1240 [inline] tc_modify_qdisc+0xbd9/0x18f0 net/sched/sch_api.c:1543 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x445/0x640 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc70 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x461229 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7ef30c11a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000052bfa8 RCX: 0000000000461229 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004