syzbot


INFO: task hung in kernfs_remove_by_name_ns

Status: auto-obsoleted due to no activity on 2023/05/17 14:27
Subsystems: kernfs
[Documentation on labels]
First crash: 623d, last: 447d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in kernfs_remove_by_name_ns (2) kernfs usb C 2 11d 178d 0/26 upstream: reported C repro on 2023/11/12 10:32

Sample crash report:
INFO: task kworker/u4:0:8 blocked for more than 142 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:0    state:D stack:25848 pid:8     ppid:2      flags:0x00004000
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_write_slowpath+0x600/0x12e0 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write_common kernel/locking/rwsem.c:1302 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x1e8/0x220 kernel/locking/rwsem.c:1563
 kernfs_remove_by_name_ns+0x89/0x120 fs/kernfs/dir.c:1657
 kernfs_remove_by_name include/linux/kernfs.h:618 [inline]
 remove_files+0x96/0x1c0 fs/sysfs/group.c:28
 sysfs_remove_group+0x8b/0x170 fs/sysfs/group.c:288
 sysfs_remove_groups fs/sysfs/group.c:312 [inline]
 sysfs_remove_groups+0x60/0xa0 fs/sysfs/group.c:304
 device_remove_groups drivers/base/core.c:2580 [inline]
 device_remove_attrs+0x192/0x290 drivers/base/core.c:2755
 device_del+0x4ef/0xc80 drivers/base/core.c:3665
 unregister_netdevice_many_notify+0xdfe/0x19e0 net/core/dev.c:10869
 ip_tunnel_delete_nets+0x3a3/0x5c0 net/ipv4/ip_tunnel.c:1126
 ops_exit_list+0x125/0x170 net/core/net_namespace.c:174
 cleanup_net+0x4ee/0xb10 net/core/net_namespace.c:606
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x669/0x1090 kernel/workqueue.c:2436
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
INFO: task udevd:4426 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd           state:D stack:26144 pid:4426  ppid:1      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:458 [inline]
 inode_permission.part.0+0x3d6/0x670 fs/namei.c:525
 inode_permission fs/namei.c:506 [inline]
 may_lookup fs/namei.c:1715 [inline]
 link_path_walk.part.0+0x81e/0xdf0 fs/namei.c:2262
 link_path_walk fs/namei.c:2244 [inline]
 path_lookupat+0xb7/0x840 fs/namei.c:2473
 filename_lookup+0x1d2/0x590 fs/namei.c:2503
 vfs_statx+0x14c/0x430 fs/stat.c:232
 vfs_fstatat+0x90/0xb0 fs/stat.c:270
 __do_sys_newfstatat+0x94/0x120 fs/stat.c:440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb6bf3251da
RSP: 002b:00007ffeda0746d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 0000556e66349280 RCX: 00007fb6bf3251da
RDX: 00007ffeda0746e8 RSI: 00007ffeda074b78 RDI: 00000000ffffff9c
RBP: 00007ffeda074778 R08: 0000000000000000 R09: 0000556e663361c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeda074b78
R13: 00007ffeda0746e8 R14: 0000556e6630b2c0 R15: 0000000000000000
 </TASK>
INFO: task syz-executor.0:5091 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:22672 pid:5091  ppid:1      flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_write_slowpath+0x600/0x12e0 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write_common kernel/locking/rwsem.c:1302 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x1e8/0x220 kernel/locking/rwsem.c:1563
 kernfs_remove_by_name_ns+0x89/0x120 fs/kernfs/dir.c:1657
 kernfs_remove_by_name include/linux/kernfs.h:618 [inline]
 remove_files+0x96/0x1c0 fs/sysfs/group.c:28
 sysfs_remove_group+0x8b/0x170 fs/sysfs/group.c:288
 sysfs_remove_groups fs/sysfs/group.c:312 [inline]
 sysfs_remove_groups+0x60/0xa0 fs/sysfs/group.c:304
 __kobject_del+0x89/0x1f0 lib/kobject.c:579
 kobject_del lib/kobject.c:611 [inline]
 kobject_del+0x40/0x60 lib/kobject.c:603
 ext4_put_super+0x7a/0x1170 fs/ext4/super.c:1205
 generic_shutdown_super+0x158/0x410 fs/super.c:492
 kill_block_super+0x9b/0xf0 fs/super.c:1386
 deactivate_locked_super+0x98/0x160 fs/super.c:332
 deactivate_super+0xb1/0xd0 fs/super.c:363
 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff51d68d567
