Warning: Permanently added '10.128.0.130' (ED25519) to the list of known hosts. executing program syzkaller login: [ 42.515194][ T3569] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1497 [ 42.524775][ T3569] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3569, name: syz-executor378 [ 42.535771][ T3569] 1 lock held by syz-executor378/3569: [ 42.541201][ T3569] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 42.550934][ T3569] irq event stamp: 14900 [ 42.555148][ T3569] hardirqs last enabled at (14899): [] _raw_spin_unlock_irqrestore+0x8b/0x130 [ 42.565724][ T3569] hardirqs last disabled at (14900): [] _raw_spin_lock_irq+0xa9/0x110 [ 42.575417][ T3569] softirqs last enabled at (14876): [] ipv6_setsockopt+0x2f1f/0x4380 [ 42.585372][ T3569] softirqs last disabled at (14874): [] release_sock+0x2c/0x1c0 [ 42.594850][ T3569] Preemption disabled at: [ 42.594859][ T3569] [<0000000000000000>] 0x0 [ 42.603596][ T3569] CPU: 1 PID: 3569 Comm: syz-executor378 Not tainted 5.15.164-syzkaller #0 [ 42.612156][ T3569] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 42.622286][ T3569] Call Trace: [ 42.625555][ T3569] [ 42.628463][ T3569] dump_stack_lvl+0x1e3/0x2d0 [ 42.633209][ T3569] ? ipv6_setsockopt+0x2f1f/0x4380 [ 42.638298][ T3569] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 42.643905][ T3569] ? panic+0x860/0x860 [ 42.647952][ T3569] ___might_sleep+0x547/0x6a0 [ 42.652695][ T3569] ? __might_sleep+0xc0/0xc0 [ 42.657354][ T3569] down_read+0x21/0x2e0 [ 42.661488][ T3569] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 42.666919][ T3569] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 42.672186][ T3569] ? kernfs_find_ns+0x500/0x500 [ 42.677018][ T3569] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 42.683147][ T3569] cgroup_get_from_path+0x5c/0x2e0 [ 42.688233][ T3569] cgroup_mt_check_v1+0x1a0/0x2b0 [ 42.693229][ T3569] xt_check_match+0x363/0xa30 [ 42.697887][ T3569] ? xt_find_match+0x6d/0x200 [ 42.702536][ T3569] ? mutex_unlock+0x10/0x10 [ 42.707273][ T3569] ? xt_check_proc_name+0x110/0x110 [ 42.712445][ T3569] ? pcpu_alloc+0x10c9/0x17c0 [ 42.717126][ T3569] ? xt_find_match+0x1cf/0x200 [ 42.721867][ T3569] translate_table+0x1669/0x2320 [ 42.726791][ T3569] ? ip6t_register_table+0x7b0/0x7b0 [ 42.732049][ T3569] ? __might_fault+0xb8/0x110 [ 42.736710][ T3569] ? __lock_acquire+0x1ff0/0x1ff0 [ 42.741711][ T3569] ? _copy_from_user+0x10f/0x170 [ 42.746626][ T3569] ? copy_from_sockptr_offset+0x6b/0xa0 [ 42.752163][ T3569] do_ip6t_set_ctl+0xdcb/0x1220 [ 42.756992][ T3569] ? rcu_lock_release+0x20/0x20 [ 42.761817][ T3569] ? ip6t_unregister_table_exit+0x1f0/0x1f0 [ 42.767703][ T3569] ? __lock_acquire+0x1ff0/0x1ff0 [ 42.772718][ T3569] ? __mutex_unlock_slowpath+0x218/0x750 [ 42.778326][ T3569] ? nf_setsockopt+0x38/0x2b0 [ 42.782986][ T3569] ? print_irqtrace_events+0x210/0x210 [ 42.788504][ T3569] ? mutex_unlock+0x10/0x10 [ 42.793130][ T3569] ? lockdep_hardirqs_on+0x94/0x130 [ 42.798324][ T3569] ? __local_bh_enable_ip+0x164/0x1f0 [ 42.803687][ T3569] nf_setsockopt+0x28a/0x2b0 [ 42.808350][ T3569] ipv6_setsockopt+0x2f9a/0x4380 [ 42.813263][ T3569] ? reacquire_held_locks+0x660/0x660 [ 42.818621][ T3569] ? ipv6_update_options+0x3f0/0x3f0 [ 42.823892][ T3569] ? mark_lock+0x98/0x340 [ 42.828220][ T3569] ? mark_lock+0x98/0x340 [ 42.832539][ T3569] ? validate_chain+0x112/0x5930 [ 42.837456][ T3569] ? __lock_acquire+0x1295/0x1ff0 [ 42.842467][ T3569] ? reacquire_held_locks+0x660/0x660 [ 42.847913][ T3569] ? aa_label_sk_perm+0x453/0x630 [ 42.853580][ T3569] ? local_lock_release+0x96/0x170 [ 42.858673][ T3569] ? aa_sk_perm+0xa30/0xa30 [ 42.863591][ T3569] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.868770][ T3569] ? __might_sleep+0xc0/0xc0 [ 42.873344][ T3569] ? __lock_acquire+0x1295/0x1ff0 [ 42.878350][ T3569] ? aa_sk_perm+0x8fc/0xa30 [ 42.882997][ T3569] ? aa_af_perm+0x350/0x350 [ 42.887490][ T3569] ? aa_sock_opt_perm+0x79/0x110 [ 42.892405][ T3569] ? udpv6_setsockopt+0x77/0xa0 [ 42.897236][ T3569] ? sock_common_recvmsg+0x240/0x240 [ 42.902501][ T3569] __sys_setsockopt+0x57e/0x990 [ 42.907334][ T3569] ? __ia32_sys_recv+0xb0/0xb0 [ 42.912081][ T3569] ? syscall_enter_from_user_mode+0x2e/0x240 [ 42.918041][ T3569] __x64_sys_setsockopt+0xb1/0xc0 [ 42.923043][ T3569] do_syscall_64+0x3b/0xb0 [ 42.927433][ T3569] ? clear_bhb_loop+0x15/0x70 [ 42.932084][ T3569] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 42.937964][ T3569] RIP: 0033:0x7f3231f938e9 [ 42.942364][ T3569] 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.961948][ T3569] RSP: 002b:00007ffd17270818 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 42.970357][ T3569] RAX: ffffffffffffffda RBX: 00007ffd172709e8 RCX: 00007f3231f938e9 [ 42.978301][ T3569] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 42.986244][ T3569] RBP: 00007f3232007610 R08: 0000000000001488 R09: 00007ffd172709e8 [ 42.994189][ T3569] R10: 00000000200028c0 R11: 0000000000000246 R12: 0000000000000001 [ 43.002133][ T3569] R13: 00007ffd172709d8 R14: 0000000000000001 R15: 0000000000000001 [ 43.010086][ T3569] [ 43.013166][ T3569] [ 43.015462][ T3569] ============================= [ 43.020273][ T3569] [ BUG: Invalid wait context ] [ 43.025084][ T3569] 5.15.164-syzkaller #0 Tainted: G W [ 43.031652][ T3569] ----------------------------- [ 43.036468][ T3569] syz-executor378/3569 is trying to lock: [ 43.042152][ T3569] ffffffff8ca523d0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 43.051681][ T3569] other info that might help us debug this: [ 43.057535][ T3569] context-{4:4} [ 43.060960][ T3569] 1 lock held by syz-executor378/3569: [ 43.066381][ T3569] #0: ffffffff8c945618 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 43.076090][ T3569] stack backtrace: [ 43.079774][ T3569] CPU: 1 PID: 3569 Comm: syz-executor378 Tainted: G W 5.15.164-syzkaller #0 [ 43.089716][ T3569] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 [ 43.099738][ T3569] Call Trace: [ 43.102994][ T3569] [ 43.105901][ T3569] dump_stack_lvl+0x1e3/0x2d0 [ 43.110552][ T3569] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 43.116154][ T3569] ? panic+0x860/0x860 [ 43.120199][ T3569] __lock_acquire+0x14f5/0x1ff0 [ 43.125026][ T3569] lock_acquire+0x1db/0x4f0 [ 43.129493][ T3569] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 43.134918][ T3569] ? read_lock_is_recursive+0x10/0x10 [ 43.140256][ T3569] ? __might_sleep+0xc0/0xc0 [ 43.144814][ T3569] down_read+0x45/0x2e0 [ 43.148940][ T3569] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 43.154366][ T3569] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 43.159792][ T3569] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 43.165045][ T3569] ? kernfs_find_ns+0x500/0x500 [ 43.169865][ T3569] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 43.175989][ T3569] cgroup_get_from_path+0x5c/0x2e0 [ 43.181077][ T3569] cgroup_mt_check_v1+0x1a0/0x2b0 [ 43.186075][ T3569] xt_check_match+0x363/0xa30 [ 43.190720][ T3569] ? xt_find_match+0x6d/0x200 [ 43.195365][ T3569] ? mutex_unlock+0x10/0x10 [ 43.199843][ T3569] ? xt_check_proc_name+0x110/0x110 [ 43.205013][ T3569] ? pcpu_alloc+0x10c9/0x17c0 [ 43.209748][ T3569] ? xt_find_match+0x1cf/0x200 [ 43.214480][ T3569] translate_table+0x1669/0x2320 [ 43.219480][ T3569] ? ip6t_register_table+0x7b0/0x7b0 [ 43.224733][ T3569] ? __might_fault+0xb8/0x110 [ 43.229388][ T3569] ? __lock_acquire+0x1ff0/0x1ff0 [ 43.234400][ T3569] ? _copy_from_user+0x10f/0x170 [ 43.239315][ T3569] ? copy_from_sockptr_offset+0x6b/0xa0 [ 43.244835][ T3569] do_ip6t_set_ctl+0xdcb/0x1220 [ 43.249662][ T3569] ? rcu_lock_release+0x20/0x20 [ 43.254486][ T3569] ? ip6t_unregister_table_exit+0x1f0/0x1f0 [ 43.260348][ T3569] ? __lock_acquire+0x1ff0/0x1ff0 [ 43.265347][ T3569] ? __mutex_unlock_slowpath+0x218/0x750 [ 43.270951][ T3569] ? nf_setsockopt+0x38/0x2b0 [ 43.275600][ T3569] ? print_irqtrace_events+0x210/0x210 [ 43.281026][ T3569] ? mutex_unlock+0x10/0x10 [ 43.285497][ T3569] ? lockdep_hardirqs_on+0x94/0x130 [ 43.290664][ T3569] ? __local_bh_enable_ip+0x164/0x1f0 [ 43.296007][ T3569] nf_setsockopt+0x28a/0x2b0 [ 43.300566][ T3569] ipv6_setsockopt+0x2f9a/0x4380 [ 43.305474][ T3569] ? reacquire_held_locks+0x660/0x660 [ 43.310818][ T3569] ? ipv6_update_options+0x3f0/0x3f0 [ 43.316070][ T3569] ? mark_lock+0x98/0x340 [ 43.320371][ T3569] ? mark_lock+0x98/0x340 [ 43.324668][ T3569] ? validate_chain+0x112/0x5930 [ 43.329572][ T3569] ? __lock_acquire+0x1295/0x1ff0 [ 43.334568][ T3569] ? reacquire_held_locks+0x660/0x660 [ 43.339907][ T3569] ? aa_label_sk_perm+0x453/0x630 [ 43.344901][ T3569] ? local_lock_release+0x96/0x170 [ 43.349982][ T3569] ? aa_sk_perm+0xa30/0xa30 [ 43.354456][ T3569] ? do_raw_spin_unlock+0x137/0x8b0 [ 43.359621][ T3569] ? __might_sleep+0xc0/0xc0 [ 43.364180][ T3569] ? __lock_acquire+0x1295/0x1ff0 [ 43.369184][ T3569] ? aa_sk_perm+0x8fc/0xa30 [ 43.373658][ T3569] ? aa_af_perm+0x350/0x350 [ 43.378131][ T3569] ? aa_sock_opt_perm+0x79/0x110 [ 43.383037][ T3569] ? udpv6_setsockopt+0x77/0xa0 [ 43.387857][ T3569] ? sock_common_recvmsg+0x240/0x240 [ 43.393114][ T3569] __sys_setsockopt+0x57e/0x990 [ 43.397936][ T3569] ? __ia32_sys_recv+0xb0/0xb0 [ 43.402670][ T3569] ? syscall_enter_from_user_mode+0x2e/0x240 [ 43.408624][ T3569] __x64_sys_setsockopt+0xb1/0xc0 [ 43.413620][ T3569] do_syscall_64+0x3b/0xb0 [ 43.418006][ T3569] ? clear_bhb_loop+0x15/0x70 [ 43.422654][ T3569] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 43.428518][ T3569] RIP: 0033:0x7f3231f938e9 [ 43.432908][ T3569] 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 [ 43.452486][ T3569] RSP: 002b:00007ffd17270818 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 43.460881][ T3569] RAX: ffffffffffffffda RBX: 00007ffd172709e8 RCX: 00007f3231f938e9 [ 43.46