Warning: Permanently added '10.128.1.123' (ED25519) to the list of known hosts. executing program syzkaller login: [ 45.086494][ T3563] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1497 [ 45.096040][ T3563] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3563, name: syz-executor279 [ 45.105478][ T3563] 1 lock held by syz-executor279/3563: [ 45.110999][ T3563] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 45.120732][ T3563] irq event stamp: 15150 [ 45.124942][ T3563] hardirqs last enabled at (15149): [] _raw_spin_unlock_irqrestore+0x8b/0x130 [ 45.135508][ T3563] hardirqs last disabled at (15150): [] _raw_spin_lock_irq+0xa9/0x110 [ 45.145294][ T3563] softirqs last enabled at (15128): [] ip_setsockopt+0x260e/0x3fb0 [ 45.154835][ T3563] softirqs last disabled at (15126): [] release_sock+0x2c/0x1c0 [ 45.164012][ T3563] Preemption disabled at: [ 45.164020][ T3563] [<0000000000000000>] 0x0 [ 45.172711][ T3563] CPU: 1 PID: 3563 Comm: syz-executor279 Not tainted 5.15.164-syzkaller #0 [ 45.181268][ T3563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 45.191302][ T3563] Call Trace: [ 45.194558][ T3563] [ 45.197473][ T3563] dump_stack_lvl+0x1e3/0x2d0 [ 45.202124][ T3563] ? ip_setsockopt+0x260e/0x3fb0 [ 45.207038][ T3563] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 45.212826][ T3563] ? panic+0x860/0x860 [ 45.216941][ T3563] ___might_sleep+0x547/0x6a0 [ 45.221618][ T3563] ? __might_sleep+0xc0/0xc0 [ 45.226207][ T3563] down_read+0x21/0x2e0 [ 45.230346][ T3563] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 45.235801][ T3563] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 45.241099][ T3563] ? kernfs_find_ns+0x500/0x500 [ 45.245932][ T3563] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 45.252154][ T3563] cgroup_get_from_path+0x5c/0x2e0 [ 45.257269][ T3563] cgroup_mt_check_v1+0x1a0/0x2b0 [ 45.262273][ T3563] xt_check_match+0x363/0xa30 [ 45.266924][ T3563] ? xt_find_match+0x6d/0x200 [ 45.271578][ T3563] ? mutex_unlock+0x10/0x10 [ 45.276060][ T3563] ? xt_check_proc_name+0x110/0x110 [ 45.281231][ T3563] ? pcpu_alloc+0x10c9/0x17c0 [ 45.285887][ T3563] ? xt_find_match+0x1cf/0x200 [ 45.290633][ T3563] translate_table+0x15bd/0x2250 [ 45.295560][ T3563] ? ipt_register_table+0x7a0/0x7a0 [ 45.300861][ T3563] ? __might_fault+0xb8/0x110 [ 45.305537][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.310564][ T3563] ? _copy_from_user+0x10f/0x170 [ 45.315480][ T3563] ? copy_from_sockptr_offset+0x6b/0xa0 [ 45.321067][ T3563] do_ipt_set_ctl+0xdbc/0x1200 [ 45.325836][ T3563] ? rcu_lock_release+0x20/0x20 [ 45.330701][ T3563] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 45.336486][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.341503][ T3563] ? __mutex_unlock_slowpath+0x218/0x750 [ 45.347129][ T3563] ? nf_setsockopt+0x38/0x2b0 [ 45.351784][ T3563] ? print_irqtrace_events+0x210/0x210 [ 45.357233][ T3563] ? mutex_unlock+0x10/0x10 [ 45.361719][ T3563] ? lockdep_hardirqs_on+0x94/0x130 [ 45.366898][ T3563] ? __local_bh_enable_ip+0x164/0x1f0 [ 45.372254][ T3563] nf_setsockopt+0x28a/0x2b0 [ 45.376826][ T3563] ip_setsockopt+0x2732/0x3fb0 [ 45.381568][ T3563] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 45.387000][ T3563] ? local_lock_release+0x96/0x170 [ 45.392091][ T3563] ? aa_sk_perm+0xa30/0xa30 [ 45.396578][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 45.401762][ T3563] tcp_setsockopt+0x23f/0x3680 [ 45.406504][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 45.411507][ T3563] ? tcp_set_window_clamp+0x1b0/0x1b0 [ 45.416854][ T3563] ? aa_sk_perm+0x8fc/0xa30 [ 45.421338][ T3563] ? aa_af_perm+0x350/0x350 [ 45.425819][ T3563] ? aa_sock_opt_perm+0x79/0x110 [ 45.430733][ T3563] ? sock_common_setsockopt+0x33/0xc0 [ 45.436082][ T3563] ? sock_common_recvmsg+0x240/0x240 [ 45.441338][ T3563] __sys_setsockopt+0x57e/0x990 [ 45.446167][ T3563] ? __ia32_sys_recv+0xb0/0xb0 [ 45.450909][ T3563] ? syscall_enter_from_user_mode+0x2e/0x240 [ 45.456863][ T3563] __x64_sys_setsockopt+0xb1/0xc0 [ 45.461863][ T3563] do_syscall_64+0x3b/0xb0 [ 45.466249][ T3563] ? clear_bhb_loop+0x15/0x70 [ 45.470905][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.476779][ T3563] RIP: 0033:0x7fd161576629 [ 45.481174][ T3563] 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 [ 45.500753][ T3563] RSP: 002b:00007ffc21c9f178 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 45.509143][ T3563] RAX: ffffffffffffffda RBX: 00007ffc21c9f348 RCX: 00007fd161576629 [ 45.517176][ T3563] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 45.525127][ T3563] RBP: 00007fd1615ea610 R08: 0000000000001290 R09: 00007ffc21c9f348 [ 45.533071][ T3563] R10: 0000000020001c40 R11: 0000000000000246 R12: 0000000000000001 [ 45.541016][ T3563] R13: 00007ffc21c9f338 R14: 0000000000000001 R15: 0000000000000001 [ 45.548969][ T3563] [ 45.551969][ T3563] [ 45.554261][ T3563] ============================= [ 45.559071][ T3563] [ BUG: Invalid wait context ] [ 45.563889][ T3563] 5.15.164-syzkaller #0 Tainted: G W [ 45.570436][ T3563] ----------------------------- [ 45.575244][ T3563] syz-executor279/3563 is trying to lock: [ 45.580925][ T3563] ffffffff8ca523d0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 45.590367][ T3563] other info that might help us debug this: [ 45.596296][ T3563] context-{4:4} [ 45.599721][ T3563] 1 lock held by syz-executor279/3563: [ 45.605148][ T3563] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 45.614938][ T3563] stack backtrace: [ 45.618622][ T3563] CPU: 1 PID: 3563 Comm: syz-executor279 Tainted: G W 5.15.164-syzkaller #0 [ 45.628562][ T3563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 45.638603][ T3563] Call Trace: [ 45.641871][ T3563] [ 45.644780][ T3563] dump_stack_lvl+0x1e3/0x2d0 [ 45.649440][ T3563] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 45.655056][ T3563] ? panic+0x860/0x860 [ 45.659103][ T3563] __lock_acquire+0x14f5/0x1ff0 [ 45.663928][ T3563] lock_acquire+0x1db/0x4f0 [ 45.668401][ T3563] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 45.673835][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 45.679193][ T3563] ? __might_sleep+0xc0/0xc0 [ 45.683760][ T3563] down_read+0x45/0x2e0 [ 45.687905][ T3563] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 45.693343][ T3563] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 45.698803][ T3563] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 45.704104][ T3563] ? kernfs_find_ns+0x500/0x500 [ 45.708939][ T3563] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 45.715071][ T3563] cgroup_get_from_path+0x5c/0x2e0 [ 45.720161][ T3563] cgroup_mt_check_v1+0x1a0/0x2b0 [ 45.725162][ T3563] xt_check_match+0x363/0xa30 [ 45.729813][ T3563] ? xt_find_match+0x6d/0x200 [ 45.734473][ T3563] ? mutex_unlock+0x10/0x10 [ 45.738948][ T3563] ? xt_check_proc_name+0x110/0x110 [ 45.744122][ T3563] ? pcpu_alloc+0x10c9/0x17c0 [ 45.748783][ T3563] ? xt_find_match+0x1cf/0x200 [ 45.753615][ T3563] translate_table+0x15bd/0x2250 [ 45.758616][ T3563] ? ipt_register_table+0x7a0/0x7a0 [ 45.763873][ T3563] ? __might_fault+0xb8/0x110 [ 45.768525][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.773525][ T3563] ? _copy_from_user+0x10f/0x170 [ 45.778437][ T3563] ? copy_from_sockptr_offset+0x6b/0xa0 [ 45.783956][ T3563] do_ipt_set_ctl+0xdbc/0x1200 [ 45.788696][ T3563] ? rcu_lock_release+0x20/0x20 [ 45.793520][ T3563] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 45.799298][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.804296][ T3563] ? __mutex_unlock_slowpath+0x218/0x750 [ 45.809901][ T3563] ? nf_setsockopt+0x38/0x2b0 [ 45.814599][ T3563] ? print_irqtrace_events+0x210/0x210 [ 45.820037][ T3563] ? mutex_unlock+0x10/0x10 [ 45.824532][ T3563] ? lockdep_hardirqs_on+0x94/0x130 [ 45.829728][ T3563] ? __local_bh_enable_ip+0x164/0x1f0 [ 45.835079][ T3563] nf_setsockopt+0x28a/0x2b0 [ 45.839662][ T3563] ip_setsockopt+0x2732/0x3fb0 [ 45.844682][ T3563] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 45.850028][ T3563] ? local_lock_release+0x96/0x170 [ 45.855116][ T3563] ? aa_sk_perm+0xa30/0xa30 [ 45.859602][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 45.864782][ T3563] tcp_setsockopt+0x23f/0x3680 [ 45.869520][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 45.874600][ T3563] ? tcp_set_window_clamp+0x1b0/0x1b0 [ 45.879941][ T3563] ? aa_sk_perm+0x8fc/0xa30 [ 45.884502][ T3563] ? aa_af_perm+0x350/0x350 [ 45.888973][ T3563] ? aa_sock_opt_perm+0x79/0x110 [ 45.893881][ T3563] ? sock_common_setsockopt+0x33/0xc0 [ 45.899223][ T3563] ? sock_common_recvmsg+0x240/0x240 [ 45.904476][ T3563] __sys_setsockopt+0x57e/0x990 [ 45.909307][ T3563] ? __ia32_sys_recv+0xb0/0xb0 [ 45.914043][ T3563] ? syscall_enter_from_user_mode+0x2e/0x240 [ 45.919997][ T3563] __x64_sys_setsockopt+0xb1/0xc0 [ 45.924994][ T3563] do_syscall_64+0x3b/0xb0 [ 45.929380][ T3563] ? clear_bhb_loop+0x15/0x70 [ 45.934027][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 45.939900][ T3563] RIP: 0033:0x7fd161576629 [ 45.944459][ T3563] 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 [ 45.964304][ T3563] RSP: 002b:00007ffc21c9f178 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 45.972698][ T3563] RAX: ffffffffffffffda RBX: 00007ffc21c9f348 RCX: 00007fd161576629 [ 45.980647][ T3563] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 45.988602][ T3563