INFO: task udevd:2950 blocked for more than 143 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:22176 pid: 2950 ppid: 1 flags:0x00004002
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
rwsem_down_read_slowpath+0x605/0xb40 kernel/locking/rwsem.c:1047
__down_read_common kernel/locking/rwsem.c:1231 [inline]
__down_read kernel/locking/rwsem.c:1244 [inline]
down_read+0x9a/0x2e0 kernel/locking/rwsem.c:1490
kernfs_iop_getattr+0x8a/0x340 fs/kernfs/inode.c:188
vfs_statx+0x18f/0x3b0 fs/stat.c:225
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f13ae4045f4
RSP: 002b:00007ffd050ec068 EFLAGS: 00000206 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007f13ae4dc460 RCX: 00007f13ae4045f4
RDX: 00007ffd050ec070 RSI: 00007f13ae4a1130 RDI: 000000000000000c
RBP: 000055a0114356f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000001000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000003fff R14: 00007ffd050ec608 R15: 000000000000000a
</TASK>
INFO: task kworker/u4:12:4085 blocked for more than 144 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:12 state:D stack:20536 pid: 4085 ppid: 2 flags:0x00004000
Workqueue: netns cleanup_net
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
__mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
cangw_pernet_exit+0xe/0x20 net/can/gw.c:1244
ops_exit_list net/core/net_namespace.c:169 [inline]
cleanup_net+0x6ce/0xb60 net/core/net_namespace.c:596
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
</TASK>
INFO: task syz-executor.5:25065 blocked for more than 144 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:21112 pid:25065 ppid: 1 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
rwsem_down_read_slowpath+0x605/0xb40 kernel/locking/rwsem.c:1047
__down_read_common kernel/locking/rwsem.c:1231 [inline]
__down_read kernel/locking/rwsem.c:1244 [inline]
down_read+0x9a/0x2e0 kernel/locking/rwsem.c:1490
kernfs_iop_permission+0x6a/0x360 fs/kernfs/inode.c:284
do_inode_permission fs/namei.c:457 [inline]
inode_permission+0x22f/0x450 fs/namei.c:524
may_lookup fs/namei.c:1689 [inline]
link_path_walk+0x2be/0xd90 fs/namei.c:2241
path_openat+0x249/0x2f20 fs/namei.c:3668
do_filp_open+0x21c/0x460 fs/namei.c:3699
do_sys_openat2+0x13b/0x500 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1238
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f035675f541
RSP: 002b:00007ffd28b08f30 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000218 RCX: 00007f035675f541
RDX: 0000000000090800 RSI: 00007f03567aa45d RDI: 00000000ffffff9c
RBP: 00007ffd28b08ffc R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 00000000001dcc9e R14: 00000000001dbd8b R15: 0000000000000016
</TASK>
INFO: task syz-executor.4:28311 blocked for more than 145 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:20760 pid:28311 ppid: 1 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
rwsem_down_read_slowpath+0x605/0xb40 kernel/locking/rwsem.c:1047
__down_read_common kernel/locking/rwsem.c:1231 [inline]
__down_read kernel/locking/rwsem.c:1244 [inline]
down_read+0x9a/0x2e0 kernel/locking/rwsem.c:1490
kernfs_iop_permission+0x6a/0x360 fs/kernfs/inode.c:284
do_inode_permission fs/namei.c:457 [inline]
inode_permission+0x22f/0x450 fs/namei.c:524
may_lookup fs/namei.c:1689 [inline]
link_path_walk+0x2be/0xd90 fs/namei.c:2241
path_openat+0x249/0x2f20 fs/namei.c:3668
do_filp_open+0x21c/0x460 fs/namei.c:3699
do_sys_openat2+0x13b/0x500 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1238
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fbc6be76541
RSP: 002b:00007ffe22396830 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000095 RCX: 00007fbc6be76541
RDX: 0000000000090800 RSI: 00007fbc6bec145d RDI: 00000000ffffff9c
RBP: 00007ffe223968fc R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 00000000001ddc0b R14: 00000000001dd222 R15: 000000000000001a
</TASK>
INFO: task syz-executor.2:29549 blocked for more than 145 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:25560 pid:29549 ppid: 3529 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
__mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
gtp_net_exit+0xb7/0x170 drivers/net/gtp.c:1403
ops_exit_list net/core/net_namespace.c:169 [inline]
setup_net+0x78f/0x9e0 net/core/net_namespace.c:352
copy_net_ns+0x395/0x5d0 net/core/net_namespace.c:473
create_new_namespaces+0x425/0x7a0 kernel/nsproxy.c:110
unshare_nsproxy_namespaces+0x11e/0x170 kernel/nsproxy.c:226
ksys_unshare+0x580/0xb20 kernel/fork.c:3093
__do_sys_unshare kernel/fork.c:3167 [inline]
__se_sys_unshare kernel/fork.c:3165 [inline]
__x64_sys_unshare+0x34/0x40 kernel/fork.c:3165
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7ff270cd1ae9
RSP: 002b:00007ff266e720c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007ff270df1050 RCX: 00007ff270cd1ae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000060000200
RBP: 00007ff270d1d47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007ff270df1050 R15: 00007ffc8dd7b998
</TASK>
INFO: task syz-executor.5:29556 blocked for more than 146 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:27904 pid:29556 ppid: 25065 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
__mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
do_ip_setsockopt net/ipv4/ip_sockglue.c:951 [inline]
ip_setsockopt+0x4ff/0x3fb0 net/ipv4/ip_sockglue.c:1430
tcp_setsockopt+0x23f/0x3680 net/ipv4/tcp.c:3701
__sys_setsockopt+0x57e/0x990 net/socket.c:2179
__do_sys_setsockopt net/socket.c:2190 [inline]
__se_sys_setsockopt net/socket.c:2187 [inline]
__x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2187
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f035675fae9
RSP: 002b:00007f0354c7e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f035687f1f0 RCX: 00007f035675fae9
RDX: 0000000000000027 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007f03567ab47a R08: 000000000000000c R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f035687f1f0 R15: 00007ffd28b08c88
</TASK>
INFO: task syz-executor.0:29563 blocked for more than 147 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0 state:D stack:26752 pid:29563 ppid: 3517 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
__mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
rtnl_lock net/core/rtnetlink.c:72 [inline]
rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5596
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
__sys_sendmsg net/socket.c:2495 [inline]
__do_sys_sendmsg net/socket.c:2504 [inline]
__se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fd193c5eae9
RSP: 002b:00007fd1921e00c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd193d7df80 RCX: 00007fd193c5eae9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00007fd193caa47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fd193d7df80 R15: 00007ffd64801b68
</TASK>
INFO: task syz-executor.4:29567 blocked for more than 147 seconds.
Not tainted 5.15.125-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:26624 pid:29567 ppid: 28311 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x4590 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
__mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
do_ip_setsockopt net/ipv4/ip_sockglue.c:951 [inline]
ip_setsockopt+0x4ff/0x3fb0 net/ipv4/ip_sockglue.c:1430
tcp_setsockopt+0x23f/0x3680 net/ipv4/tcp.c:3701
__sys_setsockopt+0x57e/0x990 net/socket.c:2179
__do_sys_setsockopt net/socket.c:2190 [inline]
__se_sys_setsockopt net/socket.c:2187 [inline]
__x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2187
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fbc6be76ae9
RSP: 002b:00007fbc6a3b60c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fbc6bf96120 RCX: 00007fbc6be76ae9
RDX: 0000000000000027 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007fbc6bec247a R08: 000000000000000c R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fbc6bf96120 R15: 00007ffe22396588
</TASK>
Showing all locks held in the system:
1 lock held by khungtaskd/27:
#0: ffffffff8c91efe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by udevd/2950:
#0: ffffffff8ca50950 (kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_getattr+0x8a/0x340 fs/kernfs/inode.c:188
2 locks held by getty/3251:
#0: ffff88802497a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc90002bb62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
4 locks held by kworker/u4:12/4085:
#0: ffff888011dc5138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc900044afd20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
#2: ffffffff8d9d5310 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf1/0xb60 net/core/net_namespace.c:558
#3: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: cangw_pernet_exit+0xe/0x20 net/can/gw.c:1244
2 locks held by syz-executor.1/17615:
#0: ffff888048eb5c10 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
#0: ffff888048eb5c10 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:648 [inline]
#0: ffff888048eb5c10 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1317
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip6mr_sk_done+0xa0/0x2a0 net/ipv6/ip6mr.c:1584
2 locks held by syz-executor.0/17663:
#0: ffff8880761e8810 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
#0: ffff8880761e8810 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:648 [inline]
#0: ffff8880761e8810 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1317
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip6mr_sk_done+0xa0/0x2a0 net/ipv6/ip6mr.c:1584
2 locks held by syz-executor.0/17725:
#0: ffff88807f3f7410 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
#0: ffff88807f3f7410 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:648 [inline]
#0: ffff88807f3f7410 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1317
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip6mr_sk_done+0xa0/0x2a0 net/ipv6/ip6mr.c:1584
2 locks held by syz-executor.1/17726:
#0: ffff88807f3f1a10 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
#0: ffff88807f3f1a10 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:648 [inline]
#0: ffff88807f3f1a10 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1317
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip6mr_sk_done+0xa0/0x2a0 net/ipv6/ip6mr.c:1584
2 locks held by syz-executor.2/17765:
#0: ffff888041a10210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
#0: ffff888041a10210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:648 [inline]
#0: ffff888041a10210 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1317
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip6mr_sk_done+0xa0/0x2a0 net/ipv6/ip6mr.c:1584
2 locks held by syz-executor.1/17778:
#0: ffff888041a15010 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline]
#0: ffff888041a15010 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: __sock_release net/socket.c:648 [inline]
#0: ffff888041a15010 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1317
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip6mr_sk_done+0xa0/0x2a0 net/ipv6/ip6mr.c:1584
3 locks held by kworker/1:33/24802:
#0: ffff888023a67138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc900051c7d20 ((addr_chk_work).work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
#2: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4635
1 lock held by syz-executor.5/25065:
#0: ffffffff8ca50950 (kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0x6a/0x360 fs/kernfs/inode.c:284
1 lock held by syz-executor.4/28311:
#0: ffffffff8ca50950 (kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0x6a/0x360 fs/kernfs/inode.c:284
2 locks held by syz-executor.2/29549:
#0: ffffffff8d9d5310 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x37b/0x5d0 net/core/net_namespace.c:469
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: gtp_net_exit+0xb7/0x170 drivers/net/gtp.c:1403
4 locks held by syz-executor.1/29552:
#0: ffffffff8d9d5310 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x37b/0x5d0 net/core/net_namespace.c:469
#1: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: register_netdev+0xf/0x50 net/core/dev.c:10453
#2: ffffffff8ca50950 (kernfs_rwsem){++++}-{3:3}, at: kernfs_add_one+0x53/0x640 fs/kernfs/dir.c:735
#3: ffffffff8ca50910 (kernfs_rwsem.wait_lock){....}-{2:2}, at: rwsem_down_write_slowpath+0xad8/0x15c0 kernel/locking/rwsem.c:1161
1 lock held by syz-executor.5/29551:
1 lock held by syz-executor.5/29556:
#0: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: do_ip_setsockopt net/ipv4/ip_sockglue.c:951 [inline]
#0: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip_setsockopt+0x4ff/0x3fb0 net/ipv4/ip_sockglue.c:1430
1 lock held by syz-executor.0/29563:
#0: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline]
#0: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5596
1 lock held by syz-executor.4/29567:
#0: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: do_ip_setsockopt net/ipv4/ip_sockglue.c:951 [inline]
#0: ffffffff8d9e1008 (rtnl_mutex){+.+.}-{3:3}, at: ip_setsockopt+0x4ff/0x3fb0 net/ipv4/ip_sockglue.c:1430
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.125-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0xe72/0xeb0 kernel/hung_task.c:295
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 29552 Comm: syz-executor.1 Not tainted 5.15.125-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__lock_acquire+0xf21/0x1ff0
Code: 31 e9 44 01 f8 41 29 cf 89 ca c1 c2 06 44 31 fa 01 c1 29 d0 89 d6 c1 c6 08 31 c6 01 ca 29 f1 89 f3 c1 c3 10 31 cb 01 d6 29 da <89> dd c1 c5 13 31 d5 01 f3 29 ee 01 eb c1 c5 04 31 f5 48 c1 e5 20
RSP: 0018:ffffc9000457f020 EFLAGS: 00000017
RAX: 00000000eac5aeec RBX: 00000000dafd423a RCX: 00000000f47c95d2
RDX: 000000005ea4af99 RSI: 00000000118a2054 RDI: dffffc0000000000
RBP: 0000000091a3e561 R08: dffffc0000000000 R09: fffffbfff1f7ae37
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000003
R13: ffff88807dbb4668 R14: 1ffff1100fb768cc R15: 000000007544d45d
FS: 00007ff3785206c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00b79b000 CR3: 000000004f1ea000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<TASK>
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
__raw_spin_lock_irq include/linux/spinlock_api_smp.h:128 [inline]
_raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170
rwsem_down_write_slowpath+0xad8/0x15c0 kernel/locking/rwsem.c:1161
__down_write_common kernel/locking/rwsem.c:1284 [inline]
__down_write kernel/locking/rwsem.c:1293 [inline]
down_write+0x164/0x170 kernel/locking/rwsem.c:1542
kernfs_add_one+0x53/0x640 fs/kernfs/dir.c:735
kernfs_create_dir_ns+0x1c0/0x230 fs/kernfs/dir.c:1003
sysfs_create_dir_ns+0x185/0x390 fs/sysfs/dir.c:59
create_dir lib/kobject.c:89 [inline]
kobject_add_internal+0x6e0/0xe00 lib/kobject.c:263
kobject_add_varg lib/kobject.c:398 [inline]
kobject_add+0x14e/0x210 lib/kobject.c:450
device_add+0x476/0xfd0 drivers/base/core.c:3329
netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2014
register_netdevice+0x1067/0x1700 net/core/dev.c:10331
register_netdev+0x37/0x50 net/core/dev.c:10455
loopback_net_init+0x6f/0x140 drivers/net/loopback.c:216
ops_init+0x356/0x600 net/core/net_namespace.c:135
setup_net+0x358/0x9e0 net/core/net_namespace.c:329
copy_net_ns+0x395/0x5d0 net/core/net_namespace.c:473
create_new_namespaces+0x425/0x7a0 kernel/nsproxy.c:110
unshare_nsproxy_namespaces+0x11e/0x170 kernel/nsproxy.c:226
ksys_unshare+0x580/0xb20 kernel/fork.c:3093
__do_sys_unshare kernel/fork.c:3167 [inline]
__se_sys_unshare kernel/fork.c:3165 [inline]
__x64_sys_unshare+0x34/0x40 kernel/fork.c:3165
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7ff3823a0ae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff3785200c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007ff3824c0120 RCX: 00007ff3823a0ae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000060000200
RBP: 00007ff3823ec47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007ff3824c0120 R15: 00007fffbb223388
</TASK>