syzbot


kernel BUG in reiserfs_in_journal

Status: upstream: reported C repro on 2023/04/12 19:31
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+4f14a27a1c6ce094fbcd@syzkaller.appspotmail.com
First crash: 618d, last: 17d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/12/04 linux-6.1.y (ToT) e4d90d63d385 C [report] kernel BUG in reiserfs_in_journal
2023/09/22 upstream (ToT) 27bbf45eae9c C [report] kernel BUG in reiserfs_in_journal
2024/12/04 upstream (ToT) feffde684ac2 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in reiserfs_in_journal C 1 663d 797d 0/1 upstream: reported C repro on 2022/10/16 08:57
linux-4.19 kernel BUG in reiserfs_in_journal reiserfs C error 8 659d 797d 0/1 upstream: reported C repro on 2022/10/16 07:52
linux-5.15 kernel BUG in reiserfs_in_journal origin:upstream missing-backport C error 15 2d02h 607d 0/3 upstream: reported C repro on 2023/04/24 05:58
upstream kernel BUG in reiserfs_in_journal reiserfs C error done 179 333d 797d 0/28 auto-obsoleted due to no activity on 2024/04/01 20:58
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2024/10/15 01:51 0m bisect fix linux-6.1.y error job log
2024/09/10 09:54 1h04m bisect fix linux-6.1.y OK (0) job log log
2024/08/07 16:19 1h33m bisect fix linux-6.1.y OK (0) job log log
2024/06/28 05:57 1h21m bisect fix linux-6.1.y OK (0) job log log
2024/05/20 00:16 1h03m bisect fix linux-6.1.y OK (0) job log log
2024/02/22 22:54 1h15m bisect fix linux-6.1.y OK (0) job log log
2023/12/30 11:48 1h14m bisect fix linux-6.1.y OK (0) job log log
2023/11/30 09:04 1h13m bisect fix linux-6.1.y OK (0) job log log
2023/10/28 04:08 1h48m bisect fix linux-6.1.y OK (0) job log log
2023/09/02 09:38 1h36m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using r5 hash to sort names
REISERFS (device loop0): using 3.5.x disk format
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
------------[ cut here ]------------
kernel BUG at fs/reiserfs/journal.c:505!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3553 Comm: syz-executor242 Not tainted 6.1.54-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:reiserfs_in_journal+0xa92/0xaa0 fs/reiserfs/journal.c:505
Code: f6 ff ff 48 8b 4c 24 30 80 e1 07 80 c1 03 38 c1 0f 8c 51 fd ff ff 48 8b 7c 24 30 e8 88 d4 b3 ff e9 42 fd ff ff e8 0e 24 5d ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 41 55 41
RSP: 0018:ffffc90003a6eea0 EFLAGS: 00010293
RAX: ffffffff822cf082 RBX: ffffc90003a93048 RCX: ffff88807e0e3b80
RDX: 0000000000000000 RSI: 0000000000000213 RDI: 0000000000000213
RBP: ffffc90003a93050 R08: ffffffff822ce8c9 R09: ffffed100e869409
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000213
R13: ffffc90003a912e0 R14: ffff88807b330000 R15: dffffc0000000000
FS:  000055555744c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002c80 CR3: 0000000028999000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 is_block_in_journal fs/reiserfs/bitmap.c:125 [inline]
 scan_bitmap_block+0x2de/0xfe0 fs/reiserfs/bitmap.c:188
 scan_bitmap fs/reiserfs/bitmap.c:408 [inline]
 allocate_without_wrapping_disk fs/reiserfs/bitmap.c:1161 [inline]
 blocknrs_and_prealloc_arrays_from_search_start fs/reiserfs/bitmap.c:1274 [inline]
 reiserfs_allocate_blocknrs+0x2dd9/0x5070 fs/reiserfs/bitmap.c:1375
 reiserfs_get_block+0x3296/0x5150 fs/reiserfs/inode.c:756
 __block_write_begin_int+0x544/0x1a30 fs/buffer.c:1991
 reiserfs_write_begin+0x249/0x510 fs/reiserfs/inode.c:2775
 generic_perform_write+0x2fc/0x5e0 mm/filemap.c:3754
 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3882
 generic_file_write_iter+0xab/0x310 mm/filemap.c:3914
 call_write_iter include/linux/fs.h:2205 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x7ae/0xba0 fs/read_write.c:584
 ksys_write+0x19c/0x2c0 fs/read_write.c:637
 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:0x7f94aca8a839
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007ffcda1c0a08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffcda1c0bd8 RCX: 00007f94aca8a839
RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000007
RBP: 00007f94acafe610 R08: 00007ffcda1c0bd8 R09: 00007ffcda1c0bd8
R10: 00007ffcda1c0bd8 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffcda1c0bc8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:reiserfs_in_journal+0xa92/0xaa0 fs/reiserfs/journal.c:505
Code: f6 ff ff 48 8b 4c 24 30 80 e1 07 80 c1 03 38 c1 0f 8c 51 fd ff ff 48 8b 7c 24 30 e8 88 d4 b3 ff e9 42 fd ff ff e8 0e 24 5d ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 41 57 41 56 41 55 41
RSP: 0018:ffffc90003a6eea0 EFLAGS: 00010293
RAX: ffffffff822cf082 RBX: ffffc90003a93048 RCX: ffff88807e0e3b80
RDX: 0000000000000000 RSI: 0000000000000213 RDI: 0000000000000213
RBP: ffffc90003a93050 R08: ffffffff822ce8c9 R09: ffffed100e869409
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000213
R13: ffffc90003a912e0 R14: ffff88807b330000 R15: dffffc0000000000
FS:  000055555744c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002c80 CR3: 0000000028999000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/22 08:33 linux-6.1.y a356197db198 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in reiserfs_in_journal
2024/04/15 08:33 linux-6.1.y cd5d98c0556c c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/03/03 06:17 linux-6.1.y a3eb3a74aa8c 25905f5d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/01/13 16:23 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/06/25 10:08 linux-6.1.y e84a4e368abe 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/09/22 10:59 linux-6.1.y a356197db198 0b6a67ac .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in reiserfs_in_journal
2024/04/08 19:34 linux-6.1.y 347385861c50 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/03/12 19:37 linux-6.1.y 61adba85cc40 c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/01/13 16:04 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/10/30 02:46 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/09/26 00:06 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/04/12 19:29 linux-6.1.y 543aff194ab6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
* Struck through repros no longer work on HEAD.