syzbot


BUG: soft lockup in ext4_release_file

Status: auto-obsoleted due to no activity on 2024/07/20 19:54
Reported-by: syzbot+d499061a52c24762d62f@syzkaller.appspotmail.com
First crash: 170d, last: 170d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in ext4_release_file kernel 2 1210d 1222d 0/28 auto-closed as invalid on 2021/09/15 05:15
upstream INFO: rcu detected stall in ext4_release_file (2) ext4 mm C error done 3 39d 132d 0/28 upstream: reported C repro on 2024/05/30 03:27
linux-5.15 INFO: rcu detected stall in ext4_release_file 1 105d 105d 0/3 auto-obsoleted due to no activity on 2024/10/04 05:35

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz-executor.0:4547]
Modules linked in:
CPU: 0 PID: 4547 Comm: syz-executor.0 Tainted: G        W         5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
RIP: 0010:pv_hybrid_queued_unfair_trylock kernel/locking/qspinlock_paravirt.h:98 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x248/0xc40 kernel/locking/qspinlock.c:443
Code: 00 00 fc ff df 31 c0 b1 01 f0 41 0f b0 0f 84 c0 0f 84 b6 06 00 00 41 81 fc 00 00 01 00 72 24 41 81 e4 00 ff 00 00 75 1b f3 90 <eb> 98 44 89 f9 80 e1 07 80 c1 03 38 c1 7c ac 4c 89 ff e8 91 4e 5d
RSP: 0018:ffffc900000a6b60 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff8881f7037ed4 RCX: ffffffff8154f41f
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888111fe6418
RBP: ffffc900000a6c50 R08: dffffc0000000000 R09: ffffed10223fcc84
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 1ffff110223fcc83 R14: 1ffff1103ee06fd9 R15: ffff888111fe6418
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002023d000 CR3: 000000012a6ba000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
 bpf_prog_bc4ba9860fbb0da4+0x3e/0x11c
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run3+0x11e/0x250 kernel/trace/bpf_trace.c:1921
 __bpf_trace_kmem_cache_free+0x99/0xc0 include/trace/events/kmem.h:138
 trace_kmem_cache_free include/trace/events/kmem.h:138 [inline]
 kmem_cache_free+0x2c3/0x2e0 mm/slub.c:3536
 jbd2_free_handle include/linux/jbd2.h:1602 [inline]
 jbd2_journal_stop+0x82c/0xc70 fs/jbd2/transaction.c:1964
 __ext4_journal_stop+0x111/0x1c0 fs/ext4/ext4_jbd2.c:127
 ext4_writepages+0x2c01/0x4000 fs/ext4/inode.c:2843
 do_writepages+0x40e/0x670 mm/page-writeback.c:2366
 filemap_fdatawrite_wbc+0x248/0x2a0 mm/filemap.c:404
 __filemap_fdatawrite_range mm/filemap.c:437 [inline]
 __filemap_fdatawrite mm/filemap.c:443 [inline]
 filemap_flush+0x10c/0x150 mm/filemap.c:470
 ext4_alloc_da_blocks+0x77/0x1a0 fs/ext4/inode.c:3152
 ext4_release_file+0x84/0x310 fs/ext4/file.c:143
 __fput+0x3fe/0x910 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc48/0x2ca0 kernel/exit.c:878
 do_group_exit+0x141/0x310 kernel/exit.c:1000
 get_signal+0x7a3/0x1630 kernel/signal.c:2896
 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314
 irqentry_exit+0x12/0x40 kernel/entry/common.c:405
 exc_general_protection+0x327/0x4b0 arch/x86/kernel/traps.c:562
 asm_exc_general_protection+0x27/0x30 arch/x86/include/asm/idtentry.h:562
RIP: 0033:0x7f57058e6eb1
Code: Unable to access opcode bytes at RIP 0x7f57058e6e87.
RSP: 002b:0000000020000190 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007f5705a14f80 RCX: 00007f57058e6ea9
RDX: 00000000200002c0 RSI: 0000000020000190 RDI: 0000000040000000
RBP: 00007f57059334a4 R08: 00000000200012c0 R09: 00000000200012c0
R10: 0000000020000300 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000000b R14: 00007f5705a14f80 R15: 00007ffd5769c1f8
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4677 Comm: syz-executor.3 Tainted: G        W         5.15.148-syzkaller-00013-gad06eaf051cd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_halt arch/x86/include/asm/irqflags.h:57 [inline]
RIP: 0010:halt arch/x86/include/asm/irqflags.h:98 [inline]
RIP: 0010:kvm_wait+0x117/0x180 arch/x86/kernel/kvm.c:912
Code: 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 53 41 0f b6 45 00 44 38 f0 0f 85 63 ff ff ff 66 90 0f 00 2d 8a 03 f3 03 f4 <e9> 54 ff ff ff fa 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b
RSP: 0018:ffffc90000a27360 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92000144e70 RCX: ffffffff8154f88f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888111fe6418
RBP: ffffc90000a27410 R08: dffffc0000000000 R09: ffffed10223fcc84
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888111fe6418 R14: 0000000000000003 R15: 1ffff92000144e74
FS:  00005555566f7480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e724000 CR3: 0000000139795000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 sock_hash_delete_elem+0xb1/0x2f0 net/core/sock_map.c:937
 bpf_prog_bc4ba9860fbb0da4+0x3e/0x68
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run3+0x11e/0x250 kernel/trace/bpf_trace.c:1921
 __bpf_trace_timer_start+0x2b/0x40 include/trace/events/timer.h:52
 __traceiter_timer_start+0x7f/0xd0 include/trace/events/timer.h:52
 trace_timer_start include/trace/events/timer.h:52 [inline]
 enqueue_timer+0x351/0x4c0 kernel/time/timer.c:592
 internal_add_timer kernel/time/timer.c:617 [inline]
 __mod_timer+0x8d3/0xcf0 kernel/time/timer.c:1068
 add_timer+0x68/0x80 kernel/time/timer.c:1150
 __queue_delayed_work+0x16d/0x1f0 kernel/workqueue.c:1697
 queue_delayed_work_on+0x10f/0x180 kernel/workqueue.c:1722
 queue_delayed_work include/linux/workqueue.h:525 [inline]
 schedule_delayed_work include/linux/workqueue.h:629 [inline]
 kvfree_call_rcu+0x45b/0x7d0 kernel/rcu/tree.c:3625
 sock_hash_free_elem net/core/sock_map.c:898 [inline]
 sock_hash_delete_from_link net/core/sock_map.c:921 [inline]
 sock_map_unlink net/core/sock_map.c:1493 [inline]
 sock_map_remove_links+0x4a3/0x570 net/core/sock_map.c:1505
 sock_map_close+0x2ac/0x4c0 net/core/sock_map.c:1546
 unix_release+0x82/0xc0 net/unix/af_unix.c:949
 __sock_release net/socket.c:649 [inline]
 sock_close+0xdf/0x270 net/socket.c:1336
 __fput+0x3fe/0x910 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f4d580a4d9a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffc282e5340 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 000000000000000a RCX: 00007f4d580a4d9a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000009
RBP: 00007f4d581d5980 R08: 00007f4d58028000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000293 R12: 0000000000083d4a
R13: 0000000000083d18 R14: 00007ffc282e5500 R15: 00007f4d5805ccb0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/21 19:49 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in ext4_release_file
* Struck through repros no longer work on HEAD.