syzbot


BUG: scheduling while atomic in wait_transaction_locked

Status: premoderation: reported on 2024/03/18 02:57
Reported-by: syzbot+a765c1e2e77bdbc62c53@syzkaller.appspotmail.com
First crash: 88d, last: 13d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: scheduling while atomic in wait_transaction_locked 4 63d 85d 0/2 premoderation: reported on 2024/03/20 12:40

Sample crash report:
BUG: scheduling while atomic: syz-executor.4/3938/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff82072dd9>] start_this_handle+0x379/0x2080 fs/jbd2/transaction.c:383
CPU: 0 PID: 3938 Comm: syz-executor.4 Not tainted 6.1.78-syzkaller-00132-g92704e00b599 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1b lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5964
 schedule_debug kernel/sched/core.c:5991 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6626
 schedule+0xc3/0x180 kernel/sched/core.c:6809
 wait_transaction_locked+0x1e5/0x280 fs/jbd2/transaction.c:178
 add_transaction_credits fs/jbd2/transaction.c:241 [inline]
 start_this_handle+0x7a9/0x2080 fs/jbd2/transaction.c:422
 jbd2__journal_start+0x2ea/0x720 fs/jbd2/transaction.c:520
 __ext4_journal_start_sb+0x24d/0x4b0 fs/ext4/ext4_jbd2.c:105
 __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
 ext4_dirty_inode+0x8f/0x100 fs/ext4/inode.c:6071
 __mark_inode_dirty+0x200/0xa60 fs/fs-writeback.c:2433
 mark_inode_dirty include/linux/fs.h:2534 [inline]
 generic_write_end+0x202/0x300 fs/buffer.c:2227
 ext4_da_write_end+0x707/0x9a0 fs/ext4/inode.c:3109
 generic_perform_write+0x3e6/0x5c0 mm/filemap.c:3849
 ext4_buffered_write_iter+0x360/0x640 fs/ext4/file.c:285
 ext4_file_write_iter+0x194/0x1570
 call_write_iter include/linux/fs.h:2258 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x902/0xeb0 fs/read_write.c:584
 ksys_write+0x199/0x2c0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9686c7cee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9687ab00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9686db3fa0 RCX: 00007f9686c7cee9
RDX: 00000000fffffdef RSI: 0000000020000140 RDI: 0000000000000006
RBP: 00007f9686cc947f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f9686db3fa0 R15: 00007ffdc683e558
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/01 03:52 android14-6.1 92704e00b599 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
2024/04/22 01:53 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in wait_transaction_locked
2024/04/21 21:57 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
2024/04/21 15:06 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
2024/04/20 16:39 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
2024/04/20 02:41 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
2024/04/16 19:46 android14-6.1 77fec6cefe26 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
2024/04/03 20:54 android14-6.1 af361f9a1066 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
2024/03/18 02:56 android14-6.1 ef39f76e4d24 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: scheduling while atomic in wait_transaction_locked
* Struck through repros no longer work on HEAD.