syzbot


general protection fault in reiserfs_get_block

Status: upstream: reported on 2024/09/10 09:00
Reported-by: syzbot+00744e88a7f1a64cea41@syzkaller.appspotmail.com
First crash: 31d, last: 31d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in reiserfs_get_block reiserfs 2 643d 641d 0/28 auto-obsoleted due to no activity on 2023/05/06 14:40
linux-6.1 BUG: unable to handle kernel paging request in reiserfs_get_block origin:upstream C error 2 103d 143d 0/3 upstream: reported C repro on 2024/05/20 22:59

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 6018 Comm: syz.2.390 Not tainted 5.15.166-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:reiserfs_get_block+0x1aca/0x5390 fs/reiserfs/inode.c:1060
Code: 48 8b 44 24 40 42 0f b6 04 20 84 c0 0f 85 bc 11 00 00 44 8b ac 24 20 04 00 00 48 8b 44 24 20 4a 8d 1c b0 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 bf 11 00 00 4c 89 6c 24 70 44 89 2b 48
RSP: 0018:ffffc90002e76ca0 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffffc90002e77003
RDX: ffffc9000cd8e000 RSI: 00000000000003f4 RDI: 0000000000000000
RBP: ffffc90002e772f0 R08: ffffffff820a8bce R09: ffffc90002e77240
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 00000000000002d0 R14: ffffffffffffffff R15: 00000000000003f4
FS:  00007fcaa28376c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002006f000 CR3: 0000000069521000 CR4: 00000000003506f0
DR0: 0000000000002800 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __block_write_begin_int+0x60b/0x1650 fs/buffer.c:2012
 __reiserfs_write_begin+0x21c/0x460 fs/reiserfs/inode.c:2850
 reiserfs_xattr_set_handle+0x421/0x10b0 fs/reiserfs/xattr.c:578
 reiserfs_xattr_set+0x44e/0x570 fs/reiserfs/xattr.c:640
 __vfs_setxattr+0x3e7/0x420 fs/xattr.c:182
 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:216
 vfs_setxattr+0x21d/0x420 fs/xattr.c:303
 ovl_do_setxattr fs/overlayfs/overlayfs.h:203 [inline]
 ovl_verify_set_fh+0x159/0x3b0 fs/overlayfs/namei.c:467
 ovl_verify_upper fs/overlayfs/overlayfs.h:461 [inline]
 ovl_get_indexdir+0x363/0x450 fs/overlayfs/super.c:1583
 ovl_fill_super+0x1b44/0x2a20 fs/overlayfs/super.c:2105
 mount_nodev+0x52/0xe0 fs/super.c:1444
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1528
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fcaa43dfef9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcaa2837038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fcaa4598058 RCX: 00007fcaa43dfef9
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007fcaa44529f6 R08: 0000000020000100 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fcaa4598058 R15: 00007ffcd76e3088
 </TASK>
Modules linked in:
---[ end trace 6ea2d9d6d1e2b079 ]---
RIP: 0010:reiserfs_get_block+0x1aca/0x5390 fs/reiserfs/inode.c:1060
Code: 48 8b 44 24 40 42 0f b6 04 20 84 c0 0f 85 bc 11 00 00 44 8b ac 24 20 04 00 00 48 8b 44 24 20 4a 8d 1c b0 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 bf 11 00 00 4c 89 6c 24 70 44 89 2b 48
RSP: 0018:ffffc90002e76ca0 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffffc90002e77003
RDX: ffffc9000cd8e000 RSI: 00000000000003f4 RDI: 0000000000000000
RBP: ffffc90002e772f0 R08: ffffffff820a8bce R09: ffffc90002e77240
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 00000000000002d0 R14: ffffffffffffffff R15: 00000000000003f4
FS:  00007fcaa28376c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556ff06ba300 CR3: 0000000069521000 CR4: 00000000003506f0
DR0: 0000000000002800 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 8b 44 24 40       	mov    0x40(%rsp),%rax
   5:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax
   a:	84 c0                	test   %al,%al
   c:	0f 85 bc 11 00 00    	jne    0x11ce
  12:	44 8b ac 24 20 04 00 	mov    0x420(%rsp),%r13d
  19:	00
  1a:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
  1f:	4a 8d 1c b0          	lea    (%rax,%r14,4),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 bf 11 00 00    	jne    0x11f6
  37:	4c 89 6c 24 70       	mov    %r13,0x70(%rsp)
  3c:	44 89 2b             	mov    %r13d,(%rbx)
  3f:	48                   	rex.W

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/10 08:59 linux-5.15.y 14e468424d3e 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in reiserfs_get_block
* Struck through repros no longer work on HEAD.