Warning: Permanently added '10.128.1.148' (ED25519) to the list of known hosts. executing program syzkaller login: [ 45.733118][ T3563] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1497 [ 45.742634][ T3563] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3563, name: syz-executor109 [ 45.752076][ T3563] 1 lock held by syz-executor109/3563: [ 45.757509][ T3563] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 45.767246][ T3563] irq event stamp: 15158 [ 45.771462][ T3563] hardirqs last enabled at (15157): [] _raw_spin_unlock_irqrestore+0x8b/0x130 [ 45.781957][ T3563] hardirqs last disabled at (15158): [] _raw_spin_lock_irq+0xa9/0x110 [ 45.791665][ T3563] softirqs last enabled at (15144): [] ip_setsockopt+0x260e/0x3fb0 [ 45.801189][ T3563] softirqs last disabled at (15142): [] release_sock+0x2c/0x1c0 [ 45.810362][ T3563] Preemption disabled at: [ 45.810370][ T3563] [<0000000000000000>] 0x0 [ 45.819067][ T3563] CPU: 1 PID: 3563 Comm: syz-executor109 Not tainted 5.15.164-syzkaller #0 [ 45.827646][ T3563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 45.837685][ T3563] Call Trace: [ 45.840951][ T3563] [ 45.843858][ T3563] dump_stack_lvl+0x1e3/0x2d0 [ 45.848514][ T3563] ? ip_setsockopt+0x260e/0x3fb0 [ 45.853431][ T3563] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 45.859042][ T3563] ? panic+0x860/0x860 [ 45.863093][ T3563] ___might_sleep+0x547/0x6a0 [ 45.867791][ T3563] ? __might_sleep+0xc0/0xc0 [ 45.872370][ T3563] down_read+0x21/0x2e0 [ 45.876505][ T3563] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 45.881942][ T3563] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 45.887215][ T3563] ? kernfs_find_ns+0x500/0x500 [ 45.892044][ T3563] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 45.898179][ T3563] cgroup_get_from_path+0x5c/0x2e0 [ 45.903290][ T3563] cgroup_mt_check_v1+0x1a0/0x2b0 [ 45.908297][ T3563] xt_check_match+0x363/0xa30 [ 45.912950][ T3563] ? xt_find_match+0x6d/0x200 [ 45.917601][ T3563] ? mutex_unlock+0x10/0x10 [ 45.922079][ T3563] ? xt_check_proc_name+0x110/0x110 [ 45.927272][ T3563] ? pcpu_alloc+0x10c9/0x17c0 [ 45.931935][ T3563] ? xt_find_match+0x1cf/0x200 [ 45.936683][ T3563] translate_table+0x15bd/0x2250 [ 45.941613][ T3563] ? ipt_register_table+0x7a0/0x7a0 [ 45.946790][ T3563] ? __might_fault+0xb8/0x110 [ 45.951449][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.956467][ T3563] ? _copy_from_user+0x10f/0x170 [ 45.961381][ T3563] ? copy_from_sockptr_offset+0x6b/0xa0 [ 45.966905][ T3563] do_ipt_set_ctl+0xdbc/0x1200 [ 45.971660][ T3563] ? rcu_lock_release+0x20/0x20 [ 45.976496][ T3563] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 45.982298][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 45.987317][ T3563] ? __mutex_unlock_slowpath+0x218/0x750 [ 45.992949][ T3563] ? nf_setsockopt+0x38/0x2b0 [ 45.997603][ T3563] ? print_irqtrace_events+0x210/0x210 [ 46.003037][ T3563] ? mutex_unlock+0x10/0x10 [ 46.007517][ T3563] ? lockdep_hardirqs_on+0x94/0x130 [ 46.012689][ T3563] ? __local_bh_enable_ip+0x164/0x1f0 [ 46.018041][ T3563] nf_setsockopt+0x28a/0x2b0 [ 46.022609][ T3563] ip_setsockopt+0x2732/0x3fb0 [ 46.027365][ T3563] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 46.032712][ T3563] ? local_lock_release+0x96/0x170 [ 46.037898][ T3563] ? aa_sk_perm+0xa30/0xa30 [ 46.042381][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.047564][ T3563] tcp_setsockopt+0x23f/0x3680 [ 46.052305][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 46.057308][ T3563] ? tcp_set_window_clamp+0x1b0/0x1b0 [ 46.062661][ T3563] ? aa_sk_perm+0x8fc/0xa30 [ 46.067153][ T3563] ? aa_af_perm+0x350/0x350 [ 46.071635][ T3563] ? aa_sock_opt_perm+0x79/0x110 [ 46.076551][ T3563] ? sock_common_setsockopt+0x33/0xc0 [ 46.081902][ T3563] ? sock_common_recvmsg+0x240/0x240 [ 46.087165][ T3563] __sys_setsockopt+0x57e/0x990 [ 46.092002][ T3563] ? __ia32_sys_recv+0xb0/0xb0 [ 46.096747][ T3563] ? syscall_enter_from_user_mode+0x2e/0x240 [ 46.102711][ T3563] __x64_sys_setsockopt+0xb1/0xc0 [ 46.107711][ T3563] do_syscall_64+0x3b/0xb0 [ 46.112104][ T3563] ? clear_bhb_loop+0x15/0x70 [ 46.116760][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 46.122633][ T3563] RIP: 0033:0x7efd3b702629 [ 46.127024][ 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 [ 46.146606][ T3563] RSP: 002b:00007ffd183b6388 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 46.154998][ T3563] RAX: ffffffffffffffda RBX: 00007ffd183b6558 RCX: 00007efd3b702629 [ 46.162948][ T3563] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 46.170894][ T3563] RBP: 00007efd3b776610 R08: 0000000000001290 R09: 00007ffd183b6558 [ 46.178840][ T3563] R10: 0000000020001c40 R11: 0000000000000246 R12: 0000000000000001 [ 46.186788][ T3563] R13: 00007ffd183b6548 R14: 0000000000000001 R15: 0000000000000001 [ 46.194750][ T3563] [ 46.197756][ T3563] [ 46.200075][ T3563] ============================= [ 46.204895][ T3563] [ BUG: Invalid wait context ] [ 46.209710][ T3563] 5.15.164-syzkaller #0 Tainted: G W [ 46.216262][ T3563] ----------------------------- [ 46.221166][ T3563] syz-executor109/3563 is trying to lock: [ 46.226852][ T3563] ffffffff8ca523d0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 46.236302][ T3563] other info that might help us debug this: [ 46.242169][ T3563] context-{4:4} [ 46.245613][ T3563] 1 lock held by syz-executor109/3563: [ 46.251050][ T3563] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 46.260769][ T3563] stack backtrace: [ 46.264460][ T3563] CPU: 1 PID: 3563 Comm: syz-executor109 Tainted: G W 5.15.164-syzkaller #0 [ 46.274407][ T3563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 46.284440][ T3563] Call Trace: [ 46.287700][ T3563] [ 46.290608][ T3563] dump_stack_lvl+0x1e3/0x2d0 [ 46.295264][ T3563] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 46.300868][ T3563] ? panic+0x860/0x860 [ 46.304913][ T3563] __lock_acquire+0x14f5/0x1ff0 [ 46.309839][ T3563] lock_acquire+0x1db/0x4f0 [ 46.314316][ T3563] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 46.319749][ T3563] ? read_lock_is_recursive+0x10/0x10 [ 46.325091][ T3563] ? __might_sleep+0xc0/0xc0 [ 46.329656][ T3563] down_read+0x45/0x2e0 [ 46.333781][ T3563] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 46.339216][ T3563] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 46.344652][ T3563] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 46.349929][ T3563] ? kernfs_find_ns+0x500/0x500 [ 46.354768][ T3563] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 46.360902][ T3563] cgroup_get_from_path+0x5c/0x2e0 [ 46.365985][ T3563] cgroup_mt_check_v1+0x1a0/0x2b0 [ 46.371006][ T3563] xt_check_match+0x363/0xa30 [ 46.375680][ T3563] ? xt_find_match+0x6d/0x200 [ 46.380336][ T3563] ? mutex_unlock+0x10/0x10 [ 46.385525][ T3563] ? xt_check_proc_name+0x110/0x110 [ 46.390986][ T3563] ? pcpu_alloc+0x10c9/0x17c0 [ 46.395660][ T3563] ? xt_find_match+0x1cf/0x200 [ 46.400416][ T3563] translate_table+0x15bd/0x2250 [ 46.405345][ T3563] ? ipt_register_table+0x7a0/0x7a0 [ 46.410520][ T3563] ? __might_fault+0xb8/0x110 [ 46.415174][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 46.420176][ T3563] ? _copy_from_user+0x10f/0x170 [ 46.425086][ T3563] ? copy_from_sockptr_offset+0x6b/0xa0 [ 46.430626][ T3563] do_ipt_set_ctl+0xdbc/0x1200 [ 46.435366][ T3563] ? rcu_lock_release+0x20/0x20 [ 46.440292][ T3563] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 46.446074][ T3563] ? __lock_acquire+0x1ff0/0x1ff0 [ 46.451073][ T3563] ? __mutex_unlock_slowpath+0x218/0x750 [ 46.456677][ T3563] ? nf_setsockopt+0x38/0x2b0 [ 46.461330][ T3563] ? print_irqtrace_events+0x210/0x210 [ 46.466852][ T3563] ? mutex_unlock+0x10/0x10 [ 46.471347][ T3563] ? lockdep_hardirqs_on+0x94/0x130 [ 46.476521][ T3563] ? __local_bh_enable_ip+0x164/0x1f0 [ 46.481866][ T3563] nf_setsockopt+0x28a/0x2b0 [ 46.486460][ T3563] ip_setsockopt+0x2732/0x3fb0 [ 46.491196][ T3563] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 46.496540][ T3563] ? local_lock_release+0x96/0x170 [ 46.501623][ T3563] ? aa_sk_perm+0xa30/0xa30 [ 46.506102][ T3563] ? do_raw_spin_unlock+0x137/0x8b0 [ 46.511271][ T3563] tcp_setsockopt+0x23f/0x3680 [ 46.516010][ T3563] ? __lock_acquire+0x1295/0x1ff0 [ 46.521017][ T3563] ? tcp_set_window_clamp+0x1b0/0x1b0 [ 46.526377][ T3563] ? aa_sk_perm+0x8fc/0xa30 [ 46.530865][ T3563] ? aa_af_perm+0x350/0x350 [ 46.535434][ T3563] ? aa_sock_opt_perm+0x79/0x110 [ 46.540356][ T3563] ? sock_common_setsockopt+0x33/0xc0 [ 46.545799][ T3563] ? sock_common_recvmsg+0x240/0x240 [ 46.551064][ T3563] __sys_setsockopt+0x57e/0x990 [ 46.555896][ T3563] ? __ia32_sys_recv+0xb0/0xb0 [ 46.560663][ T3563] ? syscall_enter_from_user_mode+0x2e/0x240 [ 46.566615][ T3563] __x64_sys_setsockopt+0xb1/0xc0 [ 46.571610][ T3563] do_syscall_64+0x3b/0xb0 [ 46.575995][ T3563] ? clear_bhb_loop+0x15/0x70 [ 46.580640][ T3563] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 46.586513][ T3563] RIP: 0033:0x7efd3b702629 [ 46.590927][ 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 [ 46.610613][ T3563] RSP: 002b:00007ffd183b6388 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 46.619085][ T3563] RAX: ffffffffffffffda RBX: 00007ffd183b6558 RCX: 00007efd3b702629 [ 46.627395][ T3563] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 46.635354][ T3563