syzbot


INFO: task hung in __writeback_inodes_sb_nr

Status: closed as dup on 2018/09/08 15:33
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+c67f5f31321f9fd5885e@syzkaller.appspotmail.com
First crash: 2192d, last: 1929d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: task hung in __blkdev_get (2) udf 11 1934d 2058d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in __writeback_inodes_sb_nr 26 2026d 2169d 0/3 auto-closed as invalid on 2019/04/08 13:33
android-414 INFO: task hung in __writeback_inodes_sb_nr 1 1964d 1840d 0/1 auto-closed as invalid on 2019/06/09 16:55
upstream INFO: task hung in __writeback_inodes_sb_nr (5) ext4 C done 48 434d 805d 22/26 fixed on 2023/02/24 13:50
linux-5.15 INFO: task hung in __writeback_inodes_sb_nr origin:lts-only C done 1496 6d13h 415d 0/3 upstream: reported C repro on 2023/03/09 17:32
linux-6.1 INFO: task hung in __writeback_inodes_sb_nr (2) 4 11d 119d 0/3 upstream: reported on 2023/12/30 04:30
linux-4.19 INFO: task hung in __writeback_inodes_sb_nr ext4 4 429d 576d 0/1 upstream: reported on 2022/09/28 21:19
linux-6.1 INFO: task hung in __writeback_inodes_sb_nr 1 253d 253d 0/3 auto-obsoleted due to no activity on 2023/11/26 06:37
upstream INFO: task hung in __writeback_inodes_sb_nr (6) ext4 C done 78 106d 315d 1/26 upstream: reported C repro on 2023/06/17 00:33
upstream INFO: task hung in __writeback_inodes_sb_nr (4) ext4 4 813d 867d 0/26 closed as invalid on 2022/02/08 10:10
upstream INFO: task hung in __writeback_inodes_sb_nr (3) ext4 2 1079d 1177d 0/26 auto-closed as invalid on 2021/08/11 17:49
linux-4.14 INFO: task hung in __writeback_inodes_sb_nr (2) 2 545d 546d 0/1 auto-obsoleted due to no activity on 2023/02/27 15:30
upstream INFO: task hung in __writeback_inodes_sb_nr (2) ext4 1 1361d 1361d 0/26 auto-closed as invalid on 2020/11/03 06:13
linux-4.14 INFO: task hung in __writeback_inodes_sb_nr 1 1427d 1427d 0/1 auto-closed as invalid on 2020/09/27 19:31

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-executor0:15167 blocked for more than 140 seconds.
      Not tainted 5.0.0-rc1+ #21
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0   D25160 15167   8000 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2831 [inline]
 __schedule+0x897/0x1e60 kernel/sched/core.c:3472
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
 schedule+0xfe/0x350 kernel/sched/core.c:3516
 wb_wait_for_completion+0x1e0/0x2d0 fs/fs-writeback.c:221
 __writeback_inodes_sb_nr+0x417/0x590 fs/fs-writeback.c:2333
 writeback_inodes_sb_nr fs/fs-writeback.c:2350 [inline]
 writeback_inodes_sb+0x28/0x30 fs/fs-writeback.c:2365
 __sync_filesystem fs/sync.c:36 [inline]
 sync_filesystem+0x16e/0x340 fs/sync.c:64
 fsync_bdev+0x96/0xd0 fs/block_dev.c:494
 blkdev_flushbuf block/ioctl.c:436 [inline]
 blkdev_ioctl+0x146a/0x2120 block/ioctl.c:521
 block_ioctl+0xee/0x130 fs/block_dev.c:1906
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x107b/0x17d0 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 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:00007ff91374bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9
RDX: 0000000020000780 RSI: 0000000000001261 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff91374c6d4
R13: 00000000004bf271 R14: 00000000004d0880 R15: 00000000ffffffff
INFO: task syz-executor0:15168 blocked for more than 140 seconds.
      Not tainted 5.0.0-rc1+ #21
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0   D25000 15168   8000 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
 wb_wait_for_completion+0x1e0/0x2d0 fs/fs-writeback.c:221
 __writeback_inodes_sb_nr+0x417/0x590 fs/fs-writeback.c:2333
 writeback_inodes_sb_nr fs/fs-writeback.c:2350 [inline]
 writeback_inodes_sb+0x28/0x30 fs/fs-writeback.c:2365
 __sync_filesystem fs/sync.c:36 [inline]
 sync_filesystem+0x16e/0x340 fs/sync.c:64
 fsync_bdev+0x96/0xd0 fs/block_dev.c:494
 blkdev_flushbuf block/ioctl.c:436 [inline]
 blkdev_ioctl+0x146a/0x2120 block/ioctl.c:521
 block_ioctl+0xee/0x130 fs/block_dev.c:1906
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x107b/0x17d0 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 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:00007ff91372ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9
RDX: 0000000020000780 RSI: 0000000000001261 RDI: 0000000000000007
RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff91372b6d4
R13: 00000000004bf271 R14: 00000000004d0880 R15: 00000000ffffffff

