syzbot


INFO: task hung in do_rmdir (5)

Status: auto-obsoleted due to no activity on 2023/04/25 17:21
Subsystems: ext4 nilfs
[Documentation on labels]
First crash: 642d, last: 476d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in do_rmdir (3) fs 10 1157d 1232d 0/26 auto-closed as invalid on 2021/06/01 08:24
linux-4.19 INFO: task hung in do_rmdir 1 660d 660d 0/1 auto-obsoleted due to no activity on 2022/11/10 04:55
android-49 INFO: task hung in do_rmdir 1 2182d 2182d 0/3 auto-closed as invalid on 2019/02/22 12:59
upstream INFO: task hung in do_rmdir (4) fs 1 815d 815d 0/26 auto-closed as invalid on 2022/05/08 10:41
upstream INFO: task hung in do_rmdir (2) exfat 3 1940d 2074d 0/26 closed as dup on 2018/09/11 15:01
upstream INFO: task hung in do_rmdir fs 1 2228d 2228d 0/26 closed as invalid on 2018/03/27 11:14

Sample crash report:
INFO: task syz-executor.4:16510 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc3-syzkaller-00030-ge8f60cd7db24 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:24848 pid:16510 ppid:5108   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x995/0xe20 kernel/sched/core.c:6555
 schedule+0xcb/0x190 kernel/sched/core.c:6631
 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write_nested+0x23f/0x280 kernel/locking/rwsem.c:1673
 inode_lock_nested include/linux/fs.h:791 [inline]
 do_rmdir+0x257/0x5f0 fs/namei.c:4169
 __do_sys_rmdir fs/namei.c:4201 [inline]
 __se_sys_rmdir fs/namei.c:4199 [inline]
 __x64_sys_rmdir+0x45/0x50 fs/namei.c:4199
 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+0x63/0xcd
RIP: 0033:0x7f028c28c0c9
RSP: 002b:00007f028cf91168 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007f028c3ac050 RCX: 00007f028c28c0c9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240
RBP: 00007f028c2e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd86cdbbbf R14: 00007f028cf91300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.4:16512 blocked for more than 144 seconds.
      Not tainted 6.2.0-rc3-syzkaller-00030-ge8f60cd7db24 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:24664 pid:16512 ppid:5108   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x995/0xe20 kernel/sched/core.c:6555
 schedule+0xcb/0x190 kernel/sched/core.c:6631
 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x231/0x270 kernel/locking/rwsem.c:1563
 inode_lock include/linux/fs.h:756 [inline]
 open_last_lookups fs/namei.c:3478 [inline]
 path_openat+0x7b9/0x2dd0 fs/namei.c:3711
 do_filp_open+0x264/0x4f0 fs/namei.c:3741
 do_sys_openat2+0x124/0x4e0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_open fs/open.c:1334 [inline]
 __se_sys_open fs/open.c:1330 [inline]
 __x64_sys_open+0x221/0x270 fs/open.c:1330
 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+0x63/0xcd
RIP: 0033:0x7f028c28c0c9
RSP: 002b:00007f028cf70168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f028c3ac120 RCX: 00007f028c28c0c9
RDX: 0000000000000000 RSI: 000000000014d27e RDI: 0000000020000180
RBP: 00007f028c2e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd86cdbbbf R14: 00007f028cf70300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.4:16515 blocked for more than 145 seconds.
      Not tainted 6.2.0-rc3-syzkaller-00030-ge8f60cd7db24 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:23880 pid:16515 ppid:5108   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x995/0xe20 kernel/sched/core.c:6555
 schedule+0xcb/0x190 kernel/sched/core.c:6631
 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x231/0x270 kernel/locking/rwsem.c:1563
 inode_lock include/linux/fs.h:756 [inline]
 open_last_lookups fs/namei.c:3478 [inline]
 path_openat+0x7b9/0x2dd0 fs/namei.c:3711
 do_filp_open+0x264/0x4f0 fs/namei.c:3741
 do_sys_openat2+0x124/0x4e0 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+0x243/0x290 fs/open.c:1337
 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+0x63/0xcd
RIP: 0033:0x7f028c28c0c9
RSP: 002b:00007f028cf4f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f028c3ac1f0 RCX: 00007f028c28c0c9
RDX: 0000000000000241 RSI: 0000000020000000 RDI: ffffffffffffff9c
RBP: 00007f028c2e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd86cdbbbf R14: 00007f028cf4f300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u4:1/11:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d326f50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d327750 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
 #0: ffffffff8d326d80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4745:
 #0: ffff888028543098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177
2 locks held by syz-executor.5/5103:
 #0: ffff8880315680e0 (&type->s_umount_key#104){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362
 #1: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #1: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946
