syzbot


INFO: task hung in do_rmdir (2)

Status: closed as dup on 2018/09/11 15:01
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+4d57431c6c3bc76f28b4@syzkaller.appspotmail.com
First crash: 2061d, last: 1926d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: task hung in generic_file_write_iter fs mm 7 1964d 2102d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in do_rmdir (5) ext4 nilfs 5 462d 629d 0/26 auto-obsoleted due to no activity on 2023/04/25 17:21
upstream INFO: task hung in do_rmdir (3) fs 10 1143d 1218d 0/26 auto-closed as invalid on 2021/06/01 08:24
linux-4.19 INFO: task hung in do_rmdir 1 646d 646d 0/1 auto-obsoleted due to no activity on 2022/11/10 04:55
android-49 INFO: task hung in do_rmdir 1 2169d 2169d 0/3 auto-closed as invalid on 2019/02/22 12:59
upstream INFO: task hung in do_rmdir (4) fs 1 802d 802d 0/26 auto-closed as invalid on 2022/05/08 10:41
upstream INFO: task hung in do_rmdir fs 1 2215d 2215d 0/26 closed as invalid on 2018/03/27 11:14

Sample crash report:
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
INFO: task syz-executor5:27697 blocked for more than 140 seconds.
      Not tainted 5.0.0-rc1+ #17
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor5   D28152 27697   7953 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2831 [inline]
 __schedule+0x897/0x1e60 kernel/sched/core.c:3472
 schedule+0xfe/0x350 kernel/sched/core.c:3516
 __rwsem_down_write_failed_common+0xa4d/0x1620 kernel/locking/rwsem-xadd.c:577
 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606
 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write_nested+0xa9/0x130 kernel/locking/rwsem.c:195
 inode_lock_nested include/linux/fs.h:792 [inline]
 do_rmdir+0x305/0x580 fs/namei.c:3928
 __do_sys_rmdir fs/namei.c:3958 [inline]
 __se_sys_rmdir fs/namei.c:3956 [inline]
 __x64_sys_rmdir+0x36/0x40 fs/namei.c:3956
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457ec9
Code: Bad RIP value.
RSP: 002b:00007fb4feb87c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000457ec9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000680
RBP: 000000000073c040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb4feb886d4
R13: 00000000004c4abb R14: 00000000004d8218 R15: 00000000ffffffff

Showing all locks held in the system:
1 lock held by khungtaskd/1040:
 #0: 0000000031e09e16 (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4389
1 lock held by rsyslogd/7813:
 #0: 00000000be2c0b93 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795
2 locks held by getty/7903:
 #0: 00000000e3130ee4 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 000000008412111e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7904:
 #0: 0000000025a26d37 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 000000003d871626 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7905:
 #0: 00000000d4f422ef (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000f6f6b3c9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7906:
 #0: 000000005ae53040 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000515233da (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7907:
 #0: 000000007d701d5c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000f24521d1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7908:
 #0: 0000000061ac7685 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000848e3994 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7909:
 #0: 000000003e467e18 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000620e7f55 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
4 locks held by syz-executor5/27620:
2 locks held by syz-executor5/27697:
 #0: 00000000f6316d8e (sb_writers#18){.+.+}, at: sb_start_write include/linux/fs.h:1602 [inline]
 #0: 00000000f6316d8e (sb_writers#18){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:357
 #1: 000000000055b3ff (&sb->s_type->i_mutex_key#25/1){+.+.}, at: inode_lock_nested include/linux/fs.h:792 [inline]
 #1: 000000000055b3ff (&sb->s_type->i_mutex_key#25/1){+.+.}, at: do_rmdir+0x305/0x580 fs/namei.c:3928

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

NMI backtrace for cpu 0
CPU: 0 PID: 1040 Comm: khungtaskd Not tainted 5.0.0-rc1+ #17
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1db/0x2d0 lib/dump_stack.c:113
 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1be/0x236 lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0xbbb/0x1170 kernel/hung_task.c:287
 kthread+0x357/0x430 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 27620 Comm: syz-executor5 Not tainted 5.0.0-rc1+ #17
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:grow_dev_page fs/buffer.c:953 [inline]
RIP: 0010:grow_buffers fs/buffer.c:1016 [inline]
RIP: 0010:__getblk_slow fs/buffer.c:1043 [inline]
RIP: 0010:__getblk_gfp+0x590/0xd20 fs/buffer.c:1320
Code: 48 c1 e8 03 42 80 3c 38 00 0f 85 d8 06 00 00 4d 8b 66 28 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 42 80 3c 38 00 0f 85 b3 06 00 00 <4d> 8b 64 24 20 44 8b ad c4 fe ff ff 4c 89 e7 4c 89 ee e8 09 fd 9e
RSP: 0018:ffff8880927d7628 EFLAGS: 00000246
RAX: 1ffff1100788ec04 RBX: 0000000000000003 RCX: ffffc9000fe43000
RDX: 0000000000040000 RSI: ffffffff81e2fadf RDI: ffff88803c476020
RBP: ffff8880927d77c0 R08: ffff8880a0b9a680 R09: 0000000000000004
R10: 0000000000000000 R11: ffff8880ae72dc7b R12: ffff88803c476000
R13: ffffea00017759c8 R14: ffffea0002621840 R15: dffffc0000000000
FS:  00007fb4febca700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6626e70000 CR3: 000000009b6f4000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __bread_gfp+0x2f/0x300 fs/buffer.c:1354
 sb_bread include/linux/buffer_head.h:307 [inline]
 fat__get_entry+0x586/0xa40 fs/fat/dir.c:101
 fat_get_entry fs/fat/dir.c:129 [inline]
 fat_search_long+0x345/0x17d0 fs/fat/dir.c:479
 vfat_find+0x10e/0x140 fs/fat/namei_vfat.c:697
 vfat_lookup+0x10a/0x6b0 fs/fat/namei_vfat.c:711
 __lookup_hash+0x122/0x190 fs/namei.c:1546
 do_rmdir+0x328/0x580 fs/namei.c:3929
 __do_sys_rmdir fs/namei.c:3958 [inline]
 __se_sys_rmdir fs/namei.c:3956 [inline]
 __x64_sys_rmdir+0x36/0x40 fs/namei.c:3956
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457ec9
Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fb4febc9c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000457ec9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000680
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb4febca6d4
R13: 00000000004c4abb R14: 00000000004d8218 R15: 00000000ffffffff

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/10 04:23 upstream 4064e47c8281 45c0c1b1 .config console log report ci-upstream-kasan-gce-root
2018/12/14 12:46 upstream 65e08c5e8631 7624ddd6 .config console log report ci-upstream-kasan-gce-root
2018/08/28 05:20 upstream 050cdc6c9501 7ef1de9e .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.