RSP: 002b:00007ffff8a24858 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007ff51d68d567
RDX: 00007ffff8a2492a RSI: 000000000000000a RDI: 00007ffff8a24920
RBP: 00007ffff8a24920 R08: 00000000ffffffff R09: 00007ffff8a246f0
R10: 000055555734b8b3 R11: 0000000000000246 R12: 00007ff51d6e6b24
R13: 00007ffff8a259e0 R14: 000055555734b810 R15: 00007ffff8a25a20
 </TASK>
INFO: task syz-executor.1:5093 blocked for more than 144 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:24280 pid:5093  ppid:1      flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:458 [inline]
 inode_permission.part.0+0x3d6/0x670 fs/namei.c:525
 inode_permission fs/namei.c:506 [inline]
 may_lookup fs/namei.c:1715 [inline]
 link_path_walk.part.0+0x81e/0xdf0 fs/namei.c:2262
 link_path_walk fs/namei.c:2245 [inline]
 path_openat+0x25c/0x2a50 fs/namei.c:3710
 do_filp_open+0x1ba/0x410 fs/namei.c:3741
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x143/0x1f0 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f630dc8bc68
RSP: 002b:00007ffec93b1b50 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000068 RCX: 00007f630dc8bc68
RDX: 0000000000090800 RSI: 00007f630dce6bc8 RDI: 00000000ffffff9c
RBP: 00007ffec93b1c1c R08: 0000000000090800 R09: 00007f630dce6bc8
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 0000000000041250 R14: 000000000000001e R15: 00007ffec93b1c80
 </TASK>
INFO: task syz-executor.2:5100 blocked for more than 144 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:24056 pid:5100  ppid:1      flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:458 [inline]
 inode_permission.part.0+0x3d6/0x670 fs/namei.c:525
 inode_permission fs/namei.c:506 [inline]
 may_lookup fs/namei.c:1715 [inline]
 link_path_walk.part.0+0x81e/0xdf0 fs/namei.c:2262
 link_path_walk fs/namei.c:2245 [inline]
 path_openat+0x25c/0x2a50 fs/namei.c:3710
 do_filp_open+0x1ba/0x410 fs/namei.c:3741
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x143/0x1f0 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f75fc28bc68
RSP: 002b:00007ffc00180370 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000000000000007d RCX: 00007f75fc28bc68
RDX: 0000000000090800 RSI: 00007f75fc2e6bc8 RDI: 00000000ffffff9c
RBP: 00007ffc0018043c R08: 0000000000090800 R09: 00007f75fc2e6bc8
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 0000000000040f39 R14: 000000000000000b R15: 00007ffc001804a0
 </TASK>
INFO: task syz-executor.3:5102 blocked for more than 145 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:24456 pid:5102  ppid:1      flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:458 [inline]
 inode_permission.part.0+0x3d6/0x670 fs/namei.c:525
 inode_permission fs/namei.c:506 [inline]
 may_lookup fs/namei.c:1715 [inline]
 link_path_walk.part.0+0x81e/0xdf0 fs/namei.c:2262
 link_path_walk fs/namei.c:2245 [inline]
 path_openat+0x25c/0x2a50 fs/namei.c:3710
 do_filp_open+0x1ba/0x410 fs/namei.c:3741
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x143/0x1f0 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa49a28bc68
RSP: 002b:00007fff236271b0 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000075 RCX: 00007fa49a28bc68
RDX: 0000000000090800 RSI: 00007fa49a2e6bc8 RDI: 00000000ffffff9c
RBP: 00007fff2362727c R08: 0000000000090800 R09: 00007fa49a2e6bc8
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 0000000000040f58 R14: 000000000000000b R15: 00007fff236272e0
 </TASK>
