syzbot


kernel BUG in ext4_write_inline_data

Status: upstream: reported C repro on 2023/03/17 03:16
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+f4582777a19ec422b517@syzkaller.appspotmail.com
Fix commit: ext4: fix race condition between buffer write and page_mkwrite
Patched on: [], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb]
First crash: 409d, last: 2d15h
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [ext4?] kernel BUG in ext4_write_inline_data 0 (21) 2024/04/19 03:44
[PATCH v2] ext4: fix race condition between buffer write and page_mkwrite 14 (14) 2024/04/15 14:07
[syzbot] Monthly ext4 report (May 2023) 5 (6) 2023/06/03 06:20
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in ext4_write_inline_data ext4 C 4 442d 537d 0/1 upstream: reported C repro on 2022/11/04 18:44
upstream kernel BUG at fs/ext4/inline.c:LINE! ext4 C done done 76 465d 1289d 22/26 fixed on 2023/02/24 13:50
android-6-1 kernel BUG in ext4_write_inline_data origin:lts C error 13 1d02h 297d 0/2 upstream: reported C repro on 2023/07/02 21:30
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 419d 1166d 0/1 upstream: reported C repro on 2021/02/14 13:39
android-5-10 kernel BUG in ext4_write_inline_data ext4 C error inconclusive 3 438d 536d 2/2 fixed on 2023/05/04 14:51
android-54 kernel BUG in ext4_write_inline_data C 3 498d 536d 2/2 fixed on 2023/04/05 17:17
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/12/15 03:26 13m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 44c026a73be8 report log
2023/12/13 11:12 17m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 44c026a73be8 report log
2023/06/02 03:18 13m tytso@mit.edu patch git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git ext4_for_linus_stable report log

Sample crash report:
loop0: detected capacity change from 0 to 2048
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:235!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 6552 Comm: syz-executor237 Not tainted 6.8.0-rc5-syzkaller-00329-gab0a97cffa0b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:ext4_write_inline_data+0x377/0x460 fs/ext4/inline.c:235
Code: 2f 4d ff e8 fb 2e 4d ff 45 8d 64 2c c4 b8 3c 00 00 00 29 e8 4c 63 e8 e9 ba fe ff ff e8 e2 2e 4d ff 90 0f 0b e8 da 2e 4d ff 90 <0f> 0b e8 12 5d a6 ff e9 ca fd ff ff 4c 89 ff e8 05 5d a6 ff e9 65
RSP: 0018:ffffc9000a63f500 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888077713eb0 RCX: ffffffff823e1d84
RDX: ffff888020d4bb80 RSI: ffffffff823e1f96 RDI: 0000000000000006
RBP: 0000000000000004 R08: 0000000000000006 R09: 0000000000001000
R10: 000000000000003c R11: 0000000000000003 R12: 0000000000000ffc
R13: 0000000000001000 R14: ffffc9000a63f5a8 R15: ffff88807771446a
FS:  00007f7284da86c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 0000000023318000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_write_inline_data_end+0x279/0xc20 fs/ext4/inline.c:773
 ext4_da_write_end+0x5f5/0xce0 fs/ext4/inode.c:3022
 generic_perform_write+0x338/0x620 mm/filemap.c:3941
 ext4_buffered_write_iter+0x11f/0x3d0 fs/ext4/file.c:299
 ext4_file_write_iter+0x819/0x1960 fs/ext4/file.c:698
 call_write_iter include/linux/fs.h:2087 [inline]
 iter_file_splice_write+0x908/0x10b0 fs/splice.c:743
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x19b/0x6d0 fs/splice.c:1164
 splice_direct_to_actor+0x347/0xa40 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0x17e/0x250 fs/splice.c:1233
 do_sendfile+0xaac/0xdb0 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64 fs/read_write.c:1348 [inline]
 __x64_sys_sendfile64+0x1da/0x220 fs/read_write.c:1348
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd5/0x270 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f7284debb59
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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:00007f7284da8218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f7284e746c8 RCX: 00007f7284debb59
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f7284e746c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 00007f7284e40840
R13: 00007f7284e400c0 R14: 0000000020000f40 R15: 0030656c69662f2e
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_write_inline_data+0x377/0x460 fs/ext4/inline.c:235
Code: 2f 4d ff e8 fb 2e 4d ff 45 8d 64 2c c4 b8 3c 00 00 00 29 e8 4c 63 e8 e9 ba fe ff ff e8 e2 2e 4d ff 90 0f 0b e8 da 2e 4d ff 90 <0f> 0b e8 12 5d a6 ff e9 ca fd ff ff 4c 89 ff e8 05 5d a6 ff e9 65
RSP: 0018:ffffc9000a63f500 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888077713eb0 RCX: ffffffff823e1d84
RDX: ffff888020d4bb80 RSI: ffffffff823e1f96 RDI: 0000000000000006
RBP: 0000000000000004 R08: 0000000000000006 R09: 0000000000001000
R10: 000000000000003c R11: 0000000000000003 R12: 0000000000000ffc
R13: 0000000000001000 R14: ffffc9000a63f5a8 R15: ffff88807771446a
FS:  00007f7284da86c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7284e27a50 CR3: 0000000023318000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (30):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/25 17:50 upstream ab0a97cffa0b 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/12/27 04:14 upstream fbafc3e621c3 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/10/17 00:56 upstream 58720809f527 6388bc36 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data
2023/09/28 19:36 upstream 633b47cb009d c2ab1e5d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root kernel BUG in ext4_write_inline_data
2023/07/14 20:30 upstream 4b810bf037e5 d624500f .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/05/22 20:06 upstream 44c026a73be8 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data
2024/04/15 17:15 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2024/04/08 09:47 upstream fe46a7dd189e ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in ext4_write_inline_data
2024/04/23 00:07 upstream a2c63a3f3d68 21339d7b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in ext4_write_inline_data
2024/04/14 17:41 upstream 7efd0a74039f c8349e48 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in ext4_write_inline_data
2024/04/12 01:08 upstream 00dcf5d862e8 27de0a5c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in ext4_write_inline_data
2024/04/07 17:00 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in ext4_write_inline_data
2024/04/05 11:04 upstream c88b9b4cde17 47d9c0ed .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in ext4_write_inline_data
2023/08/14 07:16 upstream 4c75bf7e4a0e 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in ext4_write_inline_data
2023/07/10 16:49 upstream 06c2afb862f9 d47e94ee .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in ext4_write_inline_data
2023/06/18 22:43 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/06/11 15:26 upstream 022ce8862dff 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/06/09 15:16 upstream 33f2b5785a2b 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data
2023/06/08 19:41 upstream 5f63595ebd82 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/06/05 16:26 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data
2023/06/05 10:05 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data
2023/06/05 00:14 upstream 9561de3a55be a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/06/03 10:05 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/05/30 11:10 upstream 8b817fded42d 8d5c7541 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data
2023/05/30 08:44 upstream 8b817fded42d 8d5c7541 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/05/29 17:18 upstream e338142b39cf cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/05/28 22:04 upstream 7877cb91f108 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in ext4_write_inline_data
2023/03/13 03:13 upstream 134231664868 5205ef30 .config console log report info ci-qemu-upstream-386 kernel BUG in ext4_write_inline_data
2023/06/08 19:43 linux-next 715abedee4cd 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ext4_write_inline_data
2023/05/28 16:49 linux-next 715abedee4cd cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ext4_write_inline_data
* Struck through repros no longer work on HEAD.