syzbot


BUG: unable to handle kernel paging request in cleanup_bitmap_list

Status: upstream: reported C repro on 2022/10/28 06:50
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+d8785144a949769668c8@syzkaller.appspotmail.com
First crash: 545d, last: 462d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: unable to handle kernel paging request in cleanup_bitmap_list C 1 430d 543d 0/1 upstream: reported C repro on 2022/10/30 13:58
upstream BUG: unable to handle kernel paging request in cleanup_bitmap_list reiserfs C done error 5 1204d 2216d 0/26 closed as invalid on 2023/08/03 09:58
linux-6.1 KASAN: vmalloc-out-of-bounds Read in cleanup_bitmap_list origin:upstream C 2 28d 339d 0/3 upstream: reported C repro on 2023/05/22 16:15
upstream KASAN: vmalloc-out-of-bounds Read in cleanup_bitmap_list reiserfs C error done 100 113d 545d 26/26 fixed on 2024/02/16 19:40
linux-5.15 KASAN: vmalloc-out-of-bounds Read in cleanup_bitmap_list (2) origin:upstream C 3 5d08h 88d 0/3 upstream: reported C repro on 2024/01/28 16:33
linux-5.15 KASAN: vmalloc-out-of-bounds Read in cleanup_bitmap_list 3 292d 368d 0/3 auto-obsoleted due to no activity on 2023/10/16 09:07

Sample crash report:
REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 0. Fsck?
REISERFS (device loop0): Remounting filesystem read-only
REISERFS error (device loop0): zam-7001 reiserfs_find_entry: io error
BUG: unable to handle kernel paging request at ffffc90006135000
PGD 13be43067 P4D 13be43067 PUD 23b831067 PMD a9edf067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8313 Comm: syz-executor863 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:cleanup_bitmap_list.part.0+0x2ab/0x5f0 fs/reiserfs/journal.c:233
Code: 00 0f 85 c9 01 00 00 48 8b 04 24 49 63 ec 48 c1 e5 03 4c 8b 70 08 49 01 ee 4c 89 f0 48 c1 e8 03 80 3c 18 00 0f 85 f9 01 00 00 <4d> 8b 36 4d 85 f6 0f 84 fd fe ff ff e8 c4 cc 8c ff 49 8d 7d 18 48
RSP: 0018:ffff88808f3079c8 EFLAGS: 00010246
RAX: 1ffff92000c26a00 RBX: dffffc0000000000 RCX: ffffffff81d5b85c
RDX: 0000000000000000 RSI: ffffffff81d5b86a RDI: 0000000000000004
RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000020000
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000200
R13: ffff8880ab842e80 R14: ffffc90006135000 R15: ffff88808f3b0240
FS:  00007f27967c9700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90006135000 CR3: 00000000aaf5c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 cleanup_bitmap_list fs/reiserfs/journal.c:229 [inline]
 free_list_bitmaps fs/reiserfs/journal.c:251 [inline]
 free_journal_ram+0x165/0x600 fs/reiserfs/journal.c:1895
 do_journal_release fs/reiserfs/journal.c:1970 [inline]
 journal_release_error+0x72/0x90 fs/reiserfs/journal.c:1988
 reiserfs_fill_super+0x1042/0x2d80 fs/reiserfs/super.c:2236
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f279681e3ca
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f27967c90e8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f279681e3ca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f27967c9100
RBP: 0000000000000004 R08: 00007f27967c9140 R09: 00007f27967c96b8
R10: 000000000020040a R11: 0000000000000286 R12: 00007f27967c9140
R13: 0000000000000008 R14: 00007f27967c9100 R15: 0000000020000600
Modules linked in:
CR2: ffffc90006135000
---[ end trace 0de5d5c5ac0965bc ]---
RIP: 0010:cleanup_bitmap_list.part.0+0x2ab/0x5f0 fs/reiserfs/journal.c:233
Code: 00 0f 85 c9 01 00 00 48 8b 04 24 49 63 ec 48 c1 e5 03 4c 8b 70 08 49 01 ee 4c 89 f0 48 c1 e8 03 80 3c 18 00 0f 85 f9 01 00 00 <4d> 8b 36 4d 85 f6 0f 84 fd fe ff ff e8 c4 cc 8c ff 49 8d 7d 18 48
RSP: 0018:ffff88808f3079c8 EFLAGS: 00010246
RAX: 1ffff92000c26a00 RBX: dffffc0000000000 RCX: ffffffff81d5b85c
RDX: 0000000000000000 RSI: ffffffff81d5b86a RDI: 0000000000000004
RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000020000
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000200
R13: ffff8880ab842e80 R14: ffffc90006135000 R15: ffff88808f3b0240
FS:  00007f27967c9700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90006135000 CR3: 00000000aaf5c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 0f                	add    %cl,(%rdi)
   2:	85 c9                	test   %ecx,%ecx
   4:	01 00                	add    %eax,(%rax)
   6:	00 48 8b             	add    %cl,-0x75(%rax)
   9:	04 24                	add    $0x24,%al
   b:	49 63 ec             	movslq %r12d,%rbp
   e:	48 c1 e5 03          	shl    $0x3,%rbp
  12:	4c 8b 70 08          	mov    0x8(%rax),%r14
  16:	49 01 ee             	add    %rbp,%r14
  19:	4c 89 f0             	mov    %r14,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
  24:	0f 85 f9 01 00 00    	jne    0x223
* 2a:	4d 8b 36             	mov    (%r14),%r14 <-- trapping instruction
  2d:	4d 85 f6             	test   %r14,%r14
  30:	0f 84 fd fe ff ff    	je     0xffffff33
  36:	e8 c4 cc 8c ff       	callq  0xff8cccff
  3b:	49 8d 7d 18          	lea    0x18(%r13),%rdi
  3f:	48                   	rex.W

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/28 06:49 linux-4.19.y 3f8a27f9e27b 5c716ff6 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 BUG: unable to handle kernel paging request in cleanup_bitmap_list
2023/01/19 08:14 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: unable to handle kernel paging request in cleanup_bitmap_list
* Struck through repros no longer work on HEAD.