INFO: task syz-executor.4:5104 blocked for more than 146 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:24208 pid:5104  ppid:1      flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:458 [inline]
 inode_permission.part.0+0x3d6/0x670 fs/namei.c:525
 inode_permission fs/namei.c:506 [inline]
 may_lookup fs/namei.c:1715 [inline]
 link_path_walk.part.0+0x81e/0xdf0 fs/namei.c:2262
 link_path_walk fs/namei.c:2245 [inline]
 path_openat+0x25c/0x2a50 fs/namei.c:3710
 do_filp_open+0x1ba/0x410 fs/namei.c:3741
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x143/0x1f0 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbed368bc68
RSP: 002b:00007ffd8adb00b0 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000000000000004f RCX: 00007fbed368bc68
RDX: 0000000000090800 RSI: 00007fbed36e6bc8 RDI: 00000000ffffff9c
RBP: 00007ffd8adb017c R08: 0000000000090800 R09: 00007fbed36e6bc8
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 0000000000040f6f R14: 000000000000000b R15: 00007ffd8adb01e0
 </TASK>
INFO: task syz-executor.5:5105 blocked for more than 146 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:24736 pid:5105  ppid:1      flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:458 [inline]
 inode_permission.part.0+0x3d6/0x670 fs/namei.c:525
 inode_permission fs/namei.c:506 [inline]
 may_lookup fs/namei.c:1715 [inline]
 link_path_walk.part.0+0x81e/0xdf0 fs/namei.c:2262
 link_path_walk fs/namei.c:2245 [inline]
 path_openat+0x25c/0x2a50 fs/namei.c:3710
 do_filp_open+0x1ba/0x410 fs/namei.c:3741
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x143/0x1f0 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb76a88bc68
RSP: 002b:00007ffdc18d57f0 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000000000000006c RCX: 00007fb76a88bc68
RDX: 0000000000090800 RSI: 00007fb76a8e6bc8 RDI: 00000000ffffff9c
RBP: 00007ffdc18d58bc R08: 0000000000090800 R09: 00007fb76a8e6bc8
R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000
R13: 0000000000040fd5 R14: 000000000000000b R15: 00007ffdc18d5920
 </TASK>
INFO: task udevd:5710 blocked for more than 147 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd           state:D stack:26488 pid:5710  ppid:4426   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_dop_revalidate+0xf0/0x5b0 fs/kernfs/dir.c:1130
 d_revalidate fs/namei.c:856 [inline]
 d_revalidate fs/namei.c:853 [inline]
 lookup_fast+0x22d/0x520 fs/namei.c:1646
 walk_component+0x5e/0x5a0 fs/namei.c:1989
 link_path_walk.part.0+0x730/0xdf0 fs/namei.c:2320
 link_path_walk fs/namei.c:2245 [inline]
 path_openat+0x25c/0x2a50 fs/namei.c:3710
 do_filp_open+0x1ba/0x410 fs/namei.c:3741
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x143/0x1f0 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb6bf325697
RSP: 002b:00007ffeda06c460 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000556e66341110 RCX: 00007fb6bf325697
RDX: 0000000000080000 RSI: 00007ffeda06c598 RDI: 00000000ffffff9c
RBP: 00007ffeda06c598 R08: 0000000000000008 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000
R13: 0000556e66341110 R14: 0000000000000001 R15: 0000556e65129160
 </TASK>
