syzbot


INFO: task hung in truncate_inode_pages_range

Status: auto-closed as invalid on 2019/02/22 14:33
First crash: 2479d, last: 2320d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in truncate_inode_pages_range C error 1 1147d 1387d 0/1 upstream: reported C repro on 2021/02/03 07:50
android-44 INFO: task hung in truncate_inode_pages_range 7 2402d 2478d 0/2 auto-closed as invalid on 2019/02/22 13:19
upstream INFO: task hung in truncate_inode_pages_range (5) fs mm 1 698d 698d 0/28 auto-obsoleted due to no activity on 2023/04/15 01:38
linux-4.14 INFO: task hung in truncate_inode_pages_range C error 2 819d 1462d 0/1 upstream: reported C repro on 2020/11/19 23:29
upstream INFO: task hung in truncate_inode_pages_range (2) fs mm 10 1819d 1889d 0/28 auto-closed as invalid on 2020/02/27 00:38
upstream INFO: task hung in truncate_inode_pages_range (4) block 1 1080d 1080d 0/28 closed as invalid on 2022/02/08 09:50
upstream INFO: task hung in truncate_inode_pages_range (3) fs 1 1602d 1602d 0/28 auto-closed as invalid on 2020/08/31 17:47
upstream INFO: task hung in truncate_inode_pages_range (6) squashfs fuse C 1 548d 544d 0/28 auto-obsoleted due to no activity on 2024/02/27 16:22
upstream INFO: task hung in truncate_inode_pages_range exfat 151 2203d 2538d 0/28 closed as dup on 2017/12/12 16:49
android-49 INFO: task hung in truncate_inode_pages_range (2) 1 1929d 1929d 0/3 auto-closed as invalid on 2019/12/08 23:58
linux-6.1 INFO: task hung in truncate_inode_pages_range origin:upstream C 2 1d04h 548d 0/3 upstream: reported C repro on 2023/05/23 07:52

Sample crash report:
IPVS: Creating netns size=2536 id=72
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=8241 sclass=netlink_route_socket pig=27416 comm=syz-executor6
INFO: task syz-executor3:27332 blocked for more than 140 seconds.
      Not tainted 4.9.112-g9e79039 #59
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor3   D21560 27332   3867 0x00000004
 ffff8801ca1b1800 ffff8801cecf8a80 ffff8801cf686f40 ffff8801ca1b6000
 ffff8801db221c18 ffff8801a241f8f0 ffffffff839e907d 0000000041b58ab3
 ffffffff843c36c0 ffffffff812361d0 00ff8801ca1b20c8 ffff8801db2224e8
