syzbot


kernel BUG in reiserfs_in_journal

Status: upstream: reported C repro on 2022/10/16 08:57
Reported-by: syzbot+cbbb86a8f71dd37b8e7c@syzkaller.appspotmail.com
First crash: 551d, last: 417d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in reiserfs_in_journal reiserfs C error 8 413d 551d 0/1 upstream: reported C repro on 2022/10/16 07:52
linux-6.1 kernel BUG in reiserfs_in_journal origin:upstream C 12 4d06h 372d 0/3 upstream: reported C repro on 2023/04/12 19:31
linux-5.15 kernel BUG in reiserfs_in_journal origin:upstream C error 9 33d 361d 0/3 upstream: reported C repro on 2023/04/24 05:58
upstream kernel BUG in reiserfs_in_journal reiserfs C error done 179 88d 551d 0/26 auto-obsoleted due to no activity on 2024/04/01 20:58
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/02/27 07:27 30m bisect fix linux-4.14.y job log (0) log
2023/01/26 03:54 24m bisect fix linux-4.14.y job log (0) log
2022/11/17 03:14 27m bisect fix linux-4.14.y job log (0) log

Sample crash report:
REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using rupasov hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
------------[ cut here ]------------
kernel BUG at fs/reiserfs/journal.c:508!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7951 Comm: syz-executor426 Not tainted 4.14.295-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
task: ffff888097930440 task.stack: ffff888099600000
RIP: 0010:reiserfs_in_journal+0x420/0x600 fs/reiserfs/journal.c:508
RSP: 0018:ffff888099607428 EFLAGS: 00010297
RAX: ffff888097930440 RBX: ffff8880b33eee80 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000008000 RDI: ffffc90001af8050
RBP: ffffc90001af8048 R08: ffff888099607508 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000213 R14: 000000000000b0e0 R15: ffffc90001ad6000
FS:  0000555555fba300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe839d83010 CR3: 00000000af35f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 is_block_in_journal fs/reiserfs/bitmap.c:125 [inline]
 scan_bitmap_block.constprop.0+0x3db/0xd20 fs/reiserfs/bitmap.c:203
 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+0x1a63/0x4640 fs/reiserfs/bitmap.c:1375
 reiserfs_new_unf_blocknrs fs/reiserfs/reiserfs.h:3360 [inline]
 _allocate_block fs/reiserfs/inode.c:653 [inline]
 reiserfs_get_block+0x865/0x36b0 fs/reiserfs/inode.c:764
 __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038
 reiserfs_write_begin+0x2e3/0x8a0 fs/reiserfs/inode.c:2793
 generic_perform_write+0x1c9/0x420 mm/filemap.c:3055
 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208
 call_write_iter include/linux/fs.h:1780 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fcd117358d9
RSP: 002b:00007ffc8a81e408 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcd117358d9
RDX: 000000006db6e559 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fcd117a3ec0 R09: 00007fcd117a3ec0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc8a81e430
R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000
Code: 49 39 c5 75 b3 e8 41 3f a3 ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 85 17 01 00 00 48 3b 5d 08 75 92 e8 20 3f a3 ff <0f> 0b e8 19 3f a3 ff 48 8b 9b 80 06 00 00 48 b8 00 00 00 00 00 
RIP: reiserfs_in_journal+0x420/0x600 fs/reiserfs/journal.c:508 RSP: ffff888099607428
---[ end trace e540e298c4bdca88 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/16 08:57 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 kernel BUG in reiserfs_in_journal
* Struck through repros no longer work on HEAD.