syzbot


kernel BUG in __ext4_journal_stop

Status: upstream: reported C repro on 2023/06/03 10:54
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+62ea9cb4a5d3e75b7ae2@syzkaller.appspotmail.com
First crash: 498d, last: 7d19h
Cause bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/06/03 lts (merge base) b1644a0031cf C [report] kernel BUG in __ext4_journal_stop
2023/06/03 upstream (ToT) 4ecd704a4c51 C [report] kernel BUG in ext4_do_writepages
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in __ext4_journal_stop origin:upstream C error 2 8d23h 567d 0/3 upstream: reported C repro on 2023/03/26 14:44
upstream kernel BUG in __ext4_journal_stop ext4 C error done 23 3d00h 685d 0/28 upstream: reported C repro on 2022/11/28 10:23
linux-6.1 kernel BUG in __ext4_journal_stop origin:upstream C 1 34d 454d 0/3 upstream: reported C repro on 2023/07/17 08:36
android-5-15 kernel BUG in __ext4_journal_stop ext4 origin:upstream C error 7 42d 686d 0/2 upstream: reported C repro on 2022/11/27 03:57
Fix bisection attempts (13)
Created Duration User Patch Repo Result
2024/10/06 02:26 1h45m bisect fix android14-6.1 OK (0) job log log
2024/08/23 15:03 41m bisect fix android14-6.1 OK (0) job log log
2024/07/21 00:09 1h34m bisect fix android14-6.1 OK (0) job log log
2024/06/07 03:18 40m bisect fix android14-6.1 OK (0) job log log
2024/05/07 21:07 1h05m bisect fix android14-6.1 OK (0) job log log
2024/04/04 07:33 47m bisect fix android14-6.1 OK (0) job log log
2024/03/04 16:53 44m bisect fix android14-6.1 OK (0) job log log
2024/01/27 02:28 45m bisect fix android14-6.1 OK (0) job log log
2023/12/27 07:36 1h02m bisect fix android14-6.1 OK (0) job log log
2023/11/26 22:52 50m bisect fix android14-6.1 OK (0) job log log
2023/10/27 01:03 52m bisect fix android14-6.1 OK (0) job log log
2023/09/22 22:15 45m bisect fix android14-6.1 OK (0) job log log
2023/07/06 12:40 1h38m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4_jbd2.c:53!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 754 Comm: syz-executor400 Not tainted 6.1.25-syzkaller-00339-g7b1489746079 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x1b3/0x1c0 fs/ext4/ext4_jbd2.c:116
Code: c3 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f8 fe ff ff e8 21 e6 d0 ff 48 ba 00 00 00 00 00 fc ff df e9 e4 fe ff ff e8 bd 78 8b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56 41
RSP: 0018:ffffc90001d57138 EFLAGS: 00010293
RAX: ffffffff81e836d3 RBX: ffffffff863a17ae RCX: ffff8881227e9300
RDX: 0000000000000000 RSI: 0000000000000322 RDI: ffffffff863a17ae
RBP: ffffc90001d57170 R08: ffffffff81edcc9b R09: ffffed102411615d
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 0000000000000000 R14: ffff888120bc9bf0 R15: 0000000000000322
FS:  00007fb6c55a7700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000efb068 CR3: 0000000122b36000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_write_inline_data_end+0x7c3/0xa90 fs/ext4/inline.c:802
 ext4_da_write_end+0x1ed/0x970 fs/ext4/inode.c:3079
 generic_perform_write+0x3e6/0x5c0 mm/filemap.c:3776
 ext4_buffered_write_iter+0x360/0x640 fs/ext4/file.c:285
 ext4_file_write_iter+0x194/0x1cf0
 do_iter_write+0x6e6/0xc50 fs/read_write.c:861
 vfs_iter_write+0x7c/0xa0 fs/read_write.c:902
 iter_file_splice_write+0x7f8/0xf90 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0xff/0x130 fs/splice.c:931
 splice_direct_to_actor+0x4b4/0xbb0 fs/splice.c:886
 do_splice_direct+0x27f/0x3c0 fs/splice.c:974
 do_sendfile+0x616/0xfe0 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb6cd91d069
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb6c55a72f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fb6cd9a17b0 RCX: 00007fb6cd91d069
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007fb6cd96e840 R08: 00007fb6c55a7700 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 00007fb6cd96e0c0
R13: 0000000020000f40 R14: 0030656c69662f2e R15: 00007fb6cd9a17b8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x1b3/0x1c0 fs/ext4/ext4_jbd2.c:116
Code: c3 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f8 fe ff ff e8 21 e6 d0 ff 48 ba 00 00 00 00 00 fc ff df e9 e4 fe ff ff e8 bd 78 8b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56 41
RSP: 0018:ffffc90001d57138 EFLAGS: 00010293
RAX: ffffffff81e836d3 RBX: ffffffff863a17ae RCX: ffff8881227e9300
RDX: 0000000000000000 RSI: 0000000000000322 RDI: ffffffff863a17ae
RBP: ffffc90001d57170 R08: ffffffff81edcc9b R09: ffffed102411615d
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 0000000000000000 R14: ffff888120bc9bf0 R15: 0000000000000322
FS:  00007fb6c55a7700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc24cdcfa8 CR3: 0000000122b36000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/03 10:53 android14-6.1 7b1489746079 a4ae4f42 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 kernel BUG in __ext4_journal_stop
2023/07/30 10:39 android14-6.1 d3b37a712ab7 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in __ext4_journal_stop
* Struck through repros no longer work on HEAD.