syzbot


BUG: soft lockup in vfs_fallocate

Status: auto-closed as invalid on 2021/09/13 17:50
Reported-by: syzbot+b7ecec65cdca328e0402@syzkaller.appspotmail.com
First crash: 1074d, last: 1074d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in vfs_fallocate ext4 6 965d 993d 0/26 auto-closed as invalid on 2021/12/01 16:15
linux-4.19 INFO: rcu detected stall in vfs_fallocate 1 642d 642d 0/1 auto-obsoleted due to no activity on 2022/11/19 13:27
upstream INFO: rcu detected stall in vfs_fallocate (3) ext4 1 158d 158d 0/26 auto-obsoleted due to no activity on 2024/02/16 23:28
upstream INFO: rcu detected stall in vfs_fallocate (2) ext4 1 835d 835d 0/26 closed as invalid on 2022/02/08 10:00

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.5:19680]
Modules linked in:
irq event stamp: 3072322
hardirqs last  enabled at (3072321): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (3072322): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (0): [<ffffffff81370c69>] copy_process.part.0+0x15b9/0x8260 kernel/fork.c:1855
softirqs last disabled at (0): [<0000000000000000>]           (null)
CPU: 0 PID: 19680 Comm: syz-executor.5 Not tainted 4.19.190-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:123 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:436 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3b0/0xae0 kernel/locking/qspinlock.c:474
Code: 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 41 83 ec 01 0f 84 38 04 00 00 <41> 0f b6 45 00 38 d8 7f 08 84 c0 0f 85 75 05 00 00 0f b6 45 00 84
RSP: 0018:ffff8880a3797278 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffff11046a07280
RDX: 0000000000000001 RSI: ffffffff81678725 RDI: 0000000000000282
RBP: ffff888235039400 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 00000000000079e6
R13: ffffed1046a07280 R14: 0000000000000001 R15: ffff8880ba02bd80
FS:  00007f58cc8f7700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd686d99d7 CR3: 000000003d971000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
 do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
 spin_lock include/linux/spinlock.h:329 [inline]
 ext4_lock_group fs/ext4/ext4.h:3022 [inline]
 ext4_mb_regular_allocator+0xc57/0x1100 fs/ext4/mballoc.c:2203
 ext4_mb_new_blocks+0x1b45/0x4370 fs/ext4/mballoc.c:4566
 ext4_ext_map_blocks+0x2aa2/0x7390 fs/ext4/extents.c:4487
 ext4_map_blocks+0x7a2/0x1a50 fs/ext4/inode.c:657
 ext4_alloc_file_blocks.isra.0+0x2ca/0xa70 fs/ext4/extents.c:4714
 ext4_fallocate+0x7cf/0x2150 fs/ext4/extents.c:4999
 vfs_fallocate+0x487/0x9a0 fs/open.c:308
 ioctl_preallocate+0x186/0x200 fs/ioctl.c:482
 file_ioctl fs/ioctl.c:498 [inline]
 do_vfs_ioctl+0x1060/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:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f58cc8f7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665d9
