syzbot


INFO: task hung in __blkdev_get

Status: upstream: reported C repro on 2019/04/11 13:17
Subsystems: ntfs vfs
[Documentation on labels]
Reported-by: syzbot+0d4351f3b3165ccaee9e@syzkaller.appspotmail.com
First crash: 1836d, last: 424d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in __blkdev_get C 1504 1603d 1835d 0/3 public: reported C repro on 2019/04/12 00:00
android-44 INFO: task hung in __blkdev_get syz 521 1605d 1833d 0/2 public: reported syz repro on 2019/04/14 00:02
android-414 INFO: task hung in __blkdev_get 1859 1603d 1834d 0/1 auto-closed as invalid on 2020/02/28 16:13
upstream INFO: task hung in __blkdev_get (3) fs 1 1828d 1828d 0/26 closed as invalid on 2019/05/08 13:05
upstream INFO: task hung in __blkdev_get (2) udf 11 1927d 2051d 0/26 closed as dup on 2018/09/08 15:48
upstream INFO: task hung in __blkdev_get fs C 662 2198d 2324d 5/26 fixed on 2018/05/08 18:30
linux-4.19 INFO: task hung in __blkdev_get vfs ntfs C error 144 418d 1712d 0/1 upstream: reported C repro on 2019/08/13 00:10
upstream INFO: task hung in __blkdev_get (4) fs 1 1647d 1647d 0/26 auto-closed as invalid on 2020/01/15 05:33
upstream INFO: task hung in __blkdev_get (5) fs 8 1226d 1440d 0/26 auto-closed as invalid on 2021/03/11 14:46
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2023/02/04 19:57 1h17m bisect fix linux-4.14.y job log (0) log
2021/11/29 22:34 35m bisect fix linux-4.14.y job log (0) log
2021/10/30 21:49 28m bisect fix linux-4.14.y job log (0) log
2021/08/01 13:01 27m bisect fix linux-4.14.y job log (0) log
2021/06/16 22:41 26m bisect fix linux-4.14.y job log (0) log

Sample crash report:
ntfs: (device loop0): ntfs_read_inode_mount(): Failed. Marking inode as bad.
ntfs: (device loop0): ntfs_fill_super(): Failed to load essential metadata.
ntfs: (device loop0): ntfs_read_inode_mount(): Device read failed.
INFO: task syz-executor326:8020 blocked for more than 140 seconds.
      Not tainted 4.14.302-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor326 D28912  8020   7989 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2811 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3387
 schedule+0x8d/0x1b0 kernel/sched/core.c:3431
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3489
 __mutex_lock_common kernel/locking/mutex.c:833 [inline]
 __mutex_lock+0x669/0x1310 kernel/locking/mutex.c:893
 __blkdev_get+0x191/0x1090 fs/block_dev.c:1455
 blkdev_get+0x88/0x890 fs/block_dev.c:1611
 blkdev_open+0x1cc/0x250 fs/block_dev.c:1772
 do_dentry_open+0x44b/0xec0 fs/open.c:777
 vfs_open+0x105/0x220 fs/open.c:888
 do_last fs/namei.c:3428 [inline]
 path_openat+0x628/0x2970 fs/namei.c:3571
 do_filp_open+0x179/0x3c0 fs/namei.c:3605
 do_sys_open+0x296/0x410 fs/open.c:1081
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f7fce3fd277
RSP: 002b:00007fffd62c3e60 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7fce3fd277
RDX: 0000000000000002 RSI: 00007fffd62c3ef0 RDI: 00000000ffffff9c
RBP: 00007fffd62c3ef0 R08: 000000000001f1c1 R09: 000000000001f1ba
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000555556b262c0 R14: 431bde82d7b634db R15: 00007fffd62c3f30

Showing all locks held in the system:
1 lock held by khungtaskd/1532:
 #0:  (tasklist_lock){.+.+}, at: [<ffffffff8702b3a4>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548
1 lock held by syz-executor326/8020:
 #0:  (&bdev->bd_mutex){+.+.}, at: [<ffffffff81943db1>] __blkdev_get+0x191/0x1090 fs/block_dev.c:1455

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

NMI backtrace for cpu 0
CPU: 0 PID: 1532 Comm: khungtaskd Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x13a/0x180 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline]
 watchdog+0x5b9/0xb40 kernel/hung_task.c:274
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8018 Comm: systemd-udevd Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b2f62280 task.stack: ffff888095318000
RIP: 0010:__sanitizer_cov_trace_pc+0x23/0x50 kernel/kcov.c:68
RSP: 0018:ffff88809531f968 EFLAGS: 00000246
RAX: ffff8880b2f62280 RBX: 0000000000000029 RCX: 000000000000002a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88809531fa78
RBP: ffff88808df7aca8 R08: 0000000000000000 R09: 0000000000020011
R10: ffff8880b2f62b30 R11: ffff8880b2f62280 R12: ffff88808df7ac80
R13: dffffc0000000000 R14: ffff88808df7adf0 R15: 0000000000000000
FS:  00007fad351d08c0(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe4ac427000 CR3: 000000009b4b6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 radix_tree_next_chunk+0x24d/0x8c0 lib/radix-tree.c:1766
 find_get_entries+0x4c4/0x870 mm/filemap.c:1560
 pagevec_lookup_entries+0x35/0x70 mm/swap.c:933
 truncate_inode_pages_range+0x1ac/0x13e0 mm/truncate.c:292
 kill_bdev fs/block_dev.c:98 [inline]
 __blkdev_put+0x24c/0x800 fs/block_dev.c:1797
 blkdev_close+0x86/0xb0 fs/block_dev.c:1875
 __fput+0x25f/0x7a0 fs/file_table.c:210
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fad34316270
RSP: 002b:00007ffd63628408 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007fad34316270
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007fad351d0710 R08: 000055b952e32f00 R09: 000055b952e32c00
R10: 00007fad351d08c0 R11: 0000000000000246 R12: 0000000000000000
R13: 000055b952e32070 R14: 0000000000000003 R15: 000000000000000e
Code: 90 90 90 90 90 90 90 90 65 48 8b 04 25 c0 7f 02 00 48 85 c0 74 1a 65 8b 15 fb 24 ad 7e 81 e2 00 01 1f 00 75 0b 8b 90 58 13 00 00 <83> fa 01 74 01 c3 48 8b 34 24 48 8b 88 60 13 00 00 8b 80 5c 13 

Crashes (741):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/05 19:56 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/10/10 04:51 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/30 21:03 linux-4.14.y b641242202ed fef302b1 .config console log report syz C ci2-linux-4-14 INFO: task hung in __blkdev_get
2020/08/31 01:03 linux-4.14.y d7e78d08fa77 d5a3ae1f .config console log report syz C ci2-linux-4-14
2020/07/04 11:02 linux-4.14.y b850307b279c 51095195 .config console log report syz C ci2-linux-4-14
2019/04/29 03:51 linux-4.14.y fa5941f45d7e b617407b .config console log report syz ci2-linux-4-14
2023/02/20 22:50 linux-4.14.y a8ad60f2af58 2414209c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in __blkdev_get
2023/02/17 17:00 linux-4.14.y a8ad60f2af58 cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in __blkdev_get
2023/02/08 17:17 linux-4.14.y a8ad60f2af58 fc9c934e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/12/06 11:50 linux-4.14.y 179ef7fe8677 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/11/13 06:39 linux-4.14.y e911713e40ca f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/11/10 02:07 linux-4.14.y a901bb6c7db7 b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/11/02 10:21 linux-4.14.y a85772d7ba90 08977f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/10/01 09:48 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/28 16:25 linux-4.14.y 9d5c0b3a8e1a 75c78242 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/28 06:32 linux-4.14.y 4edbf74132a4 75c78242 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/20 20:57 linux-4.14.y 4edbf74132a4 c4b8ccfd .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/20 11:23 linux-4.14.y 4edbf74132a4 7c41a9ba .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/20 08:45 linux-4.14.y 5df8b4735177 7c41a9ba .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/16 19:08 linux-4.14.y 5df8b4735177 dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/08 21:20 linux-4.14.y 65640c873dcf f3027468 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/09/04 02:13 linux-4.14.y e548869f356f 28811d0a .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/08/29 16:46 linux-4.14.y e548869f356f d7593c58 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/08/22 03:24 linux-4.14.y b641242202ed 26a13b38 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/08/11 13:49 linux-4.14.y b641242202ed 787ed7e0 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/20 14:46 linux-4.14.y 424a46ea058e 88cb1383 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/19 10:18 linux-4.14.y 424a46ea058e 72a3cc0c .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/15 12:21 linux-4.14.y 424a46ea058e 5d921b08 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/10 19:44 linux-4.14.y 1048779a1d7d b5765a15 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/07 17:52 linux-4.14.y 1048779a1d7d bff65f44 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/07 16:03 linux-4.14.y 1048779a1d7d bff65f44 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/07 05:11 linux-4.14.y ed2e96e11936 bff65f44 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/06 18:37 linux-4.14.y ed2e96e11936 bff65f44 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/02 15:46 linux-4.14.y ed2e96e11936 1434eec0 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/07/02 00:24 linux-4.14.y f051383ef03b 1434eec0 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/06/28 03:12 linux-4.14.y f051383ef03b ef82eb2c .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/06/26 20:39 linux-4.14.y f051383ef03b a371c43c .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/06/21 06:23 linux-4.14.y 84bae26850e3 0fc5c330 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/06/18 15:42 linux-4.14.y 84bae26850e3 8f633d84 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/06/08 21:37 linux-4.14.y b8f3be299d51 0d5abf15 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/06/03 01:02 linux-4.14.y 501eec4f9e13 02dddea8 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/06/01 21:33 linux-4.14.y 501eec4f9e13 b4bc6a3d .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/05/31 17:08 linux-4.14.y 501eec4f9e13 af70c3a9 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/05/27 23:03 linux-4.14.y 501eec4f9e13 a46af346 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/05/25 13:37 linux-4.14.y 501eec4f9e13 3037caa9 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/05/21 17:10 linux-4.14.y dffb5c6ff09c 7268fa62 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/05/18 15:23 linux-4.14.y dffb5c6ff09c 50c53f39 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2022/05/18 09:14 linux-4.14.y dffb5c6ff09c 744a39e2 .config console log report info ci2-linux-4-14 INFO: task hung in __blkdev_get
2021/01/17 11:46 linux-4.14.y f79dc86058bc 813be542 .config console log report info ci2-linux-4-14
2019/04/11 12:16 linux-4.14.y 1ec8f1f0bffe e955ac50 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.