syzbot


general protection fault in dtSplitUp

Status: upstream: reported C repro on 2022/10/13 16:49
Reported-by: syzbot+b889179ab3dbc683dc36@syzkaller.appspotmail.com
First crash: 724d, last: 724d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in dtSplitUp C inconclusive 1 722d 722d 0/1 upstream: reported C repro on 2022/10/15 11:58
upstream general protection fault in dtSplitUp jfs C error done 2 300d 736d 25/28 fixed on 2024/01/30 15:47

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8117 Comm: syz-executor523 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dtExtendPage fs/jfs/jfs_dtree.c:1674 [inline]
RIP: 0010:dtSplitUp+0x1414/0x4e70 fs/jfs/jfs_dtree.c:1047
Code: d6 eb fe 48 8b 54 24 58 48 8b 44 24 20 4c 8d 62 e8 4c 89 20 e8 dd d6 eb fe 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 2f 39 00 00 49 8b 34 24 31 ff 48 89 74 24 20 e8
RSP: 0018:ffff88808d347740 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8276ae27
RDX: 0000000000000000 RSI: ffffffff8276ae93 RDI: 0000000000000003
RBP: ffff88808cc1b66a R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88808cc1b468 R14: ffff88808cc1b5a8 R15: 0000000000000000
FS:  0000555555f50300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f73b73ac658 CR3: 0000000098996000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dtInsert+0x7fd/0xa00 fs/jfs/jfs_dtree.c:876
 jfs_create.part.0+0x3c6/0x880 fs/jfs/namei.c:150
 jfs_create+0x3f/0x60 fs/jfs/namei.c:90
 vfs_create+0x461/0x6c0 fs/namei.c:2913
 do_mknodat.part.0+0x2ff/0x480 fs/namei.c:3768
 do_mknodat fs/namei.c:3789 [inline]
 __do_sys_mknodat fs/namei.c:3792 [inline]
 __se_sys_mknodat fs/namei.c:3789 [inline]
 __x64_sys_mknodat+0x116/0x160 fs/namei.c:3789
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7ff0c7e1ee99
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:00007ffc969299f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000103
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007ff0c7e1ee99
RDX: 0000000000000008 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007ff0c7dde700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000103 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00083878000000f4 R15: 0000000000000000
Modules linked in:
---[ end trace 5564f1e64822ba28 ]---
RIP: 0010:dtExtendPage fs/jfs/jfs_dtree.c:1674 [inline]
RIP: 0010:dtSplitUp+0x1414/0x4e70 fs/jfs/jfs_dtree.c:1047
Code: d6 eb fe 48 8b 54 24 58 48 8b 44 24 20 4c 8d 62 e8 4c 89 20 e8 dd d6 eb fe 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 2f 39 00 00 49 8b 34 24 31 ff 48 89 74 24 20 e8
RSP: 0018:ffff88808d347740 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8276ae27
RDX: 0000000000000000 RSI: ffffffff8276ae93 RDI: 0000000000000003
RBP: ffff88808cc1b66a R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88808cc1b468 R14: ffff88808cc1b5a8 R15: 0000000000000000
FS:  0000555555f50300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b0141a20e0 CR3: 0000000098996000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	eb fe                	jmp    0x0
   2:	48 8b 54 24 58       	mov    0x58(%rsp),%rdx
   7:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
   c:	4c 8d 62 e8          	lea    -0x18(%rdx),%r12
  10:	4c 89 20             	mov    %r12,(%rax)
  13:	e8 dd d6 eb fe       	callq  0xfeebd6f5
  18:	4c 89 e2             	mov    %r12,%rdx
  1b:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  22:	fc ff df
  25:	48 c1 ea 03          	shr    $0x3,%rdx
* 29:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2d:	0f 85 2f 39 00 00    	jne    0x3962
  33:	49 8b 34 24          	mov    (%r12),%rsi
  37:	31 ff                	xor    %edi,%edi
  39:	48 89 74 24 20       	mov    %rsi,0x20(%rsp)
  3e:	e8                   	.byte 0xe8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/13 16:49 linux-4.19.y 3f8a27f9e27b adf90437 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 general protection fault in dtSplitUp
* Struck through repros no longer work on HEAD.