Showing all locks held in the system:
1 lock held by khungtaskd/1041:
 #0: 000000005147df2d (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4389
1 lock held by rsyslogd/7877:
 #0: 0000000041e0bcb2 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795
2 locks held by getty/7967:
 #0: 000000008f2d0845 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 0000000089dafcc3 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7968:
 #0: 0000000016c8862c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000aced62cb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7969:
 #0: 000000000b4df73c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 000000004d0b87d5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7970:
 #0: 00000000e3982416 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 0000000033f3c676 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7971:
 #0: 00000000f1865091 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 000000006f6da1ef (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7972:
 #0: 00000000e057c8bb (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000a672e1d9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/7973:
 #0: 00000000b2f91713 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 000000001bf49cc9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
3 locks held by kworker/u4:13/11348:
1 lock held by syz-executor0/15167:
 #0: 00000000dc1b64cd (&type->s_umount_key#54){.+.+}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:699
1 lock held by syz-executor0/15168:
 #0: 00000000dc1b64cd (&type->s_umount_key#54){.+.+}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:699

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

NMI backtrace for cpu 1
CPU: 1 PID: 1041 Comm: khungtaskd Not tainted 5.0.0-rc1+ #21
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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 11317 Comm: kworker/u4:9 Not tainted 5.0.0-rc1+ #21
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:lock_release+0x7c/0xc40 kernel/locking/lockdep.c:3850
Code: ff ff 70 39 64 81 65 4c 8b 34 25 40 ee 01 00 c7 00 f1 f1 f1 f1 49 8d be 7c 08 00 00 c7 40 04 f1 f1 04 f2 c7 40 08 00 f2 f2 f2 <c7> 40 0c 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0
RSP: 0018:ffff88804c1ff668 EFLAGS: 00000292
RAX: ffffed100983fed4 RBX: 1ffff1100983fed4 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff888059992cbc
RBP: ffff88804c1ff768 R08: 1ffff1100983fedf R09: ffffed100983fee0
R10: ffffed100983fedf R11: 0000000000000003 R12: ffff88805b8959c0
R13: ffffffff87d2940d R14: ffff888059992440 R15: ffff88804c1ff740
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000457e9f CR3: 0000000091022000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:174 [inline]
 _raw_spin_unlock_bh+0x1b/0x40 kernel/locking/spinlock.c:200
 spin_unlock_bh include/linux/spinlock.h:374 [inline]
 batadv_nc_purge_paths+0x36d/0x530 net/batman-adv/network-coding.c:482
 batadv_nc_worker+0x3e3/0x920 net/batman-adv/network-coding.c:733
 process_one_work+0xd0c/0x1ce0 kernel/workqueue.c:2153
 worker_thread+0x143/0x14a0 kernel/workqueue.c:2296
 kthread+0x357/0x430 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352

