Warning: Permanently added '10.128.1.146' (ED25519) to the list of known hosts. executing program [ 49.411868][ T3499] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1487 [ 49.421398][ T3499] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3499, name: syz-executor393 [ 49.430897][ T3499] 1 lock held by syz-executor393/3499: [ 49.436337][ T3499] #0: ffffffff8c9451d8 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 49.446088][ T3499] irq event stamp: 15108 [ 49.450310][ T3499] hardirqs last enabled at (15107): [] queue_delayed_work_on+0x171/0x250 [ 49.460371][ T3499] hardirqs last disabled at (15108): [] _raw_spin_lock_irq+0xa9/0x110 [ 49.470073][ T3499] softirqs last enabled at (15090): [] __irq_exit_rcu+0x155/0x240 [ 49.479525][ T3499] softirqs last disabled at (15075): [] __irq_exit_rcu+0x155/0x240 [ 49.488983][ T3499] Preemption disabled at: [ 49.488993][ T3499] [<0000000000000000>] 0x0 [ 49.497726][ T3499] CPU: 1 PID: 3499 Comm: syz-executor393 Not tainted 5.15.152-syzkaller #0 [ 49.506313][ T3499] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 49.516363][ T3499] Call Trace: [ 49.519643][ T3499] [ 49.522564][ T3499] dump_stack_lvl+0x1e3/0x2cb [ 49.527236][ T3499] ? __irq_exit_rcu+0x155/0x240 [ 49.532078][ T3499] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 49.537705][ T3499] ? panic+0x84d/0x84d [ 49.541780][ T3499] ___might_sleep+0x547/0x6a0 [ 49.546457][ T3499] ? __might_sleep+0xc0/0xc0 [ 49.551044][ T3499] down_read+0x21/0x2e0 [ 49.555184][ T3499] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 49.560647][ T3499] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 49.565924][ T3499] ? kernfs_find_ns+0x500/0x500 [ 49.570768][ T3499] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 49.576913][ T3499] cgroup_get_from_path+0x5c/0x2e0 [ 49.582017][ T3499] cgroup_mt_check_v1+0x1a0/0x2b0 [ 49.587036][ T3499] xt_check_match+0x363/0xa30 [ 49.591697][ T3499] ? xt_find_match+0x6d/0x200 [ 49.596362][ T3499] ? mutex_unlock+0x10/0x10 [ 49.600851][ T3499] ? xt_check_proc_name+0x110/0x110 [ 49.606038][ T3499] ? pcpu_alloc+0x10c9/0x17c0 [ 49.610711][ T3499] ? xt_find_match+0x1cf/0x200 [ 49.615468][ T3499] translate_table+0x15bd/0x2250 [ 49.620425][ T3499] ? ipt_register_table+0x7a0/0x7a0 [ 49.625623][ T3499] ? __might_fault+0xb8/0x110 [ 49.630306][ T3499] ? __lock_acquire+0x1ff0/0x1ff0 [ 49.635332][ T3499] ? __might_fault+0xb4/0x110 [ 49.640011][ T3499] do_ipt_set_ctl+0x2c48/0x3e70 [ 49.644873][ T3499] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 49.650691][ T3499] ? rcu_lock_release+0x20/0x20 [ 49.655541][ T3499] ? __mutex_lock_common+0x444/0x25a0 [ 49.660915][ T3499] ? __mutex_unlock_slowpath+0x218/0x750 [ 49.666541][ T3499] ? nf_setsockopt+0x38/0x2b0 [ 49.671209][ T3499] ? print_irqtrace_events+0x210/0x210 [ 49.676674][ T3499] ? mutex_unlock+0x10/0x10 [ 49.681174][ T3499] ? lockdep_hardirqs_on+0x94/0x130 [ 49.686361][ T3499] ? __local_bh_enable_ip+0x164/0x1f0 [ 49.691729][ T3499] nf_setsockopt+0x28a/0x2b0 [ 49.696318][ T3499] ip_setsockopt+0x2732/0x3fb0 [ 49.701077][ T3499] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 49.706439][ T3499] ? aa_af_perm+0x350/0x350 [ 49.710935][ T3499] ? aa_sock_opt_perm+0x79/0x110 [ 49.715863][ T3499] ? udp_setsockopt+0x75/0xa0 [ 49.720528][ T3499] ? sock_common_recvmsg+0x240/0x240 [ 49.725800][ T3499] __sys_setsockopt+0x57e/0x990 [ 49.730642][ T3499] ? __ia32_sys_recv+0xb0/0xb0 [ 49.735401][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 49.741389][ T3499] __x64_sys_setsockopt+0xb1/0xc0 [ 49.746417][ T3499] do_syscall_64+0x3d/0xb0 [ 49.750839][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 49.756738][ T3499] RIP: 0033:0x7f3df6b118e9 [ 49.761165][ T3499] 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 [ 49.780779][ T3499] RSP: 002b:00007ffc1091ff48 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 49.789189][ T3499] RAX: ffffffffffffffda RBX: 00007ffc10920118 RCX: 00007f3df6b118e9 [ 49.797151][ T3499] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 49.805109][ T3499] RBP: 00007f3df6b85610 R08: 0000000000001378 R09: 00007ffc10920118 [ 49.813072][ T3499] R10: 0000000020000640 R11: 0000000000000246 R12: 0000000000000001 [ 49.821038][ T3499] R13: 00007ffc10920108 R14: 0000000000000001 R15: 0000000000000001 [ 49.829011][ T3499] [ 49.832023][ T3499] [ 49.834332][ T3499] ============================= [ 49.839159][ T3499] [ BUG: Invalid wait context ] [ 49.843989][ T3499] 5.15.152-syzkaller #0 Tainted: G W [ 49.850558][ T3499] ----------------------------- [ 49.855385][ T3499] syz-executor393/3499 is trying to lock: [ 49.861084][ T3499] ffffffff8ca519d0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 49.870553][ T3499] other info that might help us debug this: [ 49.876436][ T3499] context-{4:4} [ 49.879875][ T3499] 1 lock held by syz-executor393/3499: [ 49.885311][ T3499] #0: ffffffff8c9451d8 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 49.895040][ T3499] stack backtrace: [ 49.898738][ T3499] CPU: 1 PID: 3499 Comm: syz-executor393 Tainted: G W 5.15.152-syzkaller #0 [ 49.908697][ T3499] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 49.918736][ T3499] Call Trace: [ 49.922003][ T3499] [ 49.924919][ T3499] dump_stack_lvl+0x1e3/0x2cb [ 49.929608][ T3499] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 49.935224][ T3499] ? panic+0x84d/0x84d [ 49.939279][ T3499] __lock_acquire+0x14f5/0x1ff0 [ 49.944118][ T3499] lock_acquire+0x1db/0x4f0 [ 49.948604][ T3499] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 49.954044][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 49.959402][ T3499] ? __might_sleep+0xc0/0xc0 [ 49.964067][ T3499] down_read+0x45/0x2e0 [ 49.968205][ T3499] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 49.973644][ T3499] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 49.979086][ T3499] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 49.984353][ T3499] ? kernfs_find_ns+0x500/0x500 [ 49.989201][ T3499] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 49.995341][ T3499] cgroup_get_from_path+0x5c/0x2e0 [ 50.000436][ T3499] cgroup_mt_check_v1+0x1a0/0x2b0 [ 50.005458][ T3499] xt_check_match+0x363/0xa30 [ 50.010121][ T3499] ? xt_find_match+0x6d/0x200 [ 50.014785][ T3499] ? mutex_unlock+0x10/0x10 [ 50.019271][ T3499] ? xt_check_proc_name+0x110/0x110 [ 50.024454][ T3499] ? pcpu_alloc+0x10c9/0x17c0 [ 50.029118][ T3499] ? xt_find_match+0x1cf/0x200 [ 50.033874][ T3499] translate_table+0x15bd/0x2250 [ 50.038816][ T3499] ? ipt_register_table+0x7a0/0x7a0 [ 50.044010][ T3499] ? __might_fault+0xb8/0x110 [ 50.048675][ T3499] ? __lock_acquire+0x1ff0/0x1ff0 [ 50.053688][ T3499] ? __might_fault+0xb4/0x110 [ 50.058355][ T3499] do_ipt_set_ctl+0x2c48/0x3e70 [ 50.063199][ T3499] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 50.068989][ T3499] ? rcu_lock_release+0x20/0x20 [ 50.073824][ T3499] ? __mutex_lock_common+0x444/0x25a0 [ 50.079183][ T3499] ? __mutex_unlock_slowpath+0x218/0x750 [ 50.084811][ T3499] ? nf_setsockopt+0x38/0x2b0 [ 50.089471][ T3499] ? print_irqtrace_events+0x210/0x210 [ 50.094916][ T3499] ? mutex_unlock+0x10/0x10 [ 50.099423][ T3499] ? lockdep_hardirqs_on+0x94/0x130 [ 50.104624][ T3499] ? __local_bh_enable_ip+0x164/0x1f0 [ 50.109982][ T3499] nf_setsockopt+0x28a/0x2b0 [ 50.114558][ T3499] ip_setsockopt+0x2732/0x3fb0 [ 50.119308][ T3499] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 50.124683][ T3499] ? aa_af_perm+0x350/0x350 [ 50.129183][ T3499] ? aa_sock_opt_perm+0x79/0x110 [ 50.134105][ T3499] ? udp_setsockopt+0x75/0xa0 [ 50.138794][ T3499] ? sock_common_recvmsg+0x240/0x240 [ 50.144065][ T3499] __sys_setsockopt+0x57e/0x990 [ 50.148906][ T3499] ? __ia32_sys_recv+0xb0/0xb0 [ 50.153667][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 50.159643][ T3499] __x64_sys_setsockopt+0xb1/0xc0 [ 50.164659][ T3499] do_syscall_64+0x3d/0xb0 [ 50.169066][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 50.174951][ T3499] RIP: 0033:0x7f3df6b118e9 [ 50.179373][ T3499] 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 [ 50.198963][ T3499] RSP: 002b:00007ffc1091ff48 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 50.207362][ T3499] RAX: ffffffffffffffda RBX: 00007ffc10920118 RCX: 00007f3df6b118e9 [