syzbot


INFO: task hung in __bread_gfp

Status: upstream: reported on 2024/04/05 04:55
Reported-by: syzbot+1cdb43ecf3dc21bae9ce@syzkaller.appspotmail.com
First crash: 25d, last: 11d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in __bread_gfp (3) fs 1 906d 906d 0/26 auto-closed as invalid on 2022/02/04 04:37
upstream INFO: task hung in __bread_gfp exfat 4 2124d 2219d 0/26 auto-closed as invalid on 2019/02/22 10:29
android-49 INFO: task hung in __bread_gfp 2 2205d 2218d 0/3 auto-closed as invalid on 2019/02/22 14:34
upstream INFO: task hung in __bread_gfp (2) jfs 5 1440d 1447d 0/26 auto-closed as invalid on 2020/07/20 01:01
upstream INFO: task hung in __bread_gfp (4) reiserfs C error 3 431d 492d 0/26 auto-obsoleted due to no activity on 2023/07/25 23:59

Sample crash report:
INFO: task syz-executor.1:8043 blocked for more than 143 seconds.
      Not tainted 5.15.156-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:26592 pid: 8043 ppid:  5748 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 io_schedule+0x88/0x100 kernel/sched/core.c:8484
 bit_wait_io+0xe/0xc0 kernel/sched/wait_bit.c:209
 __wait_on_bit+0xb9/0x180 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0x1d0/0x250 kernel/sched/wait_bit.c:64
 wait_on_bit_io include/linux/wait_bit.h:101 [inline]
 __wait_on_buffer fs/buffer.c:122 [inline]
 wait_on_buffer include/linux/buffer_head.h:390 [inline]
 __bread_slow fs/buffer.c:1181 [inline]
 __bread_gfp+0x2d6/0x390 fs/buffer.c:1384
 sb_bread include/linux/buffer_head.h:337 [inline]
 isofs_fill_super+0xeb4/0x2930 fs/isofs/inode.c:673
 mount_bdev+0x2c9/0x3f0 fs/super.c:1387
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1517
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f74ecb84ea9
RSP: 002b:00007f74eb0f70c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f74eccb2f80 RCX: 00007f74ecb84ea9
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00000000200000c0
RBP: 00007f74ecbd14a4 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000100c901 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f74eccb2f80 R15: 00007ffd381a4c08
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/u4:0/9:
 #0: ffff8880b9a3a358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475
 #1: ffff8880b9a27848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4e1/0x810 kernel/sched/psi.c:882
1 lock held by khungtaskd/26:
 #0: ffffffff8c91fb20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by klogd/2951:
 #0: ffff8880b9a3a358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475
2 locks held by getty/3262:
 #0: ffff88814ae5e098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc90002bab2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
1 lock held by syz-executor.1/8043:
 #0: ffff88801f9400e0 (&type->s_umount_key#59/1){+.+.}-{3:3}, at: alloc_super+0x210/0x940 fs/super.c:229
1 lock held by syz-executor.2/8209:
 #0: ffff8880597cc0e0 (&type->s_umount_key#59/1){+.+.}-{3:3}, at: alloc_super+0x210/0x940 fs/super.c:229
1 lock held by syz-executor.1/9363:
 #0: ffff88801bb1e208 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x146/0xe10 drivers/block/nbd.c:1460

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

NMI backtrace for cpu 0
CPU: 0 PID: 26 Comm: khungtaskd Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xe72/0xeb0 kernel/hung_task.c:295
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9 Comm: kworker/u4:0 Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: phy16 ieee80211_iface_work
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:218 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0xc/0x80 kernel/kcov.c:284
Code: 08 03 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 c3 0f 1f 00 4c 8b 04 24 65 48 8b 15 74 0f 82 7e <65> 8b 05 75 0f 82 7e a9 00 01 ff 00 74 10 a9 00 01 00 00 74 5b 83
RSP: 0018:ffffc90000ce72a8 EFLAGS: 00000046
RAX: ffffffff8186dce6 RBX: 0000000000000001 RCX: ffff88813fe90000
RDX: ffff88813fe90000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000ce7350 R08: ffffffff8186dcf6 R09: fffffbfff22b9f01
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff9200019ce58 R14: ffffc90000ce72e0 R15: 0000000000000246
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056225135d030 CR3: 00000000236be000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000003
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 trace_hardirqs_on+0x16/0x80 kernel/trace/trace_preemptirq.c:42
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
 _raw_spin_unlock_irqrestore+0x8b/0x130 kernel/locking/spinlock.c:194
 debug_rcu_head_queue kernel/rcu/rcu.h:177 [inline]
 kvfree_call_rcu+0xce/0x8a0 kernel/rcu/tree.c:3587
 cfg80211_update_known_bss+0x16b/0x9e0
 cfg80211_bss_update+0x187/0x21e0 net/wireless/scan.c:1771
 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2492 [inline]
 cfg80211_inform_bss_frame_data+0xa13/0x20f0 net/wireless/scan.c:2525
 ieee80211_bss_info_update+0x7a6/0xc80 net/mac80211/scan.c:190
 ieee80211_rx_bss_info net/mac80211/ibss.c:1123 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x175e/0x2af0 net/mac80211/ibss.c:1643
 ieee80211_iface_process_skb net/mac80211/iface.c:1441 [inline]
 ieee80211_iface_work+0x78f/0xcc0 net/mac80211/iface.c:1495
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/19 07:34 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in __bread_gfp
2024/04/19 07:33 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in __bread_gfp
2024/04/05 04:54 linux-5.15.y 9465fef4ae35 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in __bread_gfp
* Struck through repros no longer work on HEAD.