Warning: Permanently added '10.128.1.3' (ED25519) to the list of known hosts. executing program [ 41.712582][ T3564] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1497 [ 41.722160][ T3564] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3564, name: syz-executor299 [ 41.731599][ T3564] 1 lock held by syz-executor299/3564: [ 41.737126][ T3564] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 41.746861][ T3564] irq event stamp: 14528 [ 41.751077][ T3564] hardirqs last enabled at (14527): [] _raw_spin_unlock_irqrestore+0x8b/0x130 [ 41.761564][ T3564] hardirqs last disabled at (14528): [] _raw_spin_lock_irq+0xa9/0x110 [ 41.771260][ T3564] softirqs last enabled at (14492): [] ip_setsockopt+0x260e/0x3fb0 [ 41.780779][ T3564] softirqs last disabled at (14490): [] release_sock+0x2c/0x1c0 [ 41.789949][ T3564] Preemption disabled at: [ 41.789955][ T3564] [<0000000000000000>] 0x0 [ 41.798648][ T3564] CPU: 0 PID: 3564 Comm: syz-executor299 Not tainted 5.15.164-syzkaller #0 [ 41.807214][ T3564] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 41.817261][ T3564] Call Trace: [ 41.820532][ T3564] [ 41.823451][ T3564] dump_stack_lvl+0x1e3/0x2d0 [ 41.828107][ T3564] ? ip_setsockopt+0x260e/0x3fb0 [ 41.833025][ T3564] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 41.838644][ T3564] ? panic+0x860/0x860 [ 41.842700][ T3564] ___might_sleep+0x547/0x6a0 [ 41.847361][ T3564] ? __might_sleep+0xc0/0xc0 [ 41.851931][ T3564] down_read+0x21/0x2e0 [ 41.856064][ T3564] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 41.861507][ T3564] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 41.866782][ T3564] ? kernfs_find_ns+0x500/0x500 [ 41.871617][ T3564] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 41.877755][ T3564] cgroup_get_from_path+0x5c/0x2e0 [ 41.882846][ T3564] cgroup_mt_check_v1+0x1a0/0x2b0 [ 41.887851][ T3564] xt_check_match+0x363/0xa30 [ 41.892501][ T3564] ? xt_find_match+0x6d/0x200 [ 41.897155][ T3564] ? mutex_unlock+0x10/0x10 [ 41.901639][ T3564] ? xt_check_proc_name+0x110/0x110 [ 41.906833][ T3564] ? pcpu_alloc+0x10c9/0x17c0 [ 41.911496][ T3564] ? xt_find_match+0x1cf/0x200 [ 41.916260][ T3564] translate_table+0x15bd/0x2250 [ 41.921187][ T3564] ? ipt_register_table+0x7a0/0x7a0 [ 41.926373][ T3564] ? __might_fault+0xb8/0x110 [ 41.931046][ T3564] ? __lock_acquire+0x1ff0/0x1ff0 [ 41.936063][ T3564] ? _copy_from_user+0x10f/0x170 [ 41.940980][ T3564] ? copy_from_sockptr_offset+0x6b/0xa0 [ 41.946510][ T3564] do_ipt_set_ctl+0xdbc/0x1200 [ 41.951255][ T3564] ? rcu_lock_release+0x20/0x20 [ 41.956082][ T3564] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 41.961862][ T3564] ? __lock_acquire+0x1ff0/0x1ff0 [ 41.966866][ T3564] ? __mutex_unlock_slowpath+0x218/0x750 [ 41.972476][ T3564] ? nf_setsockopt+0x38/0x2b0 [ 41.977130][ T3564] ? print_irqtrace_events+0x210/0x210 [ 41.982562][ T3564] ? mutex_unlock+0x10/0x10 [ 41.987039][ T3564] ? lockdep_hardirqs_on+0x94/0x130 [ 41.992212][ T3564] ? __local_bh_enable_ip+0x164/0x1f0 [ 41.997561][ T3564] nf_setsockopt+0x28a/0x2b0 [ 42.002128][ T3564] ip_setsockopt+0x2732/0x3fb0 [ 42.006871][ T3564] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 42.012308][ T3564] ? local_lock_release+0x96/0x170 [ 42.017393][ T3564] ? aa_sk_perm+0xa30/0xa30 [ 42.021878][ T3564] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.027058][ T3564] tcp_setsockopt+0x23f/0x3680 [ 42.031797][ T3564] ? __lock_acquire+0x1295/0x1ff0 [ 42.036796][ T3564] ? tcp_set_window_clamp+0x1b0/0x1b0 [ 42.042140][ T3564] ? aa_sk_perm+0x8fc/0xa30 [ 42.046621][ T3564] ? aa_af_perm+0x350/0x350 [ 42.051100][ T3564] ? aa_sock_opt_perm+0x79/0x110 [ 42.056012][ T3564] ? sock_common_setsockopt+0x33/0xc0 [ 42.061357][ T3564] ? sock_common_recvmsg+0x240/0x240 [ 42.066620][ T3564] __sys_setsockopt+0x57e/0x990 [ 42.071447][ T3564] ? __ia32_sys_recv+0xb0/0xb0 [ 42.076196][ T3564] ? syscall_enter_from_user_mode+0x2e/0x240 [ 42.082151][ T3564] __x64_sys_setsockopt+0xb1/0xc0 [ 42.087149][ T3564] do_syscall_64+0x3b/0xb0 [ 42.091537][ T3564] ? clear_bhb_loop+0x15/0x70 [ 42.096189][ T3564] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 42.102062][ T3564] RIP: 0033:0x7fc6d9b2f629 [ 42.106453][ T3564] 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 [ 42.126029][ T3564] RSP: 002b:00007ffcf06f0bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 42.134419][ T3564] RAX: ffffffffffffffda RBX: 00007ffcf06f0d98 RCX: 00007fc6d9b2f629 [ 42.142366][ T3564] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 42.150310][ T3564] RBP: 00007fc6d9ba3610 R08: 0000000000001290 R09: 00007ffcf06f0d98 [ 42.158254][ T3564] R10: 0000000020001c40 R11: 0000000000000246 R12: 0000000000000001 [ 42.166197][ T3564] R13: 00007ffcf06f0d88 R14: 0000000000000001 R15: 0000000000000001 [ 42.174152][ T3564] [ 42.177148][ T3564] [ 42.179442][ T3564] ============================= [ 42.184256][ T3564] [ BUG: Invalid wait context ] [ 42.189071][ T3564] 5.15.164-syzkaller #0 Tainted: G W [ 42.195621][ T3564] ----------------------------- [ 42.200434][ T3564] syz-executor299/3564 is trying to lock: [ 42.206214][ T3564] ffffffff8ca523d0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 42.215661][ T3564] other info that might help us debug this: [ 42.221564][ T3564] context-{4:4} [ 42.224990][ T3564] 1 lock held by syz-executor299/3564: [ 42.230413][ T3564] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 42.240119][ T3564] stack backtrace: [ 42.243806][ T3564] CPU: 0 PID: 3564 Comm: syz-executor299 Tainted: G W 5.15.164-syzkaller #0 [ 42.253748][ T3564] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 42.263774][ T3564] Call Trace: [ 42.267028][ T3564] [ 42.269934][ T3564] dump_stack_lvl+0x1e3/0x2d0 [ 42.274593][ T3564] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 42.280195][ T3564] ? panic+0x860/0x860 [ 42.284239][ T3564] __lock_acquire+0x14f5/0x1ff0 [ 42.289063][ T3564] lock_acquire+0x1db/0x4f0 [ 42.293536][ T3564] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 42.298967][ T3564] ? read_lock_is_recursive+0x10/0x10 [ 42.304307][ T3564] ? __might_sleep+0xc0/0xc0 [ 42.308876][ T3564] down_read+0x45/0x2e0 [ 42.313002][ T3564] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 42.318430][ T3564] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 42.323861][ T3564] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 42.329122][ T3564] ? kernfs_find_ns+0x500/0x500 [ 42.333942][ T3564] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 42.340066][ T3564] cgroup_get_from_path+0x5c/0x2e0 [ 42.345167][ T3564] cgroup_mt_check_v1+0x1a0/0x2b0 [ 42.350163][ T3564] xt_check_match+0x363/0xa30 [ 42.354811][ T3564] ? xt_find_match+0x6d/0x200 [ 42.359458][ T3564] ? mutex_unlock+0x10/0x10 [ 42.363930][ T3564] ? xt_check_proc_name+0x110/0x110 [ 42.369098][ T3564] ? pcpu_alloc+0x10c9/0x17c0 [ 42.373748][ T3564] ? xt_find_match+0x1cf/0x200 [ 42.378483][ T3564] translate_table+0x15bd/0x2250 [ 42.383397][ T3564] ? ipt_register_table+0x7a0/0x7a0 [ 42.388566][ T3564] ? __might_fault+0xb8/0x110 [ 42.393215][ T3564] ? __lock_acquire+0x1ff0/0x1ff0 [ 42.398212][ T3564] ? _copy_from_user+0x10f/0x170 [ 42.403122][ T3564] ? copy_from_sockptr_offset+0x6b/0xa0 [ 42.408638][ T3564] do_ipt_set_ctl+0xdbc/0x1200 [ 42.413376][ T3564] ? rcu_lock_release+0x20/0x20 [ 42.418200][ T3564] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 42.423974][ T3564] ? __lock_acquire+0x1ff0/0x1ff0 [ 42.428971][ T3564] ? __mutex_unlock_slowpath+0x218/0x750 [ 42.434573][ T3564] ? nf_setsockopt+0x38/0x2b0 [ 42.439223][ T3564] ? print_irqtrace_events+0x210/0x210 [ 42.444650][ T3564] ? mutex_unlock+0x10/0x10 [ 42.449127][ T3564] ? lockdep_hardirqs_on+0x94/0x130 [ 42.454299][ T3564] ? __local_bh_enable_ip+0x164/0x1f0 [ 42.459647][ T3564] nf_setsockopt+0x28a/0x2b0 [ 42.464211][ T3564] ip_setsockopt+0x2732/0x3fb0 [ 42.468948][ T3564] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 42.474287][ T3564] ? local_lock_release+0x96/0x170 [ 42.479369][ T3564] ? aa_sk_perm+0xa30/0xa30 [ 42.483849][ T3564] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.489021][ T3564] tcp_setsockopt+0x23f/0x3680 [ 42.493758][ T3564] ? __lock_acquire+0x1295/0x1ff0 [ 42.498753][ T3564] ? tcp_set_window_clamp+0x1b0/0x1b0 [ 42.504101][ T3564] ? aa_sk_perm+0x8fc/0xa30 [ 42.508577][ T3564] ? aa_af_perm+0x350/0x350 [ 42.513050][ T3564] ? aa_sock_opt_perm+0x79/0x110 [ 42.517961][ T3564] ? sock_common_setsockopt+0x33/0xc0 [ 42.523302][ T3564] ? sock_common_recvmsg+0x240/0x240 [ 42.528557][ T3564] __sys_setsockopt+0x57e/0x990 [ 42.533378][ T3564] ? __ia32_sys_recv+0xb0/0xb0 [ 42.538113][ T3564] ? syscall_enter_from_user_mode+0x2e/0x240 [ 42.544062][ T3564] __x64_sys_setsockopt+0xb1/0xc0 [ 42.549056][ T3564] do_syscall_64+0x3b/0xb0 [ 42.553443][ T3564] ? clear_bhb_loop+0x15/0x70 [ 42.558094][ T3564] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 42.563956][ T3564] RIP: 0033:0x7fc6d9b2f629 [ 42.568344][ T3564] 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 [ 42.588005][ T3564] RSP: 002b:00007ffcf06f0bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 42.596390][ T3564] RAX: ffffffffffffffda RBX: 00007ffcf06f0d98 RCX: 00007fc6d9b2f629 [ 42.604333][ T3564] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 42.612276][ T3564] RBP: 00007fc6d9ba3610 R08: 00