syzbot


INFO: task hung in __blkdev_get (2)

Status: closed as dup on 2018/09/08 15:48
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+2a732b5a87000875c1f3@syzkaller.appspotmail.com
First crash: 2160d, last: 1930d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: task hung in generic_file_write_iter fs mm 7 1968d 2106d
Duplicate bugs (7)
duplicates (7):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
INFO: task hung in __writeback_inodes_sb_nr fs 53 1925d 2188d 0/26 closed as dup on 2018/09/08 15:33
INFO: task hung in lookup_slow exfat 148 1921d 2215d 0/26 closed as dup on 2018/09/08 15:36
INFO: task hung in sync_inodes_sb fs 58 1926d 2164d 0/26 closed as dup on 2018/09/08 15:37
INFO: task hung in d_alloc_parallel fuse 213 1880d 2211d 0/26 closed as dup on 2018/09/08 15:40
INFO: task hung in path_openat exfat 246 1923d 2213d 0/26 closed as dup on 2018/09/08 15:37
INFO: task hung in do_truncate ext4 C 7 1985d 2149d 0/26 closed as dup on 2018/09/08 15:38
INFO: task hung in filename_create fs 121 1910d 2196d 0/26 closed as dup on 2018/09/08 15:39
Discussions (1)
Title Replies (including bot) Last reply
INFO: task hung in __blkdev_get (2) 1 (2) 2018/09/08 15:48
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 1606d 1838d 0/3 public: reported C repro on 2019/04/12 00:00
android-44 INFO: task hung in __blkdev_get syz 521 1608d 1836d 0/2 public: reported syz repro on 2019/04/14 00:02
android-414 INFO: task hung in __blkdev_get 1859 1606d 1837d 0/1 auto-closed as invalid on 2020/02/28 16:13
upstream INFO: task hung in __blkdev_get (3) fs 1 1832d 1832d 0/26 closed as invalid on 2019/05/08 13:05
linux-4.14 INFO: task hung in __blkdev_get ntfs vfs C 741 427d 1839d 0/1 upstream: reported C repro on 2019/04/11 13:17
upstream INFO: task hung in __blkdev_get fs C 662 2201d 2327d 5/26 fixed on 2018/05/08 18:30
linux-4.19 INFO: task hung in __blkdev_get vfs ntfs C error 144 421d 1715d 0/1 upstream: reported C repro on 2019/08/13 00:10
upstream INFO: task hung in __blkdev_get (4) fs 1 1650d 1650d 0/26 auto-closed as invalid on 2020/01/15 05:33
upstream INFO: task hung in __blkdev_get (5) fs 8 1229d 1443d 0/26 auto-closed as invalid on 2021/03/11 14:46

Sample crash report:
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 4096 failed
UDF-fs: warning (device loop1): udf_fill_super: No partition found (1)
INFO: task syz-executor5:8981 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   D20440  8981   8953 0x00000000
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
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3574
 __mutex_lock_common kernel/locking/mutex.c:1002 [inline]
 __mutex_lock+0xa3b/0x1670 kernel/locking/mutex.c:1072
 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087
 __blkdev_get+0x19b/0x1400 fs/block_dev.c:1489
 blkdev_get+0xc1/0xae0 fs/block_dev.c:1640
 blkdev_open+0x205/0x290 fs/block_dev.c:1798
 do_dentry_open+0x48a/0x1210 fs/open.c:771
 vfs_open+0xa0/0xd0 fs/open.c:880
 do_last fs/namei.c:3418 [inline]
 path_openat+0x144f/0x5650 fs/namei.c:3534
 do_filp_open+0x26f/0x370 fs/namei.c:3564
 do_sys_open+0x59a/0x7c0 fs/open.c:1063
 __do_sys_open fs/open.c:1081 [inline]
 __se_sys_open fs/open.c:1076 [inline]
 __x64_sys_open+0x7e/0xc0 fs/open.c:1076
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x411e50
Code: 58 30 44 00 b9 08 00 00 00 48 89 ee f3 a6 74 2a bf 60 30 44 00 b9 09 00 00 00 48 89 ee f3 a6 75 29 48 c7 03 90 1c 41 00 31 c0 <48> 83 c4 08 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 c7 03 b0 20 41
RSP: 002b:00007ffff319c2b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000411e50
RDX: 00007ffff319c32a RSI: 0000000000000002 RDI: 00007ffff319c320
RBP: 0000000000000005 R08: 0000000000000000 R09: 000000000000000a
R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000011
R13: 0000000000286144 R14: 0000000000000002 R15: 0000000000000005
INFO: task syz-executor5:9030 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   D25864  9030   8981 0x00000000
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_read_failed_common kernel/locking/rwsem-xadd.c:280 [inline]
 rwsem_down_read_failed+0x360/0x6d0 kernel/locking/rwsem-xadd.c:297
 call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 down_read+0x9b/0x120 kernel/locking/rwsem.c:26
 __get_super.part.0+0x203/0x2e0 fs/super.c:699
 __get_super include/linux/spinlock.h:329 [inline]
 get_super+0x2e/0x50 fs/super.c:728
 fsync_bdev+0x19/0xd0 fs/block_dev.c:492
 invalidate_partition+0x36/0x60 block/genhd.c:1579
 drop_partitions.isra.0+0xf7/0x220 block/partition-generic.c:443
 rescan_partitions+0x72/0x970 block/partition-generic.c:516
 __blkdev_reread_part+0x1a2/0x230 block/ioctl.c:173
 blkdev_reread_part+0x27/0x40 block/ioctl.c:193
 loop_reread_partitions+0x1c/0x40 drivers/block/loop.c:633
 loop_set_status+0xcf7/0x1100 drivers/block/loop.c:1268
 loop_set_status64+0xc2/0x120 drivers/block/loop.c:1388
 lo_ioctl+0x518/0x2190 drivers/block/loop.c:1514
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x10e0/0x2120 block/ioctl.c:605
 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:0x457d37
