Warning: Permanently added '10.128.0.225' (ED25519) to the list of known hosts. executing program [ 50.637547][ T3498] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1487 [ 50.647056][ T3498] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3498, name: syz-executor214 [ 50.656503][ T3498] 1 lock held by syz-executor214/3498: [ 50.661949][ T3498] #0: ffffffff8c943dd8 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 50.671722][ T3498] irq event stamp: 14996 [ 50.675947][ T3498] hardirqs last enabled at (14995): [] queue_delayed_work_on+0x171/0x250 [ 50.686029][ T3498] hardirqs last disabled at (14996): [] _raw_spin_lock_irq+0xa9/0x110 [ 50.695745][ T3498] softirqs last enabled at (14872): [] ip_setsockopt+0x260e/0x3fb0 [ 50.705284][ T3498] softirqs last disabled at (14870): [] release_sock+0x2c/0x1c0 [ 50.714468][ T3498] Preemption disabled at: [ 50.714476][ T3498] [<0000000000000000>] 0x0 [ 50.723179][ T3498] CPU: 0 PID: 3498 Comm: syz-executor214 Not tainted 5.15.120-syzkaller #0 [ 50.731852][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 [ 50.741896][ T3498] Call Trace: [ 50.745175][ T3498] [ 50.748092][ T3498] dump_stack_lvl+0x1e3/0x2cb [ 50.752788][ T3498] ? ip_setsockopt+0x260e/0x3fb0 [ 50.757723][ T3498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 50.763343][ T3498] ? panic+0x84d/0x84d [ 50.767413][ T3498] ___might_sleep+0x547/0x6a0 [ 50.772082][ T3498] ? __might_sleep+0xc0/0xc0 [ 50.776693][ T3498] down_read+0x21/0x2e0 [ 50.780839][ T3498] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 50.786303][ T3498] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 50.791589][ T3498] ? kernfs_find_ns+0x500/0x500 [ 50.796431][ T3498] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 50.802579][ T3498] cgroup_get_from_path+0x5c/0x2e0 [ 50.807695][ T3498] cgroup_mt_check_v1+0x1a0/0x2b0 [ 50.812708][ T3498] xt_check_match+0x363/0xa30 [ 50.817395][ T3498] ? xt_find_match+0x6d/0x200 [ 50.822071][ T3498] ? mutex_unlock+0x10/0x10 [ 50.826574][ T3498] ? xt_check_proc_name+0x110/0x110 [ 50.831762][ T3498] ? pcpu_alloc+0x10c9/0x17c0 [ 50.836438][ T3498] ? xt_find_match+0x1cf/0x200 [ 50.841197][ T3498] translate_table+0x15bd/0x2250 [ 50.846142][ T3498] ? ipt_register_table+0x7a0/0x7a0 [ 50.851329][ T3498] ? __might_fault+0xb8/0x110 [ 50.855997][ T3498] ? __lock_acquire+0x1ff0/0x1ff0 [ 50.861021][ T3498] ? __might_fault+0xb4/0x110 [ 50.865696][ T3498] do_ipt_set_ctl+0x2c48/0x3e70 [ 50.870551][ T3498] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 50.876437][ T3498] ? rcu_lock_release+0x20/0x20 [ 50.881285][ T3498] ? __mutex_lock_common+0x444/0x25a0 [ 50.886664][ T3498] ? __mutex_unlock_slowpath+0x218/0x750 [ 50.892286][ T3498] ? nf_setsockopt+0x38/0x2b0 [ 50.896951][ T3498] ? print_irqtrace_events+0x210/0x210 [ 50.902409][ T3498] ? mutex_unlock+0x10/0x10 [ 50.906905][ T3498] ? lockdep_hardirqs_on+0x94/0x130 [ 50.912095][ T3498] ? __local_bh_enable_ip+0x164/0x1f0 [ 50.917458][ T3498] nf_setsockopt+0x28a/0x2b0 [ 50.922040][ T3498] ip_setsockopt+0x2732/0x3fb0 [ 50.926803][ T3498] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 50.932186][ T3498] ? aa_af_perm+0x350/0x350 [ 50.936689][ T3498] ? aa_sock_opt_perm+0x79/0x110 [ 50.941632][ T3498] ? sock_common_setsockopt+0x33/0xc0 [ 50.947005][ T3498] ? raw_setsockopt+0x100/0x180 [ 50.951854][ T3498] ? sock_common_recvmsg+0x240/0x240 [ 50.957134][ T3498] __sys_setsockopt+0x57e/0x990 [ 50.962005][ T3498] ? __ia32_sys_recv+0xb0/0xb0 [ 50.966857][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 50.972839][ T3498] __x64_sys_setsockopt+0xb1/0xc0 [ 50.977866][ T3498] do_syscall_64+0x3d/0xb0 [ 50.982277][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 50.988174][ T3498] RIP: 0033:0x7f9de61f07a9 [ 50.992582][ T3498] 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 [ 51.012174][ T3498] RSP: 002b:00007ffc4dc07338 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 51.020595][ T3498] RAX: ffffffffffffffda RBX: 00007ffc4dc07508 RCX: 00007f9de61f07a9 [ 51.028557][ T3498] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 51.036523][ T3498] RBP: 00007f9de6264610 R08: 00000000000012f8 R09: 00007ffc4dc07508 [ 51.044493][ T3498] R10: 0000000020001300 R11: 0000000000000246 R12: 0000000000000001 [ 51.052468][ T3498] R13: 00007ffc4dc074f8 R14: 0000000000000001 R15: 0000000000000001 [ 51.060437][ T3498] [ 51.063444][ T3498] [ 51.065751][ T3498] ============================= [ 51.070578][ T3498] [ BUG: Invalid wait context ] [ 51.075405][ T3498] 5.15.120-syzkaller #0 Tainted: G W [ 51.081983][ T3498] ----------------------------- [ 51.086905][ T3498] syz-executor214/3498 is trying to lock: [ 51.092608][ T3498] ffffffff8ca4fcd0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 51.102086][ T3498] other info that might help us debug this: [ 51.107956][ T3498] context-{4:4} [ 51.111398][ T3498] 1 lock held by syz-executor214/3498: [ 51.116842][ T3498] #0: ffffffff8c943dd8 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 51.126586][ T3498] stack backtrace: [ 51.130288][ T3498] CPU: 0 PID: 3498 Comm: syz-executor214 Tainted: G W 5.15.120-syzkaller #0 [ 51.140247][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 [ 51.150286][ T3498] Call Trace: [ 51.153579][ T3498] [ 51.156499][ T3498] dump_stack_lvl+0x1e3/0x2cb [ 51.161176][ T3498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 51.166897][ T3498] ? panic+0x84d/0x84d [ 51.170957][ T3498] __lock_acquire+0x14f5/0x1ff0 [ 51.175807][ T3498] lock_acquire+0x1db/0x4f0 [ 51.180295][ T3498] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 51.185762][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 51.191121][ T3498] ? __might_sleep+0xc0/0xc0 [ 51.195702][ T3498] down_read+0x45/0x2e0 [ 51.199846][ T3498] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 51.205291][ T3498] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 51.210751][ T3498] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 51.216039][ T3498] ? kernfs_find_ns+0x500/0x500 [ 51.220878][ T3498] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 51.227021][ T3498] cgroup_get_from_path+0x5c/0x2e0 [ 51.232131][ T3498] cgroup_mt_check_v1+0x1a0/0x2b0 [ 51.237142][ T3498] xt_check_match+0x363/0xa30 [ 51.241805][ T3498] ? xt_find_match+0x6d/0x200 [ 51.246468][ T3498] ? mutex_unlock+0x10/0x10 [ 51.250963][ T3498] ? xt_check_proc_name+0x110/0x110 [ 51.256148][ T3498] ? pcpu_alloc+0x10c9/0x17c0 [ 51.260814][ T3498] ? xt_find_match+0x1cf/0x200 [ 51.265571][ T3498] translate_table+0x15bd/0x2250 [ 51.270502][ T3498] ? ipt_register_table+0x7a0/0x7a0 [ 51.275714][ T3498] ? __might_fault+0xb8/0x110 [ 51.280378][ T3498] ? __lock_acquire+0x1ff0/0x1ff0 [ 51.285396][ T3498] ? __might_fault+0xb4/0x110 [ 51.290084][ T3498] do_ipt_set_ctl+0x2c48/0x3e70 [ 51.294933][ T3498] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 51.300730][ T3498] ? rcu_lock_release+0x20/0x20 [ 51.305570][ T3498] ? __mutex_lock_common+0x444/0x25a0 [ 51.310934][ T3498] ? __mutex_unlock_slowpath+0x218/0x750 [ 51.316573][ T3498] ? nf_setsockopt+0x38/0x2b0 [ 51.321238][ T3498] ? print_irqtrace_events+0x210/0x210 [ 51.326769][ T3498] ? mutex_unlock+0x10/0x10 [ 51.331260][ T3498] ? lockdep_hardirqs_on+0x94/0x130 [ 51.336448][ T3498] ? __local_bh_enable_ip+0x164/0x1f0 [ 51.341911][ T3498] nf_setsockopt+0x28a/0x2b0 [ 51.346491][ T3498] ip_setsockopt+0x2732/0x3fb0 [ 51.351245][ T3498] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 51.356610][ T3498] ? aa_af_perm+0x350/0x350 [ 51.361101][ T3498] ? aa_sock_opt_perm+0x79/0x110 [ 51.366027][ T3498] ? sock_common_setsockopt+0x33/0xc0 [ 51.371392][ T3498] ? raw_setsockopt+0x100/0x180 [ 51.376231][ T3498] ? sock_common_recvmsg+0x240/0x240 [ 51.381521][ T3498] __sys_setsockopt+0x57e/0x990 [ 51.386364][ T3498] ? __ia32_sys_recv+0xb0/0xb0 [ 51.391120][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 51.397094][ T3498] __x64_sys_setsockopt+0xb1/0xc0 [ 51.402112][ T3498] do_syscall_64+0x3d/0xb0 [ 51.406514][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 51.412410][ T3498] RIP: 0033:0x7f9de61f07a9 [ 51.416809][ T3498] 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 [ 51.436396][ T3498] RSP: 002b:00007ffc4dc07338 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 51.444804][ T3498] RAX: ffffffffffffffda RBX: 00007ffc4dc07508 RCX: 00007f9de61f07a9 [ 51.452773][ T3498] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 51.460737][ T3498] RBP: 00007f9de6264610 R08: 00000000000012f8 R09: 00007ffc4dc07508 [ 51.468696][ T3498] R10: 0000000020001300 R11: 0000000000000246 R12: 0000000000000001 [ 51.476669][ T3498] R13: 00007ffc4dc074f8 R14: 0000000000000001 R15: 0000000000000001 [ 51.484646][ T3498] [ 51.488411][ T3498] xt_cgroup: in