BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1508
in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 13914, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
irq event stamp: 0
hardirqs last  enabled at (0): [<0000000000000000>] 0x0
hardirqs last disabled at (0): [<ffffffff8146a581>] copy_process+0x20e1/0x71b0 kernel/fork.c:2197
softirqs last  enabled at (0): [<ffffffff8146a5c9>] copy_process+0x2129/0x71b0 kernel/fork.c:2201
softirqs last disabled at (0): [<0000000000000000>] 0x0
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 13914 Comm: syz-executor.0 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9893
 down_read+0x71/0x450 kernel/locking/rwsem.c:1508
 kernfs_walk_and_get_ns+0xcc/0x3a0 fs/kernfs/dir.c:898
 kernfs_walk_and_get include/linux/kernfs.h:603 [inline]
 cgroup_get_from_path+0x61/0x610 kernel/cgroup/cgroup.c:6776
 cgroup_mt_check_v1+0x19a/0x2f0 net/netfilter/xt_cgroup.c:56
 xt_check_match+0x275/0x9f0 net/netfilter/x_tables.c:523
 check_match net/ipv4/netfilter/ip_tables.c:473 [inline]
 find_check_match net/ipv4/netfilter/ip_tables.c:489 [inline]
 find_check_entry.constprop.0+0x31a/0x9a0 net/ipv4/netfilter/ip_tables.c:539
 translate_table+0xc26/0x16a0 net/ipv4/netfilter/ip_tables.c:718
 do_replace net/ipv4/netfilter/ip_tables.c:1136 [inline]
 do_ipt_set_ctl+0x56c/0xb10 net/ipv4/netfilter/ip_tables.c:1630
 nf_setsockopt+0x83/0xe0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xee/0x100 net/ipv4/ip_sockglue.c:1444
 udp_setsockopt+0x76/0xc0 net/ipv4/udp.c:2800
 ipv6_setsockopt+0x166/0x190 net/ipv6/ipv6_sockglue.c:1016
 tcp_setsockopt+0x9b/0x100 net/ipv4/tcp.c:3798
 __sys_setsockopt+0x2d6/0x690 net/socket.c:2252
 __do_sys_setsockopt net/socket.c:2263 [inline]
 __se_sys_setsockopt net/socket.c:2260 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2260
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7faee2e8a5a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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
RSP: 002b:00007faee3f68168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007faee2fabf80 RCX: 00007faee2e8a5a9
RDX: 0000000000000040 RSI: 0004000000000000 RDI: 0000000000000004
RBP: 00007faee2ee5580 R08: 0000000000001318 R09: 0000000000000000
R10: 0000000020002080 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe84460fef R14: 00007faee3f68300 R15: 0000000000022000
 </TASK>
xt_cgroup: invalid path, errno=-2