Warning: Permanently added '10.128.0.84' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 47.952891][ T3590] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1479 [ 47.962912][ T3590] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3590, name: syz-executor672 [ 47.972351][ T3590] 1 lock held by syz-executor672/3590: [ 47.977786][ T3590] #0: ffffffff8c941f98 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x290 [ 47.987544][ T3590] irq event stamp: 15138 [ 47.991768][ T3590] hardirqs last enabled at (15137): [] _raw_spin_unlock_irqrestore+0x8b/0x130 [ 48.002287][ T3590] hardirqs last disabled at (15138): [] _raw_spin_lock_irq+0xa9/0x110 [ 48.011999][ T3590] softirqs last enabled at (15124): [] ipv6_setsockopt+0x2ee1/0x43c0 [ 48.021801][ T3590] softirqs last disabled at (15122): [] release_sock+0x2c/0x1c0 [ 48.030988][ T3590] Preemption disabled at: [ 48.030996][ T3590] [<0000000000000000>] 0x0 [ 48.039757][ T3590] CPU: 1 PID: 3590 Comm: syz-executor672 Not tainted 5.15.98-syzkaller #0 [ 48.048418][ T3590] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 [ 48.058553][ T3590] Call Trace: [ 48.061823][ T3590] [ 48.064749][ T3590] dump_stack_lvl+0x1e3/0x2cb [ 48.069425][ T3590] ? ipv6_setsockopt+0x2ee1/0x43c0 [ 48.074629][ T3590] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 48.080247][ T3590] ? panic+0x84d/0x84d [ 48.084306][ T3590] ___might_sleep+0x535/0x690 [ 48.089419][ T3590] ? __might_sleep+0xc0/0xc0 [ 48.094000][ T3590] ? rcu_lock_release+0x5/0x20 [ 48.098746][ T3590] down_read+0x17/0x50 [ 48.102812][ T3590] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 48.108091][ T3590] ? kernfs_find_ns+0x500/0x500 [ 48.112939][ T3590] ? current_cgns_cgroup_from_root+0x277/0x2c0 [ 48.119081][ T3590] cgroup_get_from_path+0x5c/0x290 [ 48.124170][ T3590] cgroup_mt_check_v1+0x1a0/0x2b0 [ 48.129176][ T3590] xt_check_match+0x363/0xa30 [ 48.133829][ T3590] ? xt_find_match+0x6d/0x200 [ 48.138485][ T3590] ? mutex_unlock+0x10/0x10 [ 48.142967][ T3590] ? xt_check_proc_name+0x110/0x110 [ 48.148145][ T3590] ? pcpu_alloc+0x10fb/0x1900 [ 48.152808][ T3590] ? xt_find_match+0x1cf/0x200 [ 48.157552][ T3590] translate_table+0x1669/0x2320 [ 48.162485][ T3590] ? ip6t_register_table+0x6b0/0x6b0 [ 48.167771][ T3590] ? __might_fault+0xb8/0x110 [ 48.172426][ T3590] ? __might_sleep+0xc0/0xc0 [ 48.176993][ T3590] ? __lock_acquire+0x1ff0/0x1ff0 [ 48.182010][ T3590] ? __might_fault+0xb4/0x110 [ 48.186666][ T3590] do_ip6t_set_ctl+0x2cf3/0x3f50 [ 48.191603][ T3590] ? rcu_read_lock_sched_held+0x89/0x130 [ 48.197218][ T3590] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.203180][ T3590] ? read_lock_is_recursive+0x10/0x10 [ 48.208535][ T3590] ? cleanup_entry+0x4d0/0x4d0 [ 48.213278][ T3590] ? nf_setsockopt+0x238/0x2b0 [ 48.218027][ T3590] ? __mutex_lock_common+0x444/0x25a0 [ 48.223386][ T3590] ? __mutex_unlock_slowpath+0x218/0x750 [ 48.228995][ T3590] ? nf_setsockopt+0x38/0x2b0 [ 48.233650][ T3590] ? print_irqtrace_events+0x210/0x210 [ 48.239099][ T3590] ? mutex_unlock+0x10/0x10 [ 48.243694][ T3590] ? lockdep_hardirqs_on+0x94/0x130 [ 48.248888][ T3590] ? __local_bh_enable_ip+0x164/0x1f0 [ 48.254335][ T3590] nf_setsockopt+0x28a/0x2b0 [ 48.258926][ T3590] ipv6_setsockopt+0x2f5c/0x43c0 [ 48.263862][ T3590] ? reacquire_held_locks+0x660/0x660 [ 48.269217][ T3590] ? ipv6_update_options+0x3f0/0x3f0 [ 48.274494][ T3590] ? mark_lock+0x98/0x340 [ 48.278812][ T3590] ? mark_lock+0x98/0x340 [ 48.283119][ T3590] ? validate_chain+0x112/0x58b0 [ 48.288054][ T3590] ? rcu_read_lock_sched_held+0x89/0x130 [ 48.293682][ T3590] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.299652][ T3590] ? reacquire_held_locks+0x660/0x660 [ 48.305003][ T3590] ? aa_label_sk_perm+0x453/0x630 [ 48.310009][ T3590] ? aa_sk_perm+0x9d0/0x9d0 [ 48.314499][ T3590] ? do_raw_spin_unlock+0x137/0x8b0 [ 48.319683][ T3590] ? __might_sleep+0xc0/0xc0 [ 48.324269][ T3590] ? __lock_acquire+0x1295/0x1ff0 [ 48.329289][ T3590] ? aa_sk_perm+0x89b/0x9d0 [ 48.333769][ T3590] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.339730][ T3590] ? aa_af_perm+0x350/0x350 [ 48.344213][ T3590] ? aa_sock_opt_perm+0x79/0x110 [ 48.349134][ T3590] ? udpv6_setsockopt+0x77/0xa0 [ 48.353975][ T3590] ? sock_common_recvmsg+0x240/0x240 [ 48.359239][ T3590] __sys_setsockopt+0x57e/0x990 [ 48.364072][ T3590] ? __ia32_sys_recv+0xb0/0xb0 [ 48.368823][ T3590] ? syscall_enter_from_user_mode+0x2e/0x290 [ 48.374787][ T3590] __x64_sys_setsockopt+0xb1/0xc0 [ 48.379789][ T3590] do_syscall_64+0x3d/0xb0 [ 48.384185][ T3590] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 48.390071][ T3590] RIP: 0033:0x7f596e554fd9 [ 48.394480][ T3590] Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48 [ 48.414364][ T3590] RSP: 002b:00007ffd7eef1128 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 48.422759][ T3590] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f596e554fd9 [ 48.430712][ T3590] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 48.438665][ T3590] RBP: 00007f596e518fc0 R08: 0000000000000001 R09: 0000000000000000 [ 48.446617][ T3590] R10: 0000000020002680 R11: 0000000000000246 R12: 00007f596e519050 [ 48.454576][ T3590] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 48.462535][ T3590] [ 48.465542][ T3590] [ 48.467844][ T3590] ============================= [ 48.472660][ T3590] [ BUG: Invalid wait context ] [ 48.477478][ T3590] 5.15.98-syzkaller #0 Tainted: G W [ 48.484242][ T3590] ----------------------------- [ 48.489060][ T3590] syz-executor672/3590 is trying to lock: [ 48.494749][ T3590] ffffffff8ca4dfd0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 48.504300][ T3590] other info that might help us debug this: [ 48.510159][ T3590] context-{4:4} [ 48.513595][ T3590] 1 lock held by syz-executor672/3590: [ 48.519023][ T3590] #0: ffffffff8c941f98 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x290 [ 48.528732][ T3590] stack backtrace: [ 48.532423][ T3590] CPU: 1 PID: 3590 Comm: syz-executor672 Tainted: G W 5.15.98-syzkaller #0 [ 48.542285][ T3590] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 [ 48.552317][ T3590] Call Trace: [ 48.555624][ T3590] [ 48.558580][ T3590] dump_stack_lvl+0x1e3/0x2cb [ 48.563322][ T3590] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 48.568937][ T3590] ? panic+0x84d/0x84d [ 48.572992][ T3590] __lock_acquire+0x14f5/0x1ff0 [ 48.577834][ T3590] lock_acquire+0x1f6/0x560 [ 48.582318][ T3590] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 48.587753][ T3590] ? read_lock_is_recursive+0x10/0x10 [ 48.593099][ T3590] ? __might_sleep+0xc0/0xc0 [ 48.597678][ T3590] ? rcu_lock_release+0x5/0x20 [ 48.602416][ T3590] down_read+0x3b/0x50 [ 48.606473][ T3590] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 48.611934][ T3590] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 48.617199][ T3590] ? kernfs_find_ns+0x500/0x500 [ 48.622039][ T3590] ? current_cgns_cgroup_from_root+0x277/0x2c0 [ 48.628181][ T3590] cgroup_get_from_path+0x5c/0x290 [ 48.633287][ T3590] cgroup_mt_check_v1+0x1a0/0x2b0 [ 48.638287][ T3590] xt_check_match+0x363/0xa30 [ 48.642940][ T3590] ? xt_find_match+0x6d/0x200 [ 48.647593][ T3590] ? mutex_unlock+0x10/0x10 [ 48.652078][ T3590] ? xt_check_proc_name+0x110/0x110 [ 48.657249][ T3590] ? pcpu_alloc+0x10fb/0x1900 [ 48.661909][ T3590] ? xt_find_match+0x1cf/0x200 [ 48.666655][ T3590] translate_table+0x1669/0x2320 [ 48.671591][ T3590] ? ip6t_register_table+0x6b0/0x6b0 [ 48.676851][ T3590] ? __might_fault+0xb8/0x110 [ 48.681503][ T3590] ? __might_sleep+0xc0/0xc0 [ 48.686081][ T3590] ? __lock_acquire+0x1ff0/0x1ff0 [ 48.691083][ T3590] ? __might_fault+0xb4/0x110 [ 48.695759][ T3590] do_ip6t_set_ctl+0x2cf3/0x3f50 [ 48.700673][ T3590] ? rcu_read_lock_sched_held+0x89/0x130 [ 48.706367][ T3590] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.712322][ T3590] ? read_lock_is_recursive+0x10/0x10 [ 48.717669][ T3590] ? cleanup_entry+0x4d0/0x4d0 [ 48.722502][ T3590] ? nf_setsockopt+0x238/0x2b0 [ 48.727244][ T3590] ? __mutex_lock_common+0x444/0x25a0 [ 48.732594][ T3590] ? __mutex_unlock_slowpath+0x218/0x750 [ 48.738202][ T3590] ? nf_setsockopt+0x38/0x2b0 [ 48.742861][ T3590] ? print_irqtrace_events+0x210/0x210 [ 48.748301][ T3590] ? mutex_unlock+0x10/0x10 [ 48.752778][ T3590] ? lockdep_hardirqs_on+0x94/0x130 [ 48.757963][ T3590] ? __local_bh_enable_ip+0x164/0x1f0 [ 48.763312][ T3590] nf_setsockopt+0x28a/0x2b0 [ 48.767878][ T3590] ipv6_setsockopt+0x2f5c/0x43c0 [ 48.772806][ T3590] ? reacquire_held_locks+0x660/0x660 [ 48.778153][ T3590] ? ipv6_update_options+0x3f0/0x3f0 [ 48.783597][ T3590] ? mark_lock+0x98/0x340 [ 48.787905][ T3590] ? mark_lock+0x98/0x340 [ 48.792213][ T3590] ? validate_chain+0x112/0x58b0 [ 48.797125][ T3590] ? rcu_read_lock_sched_held+0x89/0x130 [ 48.802738][ T3590] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.808696][ T3590] ? reacquire_held_locks+0x660/0x660 [ 48.814042][ T3590] ? aa_label_sk_perm+0x453/0x630 [ 48.819045][ T3590] ? aa_sk_perm+0x9d0/0x9d0 [ 48.823733][ T3590] ? do_raw_spin_unlock+0x137/0x8b0 [ 48.828930][ T3590] ? __might_sleep+0xc0/0xc0 [ 48.833518][ T3590] ? __lock_acquire+0x1295/0x1ff0 [ 48.838536][ T3590] ? aa_sk_perm+0x89b/0x9d0 [ 48.843022][ T3590] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 48.848988][ T3590] ? aa_af_perm+0x350/0x350 [ 48.853798][ T3590] ? aa_sock_opt_perm+0x79/0x110 [ 48.858737][ T3590] ? udpv6_setsockopt+0x77/0xa0 [ 48.863571][ T3590] ? sock_common_recvmsg+0x240/0x240 [ 48.868848][ T3590] __sys_setsockopt+0x57e/0x990 [ 48.873678][ T3590] ? __ia32_sys_recv+0xb0/0xb0 [ 48.878423][ T3590] ? syscall_enter_from_user_mode+0x2e/0x290 [ 48.884380][ T3590] __x64_sys_setsockopt+0xb1/0xc0 [ 48.889398][ T3590] do_syscall_64+0x3d/0xb0 [ 48.893792][ T3590] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 48.899694][ T3590] RIP: 0033:0x7f596e554fd9 [ 48.904086][ T3590] Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48 [ 48.923665][ T3590] RSP: 002b:00007ffd7eef1128 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 48.932059][ T3590] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f596e554fd9 [ 48.940012][ T3590] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 48.947974][ T3590] RBP: 00007f596e518fc0 R08: 0000000000000001 R09: 0000000000000000 [ 48.956015][ T