Code: Bad RIP value.
RSP: 002b:00007f9908557a18 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f99085586d4 RCX: 0000000000457d37
RDX: 00007f9908557ab0 RSI: 0000000000004c04 RDI: 0000000000000007
RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000000a
R10: 0000000000000075 R11: 0000000000000202 R12: 00007f99085586d4
R13: 0000000000000006 R14: 0000000000000007 R15: 0000000000000001
INFO: task blkid:9038 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.
blkid           D26536  9038   6934 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
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3574
 __mutex_lock_common kernel/locking/mutex.c:1002 [inline]
 __mutex_lock+0xa3b/0x1670 kernel/locking/mutex.c:1072
 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087
 __blkdev_get+0x19b/0x1400 fs/block_dev.c:1489
 blkdev_get+0xc1/0xae0 fs/block_dev.c:1640
 blkdev_open+0x205/0x290 fs/block_dev.c:1798
 do_dentry_open+0x48a/0x1210 fs/open.c:771
 vfs_open+0xa0/0xd0 fs/open.c:880
 do_last fs/namei.c:3418 [inline]
 path_openat+0x144f/0x5650 fs/namei.c:3534
 do_filp_open+0x26f/0x370 fs/namei.c:3564
 do_sys_open+0x59a/0x7c0 fs/open.c:1063
 __do_sys_open fs/open.c:1081 [inline]
 __se_sys_open fs/open.c:1076 [inline]
 __x64_sys_open+0x7e/0xc0 fs/open.c:1076
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f58e0fc2120
Code: Bad RIP value.
RSP: 002b:00007ffd335c6758 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f58e0fc2120
RDX: 00007ffd335c8f3f RSI: 0000000000000000 RDI: 00007ffd335c8f3f
RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000019a4030
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005

Showing all locks held in the system:
1 lock held by khungtaskd/1040:
 #0: 0000000028974105 (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4389
1 lock held by rsyslogd/8278:
 #0: 000000008ce0ac30 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795
2 locks held by getty/8400:
 #0: 000000003ec843b2 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000cc8201ef (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/8401:
 #0: 000000009e1c66ef (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000ba8656af (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/8402:
 #0: 000000005760ad0d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 0000000070af82dc (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/8403:
 #0: 00000000362e5b0f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000558a2218 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/8404:
 #0: 00000000049b6477 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 000000009b51a8df (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/8405:
 #0: 000000007fbcb25c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 00000000631359dc (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
2 locks held by getty/8406:
 #0: 00000000fcddd251 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341
 #1: 000000008984beeb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154
1 lock held by syz-executor5/8981:
 #0: 0000000028d61d8f (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1400 fs/block_dev.c:1489
2 locks held by syz-executor2/9021:
2 locks held by syz-executor5/9030:
 #0: 0000000028d61d8f (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1f/0x40 block/ioctl.c:192
 #1: 0000000067f6dbd5 (&type->s_umount_key#85){++++}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:699
