syzbot


kernel BUG in mark_buffer_dirty_inode

Status: upstream: reported C repro on 2025/09/26 01:25
Reported-by: syzbot+ab5d2ec66a8df4e576ed@syzkaller.appspotmail.com
First crash: 85d, last: 1d10h
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 kernel BUG in mark_buffer_dirty_inode (2) -1 1 226d 226d 0/2 auto-obsoleted due to no activity on 2025/08/05 18:20
linux-6.1 kernel BUG in mark_buffer_dirty_inode -1 1 344d 344d 0/3 auto-obsoleted due to no activity on 2025/04/20 01:10
android-54 kernel BUG at fs/buffer.c:LINE! ext4 -1 C 4762 209d 2159d 0/2 upstream: reported C repro on 2020/01/21 13:12
android-6-1 kernel BUG in mark_buffer_dirty_inode -1 syz inconclusive 3 369d 438d 0/2 auto-obsoleted due to no activity on 2025/03/16 04:31
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/10/11 05:12 13m retest repro android13-5.10-lts report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2025/12/18 17:44 1h31m bisect fix android13-5.10-lts OK (0) job log log
2025/11/15 11:24 58m bisect fix android13-5.10-lts OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/buffer.c:581!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 384 Comm: syz.1.18 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:mark_buffer_dirty_inode+0x308/0x310 fs/buffer.c:581
Code: 74 08 4c 89 f7 e8 78 32 ea ff 4d 89 2e 48 8b 7d a8 e8 2c 92 c4 02 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 68 44 b0 ff <0f> 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 54 53 48 89 fb
RSP: 0018:ffffc90000dd7770 EFLAGS: 00010293
RAX: ffffffff81b361a8 RBX: ffff88810044b590 RCX: ffff888111b213c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888111b213c0
RBP: ffffc90000dd77c8 R08: dffffc0000000000 R09: fffff9400088be79
R10: fffff9400088be79 R11: 1ffffd400088be78 R12: dffffc0000000000
R13: ffff88810919c290 R14: 1ffff11021233869 R15: ffff88810919c348
FS:  000055556e0f2500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4ebccf4000 CR3: 00000001118dd000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __ext4_handle_dirty_metadata+0x25e/0x7f0 fs/ext4/ext4_jbd2.c:362
 ext4_xattr_release_block+0x72e/0x9f0 fs/ext4/xattr.c:1303
 ext4_xattr_delete_inode+0xa6f/0xbf0 fs/ext4/xattr.c:2952
 ext4_evict_inode+0x10d3/0x1760 fs/ext4/inode.c:300
 evict+0x478/0x910 fs/inode.c:612
 iput_final fs/inode.c:1736 [inline]
 iput+0x638/0x7c0 fs/inode.c:1762
 dentry_unlink_inode+0x2cf/0x380 fs/dcache.c:378
 __dentry_kill+0x44f/0x650 fs/dcache.c:583
 dentry_kill+0xc0/0x2a0 fs/dcache.c:-1
 dput+0x42/0x80 fs/dcache.c:883
 __fput+0x4fe/0x770 fs/file_table.c:294
 ____fput+0x15/0x20 fs/file_table.c:314
 task_work_run+0x127/0x190 kernel/task_work.c:189
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172
 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199
 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274
 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f3a9e2faec9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffec684a638 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 0000000000006d16 RCX: 00007f3a9e2faec9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 00000006c684a92f
R10: 0000001b32420000 R11: 0000000000000246 R12: 00007f3a9e551fac
R13: 00007f3a9e551fa0 R14: ffffffffffffffff R15: 0000000000000005
Modules linked in:
---[ end trace a9398cb23ecff67c ]---
RIP: 0010:mark_buffer_dirty_inode+0x308/0x310 fs/buffer.c:581
Code: 74 08 4c 89 f7 e8 78 32 ea ff 4d 89 2e 48 8b 7d a8 e8 2c 92 c4 02 48 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 68 44 b0 ff <0f> 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 54 53 48 89 fb
RSP: 0018:ffffc90000dd7770 EFLAGS: 00010293
RAX: ffffffff81b361a8 RBX: ffff88810044b590 RCX: ffff888111b213c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888111b213c0
RBP: ffffc90000dd77c8 R08: dffffc0000000000 R09: fffff9400088be79
R10: fffff9400088be79 R11: 1ffffd400088be78 R12: dffffc0000000000
R13: ffff88810919c290 R14: 1ffff11021233869 R15: ffff88810919c348
FS:  000055556e0f2500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff78b9d000 CR3: 00000001118dd000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/26 01:23 android13-5.10-lts 911f602c2237 0abd0691 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-10 kernel BUG in mark_buffer_dirty_inode
* Struck through repros no longer work on HEAD.