2 locks held by kworker/1:12/5568:
 #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
 #1: ffffc90006bcfd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
7 locks held by syz-executor.4/16497:
2 locks held by syz-executor.4/16510:
 #0: ffff88807d734460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline]
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: do_rmdir+0x257/0x5f0 fs/namei.c:4169
2 locks held by syz-executor.4/16512:
 #0: ffff88807d734460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline]
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: path_openat+0x7b9/0x2dd0 fs/namei.c:3711
2 locks held by syz-executor.4/16515:
 #0: ffff88807d734460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline]
 #1: ffff8880733ca2b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: path_openat+0x7b9/0x2dd0 fs/namei.c:3711
1 lock held by segctord/16506:
 #0: ffff8880796572a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357
7 locks held by syz-executor.3/16637:
2 locks held by syz-executor.3/16644:
 #0: ffff888024cae460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline]
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: do_rmdir+0x257/0x5f0 fs/namei.c:4169
2 locks held by syz-executor.3/16646:
 #0: ffff888024cae460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline]
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: path_openat+0x7b9/0x2dd0 fs/namei.c:3711
2 locks held by syz-executor.3/16647:
 #0: ffff888024cae460 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline]
 #1: ffff8880733cc920 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: path_openat+0x7b9/0x2dd0 fs/namei.c:3711
1 lock held by segctord/16640:
 #0: ffff88802bc7e2a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357
2 locks held by syz-executor.0/18098:
4 locks held by syz-executor.2/18104:
 #0: ffff88802c124460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 fs/namespace.c:552
 #1: ffff888077cf5440 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff888077cf5440 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_fileattr_set+0x135/0xd20 fs/ioctl.c:681
 #2: ffff88802c126b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_ind_migrate+0x262/0x730 fs/ext4/migrate.c:624
 #3: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #3: ffffffff8d32c3f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946
2 locks held by syz-executor.2/18110:
 #0: ffff88802c124460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
 #1: ffff888077cf5440 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff888077cf5440 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: process_measurement+0x411/0x1bc0 security/integrity/ima/ima_main.c:241
2 locks held by syz-executor.3/18114:
1 lock held by syz-executor.1/18116:

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc3-syzkaller-00030-ge8f60cd7db24 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ba/0x420 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+0xcd5/0xd20 kernel/hung_task.c:377
 kthread+0x266/0x300 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: 9 Comm: kworker/u4:0 Not tainted 6.2.0-rc3-syzkaller-00030-ge8f60cd7db24 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: phy8 ieee80211_iface_work
RIP: 0010:__sanitizer_cov_trace_switch+0x42/0x100
Code: 00 00 00 b9 8b 00 00 00 0f a3 c1 0f 83 c8 00 00 00 4c 8b 16 4d 85 d2 0f 84 bc 00 00 00 4c 8b 04 c5 78 9b f2 8a 4c 8b 4c 24 18 <65> 4c 8b 1c 25 40 98 03 00 31 d2 eb 0d 90 48 ff c2 49 39 d2 0f 84
RSP: 0018:ffffc900000e7000 EFLAGS: 00000206
RAX: 0000000000000000 RBX: ffff8880303c8800 RCX: 000000000000008b
RDX: 0000000000000000 RSI: ffffffff8e7246d0 RDI: 0000000000000032
RBP: ffffc900000e73f0 R08: 0000000000000001 R09: ffffffff8a3b1a7a
R10: 000000000000002b R11: 1ffff9200001ce68 R12: 0000000000000032
R13: ffffc900000e77c0 R14: ffff8880303c888e R15: 0000000000000006
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2687d71000 CR3: 0000000048528000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 _ieee802_11_parse_elems_full+0x99a/0x3bd0 net/mac80211/util.c:1121
 ieee802_11_parse_elems_full+0xe0d/0x2400 net/mac80211/util.c:1674
 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2260 [inline]
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2267 [inline]
 ieee80211_bss_info_update+0x930/0x1020 net/mac80211/scan.c:212
 ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x1945/0x2c40 net/mac80211/ibss.c:1638
 ieee80211_iface_process_skb net/mac80211/iface.c:1581 [inline]
 ieee80211_iface_work+0x773/0xcf0 net/mac80211/iface.c:1635
 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/13 00:45 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in do_rmdir
2022/12/28 16:01 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in do_rmdir
2022/10/09 13:56 upstream a6afa4199d3d aea5da89 .config console log report info [disk image] [vmlinux] ci2-upstream-fs INFO: task hung in do_rmdir
2022/09/11 18:08 upstream b96fbd602d35 356d8217 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in do_rmdir
2022/07/30 13:52 upstream e65c6a46df94 fef302b1 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in do_rmdir
* Struck through repros no longer work on HEAD.