syzbot


INFO: task hung in do_rmdir (3)

Status: auto-closed as invalid on 2021/06/01 08:24
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 605d, last: 530d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in do_rmdir 1 33d 33d 0/1 upstream: reported on 2022/07/13 04:55
android-49 INFO: task hung in do_rmdir 1 1555d 1555d 0/3 auto-closed as invalid on 2019/02/22 12:59
upstream INFO: task hung in do_rmdir (4) 1 189d 189d 0/23 auto-closed as invalid on 2022/05/08 10:41
upstream INFO: task hung in do_rmdir (2) 3 1313d 1447d 0/23 closed as dup on 2018/09/11 15:01
upstream INFO: task hung in do_rmdir 1 1602d 1602d 0/23 closed as invalid on 2018/03/27 11:14

Sample crash report:
INFO: task syz-executor.1:10141 blocked for more than 143 seconds.
      Not tainted 5.12.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:29648 pid:10141 ppid:  8420 flags:0x00000004
Call Trace:
 context_switch kernel/sched/core.c:4324 [inline]
 __schedule+0x90c/0x21a0 kernel/sched/core.c:5075
 schedule+0xcf/0x270 kernel/sched/core.c:5154
 rwsem_down_write_slowpath+0x7e5/0x1200 kernel/locking/rwsem.c:1106
 __down_write_common kernel/locking/rwsem.c:1261 [inline]
 __down_write_common kernel/locking/rwsem.c:1258 [inline]
 __down_write kernel/locking/rwsem.c:1270 [inline]
 down_write_nested+0x13b/0x150 kernel/locking/rwsem.c:1517
 inode_lock_nested include/linux/fs.h:810 [inline]
 do_rmdir+0x236/0x480 fs/namei.c:3949
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x465ef9
RSP: 002b:00007f82a9cbf188 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465ef9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00000000004bfa0c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008
R13: 00007fff9795719f R14: 00007f82a9cbf300 R15: 0000000000022000
INFO: task syz-executor.1:10143 blocked for more than 143 seconds.
      Not tainted 5.12.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:27784 pid:10143 ppid:  8420 flags:0x00000004
Call Trace:
 context_switch kernel/sched/core.c:4324 [inline]
 __schedule+0x90c/0x21a0 kernel/sched/core.c:5075
 schedule+0xcf/0x270 kernel/sched/core.c:5154
 rwsem_down_write_slowpath+0x7e5/0x1200 kernel/locking/rwsem.c:1106
 __down_write_common kernel/locking/rwsem.c:1261 [inline]
 __down_write_common kernel/locking/rwsem.c:1258 [inline]
 __down_write kernel/locking/rwsem.c:1270 [inline]
 down_write+0x137/0x150 kernel/locking/rwsem.c:1407
 inode_lock include/linux/fs.h:775 [inline]
 lock_mount+0x8a/0x2e0 fs/namespace.c:2216
 do_new_mount_fc fs/namespace.c:2846 [inline]
 do_new_mount fs/namespace.c:2905 [inline]
 path_mount+0x14d6/0x1f90 fs/namespace.c:3233
 do_mount fs/namespace.c:3246 [inline]
 __do_sys_mount fs/namespace.c:3454 [inline]
 __se_sys_mount fs/namespace.c:3431 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3431
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x465ef9
RSP: 002b:00007f82a9c9e188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 0000000000465ef9
RDX: 0000000020002100 RSI: 00000000200042c0 RDI: 0000000000000000
RBP: 00000000004bfa0c R08: 0000000020004300 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0b0
R13: 00007fff9795719f R14: 00007f82a9c9e300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1651:
 #0: ffffffff8bf74120 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6327
2 locks held by khugepaged/1660:
1 lock held by in:imklog/8095:
 #0: ffff888013610930 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:961
2 locks held by syz-executor.1/10136:
2 locks held by syz-executor.1/10141:
 #0: ffff888079334460 (sb_writers#17){.+.+}-{0:0}, at: do_rmdir+0x1e5/0x480 fs/namei.c:3945
 #1: ffff88807ba2c850 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff88807ba2c850 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: do_rmdir+0x236/0x480 fs/namei.c:3949
