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 ci-upstream-kmsan-gce-386 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-usb]
First crash: 270d, last: 53d
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 (9) 2023/11/29 08:51
[PATCH v2] ext4: fix race condition between buffer write and page_mkwrite 11 (11) 2023/06/06 12:19
[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 303d 399d 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 327d 1150d 24/25 fixed on 2023/02/24 13:50
android-6-1 kernel BUG in ext4_write_inline_data origin:lts C error 6 7h54m 159d 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 280d 1027d 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 299d 397d 2/2 fixed on 2023/05/04 14:51
android-54 kernel BUG in ext4_write_inline_data C 3 360d 397d 2/2 fixed on 2023/04/05 17:17
Last patch testing requests (1)
Created Duration User Patch Repo Result
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:
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:235!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5037 Comm: syz-executor814 Not tainted 6.6.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:ext4_write_inline_data+0x375/0x460 fs/ext4/inline.c:235
Code: e9 d0 3c 55 ff e8 cb 3c 55 ff 45 8d 64 2c c4 b8 3c 00 00 00 29 e8 4c 63 e8 e9 ba fe ff ff e8 b2 3c 55 ff 0f 0b e8 ab 3c 55 ff <0f> 0b e8 b4 f4 aa ff e9 cc fd ff ff 4c 89 ff e8 a7 f4 aa ff e9 67
RSP: 0018:ffffc90003b1f3a8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880797fb4b0 RCX: 0000000000000000
RDX: ffff888078c31dc0 RSI: ffffffff82328d95 RDI: 0000000000000006
RBP: 0000000000000080 R08: 0000000000000006 R09: 0000000000000081
R10: 0000000000000080 R11: ffffffff81dd6061 R12: 0000000000000001
R13: 0000000000000081 R14: ffffc90003b1f450 R15: ffff8880797fba6a
FS:  00007f1841e396c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1839a29000 CR3: 00000000752cd000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ext4_write_inline_data_end+0x279/0xc10 fs/ext4/inline.c:774
 ext4_da_write_end+0x691/0x1170 fs/ext4/inode.c:3017
 generic_perform_write+0x32f/0x600 mm/filemap.c:3980
 ext4_buffered_write_iter+0x11f/0x3c0 fs/ext4/file.c:299
 ext4_file_write_iter+0x7f7/0x1860 fs/ext4/file.c:717
 call_write_iter include/linux/fs.h:1956 [inline]
 do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735
 do_iter_write+0x17f/0x830 fs/read_write.c:860
 vfs_iter_write+0x7a/0xb0 fs/read_write.c:901
 iter_file_splice_write+0x698/0xbf0 fs/splice.c:736
 do_splice_from fs/splice.c:933 [inline]
 direct_splice_actor+0x118/0x180 fs/splice.c:1142
 splice_direct_to_actor+0x347/0xa30 fs/splice.c:1088
 do_splice_direct+0x1af/0x280 fs/splice.c:1194
 do_sendfile+0xb88/0x1390 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x1d6/0x220 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1841e7cbd9
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:00007f1841e39218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f1841f056c8 RCX: 00007f1841e7cbd9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000006
RBP: 00007f1841f056c0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000001ffff R11: 0000000000000246 R12: 00007f1841ed182c
R13: 00007f1841ed10c0 R14: 00000000200007c0 R15: 8088e3ad122bc192
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_write_inline_data+0x375/0x460 fs/ext4/inline.c:235
Code: e9 d0 3c 55 ff e8 cb 3c 55 ff 45 8d 64 2c c4 b8 3c 00 00 00 29 e8 4c 63 e8 e9 ba fe ff ff e8 b2 3c 55 ff 0f 0b e8 ab 3c 55 ff <0f> 0b e8 b4 f4 aa ff e9 cc fd ff ff 4c 89 ff e8 a7 f4 aa ff e9 67
RSP: 0018:ffffc90003b1f3a8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880797fb4b0 RCX: 0000000000000000
RDX: ffff888078c31dc0 RSI: ffffffff82328d95 RDI: 0000000000000006
RBP: 0000000000000080 R08: 0000000000000006 R09: 0000000000000081
R10: 0000000000000080 R11: ffffffff81dd6061 R12: 0000000000000001
R13: 0000000000000081 R14: ffffc90003b1f450 R15: ffff8880797fba6a
FS:  00007f1841e396c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1839a29000 CR3: 00000000752cd000 CR4: 0000000000350ef0

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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.