Crashes (53):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/12 09:30 upstream 4b3c31c8d4dd c3f3344c .config console log report ci-upstream-kasan-gce-smack-root
2018/12/23 05:59 upstream 9105b8aa50c1 e3bd7ab8 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/12 23:45 upstream f5d582777bcb 02613a41 .config console log report ci-upstream-kasan-gce-root
2018/12/06 09:29 upstream d08970904582 764b42c4 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/05 16:13 upstream 0072a0c14d5b ac6c0578 .config console log report ci-upstream-kasan-gce-root
2018/12/04 00:03 upstream 0072a0c14d5b 03f94a45 .config console log report ci-upstream-kasan-gce-root
2018/11/29 12:56 upstream 60b548237fed 4b6d14f2 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/28 20:10 upstream 121b018f8c74 4b6d14f2 .config console log report ci-upstream-kasan-gce-root
2018/11/24 11:30 upstream 7c98a4261827 ecc7c870 .config console log report ci-upstream-kasan-gce-root
2018/11/21 10:27 upstream c8ce94b8fe53 5d9a3924 .config console log report ci-upstream-kasan-gce-root
2018/11/19 02:38 upstream c67a98c00ea3 adf636a8 .config console log report ci-upstream-kasan-gce-root
2018/11/14 09:03 upstream ccda4af0f4b9 5f5f6d14 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/14 01:06 upstream ccda4af0f4b9 5f5f6d14 .config console log report ci-upstream-kasan-gce-root
2018/11/13 07:46 upstream ccda4af0f4b9 74dbb806 .config console log report ci-upstream-kasan-gce-root
2018/11/10 06:36 upstream 3541833fd1f2 f9815aaf .config console log report ci-upstream-kasan-gce-root
2018/11/09 11:45 upstream 24ccea7e102d 8fd01d3a .config console log report ci-upstream-kasan-gce-smack-root
2018/11/07 01:08 upstream 8053e5b93eca 8bd6bd63 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/01 10:52 upstream 59fc453b21f7 1f38e9ae .config console log report ci-upstream-kasan-gce-root
2018/10/01 06:37 upstream 17b57b1883c1 41e4b329 .config console log report ci-upstream-kasan-gce-smack-root
2018/09/30 13:13 upstream 291d0e5d81e1 41e4b329 .config console log report ci-upstream-kasan-gce-selinux-root
2018/09/30 03:24 upstream 82ec752cce8b 41e4b329 .config console log report ci-upstream-kasan-gce-root
2018/09/25 19:17 upstream 846e8dd47c26 b7e11289 .config console log report ci-upstream-kasan-gce-root
2018/09/08 23:01 upstream d7b686ebf704 6b5120a4 .config console log report ci-upstream-kasan-gce-smack-root
2018/08/16 19:30 upstream f91e654474d4 9ccc1d45 .config console log report ci-upstream-kasan-gce-root
2018/06/25 03:38 upstream 7daf201d7fe8 2064fc5c .config console log report ci-upstream-kasan-gce-root
2018/06/12 10:09 upstream 8efcf34a2639 112eec79 .config console log report ci-upstream-kasan-gce-root
2018/06/01 18:46 upstream 0512e0134582 2f93b54f .config console log report ci-upstream-kasan-gce-root
2018/05/16 05:03 upstream eeba2dfa6a0d 68ce85f1 .config console log report ci-upstream-kasan-gce-root
2018/05/05 07:25 upstream 625e2001e99e 9ce14f4b .config console log report ci-upstream-kasan-gce-root
2018/04/29 11:46 upstream cdface520934 d5a5d045 .config console log report ci-upstream-kasan-gce-root
2018/04/26 20:48 upstream 69bfd470f462 73417389 .config console log report ci-upstream-kasan-gce-root
2018/10/13 09:03 net-next-old a688c53a0277 caf12900 .config console log report ci-upstream-net-kasan-gce
2019/01/14 23:51 linux-next 8ce4d582f564 ebacf5cb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/01/11 14:13 linux-next b808822a75a3 c3f3344c .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/03 06:19 linux-next 442b8cea2477 7dcaeaf3 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/28 03:39 linux-next 442b8cea2477 4b6d14f2 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/14 17:46 linux-next 442b8cea2477 5f5f6d14 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/10 11:29 linux-next 442b8cea2477 f9815aaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/05 07:31 linux-next 55e5059cb572 8bd6bd63 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/27 00:28 linux-next 8c60c36d0b8c a8292de9 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/18 23:46 linux-next 9bab64345e83 9aba67b5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/11 14:07 linux-next 771b65e89c8a 5f818b4b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/09 19:20 linux-next 570b7bdeaf18 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/09 18:21 linux-next 570b7bdeaf18 8b311eaf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/29 18:49 linux-next 87b93b43da14 4937cb2b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/26 11:46 linux-next e27bc174c9c6 758cd203 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/21 21:42 linux-next b0d11efd08e3 95b5c82b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 01:43 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/30 14:23 linux-next d1e0b8e0cb7a 1a381291 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/21 05:00 linux-next 89cf55353308 af255b09 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/17 17:30 linux-next 1dcbe5f2c615 6d5bd5b5 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/13 20:20 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/08 11:47 linux-next 526674536360 c9a7a4dc .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.