INFO: task modprobe:6071 blocked for more than 147 seconds.
      Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:modprobe        state:D stack:26632 pid:6071  ppid:5521   flags:0x00000000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xbdd/0x54f0 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 rwsem_down_read_slowpath+0x5a7/0xb20 kernel/locking/rwsem.c:1095
 __down_read_common kernel/locking/rwsem.c:1260 [inline]
 __down_read kernel/locking/rwsem.c:1269 [inline]
 down_read+0xe6/0x450 kernel/locking/rwsem.c:1511
 kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
 do_inode_permission fs/namei.c:458 [inline]
 inode_permission.part.0+0x3d6/0x670 fs/namei.c:525
 inode_permission fs/namei.c:506 [inline]
 may_lookup fs/namei.c:1715 [inline]
 link_path_walk.part.0+0x81e/0xdf0 fs/namei.c:2262
 link_path_walk fs/namei.c:2244 [inline]
 path_lookupat+0xb7/0x840 fs/namei.c:2473
 filename_lookup+0x1d2/0x590 fs/namei.c:2503
 user_path_at_empty+0x46/0x60 fs/namei.c:2876
 user_path_at include/linux/namei.h:57 [inline]
 user_statfs+0x8a/0x170 fs/statfs.c:103
 __do_sys_statfs+0x7a/0xf0 fs/statfs.c:195
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb26ef462a7
RSP: 002b:00007ffefea8e938 EFLAGS: 00000246 ORIG_RAX: 0000000000000089
RAX: ffffffffffffffda RBX: 00007fb26ee434f8 RCX: 00007fb26ef462a7
RDX: 00007fb26ee4517c RSI: 00007ffefea8e9c0 RDI: 00007fb26ee3b723
RBP: 00007fb26ee3b723 R08: 0000000000007fff R09: 0000000000000000
R10: 00007ffefea8e9d0 R11: 0000000000000246 R12: 00007ffefea8e9c0
R13: 00007ffefea8eb50 R14: 00007fb26ee434f8 R15: 0000000000000000
 </TASK>

Showing all locks held in the system:
5 locks held by kworker/u4:0/8:
 #0: ffff8880127ed138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff8880127ed138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff8880127ed138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff8880127ed138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
 #0: ffff8880127ed138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
 #0: ffff8880127ed138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
 #1: ffffc900002efda8 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
 #2: ffffffff8e0de210 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9f/0xb10 net/core/net_namespace.c:568
 #3: ffffffff8e0f1c28 (rtnl_mutex){+.+.}-{3:3}, at: ip_tunnel_delete_nets+0x92/0x5c0 net/ipv4/ip_tunnel.c:1121
 #4: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove_by_name_ns+0x89/0x120 fs/kernfs/dir.c:1657
1 lock held by rcu_tasks_kthre/11:
 #0: ffffffff8c78e790 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/12:
 #0: ffffffff8c78e490 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/27:
 #0: ffffffff8c78f2e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494
2 locks held by kworker/u4:3/45:
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
 #1: ffffc90000d6fda8 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
3 locks held by kworker/0:3/1119:
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
 #1: ffffc90005ddfda8 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
 #2: ffffffff8e0f1c28 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4629
1 lock held by udevd/4426:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
2 locks held by getty/4746:
 #0: ffff88814b0e0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc900020482f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177
2 locks held by syz-executor.0/5091:
 #0: ffff888036d640e0 (&type->s_umount_key#50){++++}-{3:3}, at: deactivate_super+0xa9/0xd0 fs/super.c:362
 #1: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove_by_name_ns+0x89/0x120 fs/kernfs/dir.c:1657
1 lock held by syz-executor.1/5093:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
1 lock held by syz-executor.2/5100:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
1 lock held by syz-executor.3/5102:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
1 lock held by syz-executor.4/5104:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
1 lock held by syz-executor.5/5105:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
3 locks held by kworker/1:7/5172:
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
 #0: ffff888027bd5138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
 #1: ffffc90004b47da8 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
 #2: ffffffff8e0f1c28 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4629
2 locks held by kworker/u4:15/5521:
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
 #0: ffff888012477138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260
 #1: ffffc90004ccfda8 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264
1 lock held by udevd/5710:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_dop_revalidate+0xf0/0x5b0 fs/kernfs/dir.c:1130
1 lock held by syz-executor.3/6056:
1 lock held by syz-executor.2/6055:
2 locks held by syz-executor.4/6057:
3 locks held by syz-executor.5/6068:
 #0: ffff88801f98a368 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_global_lock_killable drivers/block/loop.c:120 [inline]
 #0: ffff88801f98a368 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_configure+0x2f7/0x19e0 drivers/block/loop.c:1026
 #1: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_add_one+0xa7/0x4f0 fs/kernfs/dir.c:754
 #2: ffff8881401ca108 (&sem->wait_lock){....}-{2:2}, at: rwsem_down_write_slowpath+0x657/0x12e0 kernel/locking/rwsem.c:1194