RDX: 0000000020000040 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffc59c1b29f R14: 00007f58cc8f7300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 19632 Comm: syz-executor.4 Not tainted 4.19.190-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:debug_lockdep_rcu_enabled+0x23/0xe0 kernel/rcu/update.c:253
Code: 00 00 00 00 0f 1f 00 48 c7 c0 84 e7 26 8b 53 48 ba 00 00 00 00 00 fc ff df 48 89 c1 83 e0 07 48 c1 e9 03 83 c0 03 0f b6 14 11 <38> d0 7c 08 84 d2 0f 85 87 00 00 00 8b 35 1f 6a d6 09 85 f6 74 79
RSP: 0018:ffff8880ba1078c0 EFLAGS: 00000002
RAX: 0000000000000007 RBX: ffff8880424a8400 RCX: 1ffffffff164dcf0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880424a8c84
RBP: ffffffff89f953c8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c66305b R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000001
FS:  00007fa340bf6700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd686e1c20 CR3: 000000004924e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0x2e7/0x3c0 kernel/locking/lockdep.c:3907
 seqcount_lockdep_reader_access include/linux/seqlock.h:81 [inline]
 read_seqcount_begin include/linux/seqlock.h:164 [inline]
 ktime_get+0xd0/0x2f0 kernel/time/timekeeping.c:756
 clockevents_program_event+0x141/0x350 kernel/time/clockevents.c:336
 tick_program_event+0xac/0x140 kernel/time/tick-oneshot.c:48
 hrtimer_interrupt+0x40a/0x9e0 kernel/time/hrtimer.c:1552
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:23 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:67 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xd/0x50 kernel/kcov.c:101
Code: ff 4c 89 ef e8 a4 c3 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 80 df 01 00 <65> 8b 15 8c 80 9f 7e 81 e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 83
RSP: 0018:ffff8880ba107b70 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff8880424a8400 RBX: 000000000000009c RCX: ffffffff866f4caa
RDX: 00000000ffffffb0 RSI: ffffffff866f4cb8 RDI: 0000000000000004
RBP: 00000000ffffffb0 R08: 0000000000000001 R09: 00000000ffffffb0
R10: 0000000000000004 R11: 0000000000000000 R12: ffff88802c58cb80
R13: ffff88802c58cc00 R14: 00000000ffffffb0 R15: 000000000000004c
 skb_copy_bits+0xb8/0x770 net/core/skbuff.c:2049
 skb_copy+0x23f/0x2f0 net/core/skbuff.c:1369
 mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
 mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
 mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
 __iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
 mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
 __tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
 tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:535 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:69 [inline]
RIP: 0010:write_comp_data+0x1d/0x70 kernel/kcov.c:122
Code: d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 25 80 df 01 00 65 8b 05 3a 80 9f 7e a9 00 01 1f 00 75 4f <8b> 86 60 13 00 00 83 f8 03 75 44 48 8b 86 68 13 00 00 8b b6 64 13
RSP: 0018:ffff888044e07110 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000001 RBX: 0000000000001800 RCX: ffffffff81e21e94
RDX: 0000000000000800 RSI: ffff8880424a8400 RDI: 0000000000000005
RBP: 0000000000002000 R08: 0000000000000000 R09: 000000000000001f
R10: 0000000000000005 R11: 00000000b4933bf3 R12: ffff88809649e000
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000800
 ext4_set_bits+0xa4/0x110 fs/ext4/mballoc.c:1327
 mb_mark_used+0x955/0xcb0 fs/ext4/mballoc.c:1625
 ext4_mb_use_best_found+0x1f2/0x790 fs/ext4/mballoc.c:1645
 ext4_mb_find_by_goal+0xab3/0x1340 fs/ext4/mballoc.c:1863
 ext4_mb_regular_allocator+0x21c/0x1100 fs/ext4/mballoc.c:2127
 ext4_mb_new_blocks+0x1b45/0x4370 fs/ext4/mballoc.c:4566
 ext4_ext_map_blocks+0x2aa2/0x7390 fs/ext4/extents.c:4487
 ext4_map_blocks+0x7a2/0x1a50 fs/ext4/inode.c:657
 ext4_alloc_file_blocks.isra.0+0x2ca/0xa70 fs/ext4/extents.c:4714
 ext4_fallocate+0x7cf/0x2150 fs/ext4/extents.c:4999
 vfs_fallocate+0x487/0x9a0 fs/open.c:308
 ioctl_preallocate+0x186/0x200 fs/ioctl.c:482
 file_ioctl fs/ioctl.c:498 [inline]
 do_vfs_ioctl+0x1060/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:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa340bf6188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665d9
RDX: 0000000020000040 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd94ba0d7f R14: 00007fa340bf6300 R15: 0000000000022000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/16 17:50 linux-4.19.y 3c8c23092588 f54a5c09 .config console log report info ci2-linux-4-19 BUG: soft lockup in vfs_fallocate
* Struck through repros no longer work on HEAD.