===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.15.119-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.0/5352 [HC0[0]:SC0[2]:HE1:SE0] is trying to acquire: ffff800014b75540 (fs_reclaim){+.+.}-{0:0}, at: might_alloc include/linux/sched/mm.h:206 [inline] ffff800014b75540 (fs_reclaim){+.+.}-{0:0}, at: slab_pre_alloc_hook+0x38/0xe8 mm/slab.h:492 and this task is already holding: ffff0000c936b108 (&sch->q.lock){+.-.}-{2:2}, at: netem_change+0x22c/0x1a90 net/sched/sch_netem.c:972 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+0x240/0x77c kernel/locking/lockdep.c:5622 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0xb0/0x10c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] dev_requeue_skb+0x6d0/0x758 net/sched/sch_generic.c:148 sch_direct_xmit+0x278/0x484 net/sched/sch_generic.c:362 __dev_xmit_skb net/core/dev.c:3821 [inline] __dev_queue_xmit+0x14b4/0x2a6c net/core/dev.c:4190 dev_queue_xmit+0x24/0x34 net/core/dev.c:4258 neigh_hh_output include/net/neighbour.h:493 [inline] neigh_output include/net/neighbour.h:507 [inline] ip_finish_output2+0xd50/0x1330 net/ipv4/ip_output.c:228 __ip_finish_output+0x1b0/0x458 ip_finish_output+0x40/0x218 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_output+0x330/0x49c net/ipv4/ip_output.c:430 dst_output include/net/dst.h:443 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0xe70/0x1930 net/ipv4/ip_output.c:532 ip_queue_xmit+0x5c/0x78 net/ipv4/ip_output.c:546 __tcp_transmit_skb+0x1954/0x3218 net/ipv4/tcp_output.c:1403 tcp_transmit_skb net/ipv4/tcp_output.c:1421 [inline] tcp_write_xmit+0x12bc/0x4dc0 net/ipv4/tcp_output.c:2694 __tcp_push_pending_frames+0x98/0x228 net/ipv4/tcp_output.c:2878 tcp_push_pending_frames include/net/tcp.h:1898 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5470 [inline] tcp_rcv_established+0xab4/0x1f40 net/ipv4/tcp_input.c:5966 tcp_v4_do_rcv+0x340/0xc70 net/ipv4/tcp_ipv4.c:1727 tcp_v4_rcv+0x1fd8/0x2770 net/ipv4/tcp_ipv4.c:2129 ip_protocol_deliver_rcu+0x36c/0x770 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x1b8/0x30c net/ipv4/ip_input.c:231 NF_HOOK+0x324/0x3d0 include/linux/netfilter.h:302 ip_local_deliver+0x11c/0x190 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:453 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:627 [inline] ip_sublist_rcv+0x8cc/0xbec net/ipv4/ip_input.c:635 ip_list_rcv+0x3e8/0x43c net/ipv4/ip_input.c:670 __netif_receive_skb_list_ptype net/core/dev.c:5505 [inline] __netif_receive_skb_list_core+0x5cc/0x754 net/core/dev.c:5553 __netif_receive_skb_list net/core/dev.c:5605 [inline] netif_receive_skb_list_internal+0x810/0xb2c net/core/dev.c:5696 gro_normal_list net/core/dev.c:5850 [inline] gro_normal_one net/core/dev.c:5863 [inline] napi_frags_finish net/core/dev.c:6291 [inline] napi_gro_frags+0x710/0x10d8 net/core/dev.c:6357 gve_rx drivers/net/ethernet/google/gve/gve_rx.c:455 [inline] gve_clean_rx_done+0x7e0/0x2040 drivers/net/ethernet/google/gve/gve_rx.c:556 gve_rx_poll+0xb8/0x1f8 drivers/net/ethernet/google/gve/gve_rx.c:614 gve_napi_poll+0xdc/0x27c drivers/net/ethernet/google/gve/gve_main.c:205 __napi_poll+0xb4/0x624 net/core/dev.c:7012 napi_poll net/core/dev.c:7079 [inline] net_rx_action+0x500/0xc10 net/core/dev.c:7166 __do_softirq+0x344/0xe20 kernel/softirq.c:558 do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] do_softirq+0x120/0x20c kernel/softirq.c:459 __local_bh_enable_ip+0x2c0/0x4d0 kernel/softirq.c:383 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:766 [inline] ip6_finish_output2+0x13e4/0x1c48 net/ipv6/ip6_output.c:127 __ip6_finish_output+0x518/0x67c net/ipv6/ip6_output.c:191 ip6_finish_output+0x40/0x218 net/ipv6/ip6_output.c:201 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip6_output+0x270/0x594 net/ipv6/ip6_output.c:224 dst_output include/net/dst.h:443 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] ndisc_send_skb+0xbf8/0x1788 net/ipv6/ndisc.c:508 ndisc_send_rs+0x494/0x5fc net/ipv6/ndisc.c:702 addrconf_dad_completed+0x5d0/0xb50 net/ipv6/addrconf.c:4251 addrconf_dad_work+0x9ec/0x126c process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 to a SOFTIRQ-irq-unsafe lock: (fs_reclaim){+.+.}-{0:0} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __fs_reclaim_acquire mm/page_alloc.c:4547 [inline] fs_reclaim_acquire+0xf0/0x1d0 mm/page_alloc.c:4561 might_alloc include/linux/sched/mm.h:206 [inline] slab_pre_alloc_hook+0x38/0xe8 mm/slab.h:492 slab_alloc_node mm/slub.c:3134 [inline] kmem_cache_alloc_node_trace+0xa0/0x4c4 mm/slub.c:3270 kmalloc_node include/linux/slab.h:609 [inline] kzalloc_node include/linux/slab.h:732 [inline] alloc_worker kernel/workqueue.c:1858 [inline] init_rescuer+0xa4/0x264 kernel/workqueue.c:4276 workqueue_init+0x2b4/0x640 kernel/workqueue.c:6133 kernel_init_freeable+0x448/0x650 init/main.c:1603 kernel_init+0x24/0x294 init/main.c:1510 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 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.0/5352: #0: ffff8000169d6ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffff8000169d6ea8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xa2c/0xdac net/core/rtnetlink.c:5590 #1: ffff0000c936b108 (&sch->q.lock){+.-.}-{2:2}, at: netem_change+0x22c/0x1a90 net/sched/sch_netem.c:972 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&sch->q.lock){+.-.}-{2:2} { HARDIRQ-ON-W at: lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x124/0x1c4 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:368 [inline] dev_reset_queue+0xb4/0x190 net/sched/sch_generic.c:1245 netdev_for_each_tx_queue include/linux/netdevice.h:2379 [inline] dev_deactivate_many+0x718/0xbe4 net/sched/sch_generic.c:1313 dev_deactivate+0x13c/0x1fc net/sched/sch_generic.c:1336 linkwatch_do_dev+0x2a8/0x3c8 net/core/link_watch.c:165 __linkwatch_run_queue+0x424/0x730 net/core/link_watch.c:213 linkwatch_event+0x58/0x68 net/core/link_watch.c:252 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 IN-SOFTIRQ-W at: lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0xb0/0x10c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] dev_requeue_skb+0x6d0/0x758 net/sched/sch_generic.c:148 sch_direct_xmit+0x278/0x484 net/sched/sch_generic.c:362 __dev_xmit_skb net/core/dev.c:3821 [inline] __dev_queue_xmit+0x14b4/0x2a6c net/core/dev.c:4190 dev_queue_xmit+0x24/0x34 net/core/dev.c:4258 neigh_hh_output include/net/neighbour.h:493 [inline] neigh_output include/net/neighbour.h:507 [inline] ip_finish_output2+0xd50/0x1330 net/ipv4/ip_output.c:228 __ip_finish_output+0x1b0/0x458 ip_finish_output+0x40/0x218 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_output+0x330/0x49c net/ipv4/ip_output.c:430 dst_output include/net/dst.h:443 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0xe70/0x1930 net/ipv4/ip_output.c:532 ip_queue_xmit+0x5c/0x78 net/ipv4/ip_output.c:546 __tcp_transmit_skb+0x1954/0x3218 net/ipv4/tcp_output.c:1403 tcp_transmit_skb net/ipv4/tcp_output.c:1421 [inline] tcp_write_xmit+0x12bc/0x4dc0 net/ipv4/tcp_output.c:2694 __tcp_push_pending_frames+0x98/0x228 net/ipv4/tcp_output.c:2878 tcp_push_pending_frames include/net/tcp.h:1898 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5470 [inline] tcp_rcv_established+0xab4/0x1f40 net/ipv4/tcp_input.c:5966 tcp_v4_do_rcv+0x340/0xc70 net/ipv4/tcp_ipv4.c:1727 tcp_v4_rcv+0x1fd8/0x2770 net/ipv4/tcp_ipv4.c:2129 ip_protocol_deliver_rcu+0x36c/0x770 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x1b8/0x30c net/ipv4/ip_input.c:231 NF_HOOK+0x324/0x3d0 include/linux/netfilter.h:302 ip_local_deliver+0x11c/0x190 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:453 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:627 [inline] ip_sublist_rcv+0x8cc/0xbec net/ipv4/ip_input.c:635 ip_list_rcv+0x3e8/0x43c net/ipv4/ip_input.c:670 __netif_receive_skb_list_ptype net/core/dev.c:5505 [inline] __netif_receive_skb_list_core+0x5cc/0x754 net/core/dev.c:5553 __netif_receive_skb_list net/core/dev.c:5605 [inline] netif_receive_skb_list_internal+0x810/0xb2c net/core/dev.c:5696 gro_normal_list net/core/dev.c:5850 [inline] gro_normal_one net/core/dev.c:5863 [inline] napi_frags_finish net/core/dev.c:6291 [inline] napi_gro_frags+0x710/0x10d8 net/core/dev.c:6357 gve_rx drivers/net/ethernet/google/gve/gve_rx.c:455 [inline] gve_clean_rx_done+0x7e0/0x2040 drivers/net/ethernet/google/gve/gve_rx.c:556 gve_rx_poll+0xb8/0x1f8 drivers/net/ethernet/google/gve/gve_rx.c:614 gve_napi_poll+0xdc/0x27c drivers/net/ethernet/google/gve/gve_main.c:205 __napi_poll+0xb4/0x624 net/core/dev.c:7012 napi_poll net/core/dev.c:7079 [inline] net_rx_action+0x500/0xc10 net/core/dev.c:7166 __do_softirq+0x344/0xe20 kernel/softirq.c:558 do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] do_softirq+0x120/0x20c kernel/softirq.c:459 __local_bh_enable_ip+0x2c0/0x4d0 kernel/softirq.c:383 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:766 [inline] ip6_finish_output2+0x13e4/0x1c48 net/ipv6/ip6_output.c:127 __ip6_finish_output+0x518/0x67c net/ipv6/ip6_output.c:191 ip6_finish_output+0x40/0x218 net/ipv6/ip6_output.c:201 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip6_output+0x270/0x594 net/ipv6/ip6_output.c:224 dst_output include/net/dst.h:443 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] ndisc_send_skb+0xbf8/0x1788 net/ipv6/ndisc.c:508 ndisc_send_rs+0x494/0x5fc net/ipv6/ndisc.c:702 addrconf_dad_completed+0x5d0/0xb50 net/ipv6/addrconf.c:4251 addrconf_dad_work+0x9ec/0x126c process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 INITIAL USE at: lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x124/0x1c4 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:368 [inline] dev_reset_queue+0xb4/0x190 net/sched/sch_generic.c:1245 netdev_for_each_tx_queue include/linux/netdevice.h:2379 [inline] dev_deactivate_many+0x718/0xbe4 net/sched/sch_generic.c:1313 dev_deactivate+0x13c/0x1fc net/sched/sch_generic.c:1336 linkwatch_do_dev+0x2a8/0x3c8 net/core/link_watch.c:165 __linkwatch_run_queue+0x424/0x730 net/core/link_watch.c:213 linkwatch_event+0x58/0x68 net/core/link_watch.c:252 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 } ... key at: [] qdisc_alloc.__key+0x0/0x20 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (fs_reclaim){+.+.}-{0:0} { HARDIRQ-ON-W at: lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __fs_reclaim_acquire mm/page_alloc.c:4547 [inline] fs_reclaim_acquire+0xf0/0x1d0 mm/page_alloc.c:4561 might_alloc include/linux/sched/mm.h:206 [inline] slab_pre_alloc_hook+0x38/0xe8 mm/slab.h:492 slab_alloc_node mm/slub.c:3134 [inline] kmem_cache_alloc_node_trace+0xa0/0x4c4 mm/slub.c:3270 kmalloc_node include/linux/slab.h:609 [inline] kzalloc_node include/linux/slab.h:732 [inline] alloc_worker kernel/workqueue.c:1858 [inline] init_rescuer+0xa4/0x264 kernel/workqueue.c:4276 workqueue_init+0x2b4/0x640 kernel/workqueue.c:6133 kernel_init_freeable+0x448/0x650 init/main.c:1603 kernel_init+0x24/0x294 init/main.c:1510 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 SOFTIRQ-ON-W at: lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __fs_reclaim_acquire mm/page_alloc.c:4547 [inline] fs_reclaim_acquire+0xf0/0x1d0 mm/page_alloc.c:4561 might_alloc include/linux/sched/mm.h:206 [inline] slab_pre_alloc_hook+0x38/0xe8 mm/slab.h:492 slab_alloc_node mm/slub.c:3134 [inline] kmem_cache_alloc_node_trace+0xa0/0x4c4 mm/slub.c:3270 kmalloc_node include/linux/slab.h:609 [inline] kzalloc_node include/linux/slab.h:732 [inline] alloc_worker kernel/workqueue.c:1858 [inline] init_rescuer+0xa4/0x264 kernel/workqueue.c:4276 workqueue_init+0x2b4/0x640 kernel/workqueue.c:6133 kernel_init_freeable+0x448/0x650 init/main.c:1603 kernel_init+0x24/0x294 init/main.c:1510 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 INITIAL USE at: lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __fs_reclaim_acquire mm/page_alloc.c:4547 [inline] fs_reclaim_acquire+0xf0/0x1d0 mm/page_alloc.c:4561 might_alloc include/linux/sched/mm.h:206 [inline] slab_pre_alloc_hook+0x38/0xe8 mm/slab.h:492 slab_alloc_node mm/slub.c:3134 [inline] kmem_cache_alloc_node_trace+0xa0/0x4c4 mm/slub.c:3270 kmalloc_node include/linux/slab.h:609 [inline] kzalloc_node include/linux/slab.h:732 [inline] alloc_worker kernel/workqueue.c:1858 [inline] init_rescuer+0xa4/0x264 kernel/workqueue.c:4276 workqueue_init+0x2b4/0x640 kernel/workqueue.c:6133 kernel_init_freeable+0x448/0x650 init/main.c:1603 kernel_init+0x24/0x294 init/main.c:1510 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 } ... key at: [] __fs_reclaim_map+0x0/0x200 ... acquired at: __fs_reclaim_acquire mm/page_alloc.c:4547 [inline] fs_reclaim_acquire+0xf0/0x1d0 mm/page_alloc.c:4561 might_alloc include/linux/sched/mm.h:206 [inline] slab_pre_alloc_hook+0x38/0xe8 mm/slab.h:492 slab_alloc_node mm/slub.c:3134 [inline] __kmalloc_node+0xbc/0x5b8 mm/slub.c:4451 kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x88/0x204 mm/util.c:619 kvmalloc include/linux/mm.h:805 [inline] get_dist_table+0x9c/0x2a4 net/sched/sch_netem.c:788 netem_change+0x7cc/0x1a90 net/sched/sch_netem.c:988 netem_init+0x54/0xb8 net/sched/sch_netem.c:1075 qdisc_create+0x6fc/0xf44 net/sched/sch_api.c:1264 tc_modify_qdisc+0x8dc/0x1344 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5593 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5611 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 stack backtrace: CPU: 0 PID: 5352 Comm: syz-executor.0 Not tainted 5.15.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 __lock_acquire+0x62b4/0x7620 kernel/locking/lockdep.c:5011 lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5622 __fs_reclaim_acquire mm/page_alloc.c:4547 [inline] fs_reclaim_acquire+0xf0/0x1d0 mm/page_alloc.c:4561 might_alloc include/linux/sched/mm.h:206 [inline] slab_pre_alloc_hook+0x38/0xe8 mm/slab.h:492 slab_alloc_node mm/slub.c:3134 [inline] __kmalloc_node+0xbc/0x5b8 mm/slub.c:4451 kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x88/0x204 mm/util.c:619 kvmalloc include/linux/mm.h:805 [inline] get_dist_table+0x9c/0x2a4 net/sched/sch_netem.c:788 netem_change+0x7cc/0x1a90 net/sched/sch_netem.c:988 netem_init+0x54/0xb8 net/sched/sch_netem.c:1075 qdisc_create+0x6fc/0xf44 net/sched/sch_api.c:1264 tc_modify_qdisc+0x8dc/0x1344 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5593 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5611 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:209 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5352, name: syz-executor.0 INFO: lockdep is turned off. Preemption disabled at: [] netem_change+0x22c/0x1a90 net/sched/sch_netem.c:972 CPU: 0 PID: 5352 Comm: syz-executor.0 Not tainted 5.15.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ___might_sleep+0x380/0x4dc kernel/sched/core.c:9625 __might_sleep+0x98/0xf0 kernel/sched/core.c:9579 might_alloc include/linux/sched/mm.h:209 [inline] slab_pre_alloc_hook+0x58/0xe8 mm/slab.h:492 slab_alloc_node mm/slub.c:3134 [inline] __kmalloc_node+0xbc/0x5b8 mm/slub.c:4451 kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x88/0x204 mm/util.c:619 kvmalloc include/linux/mm.h:805 [inline] get_dist_table+0x9c/0x2a4 net/sched/sch_netem.c:788 netem_change+0x7cc/0x1a90 net/sched/sch_netem.c:988 netem_init+0x54/0xb8 net/sched/sch_netem.c:1075 qdisc_create+0x6fc/0xf44 net/sched/sch_api.c:1264 tc_modify_qdisc+0x8dc/0x1344 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5593 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5611 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2412 ___sys_sendmsg+0x214/0x294 net/socket.c:2466 __sys_sendmsg net/socket.c:2495 [inline] __do_sys_sendmsg net/socket.c:2504 [inline] __se_sys_sendmsg net/socket.c:2502 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584