Warning: Permanently added '10.128.10.50' (ED25519) to the list of known hosts. executing program [ 58.497960][ T3519] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 [ 58.507614][ T3519] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3519, name: syz-executor732 [ 58.517152][ T3519] preempt_count: 201, expected: 0 [ 58.522193][ T3519] RCU nest depth: 0, expected: 0 [ 58.527184][ T3519] 2 locks held by syz-executor732/3519: [ 58.532744][ T3519] #0: ffffffff8e2988e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x720/0xf00 [ 58.542248][ T3519] #1: ffff8880283fb908 (&sch->q.lock){+...}-{2:2}, at: netem_change+0x17e/0x1ea0 [ 58.551581][ T3519] Preemption disabled at: [ 58.551591][ T3519] [<0000000000000000>] 0x0 [ 58.560379][ T3519] CPU: 0 PID: 3519 Comm: syz-executor732 Not tainted 6.1.45-syzkaller #0 [ 58.568816][ T3519] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 [ 58.578880][ T3519] Call Trace: [ 58.582160][ T3519] [ 58.585091][ T3519] dump_stack_lvl+0x1e3/0x2cb [ 58.589786][ T3519] ? nf_tcp_handle_invalid+0x642/0x642 [ 58.595253][ T3519] ? panic+0x75d/0x75d [ 58.599332][ T3519] __might_resched+0x5cb/0x780 [ 58.604135][ T3519] ? __might_sleep+0xb0/0xb0 [ 58.608757][ T3519] slab_pre_alloc_hook+0x4a/0x2a0 [ 58.613804][ T3519] ? kvmalloc_node+0x6e/0x180 [ 58.618498][ T3519] __kmem_cache_alloc_node+0x47/0x260 [ 58.623884][ T3519] ? kvmalloc_node+0x6e/0x180 [ 58.628562][ T3519] __kmalloc_node+0xa2/0x230 [ 58.633156][ T3519] kvmalloc_node+0x6e/0x180 [ 58.637662][ T3519] get_dist_table+0x91/0x380 [ 58.642268][ T3519] netem_change+0x947/0x1ea0 [ 58.646876][ T3519] ? netem_destroy+0xb0/0xb0 [ 58.651474][ T3519] ? do_raw_spin_unlock+0x137/0x8a0 [ 58.656706][ T3519] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 58.662621][ T3519] ? lockdep_hardirqs_on+0x94/0x130 [ 58.667853][ T3519] ? memset+0x1f/0x40 [ 58.671834][ T3519] ? __hrtimer_init+0x181/0x260 [ 58.676710][ T3519] netem_init+0x58/0xb0 [ 58.680891][ T3519] ? qdisc_peek_dequeued+0x220/0x220 [ 58.686186][ T3519] qdisc_create+0x8a1/0x1220 [ 58.690878][ T3519] ? qdisc_notify+0x390/0x390 [ 58.695565][ T3519] tc_modify_qdisc+0x9e0/0x1da0 [ 58.700434][ T3519] ? rcu_lock_release+0x20/0x20 [ 58.705322][ T3519] ? rcu_lock_release+0x20/0x20 [ 58.710179][ T3519] rtnetlink_rcv_msg+0x776/0xf00 [ 58.715123][ T3519] ? rtnetlink_bind+0x80/0x80 [ 58.719801][ T3519] ? stack_trace_save+0x1c0/0x1c0 [ 58.724832][ T3519] ? kernel_text_address+0x9f/0xd0 [ 58.729956][ T3519] ? __kernel_text_address+0x9/0x40 [ 58.735163][ T3519] ? unwind_get_return_address+0x49/0x80 [ 58.740801][ T3519] ? arch_stack_walk+0xf3/0x140 [ 58.745661][ T3519] ? mark_lock+0x9a/0x340 [ 58.750005][ T3519] ? mark_lock+0x9a/0x340 [ 58.754360][ T3519] ? __lock_acquire+0x125b/0x1f80 [ 58.759419][ T3519] netlink_rcv_skb+0x1cd/0x410 [ 58.764229][ T3519] ? rtnetlink_bind+0x80/0x80 [ 58.768926][ T3519] ? netlink_ack+0xe60/0xe60 [ 58.773541][ T3519] netlink_unicast+0x7bf/0x990 [ 58.778321][ T3519] ? netlink_detachskb+0x90/0x90 [ 58.783261][ T3519] ? __virt_addr_valid+0x22b/0x2e0 [ 58.788387][ T3519] ? __phys_addr_symbol+0x2b/0x70 [ 58.793447][ T3519] ? __check_object_size+0x4dd/0xa30 [ 58.798746][ T3519] ? bpf_lsm_netlink_send+0x5/0x10 [ 58.803899][ T3519] netlink_sendmsg+0xa26/0xd60 [ 58.808691][ T3519] ? netlink_getsockopt+0x5b0/0x5b0 [ 58.813900][ T3519] ? aa_sock_msg_perm+0x91/0x150 [ 58.818843][ T3519] ? bpf_lsm_socket_sendmsg+0x5/0x10 [ 58.824131][ T3519] ? security_socket_sendmsg+0x7d/0xa0 [ 58.829596][ T3519] ? netlink_getsockopt+0x5b0/0x5b0 [ 58.834798][ T3519] ____sys_sendmsg+0x59e/0x8f0 [ 58.839655][ T3519] ? __sys_sendmsg_sock+0x30/0x30 [ 58.844691][ T3519] __sys_sendmsg+0x2a9/0x390 [ 58.849283][ T3519] ? ____sys_sendmsg+0x8f0/0x8f0 [ 58.854254][ T3519] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 58.860336][ T3519] ? syscall_enter_from_user_mode+0x2e/0x220 [ 58.866317][ T3519] ? lockdep_hardirqs_on+0x94/0x130 [ 58.871523][ T3519] ? syscall_enter_from_user_mode+0x2e/0x220 [ 58.877507][ T3519] do_syscall_64+0x3d/0xb0 [ 58.881931][ T3519] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.887842][ T3519] RIP: 0033:0x7f45c72315a9 [ 58.892261][ T3519] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 [ 58.911874][ T3519] RSP: 002b:00007ffe8c022cb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 58.920290][ T3519] RAX: ffffffffffffffda RBX: 00007ffe8c022e88 RCX: 00007f45c72315a9 [ 58.928262][ T3519] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 [ 58.936230][ T3519] RBP: 00007f45c72a4610 R08: 000000000000000a R09: 00007ffe8c022e88 [ 58.944198][ T3519] R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000001 [ 58.952168][ T3519] R13: 00007ffe8c022e78 R14: 0000000000000001 R15: 0000000000000001 [ 58.960149][ T3519] [ 58.963284][ T3519] [ 58.965629][ T3519] ============================================ [ 58.971790][ T3519] WARNING: possible recursive locking detected [ 58.977965][ T3519] 6.1.45-syzkaller #0 Tainted: G W [ 58.984455][ T3519] -------------------------------------------- [ 58.990682][ T3519] syz-executor732/3519 is trying to acquire lock: [ 58.997115][ T3519] ffff8880283fb908 (&sch->q.lock){+...}-{2:2}, at: get_dist_table+0x254/0x380 [ 59.005997][ T3519] [ 59.005997][ T3519] but task is already holding lock: [ 59.013353][ T3519] ffff8880283fb908 (&sch->q.lock){+...}-{2:2}, at: netem_change+0x17e/0x1ea0 [ 59.022141][ T3519] [ 59.022141][ T3519] other info that might help us debug this: [ 59.030191][ T3519] Possible unsafe locking scenario: [ 59.030191][ T3519] [ 59.037631][ T3519] CPU0 [ 59.040902][ T3519] ---- [ 59.044173][ T3519] lock(&sch->q.lock); [ 59.048325][ T3519] lock(&sch->q.lock); [ 59.052475][ T3519] [ 59.052475][ T3519] *** DEADLOCK *** [ 59.052475][ T3519] [ 59.060611][ T3519] May be due to missing lock nesting notation [ 59.060611][ T3519] [ 59.068926][ T3519] 2 locks held by syz-executor732/3519: [ 59.074460][ T3519] #0: ffffffff8e2988e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x720/0xf00 [ 59.083890][ T3519] #1: ffff8880283fb908 (&sch->q.lock){+...}-{2:2}, at: netem_change+0x17e/0x1ea0 [ 59.093206][ T3519] [ 59.093206][ T3519] stack backtrace: [ 59.099086][ T3519] CPU: 0 PID: 3519 Comm: syz-executor732 Tainted: G W 6.1.45-syzkaller #0 [ 59.108990][ T3519] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 [ 59.119042][ T3519] Call Trace: [ 59.122319][ T3519] [ 59.125247][ T3519] dump_stack_lvl+0x1e3/0x2cb [ 59.129931][ T3519] ? nf_tcp_handle_invalid+0x642/0x642 [ 59.135394][ T3519] ? panic+0x75d/0x75d [ 59.139467][ T3519] validate_chain+0x4726/0x58e0 [ 59.144326][ T3519] ? do_raw_spin_unlock+0x137/0x8a0 [ 59.149524][ T3519] ? reacquire_held_locks+0x660/0x660 [ 59.154894][ T3519] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 59.160791][ T3519] ? _raw_spin_unlock+0x40/0x40 [ 59.165724][ T3519] ? stack_trace_save+0x113/0x1c0 [ 59.170780][ T3519] ? stack_trace_snprint+0xe0/0xe0 [ 59.175899][ T3519] ? __stack_depot_save+0x3f5/0x470 [ 59.181112][ T3519] ? kasan_set_track+0x60/0x70 [ 59.185899][ T3519] ? kasan_set_track+0x4b/0x70 [ 59.190676][ T3519] ? __kasan_kmalloc+0x97/0xb0 [ 59.195437][ T3519] ? mark_lock+0x9a/0x340 [ 59.199768][ T3519] ? tc_modify_qdisc+0x9e0/0x1da0 [ 59.204801][ T3519] __lock_acquire+0x125b/0x1f80 [ 59.209659][ T3519] lock_acquire+0x1f8/0x5a0 [ 59.214157][ T3519] ? get_dist_table+0x254/0x380 [ 59.219034][ T3519] ? read_lock_is_recursive+0x10/0x10 [ 59.224552][ T3519] ? get_dist_table+0x254/0x380 [ 59.229413][ T3519] ? __bpf_trace_softirq+0x10/0x10 [ 59.234616][ T3519] ? kvmalloc_node+0x6e/0x180 [ 59.239296][ T3519] ? get_dist_table+0x254/0x380 [ 59.244263][ T3519] _raw_spin_lock_bh+0x31/0x40 [ 59.249043][ T3519] ? get_dist_table+0x254/0x380 [ 59.253894][ T3519] get_dist_table+0x254/0x380 [ 59.258572][ T3519] netem_change+0x947/0x1ea0 [ 59.263167][ T3519] ? netem_destroy+0xb0/0xb0 [ 59.267757][ T3519] ? do_raw_spin_unlock+0x137/0x8a0 [ 59.272953][ T3519] ? _raw_spin_unlock_irqrestore+0x8b/0x130 [ 59.278852][ T3519] ? lockdep_hardirqs_on+0x94/0x130 [ 59.284056][ T3519] ? memset+0x1f/0x40 [ 59.288059][ T3519] ? __hrtimer_init+0x181/0x260 [ 59.292925][ T3519] netem_init+0x58/0xb0 [ 59.297082][ T3519] ? qdisc_peek_dequeued+0x220/0x220 [ 59.302370][ T3519] qdisc_create+0x8a1/0x1220 [ 59.306966][ T3519] ? qdisc_notify+0x390/0x390 [ 59.311647][ T3519] tc_modify_qdisc+0x9e0/0x1da0 [ 59.316505][ T3519] ? rcu_lock_release+0x20/0x20 [ 59.321369][ T3519] ? rcu_lock_release+0x20/0x20 [ 59.326222][ T3519] rtnetlink_rcv_msg+0x776/0xf00 [ 59.331164][ T3519] ? rtnetlink_bind+0x80/0x80 [ 59.335837][ T3519] ? stack_trace_save+0x1c0/0x1c0 [ 59.340856][ T3519] ? kernel_text_address+0x9f/0xd0 [ 59.345971][ T3519] ? __kernel_text_address+0x9/0x40 [ 59.351174][ T3519] ? unwind_get_return_address+0x49/0x80 [ 59.356831][ T3519] ? arch_stack_walk+0xf3/0x140 [ 59.361860][ T3519] ? mark_lock+0x9a/0x340 [ 59.366186][ T3519] ? mark_lock+0x9a/0x340 [ 59.370513][ T3519] ? __lock_acquire+0x125b/0x1f80 [ 59.375565][ T3519] netlink_rcv_skb+0x1cd/0x410 [ 59.380327][ T3519] ? rtnetlink_bind+0x80/0x80 [ 59.385000][ T3519] ? netlink_ack+0xe60/0xe60 [ 59.389595][ T3519] netlink_unicast+0x7bf/0x990 [ 59.394362][ T3519] ? netlink_detachskb+0x90/0x90 [ 59.399303][ T3519] ? __virt_addr_valid+0x22b/0x2e0 [ 59.404420][ T3519] ? __phys_addr_symbol+0x2b/0x70 [ 59.409447][ T3519] ? __check_object_size+0x4dd/0xa30 [ 59.414768][ T3519] ? bpf_lsm_netlink_send+0x5/0x10 [ 59.419879][ T3519] netlink_sendmsg+0xa26/0xd60 [ 59.424648][ T3519] ? netlink_getsockopt+0x5b0/0x5b0 [ 59.429855][ T3519] ? aa_sock_msg_perm+0x91/0x150 [ 59.434801][ T3519] ? bpf_lsm_socket_sendmsg+0x5/0x10 [ 59.440084][ T3519] ? security_socket_sendmsg+0x7d/0xa0 [ 59.445545][ T3519] ? netlink_getsockopt+0x5b0/0x5b0 [ 59.450744][ T3519] ____sys_sendmsg+0x59e/0x8f0 [ 59.455509][ T3519] ? __sys_sendmsg_sock+0x30/0x30 [ 59.460532][ T3519] __sys_sendmsg+0x2a9/0x390 [ 59.465116][ T3519] ? ____sys_sendmsg+0x8f0/0x8f0 [ 59.470061][ T3519] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 59.476044][ T3519] ? syscall_enter_from_user_mode+0x2e/0x220 [ 59.482030][ T3519] ? lockdep_hardirqs_on+0x94/0x130 [ 59.487228][ T3519] ? syscall_enter_from_user_mode+0x2e/0x220 [ 59.493206][ T3519] do_syscall_64+0x3d/0xb0 [ 59.497631][ T3519] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.503524][ T3519] RIP: 0033:0x7f45c72315a9 [ 59.507939][ T3519] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 [ 59.527540][ T3519] RSP: 002b:00007ffe8c022cb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 59.535949][ T3519] RAX: ffffffffffffffda RBX: 00007ffe8c022e88 RCX: 00007f45c72315a9 [ 59.543916][ T3519] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 [ 59.551885][ T3519] RBP: 00007f45c72a4610 R08: 000000000000000a R09: 00007ffe8c022e88 [ 59.559863][ T3519] R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000001 [ 59.567833][ T3519] R13: 00007ffe8c022e78 R14: 0000000000000001 R15: 0000000000000001 [ 59.575812][ T3519]