syzbot


kernel BUG in reiserfs_in_journal

Status: upstream: reported C repro on 2022/10/16 07:52
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+5c22f792f3f1c70805bb@syzkaller.appspotmail.com
First crash: 797d, last: 659d
Fix bisection: failed (error log, bisect log)
  
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-6.1 kernel BUG in reiserfs_in_journal origin:upstream missing-backport C error 12 17d 618d 0/3 upstream: reported C repro on 2023/04/12 19:31
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

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:509!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8119 Comm: syz-executor164 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:reiserfs_in_journal+0x49c/0x6f0 fs/reiserfs/journal.c:509
Code: 39 ec 75 a7 e8 95 9d 8c ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 79 01 00 00 48 3b 5d 08 75 86 e8 74 9d 8c ff <0f> 0b e8 6d 9d 8c ff 48 8b 9b 80 06 00 00 48 b8 00 00 00 00 00 fc
RSP: 0018:ffff888095137340 EFLAGS: 00010293
RAX: ffff8880b53a6080 RBX: ffff8880b131a500 RCX: ffffffff81d5e7d1
RDX: 0000000000000000 RSI: ffffffff81d5e7fc RDI: ffffc90001b46050
RBP: ffffc90001b46048 R08: ffff888095137430 R09: 0000000000000213
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000213
R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000000b32
FS:  0000555555f9e300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555f50998438 CR3: 00000000aa2e6000 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+0x486/0xf60 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+0x1f8f/0x4cd0 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+0x948/0x3e40 fs/reiserfs/inode.c:764
 __block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978
 reiserfs_write_begin+0x39f/0xa10 fs/reiserfs/inode.c:2794
 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa9e36678d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdc5507848 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa9e36678d9
RDX: 000000006db6e559 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fa9e36d5ec0 R09: 00007fa9e36d5ec0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdc5507870
R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000
Modules linked in:
---[ end trace 4257f72bbb175b1f ]---
RIP: 0010:reiserfs_in_journal+0x49c/0x6f0 fs/reiserfs/journal.c:509
Code: 39 ec 75 a7 e8 95 9d 8c ff 48 8d 7d 08 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 79 01 00 00 48 3b 5d 08 75 86 e8 74 9d 8c ff <0f> 0b e8 6d 9d 8c ff 48 8b 9b 80 06 00 00 48 b8 00 00 00 00 00 fc
RSP: 0018:ffff888095137340 EFLAGS: 00010293
RAX: ffff8880b53a6080 RBX: ffff8880b131a500 RCX: ffffffff81d5e7d1
RDX: 0000000000000000 RSI: ffffffff81d5e7fc RDI: ffffc90001b46050
RBP: ffffc90001b46048 R08: ffff888095137430 R09: 0000000000000213
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000213
R13: 0000000000000213 R14: dffffc0000000000 R15: 0000000000000b32
FS:  0000555555f9e300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555f509820d0 CR3: 00000000aa2e6000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/16 07:51 linux-4.19.y 3f8a27f9e27b 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
2023/03/02 23:38 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
2023/02/28 19:36 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
2023/02/20 11:11 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
2023/01/15 16:28 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
2023/01/15 10:43 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
2022/12/06 04:51 linux-4.19.y 3f8a27f9e27b 045cbb84 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
2022/12/04 19:16 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in reiserfs_in_journal
* Struck through repros no longer work on HEAD.