syzbot


general protection fault in dbFree

Status: upstream: reported C repro on 2024/08/01 08:00
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+ecafa838512962d7d7f6@syzkaller.appspotmail.com
First crash: 135d, last: 86d
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 (9)
Created Duration User Patch Repo Result
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:
loop0: detected capacity change from 0 to 32768
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: 1 UID: 0 PID: 5208 Comm: syz-executor266 Not tainted 6.10.0-syzkaller-12857-g910bfc26d16d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368
Code: 17 4d 4e fe 31 ff 4c 89 e6 e8 6d dd 72 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 92 eb d6 fe 48 8b 14 24 48 8b 1a
RSP: 0018:ffffc90003407bb0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888021e084a0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000030 RDI: 0000000000000000
RBP: ffff888024fd4000 R08: ffffffff8320a9f3 R09: 1ffff1100e86f141
R10: dffffc0000000000 R11: ffffed100e86f142 R12: 0000000000000030
R13: 0000000000000010 R14: 0000000000000040 R15: ffff88807437a000
FS:  00007fc9313976c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd83b0ed58 CR3: 00000000792a6000 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:0x7fc9313e1a39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc931397218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc93146f6c8 RCX: 00007fc9313e1a39
RDX: 0000000020000080 RSI: 00000000c0185879 RDI: 0000000000000004
RBP: 00007fc93146f6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc93143c284
R13: 00007fc931436060 R14: 0037656c69662f2e R15: 3333222211110000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbFree+0x10f/0x680 fs/jfs/jfs_dmap.c:368
Code: 17 4d 4e fe 31 ff 4c 89 e6 e8 6d dd 72 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 92 eb d6 fe 48 8b 14 24 48 8b 1a
RSP: 0018:ffffc90003407bb0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888021e084a0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000030 RDI: 0000000000000000
RBP: ffff888024fd4000 R08: ffffffff8320a9f3 R09: 1ffff1100e86f141
R10: dffffc0000000000 R11: ffffed100e86f142 R12: 0000000000000030
R13: 0000000000000010 R14: 0000000000000040 R15: ffff88807437a000
FS:  00007fc9313976c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faa21806ed8 CR3: 00000000792a6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	4d                   	rex.WRB
   1:	4e fe                	rex.WRX (bad)
   3:	31 ff                	xor    %edi,%edi
   5:	4c 89 e6             	mov    %r12,%rsi
   8:	e8 6d dd 72 fe       	call   0xfe72dd7a
   d:	4d 85 e4             	test   %r12,%r12
  10:	0f 84 e2 04 00 00    	je     0x4f8
  16:	4c 89 f1             	mov    %r14,%rcx
  19:	4f 8d 74 25 00       	lea    0x0(%r13,%r12,1),%r14
  1e:	48 8b 14 24          	mov    (%rsp),%rdx
  22:	48 89 d0             	mov    %rdx,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2d:	74 0d                	je     0x3c
  2f:	48 8b 3c 24          	mov    (%rsp),%rdi
  33:	e8 92 eb d6 fe       	call   0xfed6ebca
  38:	48 8b 14 24          	mov    (%rsp),%rdx
  3c:	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/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/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 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.