1 lock held by modprobe/6071:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288
1 lock held by modprobe/6074:
 #0: ffff8881401ca148 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_iop_permission+0xbc/0x120 fs/kernfs/inode.c:288

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x333/0x3c0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xc75/0xfc0 kernel/hung_task.c:377
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6068 Comm: syz-executor.5 Not tainted 6.2.0-rc8-syzkaller-00027-g033c40a89f55 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:kasan_check_range+0x1a/0x190 mm/kasan/generic.c:188
Code: c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 66 0f 1f 00 48 85 f6 0f 84 3c 01 00 00 49 89 f9 41 54 44 0f b6 c2 49 01 f1 55 <53> 0f 82 18 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 c7 0f 86
RSP: 0018:ffffc90004ab7470 EFLAGS: 00000092
RAX: 0000000000000001 RBX: 1ffff92000956e98 RCX: ffffffff81623fee
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9139dac8
RBP: 0000000000000040 R08: 0000000000000000 R09: ffffffff9139dad0
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888042abaae0
R13: 0000000000000006 R14: 0000000000000073 R15: ffff888042abab00
FS:  00007fb76b5fc700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c004f89588 CR3: 000000007c8c6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:227 [inline]
 mark_lock.part.0+0xee/0x1910 kernel/locking/lockdep.c:4612
 mark_lock kernel/locking/lockdep.c:4598 [inline]
 mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:4236
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4262 [inline]
 lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4321 [inline]
 lockdep_hardirqs_on_prepare+0x28f/0x410 kernel/locking/lockdep.c:4273
 trace_hardirqs_on+0x31/0x180 kernel/trace/trace_preemptirq.c:49
 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline]
 _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202
 rwsem_down_write_slowpath+0x5af/0x12e0 kernel/locking/rwsem.c:1166
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write_common kernel/locking/rwsem.c:1302 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x1e8/0x220 kernel/locking/rwsem.c:1563
 kernfs_add_one+0xa7/0x4f0 fs/kernfs/dir.c:754
 __kernfs_create_file+0x2a0/0x350 fs/kernfs/file.c:1076
 sysfs_add_file_mode_ns+0x213/0x3f0 fs/sysfs/file.c:294
 create_files fs/sysfs/group.c:64 [inline]
 internal_create_group+0x322/0xb10 fs/sysfs/group.c:148
 loop_sysfs_init drivers/block/loop.c:746 [inline]
 loop_configure+0xf33/0x19e0 drivers/block/loop.c:1097
 lo_ioctl+0x936/0x1990 drivers/block/loop.c:1550
 blkdev_ioctl+0x375/0x800 block/ioctl.c:616
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb76a88bee7
Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 c4 57 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 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:00007fb76b5fbf38 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fb76a88bee7
RDX: 0000000000000005 RSI: 0000000000004c00 RDI: 0000000000000006
RBP: 0000000000000006 R08: 0000000000000000 R09: 00000000000004a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb76b5fbfdc R14: 00007fb76b5fbfe0 R15: 0000000020000a42
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/16 14:16 upstream 033c40a89f55 7338e3c4 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in kernfs_remove_by_name_ns
2023/02/01 17:34 upstream c0b67534c95c 9dfcf09c .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in kernfs_remove_by_name_ns
2022/12/06 21:42 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in kernfs_remove_by_name_ns
2022/11/17 19:33 upstream 81ac25651a62 4ba8ab94 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in kernfs_remove_by_name_ns
2022/11/13 05:14 upstream fef7fd48922d 3ead01ad .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in kernfs_remove_by_name_ns
2022/08/23 23:49 upstream df0219d11b6f cea8b0f7 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in kernfs_remove_by_name_ns
2023/01/13 15:58 linux-next 0a093b2893c7 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in kernfs_remove_by_name_ns
* Struck through repros no longer work on HEAD.