syzbot


INFO: task hung in blkdev_flush_mapping (2)

Status: upstream: reported on 2026/03/18 19:16
Reported-by: syzbot+d22c70692c881c0b7af3@syzkaller.appspotmail.com
First crash: 7h00m, last: 7h00m
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in blkdev_flush_mapping 1 1 722d 722d 0/3 auto-obsoleted due to no activity on 2024/07/04 14:18
linux-6.6 INFO: task hung in blkdev_flush_mapping 1 1 235d 235d 0/2 auto-obsoleted due to no activity on 2025/11/03 12:40
linux-6.1 INFO: task hung in blkdev_flush_mapping origin:upstream 1 C error 20 347d 921d 0/3 upstream: reported C repro on 2023/09/09 22:51
upstream INFO: task hung in blkdev_flush_mapping block 1 C unreliable error 69 17h06m 821d 0/29 upstream: reported C repro on 2023/12/18 10:31

Sample crash report:
INFO: task udevd:5779 blocked for more than 144 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd           state:D stack:22032 pid:5779  ppid:5136   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1553/0x45a0 kernel/sched/core.c:6700
 schedule+0xbd/0x170 kernel/sched/core.c:6774
 io_schedule+0x80/0xd0 kernel/sched/core.c:9023
 folio_wait_bit_common+0x714/0xfa0 mm/filemap.c:1329
 __filemap_get_folio+0xbc/0xbb0 mm/filemap.c:1910
 truncate_inode_pages_range+0x46b/0xfb0 mm/truncate.c:401
 kill_bdev block/bdev.c:76 [inline]
 blkdev_flush_mapping+0x132/0x290 block/bdev.c:649
 blkdev_put_whole block/bdev.c:680 [inline]
 blkdev_put+0x498/0x760 block/bdev.c:958
 blkdev_release+0x84/0x90 block/fops.c:604
 __fput+0x234/0x970 fs/file_table.c:384
 task_work_run+0x1d4/0x260 kernel/task_work.c:245
 exit_task_work include/linux/task_work.h:43 [inline]
 do_exit+0x95a/0x2460 kernel/exit.c:883
 do_group_exit+0x21b/0x2d0 kernel/exit.c:1024
 get_signal+0x12fc/0x13f0 kernel/signal.c:2902
 arch_do_signal_or_restart+0xc2/0x800 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xa0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1e90ea7407
RSP: 002b:00007ffe516cc0c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: fffffffffffffffc RBX: 00007f1e91686880 RCX: 00007f1e90ea7407
RDX: 0000000000000200 RSI: 00007f1e91685000 RDI: 0000000000000009
RBP: 000056507ecc9050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 000056507ecd7aa8 R15: 00007f1e917ad39c
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8d132060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8d132060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8d132060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6633
2 locks held by kworker/u4:8/3443:
2 locks held by getty/5529:
 #0: ffff88823bc668a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x433/0x1390 drivers/tty/n_tty.c:2217
1 lock held by syz-executor/5767:
2 locks held by syz-executor/5775:
1 lock held by udevd/5779:
 #0: ffff888141b234c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xff/0x760 block/bdev.c:944
1 lock held by syz-executor/6122:
2 locks held by kworker/u4:12/6835:
 #0: ffff88814006fd38 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2628 [inline]
 #0: ffff88814006fd38 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x96f/0x15d0 kernel/workqueue.c:2730
 #1: ffffc9000b697d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2628 [inline]
 #1: ffffc9000b697d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x96f/0x15d0 kernel/workqueue.c:2730
1 lock held by udevd/8809:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3a6/0x3e0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x2f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xf3d/0xf80 kernel/hung_task.c:379
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8809 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:stack_trace_consume_entry+0x0/0x270 kernel/stacktrace.c:83
Code: 48 8b 0c 25 28 00 00 00 48 3b 4c 24 78 75 09 48 8d 65 f0 5b 41 5e 5d c3 e8 bd 54 0f 09 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 <f3> 0f 1e fa 55 41 57 41 56 41 55 41 54 53 48 83 ec 18 48 ba 00 00
RSP: 0018:ffffc90003687240 EFLAGS: 00000286
RAX: ffffffff8132a62a RBX: ffffc90003687300 RCX: ffff8880304c0000
RDX: 0000000000000000 RSI: ffffffff81edcf09 RDI: ffffc90003687300
RBP: ffffc900036872d0 R08: ffff8880304c0000 R09: 0000000000000003
R10: 0000000000000004 R11: 0000000000000000 R12: ffffffff81edcf09
R13: ffffc90003687660 R14: ffffffff8175be90 R15: ffffc90003687248
FS:  00007f1e91686880(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb2c41e92f8 CR3: 000000007712a000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 arch_stack_walk+0x138/0x190 arch/x86/kernel/stacktrace.c:27
 stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
 kasan_save_free_info+0x2e/0x50 mm/kasan/generic.c:522
 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:237
 kasan_slab_free include/linux/kasan.h:164 [inline]
 slab_free_hook mm/slub.c:1811 [inline]
 slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837
 slab_free mm/slub.c:3830 [inline]
 __kmem_cache_free+0xba/0x1e0 mm/slub.c:3843
 tomoyo_check_open_permission+0x31c/0x460 security/tomoyo/file.c:786
 security_file_open+0x62/0xa0 security/security.c:2854
 do_dentry_open+0x380/0x1500 fs/open.c:916
 do_open fs/namei.c:3640 [inline]
 path_openat+0x27f1/0x3230 fs/namei.c:3797
 do_filp_open+0x1f5/0x430 fs/namei.c:3824
 do_sys_openat2+0x134/0x1d0 fs/open.c:1421
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_openat fs/open.c:1452 [inline]
 __se_sys_openat fs/open.c:1447 [inline]
 __x64_sys_openat+0x139/0x160 fs/open.c:1447
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1e90ea7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffe516caff0 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f1e91686880 RCX: 00007f1e90ea7407
RDX: 0000000000080000 RSI: 000056507ecda910 RDI: ffffffffffffff9c
RBP: 000056507ecda910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000009
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/18 19:16 linux-6.6.y 4fc00fe35d46 0199f9a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in blkdev_flush_mapping
* Struck through repros no longer work on HEAD.