syzbot


INFO: task hung in blk_queue_enter

Status: auto-obsoleted due to no activity on 2023/03/08 06:36
Reported-by: syzbot+eb6b0d896b4563636a0f@syzkaller.appspotmail.com
First crash: 744d, last: 744d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in blk_queue_enter block C 1595 2327d 2399d 8/28 fixed on 2018/07/09 18:05
android-414 INFO: task hung in blk_queue_enter 1 2175d 2048d 0/1 auto-closed as invalid on 2019/06/06 06:07
android-49 INFO: task hung in blk_queue_enter 1 2163d 2048d 0/3 auto-closed as invalid on 2019/06/18 00:11
upstream INFO: task hung in blk_queue_enter (2) block 2 468d 469d 0/28 auto-obsoleted due to no activity on 2023/11/09 05:10

Sample crash report:
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
INFO: task systemd-udevd:17872 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.
systemd-udevd   D26624 17872   4700 0x00000100
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
 blk_queue_enter+0x66f/0xb70 block/blk-core.c:959
 generic_make_request+0x3fe/0xdf0 block/blk-core.c:2404
 submit_bio+0xb1/0x430 block/blk-core.c:2576
 submit_bh_wbc+0x5a7/0x760 fs/buffer.c:3090
 submit_bh fs/buffer.c:3096 [inline]
 block_read_full_page+0x7cf/0xd10 fs/buffer.c:2310
 do_read_cache_page+0x533/0x1170 mm/filemap.c:2828
 read_mapping_page include/linux/pagemap.h:402 [inline]
 read_dev_sector+0xbf/0x500 block/partition-generic.c:671
 read_part_sector block/partitions/check.h:38 [inline]
 adfspart_check_ICS+0x114/0xe70 block/partitions/acorn.c:366
 check_partition+0x390/0x690 block/partitions/check.c:167
 rescan_partitions+0x1b5/0x970 block/partition-generic.c:535
 bdev_disk_changed+0x179/0x1b0 fs/block_dev.c:1435
 __blkdev_get+0x1282/0x1480 fs/block_dev.c:1561
 blkdev_get+0xb0/0x940 fs/block_dev.c:1627
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
 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:0x7f9f46733840
Code: Bad RIP value.
RSP: 002b:00007fffa2317558 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 000055ab3f742fc0 RCX: 00007f9f46733840
RDX: 000055ab3e2c6fe3 RSI: 00000000000a0800 RDI: 000055ab3f75c830
RBP: 00007fffa23176d0 R08: 000055ab3e2c6670 R09: 0000000000000010
R10: 000055ab3e2c6d0c R11: 0000000000000246 R12: 00007fffa2317620
R13: 000055ab3f74f170 R14: 0000000000000003 R15: 000000000000000e
INFO: task syz-executor.5:17882 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-executor.5  D28432 17882   8201 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
 nbd_start_device_ioctl drivers/block/nbd.c:1278 [inline]
 __nbd_ioctl drivers/block/nbd.c:1347 [inline]
 nbd_ioctl+0x765/0xbe0 drivers/block/nbd.c:1387
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601
 block_ioctl+0xe9/0x130 fs/block_dev.c:1906
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0040a37639
Code: Bad RIP value.
RSP: 002b:00007f003efaa168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f0040b57f80 RCX: 00007f0040a37639
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000004
RBP: 00007f0040a927e1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4f75cb0f R14: 00007f003efaa300 R15: 0000000000022000
INFO: task syz-executor.5:17885 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-executor.5  D29704 17885   8201 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
 nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601
 block_ioctl+0xe9/0x130 fs/block_dev.c:1906
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0040a37639
Code: Bad RIP value.
RSP: 002b:00007f003ef89168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f0040b58050 RCX: 00007f0040a37639
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003
RBP: 00007f0040a927e1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4f75cb0f R14: 00007f003ef89300 R15: 0000000000022000
INFO: task syz-executor.5:17886 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-executor.5  D29264 17886   8201 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
 blk_mq_freeze_queue_wait+0x119/0x270 block/blk-mq.c:152
 nbd_add_socket+0x168/0x840 drivers/block/nbd.c:973
 __nbd_ioctl drivers/block/nbd.c:1320 [inline]
 nbd_ioctl+0x584/0xbe0 drivers/block/nbd.c:1387
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601
 block_ioctl+0xe9/0x130 fs/block_dev.c:1906
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0040a37639
Code: Bad RIP value.
RSP: 002b:00007f003ef68168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f0040b58120 RCX: 00007f0040a37639
RDX: 0000000000000007 RSI: 000000000000ab00 RDI: 0000000000000003
RBP: 00007f0040a927e1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4f75cb0f R14: 00007f003ef68300 R15: 0000000000022000
INFO: task syz-executor.5:17916 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-executor.5  D29848 17916   8201 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
 nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601
 block_ioctl+0xe9/0x130 fs/block_dev.c:1906
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0040a37639
Code: Bad RIP value.
RSP: 002b:00007f003ef47168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f0040b581f0 RCX: 00007f0040a37639
RDX: ffffffffffffffff RSI: 000000000000ab08 RDI: 0000000000000003
RBP: 00007f0040a927e1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4f75cb0f R14: 00007f003ef47300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 00000000af8ad4a3 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7800:
 #0: 00000000ae6f3acd (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by systemd-udevd/17872:
 #0: 000000009451a00a (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor.5/17882:
 #0: 00000000ec1d491e (&nbd->config_lock){+.+.}, at: nbd_start_device_ioctl drivers/block/nbd.c:1278 [inline]
 #0: 00000000ec1d491e (&nbd->config_lock){+.+.}, at: __nbd_ioctl drivers/block/nbd.c:1347 [inline]
 #0: 00000000ec1d491e (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x765/0xbe0 drivers/block/nbd.c:1387
