syzbot


kernel BUG in ext4_writepages

Status: upstream: reported C repro on 2023/03/13 06:22
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+84277fde3a1f96f51f90@syzkaller.appspotmail.com
First crash: 355d, last: 3d22h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/05/07 upstream (ToT) fc4354c6e5c2 C [report] kernel BUG in ext4_do_writepages
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG at fs/ext4/inode.c:LINE! ext4 C error 145 361d 1235d 0/1 upstream: reported C repro on 2020/10/14 01:19
android-54 kernel BUG at fs/ext4/inode.c:LINE! ext4 C 154 2d15h 1508d 0/2 upstream: reported C repro on 2020/01/14 12:13
linux-4.14 kernel BUG at fs/ext4/inode.c:LINE! ext4 C 11 369d 1163d 0/1 upstream: reported C repro on 2020/12/25 03:51
linux-6.1 kernel BUG in ext4_writepages origin:upstream C 35 4d00h 355d 0/3 upstream: reported C repro on 2023/03/12 17:26
android-5-15 kernel BUG in ext4_writepages ext4 origin:upstream C error 73 1d02h 500d 0/2 upstream: reported C repro on 2022/10/18 14:12
android-5-10 kernel BUG in ext4_writepages C error 5 500d 662d 2/2 fixed on 2022/11/16 18:44
android-6-1 kernel BUG in ext4_writepages origin:upstream C error 25 6d06h 271d 0/2 upstream: reported C repro on 2023/06/05 07:33
upstream kernel BUG in mpage_prepare_extent_to_map ext4 C done error 145 445d 1006d 0/26 upstream: reported C repro on 2021/05/31 07:15
android-5-10 kernel BUG in ext4_writepages (2) ext4 C error inconclusive 103 2d19h 461d 0/2 upstream: reported C repro on 2022/11/27 00:51
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/10/12 20:22 0m bisect fix linux-5.15.y error job log (0)
2023/04/26 05:38 39m bisect fix linux-5.15.y job log (0) log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2722!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10574 Comm: syz-executor113 Not tainted 5.15.149-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:ext4_writepages+0x3d02/0x3d10 fs/ext4/inode.c:2721
Code: c7 10 85 a8 8c 4c 89 f2 e8 3b cf 0b 02 e9 bb fb ff ff e8 31 f8 62 ff 0f 0b e8 0a bb ff 07 e8 25 f8 62 ff 0f 0b e8 1e f8 62 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 41 56 41 54 53 49
RSP: 0018:ffffc9000bccf6a0 EFLAGS: 00010293
RAX: ffffffff821d3dc2 RBX: 0000008000000000 RCX: ffff888022fd5940
RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000
RBP: ffffc9000bccfa90 R08: ffffffff821d0760 R09: ffffed100cdc414a
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000bccf960
R13: ffffc9000bccfcc0 R14: 000000d410000000 R15: 0000000000000001
FS:  00007f191f0476c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000001a497000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_writepages+0x481/0x730 mm/page-writeback.c:2364
 filemap_fdatawrite_wbc+0x1d6/0x230 mm/filemap.c:400
 __filemap_fdatawrite_range mm/filemap.c:433 [inline]
 __filemap_fdatawrite mm/filemap.c:439 [inline]
 filemap_flush+0x10c/0x150 mm/filemap.c:466
 ext4_release_file+0x7d/0x300 fs/ext4/file.c:141
 __fput+0x3bf/0x890 fs/file_table.c:280
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 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:0x7f191f8b3109
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 1c 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:00007f191f047168 EFLAGS: 00000246 ORIG_RAX: 0000000000000021
RAX: 0000000000000004 RBX: 00007f191f93c738 RCX: 00007f191f8b3109
RDX: 00007f191f8b3109 RSI: 0000000000000004 RDI: 0000000000000006
RBP: 00007f191f93c730 R08: 00007f191f0476c0 R09: 0000000000000000
R10: 00007f191f0476c0 R11: 0000000000000246 R12: 00007f191f93c73c
R13: 000000000000006e R14: 00007ffe9256be90 R15: 00007ffe9256bf78
 </TASK>
Modules linked in:
---[ end trace b62663e9f3400122 ]---
RIP: 0010:ext4_writepages+0x3d02/0x3d10 fs/ext4/inode.c:2721
Code: c7 10 85 a8 8c 4c 89 f2 e8 3b cf 0b 02 e9 bb fb ff ff e8 31 f8 62 ff 0f 0b e8 0a bb ff 07 e8 25 f8 62 ff 0f 0b e8 1e f8 62 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 41 56 41 54 53 49
RSP: 0018:ffffc9000bccf6a0 EFLAGS: 00010293
RAX: ffffffff821d3dc2 RBX: 0000008000000000 RCX: ffff888022fd5940
RDX: 0000000000000000 RSI: 0000008000000000 RDI: 0000000000000000
RBP: ffffc9000bccfa90 R08: ffffffff821d0760 R09: ffffed100cdc414a
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000bccf960
R13: ffffc9000bccfcc0 R14: 000000d410000000 R15: 0000000000000001
FS:  00007f191f0476c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556995958 CR3: 000000001a497000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/24 15:30 linux-5.15.y 458ce51d0356 8d446f15 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2024/01/02 07:40 linux-5.15.y d93fa2c78854 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/12/31 02:46 linux-5.15.y d93fa2c78854 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/11/18 12:48 linux-5.15.y 80529b4968a8 cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/03/27 03:52 linux-5.15.y 115472395b0a fbf0499a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/03/13 06:22 linux-5.15.y bbf9f29bac04 5205ef30 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in ext4_writepages
2023/07/12 13:07 linux-5.15.y d54cfc420586 2f19aa4f .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/06/23 03:12 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/03/26 20:09 linux-5.15.y 115472395b0a fbf0499a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/12/05 11:17 linux-5.15.y 9b91d36ba301 f819d6f7 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/06/25 20:17 linux-5.15.y f67653019430 79782afc .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2024/02/27 11:42 linux-5.15.y 458ce51d0356 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2024/02/19 19:13 linux-5.15.y 6139f2a02fe0 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/11/07 00:36 linux-5.15.y 12952a23a5da 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/10/23 16:24 linux-5.15.y 00c03985402e 989a3687 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/09/07 00:38 linux-5.15.y aff03380bda4 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/08/19 18:20 linux-5.15.y f6f7927ac664 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/08/05 04:01 linux-5.15.y 38d4ca22a528 cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/07/20 20:18 linux-5.15.y d54cfc420586 f49af159 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/06/05 18:12 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/05/11 23:29 linux-5.15.y b0ece631f84a adb9a3cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/05/09 05:42 linux-5.15.y 8a7f2a5c5aa1 c7a5e2a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
2023/05/02 17:09 linux-5.15.y 8a7f2a5c5aa1 52d40fd2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in ext4_writepages
* Struck through repros no longer work on HEAD.