1 lock held by blkid/9038:
 #0: 0000000028d61d8f (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1400 fs/block_dev.c:1489

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

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:
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.198 msecs
NMI backtrace for cpu 1
CPU: 1 PID: 9021 Comm: syz-executor2 Not tainted 5.0.0-rc1+ #17
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_memory_region+0xbc/0x190 mm/kasan/generic.c:192
Code: 08 4c 39 c0 0f 84 8f 00 00 00 48 83 38 00 74 ed 4c 8d 40 08 eb 09 48 83 c0 01 49 39 c0 74 0a 80 38 00 74 f2 48 85 c0 75 5e 5b <41> 5c 41 5d 5d c3 41 bd 08 00 00 00 45 29 c5 4d 89 e0 4f 8d 4c 25
RSP: 0018:ffff888052a6eea0 EFLAGS: 00000246
RAX: ffffed1015ce5b90 RBX: 1ffff1100a54dddb RCX: ffffffff816c8952
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880ae72dc78
RBP: ffff888052a6eeb0 R08: 1ffff11015ce5b8f R09: ffffed1015ce5b90
R10: ffffed1015ce5b8f R11: ffff8880ae72dc7b R12: ffffed1015ce5b8f
R13: ffff888052a6ef38 R14: ffff8880ae72dc78 R15: ffffea000124e340
FS:  00007fe12f140700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 00000000876be000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kasan_check_read+0x11/0x20 mm/kasan/common.c:100
 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline]
 rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 kernel/rcu/tree.c:305
 rcu_is_watching+0x10/0x30 kernel/rcu/tree.c:932
 rcu_read_unlock include/linux/rcupdate.h:657 [inline]
 find_get_entry+0xc85/0x10a0 mm/filemap.c:1506
 pagecache_get_page+0xe6/0x1020 mm/filemap.c:1579
 find_or_create_page include/linux/pagemap.h:322 [inline]
 grow_dev_page fs/buffer.c:947 [inline]
 grow_buffers fs/buffer.c:1016 [inline]
 __getblk_slow fs/buffer.c:1043 [inline]
 __getblk_gfp+0x38a/0xd20 fs/buffer.c:1320
 __bread_gfp+0x2f/0x300 fs/buffer.c:1354
 sb_bread include/linux/buffer_head.h:307 [inline]
 udf_tread+0xf1/0x140 fs/udf/misc.c:44
 udf_read_tagged+0x50/0x530 fs/udf/misc.c:210
 udf_check_anchor_block+0x1d5/0x640 fs/udf/super.c:1775
 udf_scan_anchors+0x4b5/0x850 fs/udf/super.c:1837
 udf_find_anchor fs/udf/super.c:1880 [inline]
 udf_load_vrs+0x968/0xdd0 fs/udf/super.c:1937
 udf_fill_super+0xbac/0x2383 fs/udf/super.c:2132
 mount_bdev+0x307/0x3c0 fs/super.c:1159
 udf_mount+0x35/0x40 fs/udf/super.c:131
 mount_fs+0x123/0x43a fs/super.c:1258
 vfs_kern_mount.part.0+0xdb/0x570 fs/namespace.c:959
 vfs_kern_mount fs/namespace.c:949 [inline]
 do_new_mount fs/namespace.c:2513 [inline]
 do_mount+0x58e/0x3330 fs/namespace.c:2847
 ksys_mount+0xdb/0x150 fs/namespace.c:3063
 __do_sys_mount fs/namespace.c:3077 [inline]
 __se_sys_mount fs/namespace.c:3074 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3074
 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:00007fe12f13fc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457ec9
RDX: 0000000020000100 RSI: 00000000200000c0 RDI: 0000000020000140
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe12f1406d4
R13: 00000000004c3bc5 R14: 00000000004d69d0 R15: 00000000ffffffff

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/10 10:37 upstream 4064e47c8281 45c0c1b1 .config console log report ci-upstream-kasan-gce-selinux-root
2019/01/01 20:05 upstream e1ef035d272e 3d85f48c .config console log report ci-upstream-kasan-gce-smack-root
2018/12/04 21:51 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/27 13:48 upstream ef78e5ec9214 4b6d14f2 .config console log report ci-upstream-kasan-gce-smack-root
2018/09/28 06:31 upstream c127e59bee3e 0c2fa87b .config console log report ci-upstream-kasan-gce-selinux-root
2018/09/03 01:30 upstream 899ba79553cf a4718693 .config console log report ci-upstream-kasan-gce-root
2018/07/20 11:22 upstream fb7d1bcf1602 49f35839 .config console log report ci-upstream-kasan-gce-root
2018/07/07 05:24 upstream 29119529d8de 6c0c0099 .config console log report ci-upstream-kasan-gce-root
2018/05/25 11:29 upstream b50694381cfc f48c20b8 .config console log report ci-upstream-kasan-gce-root
2018/08/05 21:55 linux-next 116b181bb646 1beb8136 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/01 01:13 linux-next d1e0b8e0cb7a 1477993e .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.