netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. ===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.4.0-syzkaller-00847-g88afbb21d4b3 #0 Not tainted ----------------------------------------------------- syz-executor.2/15856 [HC0[0]:SC0[2]:HE1:SE0] is trying to acquire: ffffffff8c8f0ec0 (fs_reclaim){+.+.}-{0:0}, at: might_alloc include/linux/sched/mm.h:303 [inline] ffffffff8c8f0ec0 (fs_reclaim){+.+.}-{0:0}, at: slab_pre_alloc_hook mm/slab.h:670 [inline] ffffffff8c8f0ec0 (fs_reclaim){+.+.}-{0:0}, at: slab_alloc_node mm/slub.c:3433 [inline] ffffffff8c8f0ec0 (fs_reclaim){+.+.}-{0:0}, at: __kmem_cache_alloc_node+0x41/0x320 mm/slub.c:3490 and this task is already holding: ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:355 [inline] ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: sch_tree_lock include/net/sch_generic.h:576 [inline] ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: sch_tree_lock include/net/sch_generic.h:571 [inline] ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: netem_change+0x1520/0x1f70 net/sched/sch_netem.c:969 which would create a new lock dependency: (&sch->q.lock){+.-.}-{2:2} -> (fs_reclaim){+.+.}-{0:0} but this new dependency connects a SOFTIRQ-irq-safe lock: (&sch->q.lock){+.-.}-{2:2} ... which became SOFTIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] dev_requeue_skb net/sched/sch_generic.c:148 [inline] sch_direct_xmit+0xa49/0xc30 net/sched/sch_generic.c:362 __dev_xmit_skb net/core/dev.c:3805 [inline] __dev_queue_xmit+0x14d6/0x3b10 net/core/dev.c:4210 dev_queue_xmit include/linux/netdevice.h:3088 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip_finish_output2+0x15a1/0x22b0 net/ipv4/ip_output.c:229 __ip_finish_output net/ipv4/ip_output.c:307 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:289 ip_finish_output+0x31/0x280 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:292 [inline] ip_output+0x1a3/0x320 net/ipv4/ip_output.c:431 dst_output include/net/dst.h:458 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x8d9/0x1c50 net/ipv4/ip_output.c:533 __tcp_transmit_skb+0x194b/0x3800 net/ipv4/tcp_output.c:1399 tcp_transmit_skb net/ipv4/tcp_output.c:1417 [inline] tcp_write_xmit+0x1025/0x6160 net/ipv4/tcp_output.c:2693 __tcp_push_pending_frames+0xae/0x390 net/ipv4/tcp_output.c:2877 tcp_push_pending_frames include/net/tcp.h:1952 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5510 [inline] tcp_rcv_established+0x13af/0x1f90 net/ipv4/tcp_input.c:5930 tcp_v4_do_rcv+0x65a/0x9c0 net/ipv4/tcp_ipv4.c:1722 tcp_v4_rcv+0x30ed/0x3300 net/ipv4/tcp_ipv4.c:2144 ip_protocol_deliver_rcu+0x9f/0x480 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2ec/0x520 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:303 [inline] NF_HOOK include/linux/netfilter.h:297 [inline] ip_local_deliver+0x1ae/0x200 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:468 [inline] ip_sublist_rcv_finish+0x9a/0x2c0 net/ipv4/ip_input.c:580 ip_list_rcv_finish.constprop.0+0x4f9/0x6c0 net/ipv4/ip_input.c:630 ip_sublist_rcv net/ipv4/ip_input.c:638 [inline] ip_list_rcv+0x347/0x4a0 net/ipv4/ip_input.c:673 __netif_receive_skb_list_ptype net/core/dev.c:5536 [inline] __netif_receive_skb_list_core+0x548/0x8f0 net/core/dev.c:5584 __netif_receive_skb_list net/core/dev.c:5636 [inline] netif_receive_skb_list_internal+0x75f/0xdc0 net/core/dev.c:5727 gro_normal_list include/net/gro.h:433 [inline] gro_normal_one include/net/gro.h:446 [inline] napi_skb_finish net/core/gro.c:627 [inline] napi_gro_receive+0x8aa/0xab0 net/core/gro.c:657 e1000_receive_skb drivers/net/ethernet/intel/e1000/e1000_main.c:4008 [inline] e1000_clean_rx_irq+0x50e/0x1010 drivers/net/ethernet/intel/e1000/e1000_main.c:4461 e1000_clean+0x9bf/0x26b0 drivers/net/ethernet/intel/e1000/e1000_main.c:3803 __napi_poll+0xb7/0x6f0 net/core/dev.c:6498 napi_poll net/core/dev.c:6565 [inline] net_rx_action+0x8a9/0xcb0 net/core/dev.c:6698 __do_softirq+0x1d4/0x905 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 common_interrupt+0xad/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 __follow_mount_rcu fs/namei.c:1485 [inline] handle_mounts fs/namei.c:1534 [inline] step_into+0x148/0x2030 fs/namei.c:1836 walk_component+0xf5/0x5a0 fs/namei.c:2004 link_path_walk.part.0+0x74e/0xd60 fs/namei.c:2325 link_path_walk fs/namei.c:2250 [inline] path_parentat+0xa8/0x1b0 fs/namei.c:2526 __filename_parentat+0x1dd/0x620 fs/namei.c:2550 filename_parentat fs/namei.c:2568 [inline] do_renameat2+0x176/0xd40 fs/namei.c:4921 __do_sys_rename fs/namei.c:5056 [inline] __se_sys_rename fs/namei.c:5054 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5054 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd to a SOFTIRQ-irq-unsafe lock: (fs_reclaim){+.+.}-{0:0} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __fs_reclaim_acquire mm/page_alloc.c:3893 [inline] fs_reclaim_acquire+0x11d/0x160 mm/page_alloc.c:3907 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] __kmem_cache_alloc_node+0x41/0x320 mm/slub.c:3490 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] alloc_workqueue_attrs kernel/workqueue.c:3513 [inline] wq_numa_init kernel/workqueue.c:6219 [inline] workqueue_init+0xf5/0xd40 kernel/workqueue.c:6346 kernel_init_freeable+0x34c/0xba0 init/main.c:1543 kernel_init+0x1e/0x2c0 init/main.c:1448 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(fs_reclaim); local_irq_disable(); lock(&sch->q.lock); lock(fs_reclaim); lock(&sch->q.lock); *** DEADLOCK *** 2 locks held by syz-executor.2/15856: #0: ffffffff8e11afa8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:78 [inline] #0: ffffffff8e11afa8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e8/0xd50 net/core/rtnetlink.c:6414 #1: ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:355 [inline] #1: ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: sch_tree_lock include/net/sch_generic.h:576 [inline] #1: ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: sch_tree_lock include/net/sch_generic.h:571 [inline] #1: ffff88802bb92108 (&sch->q.lock){+.-.}-{2:2}, at: netem_change+0x1520/0x1f70 net/sched/sch_netem.c:969 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&sch->q.lock){+.-.}-{2:2} { HARDIRQ-ON-W at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:355 [inline] dev_reset_queue+0xab/0x1d0 net/sched/sch_generic.c:1291 netdev_for_each_tx_queue include/linux/netdevice.h:2517 [inline] dev_deactivate_many+0x36d/0xb00 net/sched/sch_generic.c:1359 dev_deactivate+0xed/0x1b0 net/sched/sch_generic.c:1382 linkwatch_do_dev+0x101/0x150 net/core/link_watch.c:180 __linkwatch_run_queue+0x23f/0x6a0 net/core/link_watch.c:235 linkwatch_event+0x4e/0x70 net/core/link_watch.c:278 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2408 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2555 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] dev_requeue_skb net/sched/sch_generic.c:148 [inline] sch_direct_xmit+0xa49/0xc30 net/sched/sch_generic.c:362 __dev_xmit_skb net/core/dev.c:3805 [inline] __dev_queue_xmit+0x14d6/0x3b10 net/core/dev.c:4210 dev_queue_xmit include/linux/netdevice.h:3088 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip_finish_output2+0x15a1/0x22b0 net/ipv4/ip_output.c:229 __ip_finish_output net/ipv4/ip_output.c:307 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:289 ip_finish_output+0x31/0x280 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:292 [inline] ip_output+0x1a3/0x320 net/ipv4/ip_output.c:431 dst_output include/net/dst.h:458 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x8d9/0x1c50 net/ipv4/ip_output.c:533 __tcp_transmit_skb+0x194b/0x3800 net/ipv4/tcp_output.c:1399 tcp_transmit_skb net/ipv4/tcp_output.c:1417 [inline] tcp_write_xmit+0x1025/0x6160 net/ipv4/tcp_output.c:2693 __tcp_push_pending_frames+0xae/0x390 net/ipv4/tcp_output.c:2877 tcp_push_pending_frames include/net/tcp.h:1952 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5510 [inline] tcp_rcv_established+0x13af/0x1f90 net/ipv4/tcp_input.c:5930 tcp_v4_do_rcv+0x65a/0x9c0 net/ipv4/tcp_ipv4.c:1722 tcp_v4_rcv+0x30ed/0x3300 net/ipv4/tcp_ipv4.c:2144 ip_protocol_deliver_rcu+0x9f/0x480 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2ec/0x520 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:303 [inline] NF_HOOK include/linux/netfilter.h:297 [inline] ip_local_deliver+0x1ae/0x200 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:468 [inline] ip_sublist_rcv_finish+0x9a/0x2c0 net/ipv4/ip_input.c:580 ip_list_rcv_finish.constprop.0+0x4f9/0x6c0 net/ipv4/ip_input.c:630 ip_sublist_rcv net/ipv4/ip_input.c:638 [inline] ip_list_rcv+0x347/0x4a0 net/ipv4/ip_input.c:673 __netif_receive_skb_list_ptype net/core/dev.c:5536 [inline] __netif_receive_skb_list_core+0x548/0x8f0 net/core/dev.c:5584 __netif_receive_skb_list net/core/dev.c:5636 [inline] netif_receive_skb_list_internal+0x75f/0xdc0 net/core/dev.c:5727 gro_normal_list include/net/gro.h:433 [inline] gro_normal_one include/net/gro.h:446 [inline] napi_skb_finish net/core/gro.c:627 [inline] napi_gro_receive+0x8aa/0xab0 net/core/gro.c:657 e1000_receive_skb drivers/net/ethernet/intel/e1000/e1000_main.c:4008 [inline] e1000_clean_rx_irq+0x50e/0x1010 drivers/net/ethernet/intel/e1000/e1000_main.c:4461 e1000_clean+0x9bf/0x26b0 drivers/net/ethernet/intel/e1000/e1000_main.c:3803 __napi_poll+0xb7/0x6f0 net/core/dev.c:6498 napi_poll net/core/dev.c:6565 [inline] net_rx_action+0x8a9/0xcb0 net/core/dev.c:6698 __do_softirq+0x1d4/0x905 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 common_interrupt+0xad/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 __follow_mount_rcu fs/namei.c:1485 [inline] handle_mounts fs/namei.c:1534 [inline] step_into+0x148/0x2030 fs/namei.c:1836 walk_component+0xf5/0x5a0 fs/namei.c:2004 link_path_walk.part.0+0x74e/0xd60 fs/namei.c:2325 link_path_walk fs/namei.c:2250 [inline] path_parentat+0xa8/0x1b0 fs/namei.c:2526 __filename_parentat+0x1dd/0x620 fs/namei.c:2550 filename_parentat fs/namei.c:2568 [inline] do_renameat2+0x176/0xd40 fs/namei.c:4921 __do_sys_rename fs/namei.c:5056 [inline] __se_sys_rename fs/namei.c:5054 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5054 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:355 [inline] dev_reset_queue+0xab/0x1d0 net/sched/sch_generic.c:1291 netdev_for_each_tx_queue include/linux/netdevice.h:2517 [inline] dev_deactivate_many+0x36d/0xb00 net/sched/sch_generic.c:1359 dev_deactivate+0xed/0x1b0 net/sched/sch_generic.c:1382 linkwatch_do_dev+0x101/0x150 net/core/link_watch.c:180 __linkwatch_run_queue+0x23f/0x6a0 net/core/link_watch.c:235 linkwatch_event+0x4e/0x70 net/core/link_watch.c:278 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2408 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2555 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 } ... key at: [] __key.4+0x0/0x40 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (fs_reclaim){+.+.}-{0:0} { HARDIRQ-ON-W at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __fs_reclaim_acquire mm/page_alloc.c:3893 [inline] fs_reclaim_acquire+0x11d/0x160 mm/page_alloc.c:3907 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] __kmem_cache_alloc_node+0x41/0x320 mm/slub.c:3490 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] alloc_workqueue_attrs kernel/workqueue.c:3513 [inline] wq_numa_init kernel/workqueue.c:6219 [inline] workqueue_init+0xf5/0xd40 kernel/workqueue.c:6346 kernel_init_freeable+0x34c/0xba0 init/main.c:1543 kernel_init+0x1e/0x2c0 init/main.c:1448 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 SOFTIRQ-ON-W at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __fs_reclaim_acquire mm/page_alloc.c:3893 [inline] fs_reclaim_acquire+0x11d/0x160 mm/page_alloc.c:3907 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] __kmem_cache_alloc_node+0x41/0x320 mm/slub.c:3490 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] alloc_workqueue_attrs kernel/workqueue.c:3513 [inline] wq_numa_init kernel/workqueue.c:6219 [inline] workqueue_init+0xf5/0xd40 kernel/workqueue.c:6346 kernel_init_freeable+0x34c/0xba0 init/main.c:1543 kernel_init+0x1e/0x2c0 init/main.c:1448 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __fs_reclaim_acquire mm/page_alloc.c:3893 [inline] fs_reclaim_acquire+0x11d/0x160 mm/page_alloc.c:3907 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] __kmem_cache_alloc_node+0x41/0x320 mm/slub.c:3490 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] alloc_workqueue_attrs kernel/workqueue.c:3513 [inline] wq_numa_init kernel/workqueue.c:6219 [inline] workqueue_init+0xf5/0xd40 kernel/workqueue.c:6346 kernel_init_freeable+0x34c/0xba0 init/main.c:1543 kernel_init+0x1e/0x2c0 init/main.c:1448 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 } ... key at: [] __fs_reclaim_map+0x0/0xe0 ... acquired at: lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __fs_reclaim_acquire mm/page_alloc.c:3893 [inline] fs_reclaim_acquire+0x11d/0x160 mm/page_alloc.c:3907 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] __kmem_cache_alloc_node+0x41/0x320 mm/slub.c:3490 __do_kmalloc_node mm/slab_common.c:965 [inline] __kmalloc_node+0x51/0x1a0 mm/slab_common.c:973 kmalloc_node include/linux/slab.h:579 [inline] kvmalloc_node+0xa2/0x1a0 mm/util.c:604 kvmalloc include/linux/slab.h:697 [inline] get_dist_table+0x8e/0x3a0 net/sched/sch_netem.c:788 netem_change+0x57c/0x1f70 net/sched/sch_netem.c:985 netem_init+0x70/0xc0 net/sched/sch_netem.c:1072 qdisc_create+0x4d1/0x10c0 net/sched/sch_api.c:1326 tc_modify_qdisc+0x488/0x1c30 net/sched/sch_api.c:1720 rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6417 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2546 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xde/0x190 net/socket.c:748 ____sys_sendmsg+0x722/0x900 net/socket.c:2504 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2558 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2587 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 stack backtrace: CPU: 0 PID: 15856 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-00847-g88afbb21d4b3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2627 [inline] check_irq_usage+0x114e/0x1a40 kernel/locking/lockdep.c:2866 check_prev_add kernel/locking/lockdep.c:3117 [inline] check_prevs_add kernel/locking/lockdep.c:3232 [inline] validate_chain kernel/locking/lockdep.c:3847 [inline] __lock_acquire+0x2fe5/0x5f30 kernel/locking/lockdep.c:5088 lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __fs_reclaim_acquire mm/page_alloc.c:3893 [inline] fs_reclaim_acquire+0x11d/0x160 mm/page_alloc.c:3907 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] __kmem_cache_alloc_node+0x41/0x320 mm/slub.c:3490 __do_kmalloc_node mm/slab_common.c:965 [inline] __kmalloc_node+0x51/0x1a0 mm/slab_common.c:973 kmalloc_node include/linux/slab.h:579 [inline] kvmalloc_node+0xa2/0x1a0 mm/util.c:604 kvmalloc include/linux/slab.h:697 [inline] get_dist_table+0x8e/0x3a0 net/sched/sch_netem.c:788 netem_change+0x57c/0x1f70 net/sched/sch_netem.c:985 netem_init+0x70/0xc0 net/sched/sch_netem.c:1072 qdisc_create+0x4d1/0x10c0 net/sched/sch_api.c:1326 tc_modify_qdisc+0x488/0x1c30 net/sched/sch_api.c:1720 rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6417 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2546 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xde/0x190 net/socket.c:748 ____sys_sendmsg+0x722/0x900 net/socket.c:2504 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2558 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2587 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fab579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7fa65cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000200007c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:306 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 15856, name: syz-executor.2 preempt_count: 201, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 15856 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-00847-g88afbb21d4b3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106 __might_resched+0x358/0x580 kernel/sched/core.c:10153 might_alloc include/linux/sched/mm.h:306 [inline] slab_pre_alloc_hook mm/slab.h:670 [inline] slab_alloc_node mm/slub.c:3433 [inline] __kmem_cache_alloc_node+0x2e8/0x320 mm/slub.c:3490 __do_kmalloc_node mm/slab_common.c:965 [inline] __kmalloc_node+0x51/0x1a0 mm/slab_common.c:973 kmalloc_node include/linux/slab.h:579 [inline] kvmalloc_node+0xa2/0x1a0 mm/util.c:604 kvmalloc include/linux/slab.h:697 [inline] get_dist_table+0x8e/0x3a0 net/sched/sch_netem.c:788 netem_change+0x57c/0x1f70 net/sched/sch_netem.c:985 netem_init+0x70/0xc0 net/sched/sch_netem.c:1072 qdisc_create+0x4d1/0x10c0 net/sched/sch_api.c:1326 tc_modify_qdisc+0x488/0x1c30 net/sched/sch_api.c:1720 rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6417 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2546 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xde/0x190 net/socket.c:748 ____sys_sendmsg+0x722/0x900 net/socket.c:2504 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2558 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2587 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fab579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7fa65cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000200007c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 retq 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi