syzbot


INFO: task hung in __blkdev_get

Status: upstream: reported C repro on 2019/08/13 00:10
Subsystems: vfs ntfs
[Documentation on labels]
Reported-by: syzbot+daad98bf0e9fc3cdbb5c@syzkaller.appspotmail.com
First crash: 1948d, last: 654d
Fix bisection: failed (error log, bisect log)
  
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 1839d 2071d 0/3 public: reported C repro on 2019/04/12 00:00
android-44 INFO: task hung in __blkdev_get syz 521 1841d 2069d 0/2 public: reported syz repro on 2019/04/14 00:02
android-414 INFO: task hung in __blkdev_get 1859 1839d 2070d 0/1 auto-closed as invalid on 2020/02/28 16:13
upstream INFO: task hung in __blkdev_get (3) fs 1 2065d 2064d 0/28 closed as invalid on 2019/05/08 13:05
upstream INFO: task hung in __blkdev_get (2) udf 11 2163d 2287d 0/28 closed as dup on 2018/09/08 15:48
linux-4.14 INFO: task hung in __blkdev_get ntfs vfs C 741 660d 2072d 0/1 upstream: reported C repro on 2019/04/11 13:17
upstream INFO: task hung in __blkdev_get fs C 662 2434d 2560d 5/28 fixed on 2018/05/08 18:30
upstream INFO: task hung in __blkdev_get (4) fs 1 1883d 1883d 0/28 auto-closed as invalid on 2020/01/15 05:33
upstream INFO: task hung in __blkdev_get (5) fs 8 1462d 1676d 0/28 auto-closed as invalid on 2021/03/11 14:46
Fix bisection attempts (13)
Created Duration User Patch Repo Result
2021/12/27 06:10 17m bisect fix linux-4.19.y error job log
2021/08/27 00:36 35m bisect fix linux-4.19.y OK (0) job log log
2021/06/16 02:20 36m bisect fix linux-4.19.y OK (0) job log log
2020/12/31 19:42 37m bisect fix linux-4.19.y OK (0) job log log
2020/12/01 19:00 41m bisect fix linux-4.19.y OK (0) job log log
2020/09/30 08:14 37m bisect fix linux-4.19.y OK (0) job log log
2020/08/25 16:46 38m bisect fix linux-4.19.y OK (0) job log log
2020/07/16 15:49 35m bisect fix linux-4.19.y OK (0) job log log
2020/06/10 06:58 36m bisect fix linux-4.19.y OK (0) job log log
2020/03/25 03:06 37m bisect fix linux-4.19.y OK (0) job log log
2020/02/24 02:27 38m bisect fix linux-4.19.y OK (0) job log log
2020/01/25 01:49 38m bisect fix linux-4.19.y OK (0) job log log
2019/12/26 01:12 36m bisect fix linux-4.19.y OK (0) job log 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-executor925:8128 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor925 D28648  8128   8091 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1016 [inline]
 __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078
 __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
 blkdev_get+0xb0/0x940 fs/block_dev.c:1627
 blkdev_open+0x202/0x290 fs/block_dev.c:1788
 do_dentry_open+0x4aa/0x1160 fs/open.c:796
 do_last fs/namei.c:3421 [inline]
 path_openat+0x793/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa05b485277
Code: Bad RIP value.
RSP: 002b:00007ffdb3d23ec0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fa05b485277
RDX: 0000000000000002 RSI: 00007ffdb3d23f50 RDI: 00000000ffffff9c
RBP: 00007ffdb3d23f50 R08: 000000000001f1c1 R09: 000000000001f1ba
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00005555573e82c0 R14: 431bde82d7b634db R15: 00007ffdb3d23f90

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 00000000e2efd183 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7758:
 #0: 0000000078e3851c (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by systemd-udevd/8122:
1 lock held by syz-executor925/8128:
 #0: 00000000051751bd (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478

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

NMI backtrace for cpu 1
CPU: 1 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8122 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:97
Code: ff 48 89 df e8 11 dd 35 00 e9 ab fe ff ff 4c 89 ef e8 04 dd 35 00 e9 23 fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <48> 8b 34 24 65 48 8b 04 25 c0 df 01 00 65 8b 15 cc 59 9f 7e 81 e2
RSP: 0018:ffff888099527890 EFLAGS: 00000213
RAX: 1ffff11015ca6714 RBX: 0000000000000007 RCX: ffffffff87eecf4e
RDX: dffffc0000000000 RSI: ffffffff87eecee7 RDI: 0000000000000007
RBP: ffff8880ae5338a0 R08: 0000000000000000 R09: 000000000000003f
R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880ae533868
R13: 0000000000000024 R14: 0000000000000000 R15: ffff8880ae533840
FS:  00007f420b1db8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ba0fd48988 CR3: 00000000b508d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 radix_tree_next_chunk+0x2e1/0xaa0 lib/radix-tree.c:1770
 find_get_entries+0x5cc/0xa90 mm/filemap.c:1659
 pagevec_lookup_entries+0x35/0x80 mm/swap.c:956
 truncate_inode_pages_range+0x1d1/0x1b00 mm/truncate.c:328
 kill_bdev fs/block_dev.c:86 [inline]
 __blkdev_put+0x2a8/0x870 fs/block_dev.c:1813
 blkdev_close+0x86/0xb0 fs/block_dev.c:1888
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f420a321270
Code: 73 01 c3 48 8b 0d 38 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 59 c1 20 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ee fb ff ff 48 89 04 24
RSP: 002b:00007ffce5734c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f420a321270
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007f420b1db710 R08: 000055ba0fd4ff40 R09: 000055ba0fd4fd00
R10: 00007f420b1db8c0 R11: 0000000000000246 R12: 0000000000000000
R13: 000055ba0fd4c880 R14: 0000000000000003 R15: 000000000000000e

Crashes (144):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/10 07:16 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/12/28 07:14 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 INFO: task hung in __blkdev_get
2019/08/12 23:09 linux-4.19.y 893af1c79e42 8620c2c2 .config console log report syz C ci2-linux-4-19
2021/07/08 04:08 linux-4.19.y 9f84340f012e 95793bce .config console log report syz ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/02/27 13:30 linux-4.19.y 3f8a27f9e27b 9189cb53 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/02/19 05:59 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/02/11 16:16 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/02/06 09:53 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/02/06 07:40 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/02/02 12:14 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/01/19 12:13 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/01/17 23:54 linux-4.19.y 3f8a27f9e27b 42660d9e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/01/17 07:13 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2023/01/01 17:45 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/12/28 06:18 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/12/01 10:52 linux-4.19.y 3f8a27f9e27b 4c2a66e8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/11/30 05:54 linux-4.19.y 3f8a27f9e27b 579a3740 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/11/23 19:07 linux-4.19.y 3f8a27f9e27b 52fdf57a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/11/21 19:02 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/11/21 02:27 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/11/09 20:33 linux-4.19.y 3f8a27f9e27b bebca8b7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/11/03 22:05 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/11/02 09:29 linux-4.19.y 3f8a27f9e27b 08977f5d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/10/29 15:13 linux-4.19.y 3f8a27f9e27b 2a71366b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/10/26 19:14 linux-4.19.y 3f8a27f9e27b 86777b7f .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/10/18 19:51 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/10/11 11:22 linux-4.19.y 3f8a27f9e27b 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/10/01 05:48 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/09/28 20:48 linux-4.19.y 3f8a27f9e27b a41a2080 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/09/21 12:32 linux-4.19.y 3f8a27f9e27b 380f82fb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/09/16 13:08 linux-4.19.y 3f8a27f9e27b dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/09/01 12:30 linux-4.19.y 3f8a27f9e27b b01ec571 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/08/31 11:37 linux-4.19.y 3f8a27f9e27b 51e54e30 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/08/17 22:27 linux-4.19.y 3f8a27f9e27b a9409d47 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/08/17 08:50 linux-4.19.y 3f8a27f9e27b 4e72d229 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/08/16 21:52 linux-4.19.y 3f8a27f9e27b 9e4b39c2 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/08/15 06:57 linux-4.19.y 3f8a27f9e27b 8dfcaa3d .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/08/11 08:37 linux-4.19.y 3f8a27f9e27b a6201f11 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/08/06 14:16 linux-4.19.y 3f8a27f9e27b 88e3a122 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/07/30 04:20 linux-4.19.y 3f8a27f9e27b fef302b1 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/07/26 03:29 linux-4.19.y 3f8a27f9e27b 34795c51 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/07/19 09:09 linux-4.19.y 3f8a27f9e27b 72a3cc0c .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/07/18 14:14 linux-4.19.y 3f8a27f9e27b ff988920 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/07/04 19:00 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/06/21 01:04 linux-4.19.y 3f8a27f9e27b 0fc5c330 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/06/20 16:14 linux-4.19.y 3f8a27f9e27b b9406563 .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/06/15 05:31 linux-4.19.y 3f8a27f9e27b 127d1faf .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/06/02 11:03 linux-4.19.y 3f8a27f9e27b 6e12f05f .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2022/06/02 09:04 linux-4.19.y 3f8a27f9e27b 5783034f .config console log report info ci2-linux-4-19 INFO: task hung in __blkdev_get
2021/01/01 21:41 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.