syzbot


general protection fault in dbUpdatePMap

Status: upstream: reported C repro on 2022/10/25 14:29
Reported-by: syzbot+751cba74665739bb4479@syzkaller.appspotmail.com
First crash: 538d, last: 538d
Fix bisection: failed (error log, bisect log)
  

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
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: 0 PID: 1985 Comm: jfsCommit Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:dbUpdatePMap+0x4b0/0x1070 fs/jfs/jfs_dmap.c:471
Code: d7 ec fe 84 db 0f 85 96 08 00 00 e8 ca d5 ec fe 48 8b 44 24 10 48 b9 00 00 00 00 00 fc ff df 48 8d 78 30 48 89 f8 48 c1 e8 03 <80> 3c 08 00 0f 85 b9 09 00 00 48 8b 44 24 10 44 8b 6c 24 28 48 8b
RSP: 0018:ffff8880b0a9fc70 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff8275afa6 RDI: 0000000000000030
RBP: ffff88808d3844d0 R08: ffffc90001401100 R09: 0000000000000000
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000ecc
R13: 0000000000000020 R14: ffffc90001401100 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561ead463800 CR3: 00000000a0ef1000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 txAllocPMap fs/jfs/jfs_txnmgr.c:2470 [inline]
 txUpdateMap+0xd0c/0x1000 fs/jfs/jfs_txnmgr.c:2408
 txLazyCommit fs/jfs/jfs_txnmgr.c:2709 [inline]
 jfs_lazycommit+0x525/0x9d0 fs/jfs/jfs_txnmgr.c:2777
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace f7732bbb7966abda ]---
RIP: 0010:dbUpdatePMap+0x4b0/0x1070 fs/jfs/jfs_dmap.c:471
Code: d7 ec fe 84 db 0f 85 96 08 00 00 e8 ca d5 ec fe 48 8b 44 24 10 48 b9 00 00 00 00 00 fc ff df 48 8d 78 30 48 89 f8 48 c1 e8 03 <80> 3c 08 00 0f 85 b9 09 00 00 48 8b 44 24 10 44 8b 6c 24 28 48 8b
RSP: 0018:ffff8880b0a9fc70 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff8275afa6 RDI: 0000000000000030
RBP: ffff88808d3844d0 R08: ffffc90001401100 R09: 0000000000000000
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000000ecc
R13: 0000000000000020 R14: ffffc90001401100 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561ead4d89c8 CR3: 00000000a99ff000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	d7                   	xlat   %ds:(%rbx)
   1:	ec                   	in     (%dx),%al
   2:	fe 84 db 0f 85 96 08 	incb   0x896850f(%rbx,%rbx,8)
   9:	00 00                	add    %al,(%rax)
   b:	e8 ca d5 ec fe       	callq  0xfeecd5da
  10:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  15:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  1c:	fc ff df
  1f:	48 8d 78 30          	lea    0x30(%rax),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	0f 85 b9 09 00 00    	jne    0x9ed
  34:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  39:	44 8b 6c 24 28       	mov    0x28(%rsp),%r13d
  3e:	48                   	rex.W
  3f:	8b                   	.byte 0x8b

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