DUID 00:04:70:54:fc:d0:2a:32:b7:62:cf:21:72:23:c9:95:e9:3f forked to background, child pid 3172 [ 34.075520][ T3173] 8021q: adding VLAN 0 to HW filter on device bond0 [ 34.086169][ T3173] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.171' (ECDSA) to the list of known hosts. syzkaller login: [ 54.454626][ T3497] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1487 [ 54.464239][ T3497] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 3497, name: syz-executor428 [ 54.474071][ T3497] 1 lock held by syz-executor428/3497: [ 54.479638][ T3497] #0: ffffffff8c941d18 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 54.489646][ T3497] irq event stamp: 14770 [ 54.493968][ T3497] hardirqs last enabled at (14769): [] _raw_spin_unlock_irqrestore+0x8b/0x130 [ 54.505197][ T3497] hardirqs last disabled at (14770): [] _raw_spin_lock_irq+0xa9/0x110 [ 54.514952][ T3497] softirqs last enabled at (14750): [] ip_setsockopt+0x260e/0x3fb0 [ 54.524493][ T3497] softirqs last disabled at (14748): [] release_sock+0x2c/0x1c0 [ 54.533864][ T3497] Preemption disabled at: [ 54.533874][ T3497] [<0000000000000000>] 0x0 [ 54.542697][ T3497] CPU: 1 PID: 3497 Comm: syz-executor428 Not tainted 5.15.117-syzkaller #0 [ 54.551358][ T3497] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 54.562112][ T3497] Call Trace: [ 54.565401][ T3497] [ 54.568327][ T3497] dump_stack_lvl+0x1e3/0x2cb [ 54.573081][ T3497] ? ip_setsockopt+0x260e/0x3fb0 [ 54.578404][ T3497] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 54.584138][ T3497] ? panic+0x84d/0x84d [ 54.588401][ T3497] ___might_sleep+0x547/0x6a0 [ 54.593111][ T3497] ? __might_sleep+0xc0/0xc0 [ 54.597730][ T3497] down_read+0x21/0x2e0 [ 54.602161][ T3497] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 54.607629][ T3497] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 54.612932][ T3497] ? kernfs_find_ns+0x500/0x500 [ 54.617976][ T3497] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 54.624243][ T3497] cgroup_get_from_path+0x5c/0x2e0 [ 54.629391][ T3497] cgroup_mt_check_v1+0x1a0/0x2b0 [ 54.634440][ T3497] xt_check_match+0x363/0xa30 [ 54.639197][ T3497] ? xt_find_match+0x6d/0x200 [ 54.643897][ T3497] ? mutex_unlock+0x10/0x10 [ 54.648519][ T3497] ? xt_check_proc_name+0x110/0x110 [ 54.654955][ T3497] ? pcpu_alloc+0x10c9/0x17c0 [ 54.659661][ T3497] ? xt_find_match+0x1cf/0x200 [ 54.664776][ T3497] translate_table+0x15bd/0x2250 [ 54.670025][ T3497] ? ipt_register_table+0x7a0/0x7a0 [ 54.675706][ T3497] ? __might_fault+0xb8/0x110 [ 54.680990][ T3497] ? __might_fault+0xb4/0x110 [ 54.685857][ T3497] do_ipt_set_ctl+0x2c48/0x3e70 [ 54.691065][ T3497] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 54.697366][ T3497] ? rcu_lock_release+0x20/0x20 [ 54.703242][ T3497] ? __mutex_lock_common+0x444/0x25a0 [ 54.708841][ T3497] ? __mutex_unlock_slowpath+0x218/0x750 [ 54.714627][ T3497] ? nf_setsockopt+0x38/0x2b0 [ 54.719327][ T3497] ? print_irqtrace_events+0x210/0x210 [ 54.725180][ T3497] ? mutex_unlock+0x10/0x10 [ 54.729857][ T3497] ? lockdep_hardirqs_on+0x94/0x130 [ 54.735172][ T3497] ? __local_bh_enable_ip+0x164/0x1f0 [ 54.740573][ T3497] nf_setsockopt+0x28a/0x2b0 [ 54.745183][ T3497] ip_setsockopt+0x2732/0x3fb0 [ 54.749963][ T3497] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 54.755349][ T3497] ? aa_af_perm+0x350/0x350 [ 54.759878][ T3497] ? aa_sock_opt_perm+0x79/0x110 [ 54.765025][ T3497] ? udp_setsockopt+0x75/0xa0 [ 54.769715][ T3497] ? sock_common_recvmsg+0x240/0x240 [ 54.775184][ T3497] __sys_setsockopt+0x57e/0x990 [ 54.780152][ T3497] ? __ia32_sys_recv+0xb0/0xb0 [ 54.785096][ T3497] ? syscall_enter_from_user_mode+0x2e/0x230 [ 54.791703][ T3497] __x64_sys_setsockopt+0xb1/0xc0 [ 54.796925][ T3497] do_syscall_64+0x3d/0xb0 [ 54.801706][ T3497] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 54.807791][ T3497] RIP: 0033:0x7fd1ccc1b479 [ 54.812608][ T3497] Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48 [ 54.834267][ T3497] RSP: 002b:00007ffce4ab3828 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 54.843501][ T3497] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd1ccc1b479 [ 54.852276][ T3497] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 54.860801][ T3497] RBP: 00007fd1ccbdf460 R08: 0000000000001318 R09: 0000000000000000 [ 54.868876][ T3497] R10: 0000000020000340 R11: 0000000000000246 R12: 00007fd1ccbdf4f0 [ 54.876948][ T3497] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 54.885058][ T3497] [ 54.888125][ T3497] [ 54.890581][ T3497] ============================= [ 54.895601][ T3497] [ BUG: Invalid wait context ] [ 54.900439][ T3497] 5.15.117-syzkaller #0 Tainted: G W [ 54.907630][ T3497] ----------------------------- [ 54.912484][ T3497] syz-executor428/3497 is trying to lock: [ 54.918196][ T3497] ffffffff8ca4d910 (kernfs_rwsem){++++}-{3:3}, at: kernfs_walk_and_get_ns+0x7e/0x2b0 [ 54.927928][ T3497] other info that might help us debug this: [ 54.934048][ T3497] context-{4:4} [ 54.937517][ T3497] 1 lock held by syz-executor428/3497: [ 54.942972][ T3497] #0: ffffffff8c941d18 (css_set_lock){....}-{2:2}, at: cgroup_get_from_path+0x24/0x2e0 [ 54.952981][ T3497] stack backtrace: [ 54.956741][ T3497] CPU: 1 PID: 3497 Comm: syz-executor428 Tainted: G W 5.15.117-syzkaller #0 [ 54.966723][ T3497] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 54.976782][ T3497] Call Trace: [ 54.980218][ T3497] [ 54.983211][ T3497] dump_stack_lvl+0x1e3/0x2cb [ 54.988870][ T3497] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 54.994656][ T3497] ? panic+0x84d/0x84d [ 54.998908][ T3497] __lock_acquire+0x14f5/0x1ff0 [ 55.003850][ T3497] lock_acquire+0x1db/0x4f0 [ 55.008347][ T3497] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 55.013892][ T3497] ? read_lock_is_recursive+0x10/0x10 [ 55.019262][ T3497] ? __might_sleep+0xc0/0xc0 [ 55.024029][ T3497] down_read+0x45/0x2e0 [ 55.028185][ T3497] ? kernfs_walk_and_get_ns+0x7e/0x2b0 [ 55.033647][ T3497] ? kernfs_walk_and_get_ns+0x72/0x2b0 [ 55.039099][ T3497] kernfs_walk_and_get_ns+0x7e/0x2b0 [ 55.044375][ T3497] ? kernfs_find_ns+0x500/0x500 [ 55.049221][ T3497] ? current_cgns_cgroup_from_root+0x2ad/0x300 [ 55.055474][ T3497] cgroup_get_from_path+0x5c/0x2e0 [ 55.060580][ T3497] cgroup_mt_check_v1+0x1a0/0x2b0 [ 55.065924][ T3497] xt_check_match+0x363/0xa30 [ 55.070596][ T3497] ? xt_find_match+0x6d/0x200 [ 55.075439][ T3497] ? mutex_unlock+0x10/0x10 [ 55.080261][ T3497] ? xt_check_proc_name+0x110/0x110 [ 55.086002][ T3497] ? pcpu_alloc+0x10c9/0x17c0 [ 55.090952][ T3497] ? xt_find_match+0x1cf/0x200 [ 55.095802][ T3497] translate_table+0x15bd/0x2250 [ 55.100922][ T3497] ? ipt_register_table+0x7a0/0x7a0 [ 55.106469][ T3497] ? __might_fault+0xb8/0x110 [ 55.111326][ T3497] ? __might_fault+0xb4/0x110 [ 55.116173][ T3497] do_ipt_set_ctl+0x2c48/0x3e70 [ 55.121287][ T3497] ? ipt_unregister_table_exit+0x1e0/0x1e0 [ 55.127456][ T3497] ? rcu_lock_release+0x20/0x20 [ 55.132500][ T3497] ? __mutex_lock_common+0x444/0x25a0 [ 55.137881][ T3497] ? __mutex_unlock_slowpath+0x218/0x750 [ 55.143508][ T3497] ? nf_setsockopt+0x38/0x2b0 [ 55.148183][ T3497] ? print_irqtrace_events+0x210/0x210 [ 55.153632][ T3497] ? mutex_unlock+0x10/0x10 [ 55.158212][ T3497] ? lockdep_hardirqs_on+0x94/0x130 [ 55.163436][ T3497] ? __local_bh_enable_ip+0x164/0x1f0 [ 55.168916][ T3497] nf_setsockopt+0x28a/0x2b0 [ 55.173654][ T3497] ip_setsockopt+0x2732/0x3fb0 [ 55.178429][ T3497] ? ipv4_pktinfo_prepare+0x6f0/0x6f0 [ 55.184635][ T3497] ? aa_af_perm+0x350/0x350 [ 55.190679][ T3497] ? aa_sock_opt_perm+0x79/0x110 [ 55.195651][ T3497] ? udp_setsockopt+0x75/0xa0 [ 55.200370][ T3497] ? sock_common_recvmsg+0x240/0x240 [ 55.205673][ T3497] __sys_setsockopt+0x57e/0x990 [ 55.210633][ T3497] ? __ia32_sys_recv+0xb0/0xb0 [ 55.215402][ T3497] ? syscall_enter_from_user_mode+0x2e/0x230 [ 55.221489][ T3497] __x64_sys_setsockopt+0xb1/0xc0 [ 55.226554][ T3497] do_syscall_64+0x3d/0xb0 [ 55.231031][ T3497] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 55.237163][ T3497] RIP: 0033:0x7fd1ccc1b479 [ 55.241695][ T3497] Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48 [ 55.261425][ T3497] RSP: 002b:00007ffce4ab3828 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 55.270258][ T3497] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd1ccc1b479 [ 55.278246][ T3497] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 55.286522][ T3497] RBP: 00007fd1ccbdf460 R08: 0000000000001318 R09: 0000000000000000 [ 55.294893][ T3497] R10: 0000000020000340 R11: 0000000000000246 R12: 00007fd1ccbdf4f0 executing program [ 55.303050][ T3497] R13: 0000000000000000 R14: 0000000000000000 R15