syzbot


general protection fault in jfs_ioc_trim

Status: moderation: reported on 2025/03/22 12:25
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+cda0001822bc72b9aa47@syzkaller.appspotmail.com
First crash: 7d09h, last: 1d02h

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000087: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000438-0x000000000000043f]
CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 Not tainted 6.14.0-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:jfs_ioc_trim+0x227/0x6b0 fs/jfs/jfs_discard.c:89
Code: 03 2b 48 89 e8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 ef e8 8b b3 ce fe 4c 8b 6d 00 49 8d 9d 38 04 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 6a b3 ce fe 48 8b 1b 4c 89 ff 48
RSP: 0018:ffffc9000d367d50 EFLAGS: 00010206
RAX: 0000000000000087 RBX: 0000000000000438 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffff8880424544a0 R08: ffff88801e22207f R09: 1ffff11003c4440f
R10: dffffc0000000000 R11: ffffed1003c44410 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000004 R15: 0000000000000001
FS:  00007f53597086c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffccebf4ff8 CR3: 000000004385c000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 jfs_ioctl+0x2cd/0x3e0 fs/jfs/ioctl.c:131
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892
 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:0x7f535898d169
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:00007f5359708038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5358ba5fa0 RCX: 00007f535898d169
RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000048
RBP: 00007f5358a0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5358ba5fa0 R15: 00007ffccebf5ba8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jfs_ioc_trim+0x227/0x6b0 fs/jfs/jfs_discard.c:89
Code: 03 2b 48 89 e8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 ef e8 8b b3 ce fe 4c 8b 6d 00 49 8d 9d 38 04 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 6a b3 ce fe 48 8b 1b 4c 89 ff 48
RSP: 0018:ffffc9000d367d50 EFLAGS: 00010206
RAX: 0000000000000087 RBX: 0000000000000438 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffff8880424544a0 R08: ffff88801e22207f R09: 1ffff11003c4440f
R10: dffffc0000000000 R11: ffffed1003c44410 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000004 R15: 0000000000000001
FS:  00007f53597086c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffccebf4ff8 CR3: 000000004385c000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	03 2b                	add    (%rbx),%ebp
   2:	48 89 e8             	mov    %rbp,%rax
   5:	48 c1 e8 03          	shr    $0x3,%rax
   9:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   e:	74 08                	je     0x18
  10:	48 89 ef             	mov    %rbp,%rdi
  13:	e8 8b b3 ce fe       	call   0xfeceb3a3
  18:	4c 8b 6d 00          	mov    0x0(%rbp),%r13
  1c:	49 8d 9d 38 04 00 00 	lea    0x438(%r13),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 6a b3 ce fe       	call   0xfeceb3a3
  39:	48 8b 1b             	mov    (%rbx),%rbx
  3c:	4c 89 ff             	mov    %r15,%rdi
  3f:	48                   	rex.W

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/24 18:56 upstream 38fec10eb60d 875573af .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in jfs_ioc_trim
2025/03/18 12:13 upstream fc444ada1310 ce3352cd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in jfs_ioc_trim
* Struck through repros no longer work on HEAD.