1 lock held by syz-executor.1/10143:
 #0: ffff88807ba2c850 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #0: ffff88807ba2c850 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: lock_mount+0x8a/0x2e0 fs/namespace.c:2216

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

NMI backtrace for cpu 0
CPU: 0 PID: 1651 Comm: khungtaskd Not tainted 5.12.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0xfa/0x151 lib/dump_stack.c:120
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xd48/0xfb0 kernel/hung_task.c:294
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted 5.12.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy10 ieee80211_iface_work
RIP: 0010:unwind_next_frame+0x49a/0x2000 arch/x86/kernel/unwind_orc.c:464
Code: 00 48 89 ce 83 e6 07 40 38 f2 40 0f 9e c6 84 d2 0f 95 c2 40 84 d6 0f 85 e6 12 00 00 83 e0 0f 3c 09 0f 87 74 0d 00 00 0f b6 d0 <ff> 24 d5 60 c5 68 89 48 89 cf 48 89 4c 24 18 e8 62 13 19 00 48 8b
RSP: 0018:ffffc90000ceecd8 EFLAGS: 00000093
RAX: 0000000000000004 RBX: 1ffff9200019dda3 RCX: ffffffff8e3d102d
RDX: 0000000000000004 RSI: 0000000000000001 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffff8e3d1028 R09: ffffffff8e3d102c
R10: 0000000000084087 R11: 000000000000a74e R12: ffffc90000ceee48
R13: ffffc90000ceee35 R14: ffffc90000ceee50 R15: ffffc90000ceee00
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0eb72e9118 CR3: 0000000075e90000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __unwind_start+0x51b/0x800 arch/x86/kernel/unwind_orc.c:699
 unwind_start arch/x86/include/asm/unwind.h:60 [inline]
 arch_stack_walk+0x5c/0xe0 arch/x86/kernel/stacktrace.c:24
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46
 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357
 ____kasan_slab_free mm/kasan/common.c:360 [inline]
 ____kasan_slab_free mm/kasan/common.c:325 [inline]
 __kasan_slab_free+0xc7/0x100 mm/kasan/common.c:367
 kasan_slab_free include/linux/kasan.h:199 [inline]
 __cache_free mm/slab.c:3440 [inline]
 kfree+0x104/0x2a0 mm/slab.c:3796
 ieee802_11_parse_elems_crc+0xac2/0xfe0 net/mac80211/util.c:1513
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2041 [inline]
 ieee80211_bss_info_update+0x4b4/0xb20 net/mac80211/scan.c:212
 ieee80211_rx_bss_info net/mac80211/ibss.c:1126 [inline]
 ieee80211_rx_mgmt_probe_beacon+0xccd/0x16b0 net/mac80211/ibss.c:1615
 ieee80211_ibss_rx_queued_mgmt+0xe43/0x1870 net/mac80211/ibss.c:1642
 ieee80211_iface_work+0x761/0x9e0 net/mac80211/iface.c:1439
 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (10):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/03/03 08:19 upstream 7a7fd0de4a98 e5b64d68 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce-smack-root 2021/03/03 05:52 upstream 7a7fd0de4a98 e5b64d68 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce-root 2021/03/03 05:18 upstream 7a7fd0de4a98 e5b64d68 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce 2021/03/03 02:32 upstream 7a7fd0de4a98 e5b64d68 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce-smack-root 2021/01/28 04:32 upstream 76c057c84d28 eefc07f2 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce-root 2021/01/28 04:26 upstream 76c057c84d28 eefc07f2 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce-selinux-root 2021/01/28 04:06 upstream 76c057c84d28 eefc07f2 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce-386 2021/03/03 04:59 upstream 7a7fd0de4a98 e5b64d68 .config log report info INFO: task hung in do_rmdir
ci-upstream-kasan-gce 2020/12/18 02:54 upstream d64c6f96ba86 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/18 00:32 upstream d64c6f96ba86 04201c06 .config log report info