syzbot


kernel BUG in flush_journal_list

Status: upstream: reported C repro on 2023/07/15 16:54
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+b7282a2fdc517e2c9940@syzkaller.appspotmail.com
First crash: 448d, last: 35d
Bug presence (1)
Date Name Commit Repro Result
2023/07/15 upstream (ToT) 831fe284d827 C [report] UBSAN: array-index-out-of-bounds in do_journal_end
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in flush_journal_list reiserfs C done done 3 293d 481d 25/28 fixed on 2024/01/30 15:47
Fix bisection attempts (11)
Created Duration User Patch Repo Result
2024/08/31 11:23 2h16m bisect fix linux-5.15.y OK (0) job log log
2024/07/24 07:49 1h39m bisect fix linux-5.15.y OK (0) job log log
2024/06/08 11:38 1h07m bisect fix linux-5.15.y OK (0) job log log
2024/05/08 18:09 1h03m bisect fix linux-5.15.y OK (0) job log log
2024/04/04 09:16 2h41m bisect fix linux-5.15.y OK (0) job log log
2024/03/04 14:53 50m bisect fix linux-5.15.y OK (0) job log log
2024/01/28 01:57 1h33m bisect fix linux-5.15.y OK (0) job log log
2023/12/28 17:53 49m bisect fix linux-5.15.y OK (0) job log log
2023/11/28 00:43 50m bisect fix linux-5.15.y OK (0) job log log
2023/10/26 22:31 51m bisect fix linux-5.15.y OK (0) job log log
2023/09/25 01:17 49m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
REISERFS error (device loop0): vs-13050 reiserfs_update_sd_size: i/o failure occurred trying to update [2 2 0x0 SD] stat data
REISERFS warning (device loop0): clm-6006 reiserfs_dirty_inode: writing inode 2 on readonly FS
------------[ cut here ]------------
kernel BUG at fs/reiserfs/journal.c:1449!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3500 Comm: syz-executor409 Not tainted 5.15.120-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:flush_journal_list+0x1c41/0x1c80 fs/reiserfs/journal.c:1449
Code: eb 8d 16 8c 48 c7 c1 80 73 9b 8a e8 89 60 fb ff e8 84 51 6e ff 0f 0b e8 7d 51 6e ff 0f 0b e8 76 51 6e ff 0f 0b e8 6f 51 6e ff <0f> 0b e8 68 51 6e ff 0f 0b e8 61 51 6e ff 0f 0b e8 5a 51 6e ff 0f
RSP: 0018:ffffc900024df6e0 EFLAGS: 00010293
RAX: ffffffff8211af31 RBX: 0000000000000001 RCX: ffff8880232e3b80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff821199b5 R09: ffffed100e7fb858
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888073fdc2b8
R13: ffffc90002df30d8 R14: 1ffff1100e7fb857 R15: 1ffff920005be61d
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8b7e1ef1f8 CR3: 000000000c68e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 flush_older_journal_lists fs/reiserfs/journal.c:1315 [inline]
 flush_journal_list+0xeb5/0x1c80 fs/reiserfs/journal.c:1572
 do_journal_end+0x32db/0x4650 fs/reiserfs/journal.c:4299
 do_journal_release+0x478/0x4d0 fs/reiserfs/journal.c:1937
 journal_release+0x1b/0x30 fs/reiserfs/journal.c:1968
 reiserfs_put_super+0x237/0x4b0 fs/reiserfs/super.c:616
 generic_shutdown_super+0x136/0x2c0 fs/super.c:475
 kill_block_super+0x7a/0xe0 fs/super.c:1405
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0x6a3/0x2480 kernel/exit.c:872
 do_group_exit+0x144/0x310 kernel/exit.c:994
 __do_sys_exit_group kernel/exit.c:1005 [inline]
 __se_sys_exit_group kernel/exit.c:1003 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003
 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+0x61/0xcb
RIP: 0033:0x7f8b7e1a4c89
Code: Unable to access opcode bytes at RIP 0x7f8b7e1a4c5f.
RSP: 002b:00007ffd938c5e18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f8b7e1a4c89
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007f8b7e222390 R08: ffffffffffffffb8 R09: 00007ffd938c5ef0
R10: 0000000020000000 R11: 0000000000000246 R12: 00007f8b7e222390
R13: 0000000000000000 R14: 00007f8b7e223100 R15: 00007f8b7e172f60
 </TASK>
Modules linked in:
---[ end trace 52ed6d65f5bf5b0a ]---
RIP: 0010:flush_journal_list+0x1c41/0x1c80 fs/reiserfs/journal.c:1449
Code: eb 8d 16 8c 48 c7 c1 80 73 9b 8a e8 89 60 fb ff e8 84 51 6e ff 0f 0b e8 7d 51 6e ff 0f 0b e8 76 51 6e ff 0f 0b e8 6f 51 6e ff <0f> 0b e8 68 51 6e ff 0f 0b e8 61 51 6e ff 0f 0b e8 5a 51 6e ff 0f
RSP: 0018:ffffc900024df6e0 EFLAGS: 00010293
RAX: ffffffff8211af31 RBX: 0000000000000001 RCX: ffff8880232e3b80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff821199b5 R09: ffffed100e7fb858
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888073fdc2b8
R13: ffffc90002df30d8 R14: 1ffff1100e7fb857 R15: 1ffff920005be61d
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8b7e1ef1f8 CR3: 000000000c68e000 CR4: 00000000003506f0
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
2023/07/15 16:54 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in flush_journal_list
* Struck through repros no longer work on HEAD.