1 lock held by syz-executor.5/17885:
 #0: 00000000ec1d491e (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380
1 lock held by syz-executor.5/17886:
 #0: 00000000ec1d491e (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380
1 lock held by syz-executor.5/17916:
 #0: 00000000ec1d491e (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380
1 lock held by syz-executor.5/18342:
 #0: 000000009451a00a (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor.5/18694:
 #0: 000000009451a00a (&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: 4680 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__list_del_entry_valid+0xb3/0xf0 lib/list_debug.c:54
Code: 14 24 48 39 ea 0f 85 e8 51 85 04 49 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 22 49 8b 55 08 <48> 39 ea 0f 85 f9 51 85 04 5d b8 01 00 00 00 41 5c 41 5d c3 e8 44
RSP: 0018:ffff8880a1b7f908 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffffea0002a91708 RSI: 0000000000000068 RDI: ffffea00013f9210
RBP: ffffea0002a91708 R08: 0000000000000001 R09: ffffed1027fff788
R10: ffff88813fffbc43 R11: 0000000000000000 R12: ffff88813fffb828
R13: ffffea00013f9208 R14: ffff88813fffb6c0 R15: dffffc0000000000
FS:  00007fa3f765d8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa3f4c1e020 CR3: 00000000a322d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del include/linux/list.h:125 [inline]
 __rmqueue_smallest mm/page_alloc.c:1985 [inline]
 __rmqueue mm/page_alloc.c:2475 [inline]
 rmqueue mm/page_alloc.c:3034 [inline]
 get_page_from_freelist+0x180f/0x4170 mm/page_alloc.c:3373
 __alloc_pages_nodemask+0x387/0x2890 mm/page_alloc.c:4399
 __alloc_pages include/linux/gfp.h:496 [inline]
 __alloc_pages_node include/linux/gfp.h:509 [inline]
 kmem_getpages mm/slab.c:1412 [inline]
 cache_grow_begin+0xa4/0x8a0 mm/slab.c:2682
 cache_alloc_refill+0x273/0x340 mm/slab.c:3049
 ____cache_alloc mm/slab.c:3132 [inline]
 __do_cache_alloc mm/slab.c:3354 [inline]
 slab_alloc mm/slab.c:3389 [inline]
 kmem_cache_alloc+0x346/0x370 mm/slab.c:3557
 getname_flags+0xce/0x590 fs/namei.c:140
 user_path_at_empty+0x2a/0x50 fs/namei.c:2609
 user_path_at include/linux/namei.h:57 [inline]
 do_faccessat+0x248/0x7a0 fs/open.c:397
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa3f69189c7
Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007ffc7a71b928 EFLAGS: 00000246 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00007ffc7a71e950 RCX: 00007fa3f69189c7
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000055fde21cc9a3
RBP: 00007ffc7a71ba70 R08: 000055fde21c23e5 R09: 0000000000000018
R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 000055fde34278a0 R15: 00007ffc7a71bf60

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/08 06:36 linux-4.19.y 3f8a27f9e27b 6feb842b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in blk_queue_enter
* Struck through repros no longer work on HEAD.