syzbot


general protection fault in dtInsertEntry

Status: upstream: reported C repro on 2022/09/26 01:50
Reported-by: syzbot+53e875cf44c7572024d4@syzkaller.appspotmail.com
First crash: 798d, last: 751d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel paging request in dtInsertEntry origin:upstream missing-backport C error 131 10h00m 543d 0/3 upstream: reported C repro on 2023/06/07 09:20
linux-6.1 BUG: unable to handle kernel paging request in dtInsertEntry C error 17 98d 543d 0/3 upstream: reported C repro on 2023/06/07 12:26
linux-4.14 general protection fault in dtInsertEntry C 3 641d 798d 0/1 upstream: reported C repro on 2022/09/25 23:44
upstream general protection fault in dtInsertEntry jfs C inconclusive 501 111d 237d 27/28 fixed on 2024/08/14 03:44
upstream BUG: unable to handle kernel NULL pointer dereference in dtInsertEntry jfs C error done 29 304d 797d 25/28 fixed on 2024/03/20 11:33
upstream UBSAN: array-index-out-of-bounds in dtInsertEntry jfs C inconclusive 5 22d 59d 0/28 upstream: reported C repro on 2024/10/03 19:10

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: 8105 Comm: syz-executor418 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dtInsertEntry.isra.0+0x1253/0x15d0 fs/jfs/jfs_dtree.c:4019
Code: 40 04 ff e9 2f f9 ff ff e8 1a 38 ec fe 48 8b 84 24 b8 00 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d4 01 00 00
RSP: 0018:ffff888095357488 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff82764d04
RDX: 0000000000000001 RSI: ffffffff82764d56 RDI: 0000000000000008
RBP: 0000000000000000 R08: ffff888095357678 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88808dbd3446
R13: 0000000000000073 R14: ffff88808dbd3448 R15: 0000000000000000
FS:  0000555555afc300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a74a1f6160 CR3: 00000000abd06000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dtInsert+0x4c2/0xa00 fs/jfs/jfs_dtree.c:899
 jfs_create.part.0+0x3c6/0x880 fs/jfs/namei.c:150
 jfs_create+0x3f/0x60 fs/jfs/namei.c:90
 lookup_open+0x893/0x1a20 fs/namei.c:3235
 do_last fs/namei.c:3327 [inline]
 path_openat+0x1094/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fbb7ed93029
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:00007ffc000119f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fbb7ed93029
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007fbb7ed52890 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00080000000000f8 R15: 0000000000000000
Modules linked in:
---[ end trace 8d536a82163ab352 ]---
RIP: 0010:dtInsertEntry.isra.0+0x1253/0x15d0 fs/jfs/jfs_dtree.c:4019
Code: 40 04 ff e9 2f f9 ff ff e8 1a 38 ec fe 48 8b 84 24 b8 00 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d4 01 00 00
RSP: 0018:ffff888095357488 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff82764d04
RDX: 0000000000000001 RSI: ffffffff82764d56 RDI: 0000000000000008
RBP: 0000000000000000 R08: ffff888095357678 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88808dbd3446
R13: 0000000000000073 R14: ffff88808dbd3448 R15: 0000000000000000
FS:  0000555555afc300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a74a1f6160 CR3: 00000000abd06000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	40 04 ff             	add    $0xff,%al
   3:	e9 2f f9 ff ff       	jmpq   0xfffff937
   8:	e8 1a 38 ec fe       	callq  0xfeec3827
   d:	48 8b 84 24 b8 00 00 	mov    0xb8(%rsp),%rax
  14:	00
  15:	48 8d 78 08          	lea    0x8(%rax),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	48 89 fa             	mov    %rdi,%rdx
  31:	83 e2 07             	and    $0x7,%edx
  34:	38 d0                	cmp    %dl,%al
  36:	7f 08                	jg     0x40
  38:	84 c0                	test   %al,%al
  3a:	0f 85 d4 01 00 00    	jne    0x214

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/02 19:50 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in dtInsertEntry
2022/09/26 01:49 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config console log report syz C ci2-linux-4-19 general protection fault in dtInsertEntry
2022/11/11 20:50 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in dtInsertEntry
2022/10/02 20:11 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in dtInsertEntry
* Struck through repros no longer work on HEAD.