syzbot


general protection fault in dbFree

Status: auto-obsoleted due to no activity on 2024/12/25 04:04
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+ecafa838512962d7d7f6@syzkaller.appspotmail.com
First crash: 176d, last: 127d
Cause bisection: introduced by (bisect log) :
commit 2b9ac22b12a266eb4fec246a07b504dd4983b16b
Author: Kristian Klausen <kristian@klausen.dk>
Date: Fri Jun 18 11:51:57 2021 +0000

  loop: Fix missing discard support when using LOOP_CONFIGURE

Crash: BUG: Bad page state (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [jfs?] general protection fault in dbFree 0 (1) 2024/08/01 08:00
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/12/25 03:40 22m retest repro upstream OK log
2024/12/08 10:04 34m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/11/06 16:40 20m retest repro upstream OK log
2024/11/06 16:40 24m retest repro upstream OK log
2024/09/29 08:28 25m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/09/29 07:56 19m retest repro upstream OK log
2024/09/29 07:56 19m retest repro upstream OK log
2024/08/23 01:27 13m retest repro upstream report log
2024/08/23 01:27 17m retest repro upstream report log
2024/08/23 01:27 11m retest repro upstream report log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 14408 Comm: syz.3.968 Not tainted 6.11.0-rc7-syzkaller-00097-g196145c606d0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368
Code: e7 5f 4c fe 31 ff 4c 89 e6 e8 fd d7 70 fe 4d 85 e4 0f 84 e2 04 00 00 4c 89 f1 4f 8d 74 25 00 48 8b 14 24 48 89 d0 48 c1 e8 03 <80> 3c 08 00 74 0d 48 8b 3c 24 e8 a2 f6 d4 fe 48 8b 14 24 48 8b 1a
RSP: 0018:ffffc900037afbb0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88801af8d2a0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000
RBP: ffff888033942000 R08: ffffffff8322b943 R09: 1ffff1100b992a79
R10: dffffc0000000000 R11: ffffed100b992a7a R12: 0000000000000200
R13: 0000000000000200 R14: 0000000000000400 R15: ffff88805cc90d90
FS:  00007fd8ea5296c0(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f30d5640000 CR3: 000000002663e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 dbDiscardAG+0x8a9/0xa20 fs/jfs/jfs_dmap.c:1650
 jfs_ioc_trim+0x433/0x670 fs/jfs/jfs_discard.c:100
 jfs_ioctl+0x2d0/0x3e0 fs/jfs/ioctl.c:131
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd8e977def9
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:00007fd8ea529038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd8e9935f80 RCX: 00007fd8e977def9
RDX: 0000000020000000 RSI: 00000000c0185879 RDI: 0000000000000007
RBP: 00007fd8e97f0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd8e9935f80 R15: 00007ffc7cdf5668
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368
Code: e7 5f 4c fe 31 ff 4c 89 e6 e8 fd d7 70 fe 4d 85 e4 0f 84 e2 04 00 00 4c 89 f1 4f 8d 74 25 00 48 8b 14 24 48 89 d0 48 c1 e8 03 <80> 3c 08 00 74 0d 48 8b 3c 24 e8 a2 f6 d4 fe 48 8b 14 24 48 8b 1a
RSP: 0018:ffffc900037afbb0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88801af8d2a0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000200 RDI: 0000000000000000
RBP: ffff888033942000 R08: ffffffff8322b943 R09: 1ffff1100b992a79
R10: dffffc0000000000 R11: ffffed100b992a7a R12: 0000000000000200
R13: 0000000000000200 R14: 0000000000000400 R15: ffff88805cc90d90
FS:  00007fd8ea5296c0(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f30d5640000 CR3: 000000002663e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e7 5f                	out    %eax,$0x5f
   2:	4c fe                	rex.WR (bad)
   4:	31 ff                	xor    %edi,%edi
   6:	4c 89 e6             	mov    %r12,%rsi
   9:	e8 fd d7 70 fe       	call   0xfe70d80b
   e:	4d 85 e4             	test   %r12,%r12
  11:	0f 84 e2 04 00 00    	je     0x4f9
  17:	4c 89 f1             	mov    %r14,%rcx
  1a:	4f 8d 74 25 00       	lea    0x0(%r13,%r12,1),%r14
  1f:	48 8b 14 24          	mov    (%rsp),%rdx
  23:	48 89 d0             	mov    %rdx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 0d                	je     0x3d
  30:	48 8b 3c 24          	mov    (%rsp),%rdi
  34:	e8 a2 f6 d4 fe       	call   0xfed4f6db
  39:	48 8b 14 24          	mov    (%rsp),%rdx
  3d:	48 8b 1a             	mov    (%rdx),%rbx

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/13 22:15 upstream 196145c606d0 b58f933c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in dbFree
2024/08/08 14:25 upstream 6a0e38264012 de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in dbFree
2024/07/28 10:45 upstream 910bfc26d16d 46eb10b7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in dbFree
2024/07/28 09:16 upstream 910bfc26d16d 46eb10b7 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in dbFree
2024/07/28 07:49 upstream 910bfc26d16d 46eb10b7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in dbFree
2024/09/15 07:55 upstream 0babf683783d 08d8a733 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root general protection fault in dbFree
2024/09/15 06:23 upstream 0babf683783d 08d8a733 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root general protection fault in dbFree
2024/09/11 18:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci df54f4a16f82 9326a104 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in dbFree
* Struck through repros no longer work on HEAD.