Call Trace:
 [<ffffffff839ea67f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3557
 [<ffffffff839f6a91>] schedule_timeout+0x861/0xf70 kernel/time/timer.c:1768
 [<ffffffff839e885a>] io_schedule_timeout+0x1ba/0x390 kernel/sched/core.c:5180
 [<ffffffff839ebac9>] io_schedule include/linux/sched.h:460 [inline]
 [<ffffffff839ebac9>] bit_wait_io+0x19/0xa0 kernel/sched/wait.c:582
 [<ffffffff839eb36e>] __wait_on_bit_lock+0xce/0x1c0 kernel/sched/wait.c:421
 [<ffffffff8143464f>] __lock_page+0xff/0x160 mm/filemap.c:934
 [<ffffffff8146b8a8>] lock_page include/linux/pagemap.h:454 [inline]
 [<ffffffff8146b8a8>] truncate_inode_pages_range+0x818/0x1290 mm/truncate.c:373
 [<ffffffff816329dd>] blkdev_fallocate+0x21d/0x440 fs/block_dev.c:1817
 [<ffffffff81568809>] vfs_fallocate+0x359/0x600 fs/open.c:329
 [<ffffffff8156b713>] SYSC_fallocate fs/open.c:352 [inline]
 [<ffffffff8156b713>] SyS_fallocate+0x53/0x90 fs/open.c:346
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839f9f53>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Showing all locks held in the system:
2 locks held by khungtaskd/519:
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136675c>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136675c>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81425de7>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
1 lock held by rsyslogd/3684:
 #0:  (&f->f_pos_lock){+.+.+.}, at: [<ffffffff815d818c>] __fdget_pos+0xac/0xd0 fs/file.c:781
2 locks held by getty/3780:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f8122>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+...}, at: [<ffffffff8211edc2>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2142
1 lock held by syz-executor3/27332:
 #0:  (sb_writers){.+.+.+}, at: [<ffffffff815687ab>] sb_start_write include/linux/fs.h:1573 [inline]
 #0:  (sb_writers){.+.+.+}, at: [<ffffffff815687ab>] vfs_fallocate+0x2fb/0x600 fs/open.c:328

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

NMI backtrace for cpu 0
CPU: 0 PID: 519 Comm: khungtaskd Not tainted 4.9.112-g9e79039 #59
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d85efd08 ffffffff81eb3249 0000000000000000 0000000000000000
 0000000000000000 0000000000000001 ffffffff810b9bd0 ffff8801d85efd40
 ffffffff81ebe547 0000000000000000 0000000000000000 0000000000000003
Call Trace:
 [<ffffffff81eb3249>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb3249>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81ebe547>] nmi_cpu_backtrace.cold.2+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81ebe4da>] nmi_trigger_cpumask_backtrace+0x12a/0x14f lib/nmi_backtrace.c:60
 [<ffffffff810b9cd4>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff81366cf4>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81366cf4>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81366cf4>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81366cf4>] watchdog+0x6b4/0xa20 kernel/hung_task.c:239
 [<ffffffff8119d0bd>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839fa11c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 27455 Comm: init Not tainted 4.9.112-g9e79039 #59
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801a0921800 task.stack: ffff8801cb020000
RIP: 0010:[<ffffffff8214fafb>] c [<ffffffff8214fafb>] inb arch/x86/include/asm/io.h:316 [inline]
RIP: 0010:[<ffffffff8214fafb>] c [<ffffffff8214fafb>] io_serial_in+0x6b/0x90 drivers/tty/serial/8250/8250_port.c:414
RSP: 0018:ffff8801cb027520  EFLAGS: 00000002
RAX: dffffc0000000000 RBX: 00000000000003fd RCX: 0000000000000000
RDX: 00000000000003fd RSI: ffffffff8214faa1 RDI: ffffffff864aae78
RBP: ffff8801cb027530 R08: ffff8801a0922138 R09: 0000000000000001
R10: ffff8801a0921800 R11: 1ffff10034124422 R12: ffffffff864aae40
R13: 0000000000000020 R14: fffffbfff0c9560f R15: fffffbfff0c955d1
FS:  00007f94d3b647a0(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f94d3277a30 CR3: 00000001cc0e5000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff864aae40c 000000000000270dc ffff8801cb027580c ffffffff821516c4c
 ffff8801cb0275b8c ffffffff864aae88c ffffffff864ab07ac ffffffff864aae40c
 0000000000000038c ffffffff82151810c dffffc0000000000c 0000000000000038c
Call Trace:
 [<ffffffff821516c4>] serial_in drivers/tty/serial/8250/8250.h:111 [inline]
 [<ffffffff821516c4>] wait_for_xmitr+0x94/0x1e0 drivers/tty/serial/8250/8250_port.c:1998
 [<ffffffff8215182f>] serial8250_console_putchar+0x1f/0x60 drivers/tty/serial/8250/8250_port.c:3104
 [<ffffffff8213a059>] uart_console_write+0x59/0xf0 drivers/tty/serial/serial_core.c:1859
 [<ffffffff8215da48>] serial8250_console_write+0x528/0x820 drivers/tty/serial/8250/8250_port.c:3170
 [<ffffffff8214a5af>] univ8250_console_write+0x5f/0x70 drivers/tty/serial/8250/8250_core.c:594
 [<ffffffff8125bccd>] call_console_drivers.isra.18.constprop.28+0x1ad/0x360 kernel/printk/printk.c:1589
 [<ffffffff8125eacf>] console_unlock+0x42f/0xb40 kernel/printk/printk.c:2449
 [<ffffffff8125ff17>] console_device+0x97/0xc0 kernel/printk/printk.c:2557
 [<ffffffff8211947a>] tty_lookup_driver drivers/tty/tty_io.c:2003 [inline]
 [<ffffffff8211947a>] tty_open_by_driver drivers/tty/tty_io.c:2048 [inline]
 [<ffffffff8211947a>] tty_open+0x71a/0xe20 drivers/tty/tty_io.c:2125
 [<ffffffff8157ee6d>] chrdev_open+0x22d/0x4c0 fs/char_dev.c:392
 [<ffffffff81569d53>] do_dentry_open+0x703/0xc80 fs/open.c:766
 [<ffffffff8156d53c>] vfs_open+0x11c/0x210 fs/open.c:879
 [<ffffffff815a4678>] do_last fs/namei.c:3410 [inline]
 [<ffffffff815a4678>] path_openat+0x758/0x3590 fs/namei.c:3534
 [<ffffffff815ab777>] do_filp_open+0x197/0x270 fs/namei.c:3568
 [<ffffffff8156df4d>] do_sys_open+0x30d/0x5c0 fs/open.c:1072
 [<ffffffff8156e22d>] SYSC_open fs/open.c:1090 [inline]
 [<ffffffff8156e22d>] SyS_open+0x2d/0x40 fs/open.c:1085
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839f9f53>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Code: c24 cc9 c00 c00 c00 c49 c8d c7c c24 c38 c48 cb8 c00 c00 c00 c00 c00 cfc cff cdf c48 c89 cfa c48 cc1 cea c03 cd3 ce3 c80 c3c c02 c00 c75 c17 c41 c03 c5c c24 c38 c89 cda cec c<5b> c0f cb6 cc0 c41 c5c c5d cc3 ce8 cb8 cc0 c3e cff ceb cc2 ce8 c11 cc1 c3e cff ceb c

Crashes (86):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/16 13:11 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce
2018/07/15 12:27 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce
2018/07/04 00:14 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 317fc8ea .config console log report ci-android-49-kasan-gce
2018/06/30 20:59 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 dba0b50e .config console log report ci-android-49-kasan-gce-root
2018/06/24 21:48 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report ci-android-49-kasan-gce
2018/06/23 11:09 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report ci-android-49-kasan-gce
2018/06/21 14:09 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report ci-android-49-kasan-gce
2018/06/15 20:23 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report ci-android-49-kasan-gce-root
2018/06/13 21:43 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/13 01:04 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 6dcbc435 .config console log report ci-android-49-kasan-gce
2018/06/10 16:15 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 866118af .config console log report ci-android-49-kasan-gce
2018/06/08 14:50 https://android.googlesource.com/kernel/common android-4.9 42a730adb6e2 f7b27b7a .config console log report ci-android-49-kasan-gce
2018/06/05 23:01 https://android.googlesource.com/kernel/common android-4.9 8b94b87fe783 863a24bb .config console log report ci-android-49-kasan-gce
2018/05/25 09:06 https://android.googlesource.com/kernel/common android-4.9 2e35bed46b50 f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/04/19 10:00 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 d1b2ef69 .config console log report ci-android-49-kasan-gce
2018/04/17 22:05 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce
2018/04/17 11:23 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce
2018/04/17 06:44 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce
2018/04/16 20:48 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 802ac912 .config console log report ci-android-49-kasan-gce
2018/04/16 08:45 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/16 07:18 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/15 19:58 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/15 16:20 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/15 04:28 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/13 23:34 https://android.googlesource.com/kernel/common android-4.9 cb023581bd03 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/13 07:32 https://android.googlesource.com/kernel/common android-4.9 f6bec4e8c771 eb2295de .config console log report ci-android-49-kasan-gce
2018/04/11 01:55 https://android.googlesource.com/kernel/common android-4.9 f6bec4e8c771 8b8de427 .config console log report ci-android-49-kasan-gce
2018/04/10 23:40 https://android.googlesource.com/kernel/common android-4.9 f6bec4e8c771 8b8de427 .config console log report ci-android-49-kasan-gce
2018/04/09 23:10 https://android.googlesource.com/kernel/common android-4.9 eba1ffe631bc b9f65507 .config console log report ci-android-49-kasan-gce
2018/04/08 19:53 https://android.googlesource.com/kernel/common android-4.9 4fb542f2aa14 77bd5117 .config console log report ci-android-49-kasan-gce
2018/04/07 10:39 https://android.googlesource.com/kernel/common android-4.9 4fb542f2aa14 d613535f .config console log report ci-android-49-kasan-gce
2018/04/05 02:36 https://android.googlesource.com/kernel/common android-4.9 13b40d327b49 676bd07e .config console log report ci-android-49-kasan-gce
2018/03/26 20:38 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 0ca7878b .config console log report ci-android-49-kasan-gce
2018/03/26 10:14 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 e033c1f1 .config console log report ci-android-49-kasan-gce
2018/03/25 06:45 https://android.googlesource.com/kernel/common android-4.9 f152ce1be2ab 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/23 12:23 https://android.googlesource.com/kernel/common android-4.9 f361eb39cdbf 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/02/07 12:36 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/07/14 20:42 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce-386
2018/04/17 16:54 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce-386
2018/04/17 04:35 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce-386
2018/04/16 11:31 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 802ac912 .config console log report ci-android-49-kasan-gce-386
2018/04/05 08:42 https://android.googlesource.com/kernel/common android-4.9 7cd956196346 676bd07e .config console log report ci-android-49-kasan-gce-386
2018/03/27 11:33 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 bf5e585c .config console log report ci-android-49-kasan-gce-386
2018/03/24 09:07 https://android.googlesource.com/kernel/common android-4.9 e34e3186e9e3 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/23 09:03 https://android.googlesource.com/kernel/common android-4.9 f361eb39cdbf 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/23 06:01 https://android.googlesource.com/kernel/common android-4.9 f361eb39cdbf 2e9d9054 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.