syzbot


general protection fault in jfs_flush_journal

Status: upstream: reported on 2025/06/19 06:28
Reported-by: syzbot+eb664fd024256bc44597@syzkaller.appspotmail.com
First crash: 70d, last: 2d08h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in jfs_flush_journal jfs 19 C inconclusive 2520 9h24m 1060d 0/29 upstream: reported C repro on 2022/10/02 18:56
linux-6.1 general protection fault in jfs_flush_journal origin:upstream 19 C error 123 13d 891d 0/3 upstream: reported C repro on 2023/03/20 13:13
linux-5.15 general protection fault in jfs_flush_journal origin:upstream 8 C error 29 11d 895d 0/3 upstream: reported C repro on 2023/03/16 22:18

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 1 PID: 5784 Comm: syz-executor Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:write_special_inodes fs/jfs/jfs_logmgr.c:208 [inline]
RIP: 0010:jfs_flush_journal+0x7ec/0xeb0 fs/jfs/jfs_logmgr.c:1573
Code: f2 b2 fe 4d 8d 77 f0 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 12 d1 dc fe 4d 8b 26 49 83 c4 40 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 e7 e8 f6 d0 dc fe 49 8b 3c 24 e8 3d f2 b2
RSP: 0018:ffffc9000468fb20 EFLAGS: 00010202
RAX: 0000000000000008 RBX: dffffc0000000000 RCX: 6aeebec33af97500
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000468fc50 R08: 0000000000000004 R09: 0000000000000004
R10: ffffc9000468fa44 R11: fffff520008d1f51 R12: 0000000000000040
R13: ffff88807c0cf9a8 R14: ffff8880211fb428 R15: ffff8880211fb438
FS:  000055557eab0500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdc2d59f58 CR3: 00000000615b4000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 jfs_umount+0x178/0x3c0 fs/jfs/jfs_umount.c:58
 jfs_put_super+0x8c/0x190 fs/jfs/super.c:194
 generic_shutdown_super+0x134/0x2b0 fs/super.c:693
 kill_block_super+0x44/0x90 fs/super.c:1660
 deactivate_locked_super+0x97/0x100 fs/super.c:481
 cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250
 task_work_run+0x1ce/0x250 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2ffdd8ff17
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffdc2d5a708 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f2ffde11c05 RCX: 00007f2ffdd8ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdc2d5a7c0
RBP: 00007ffdc2d5a7c0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdc2d5b850
R13: 00007f2ffde11c05 R14: 0000000000041a8e R15: 00007ffdc2d5b890
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:write_special_inodes fs/jfs/jfs_logmgr.c:208 [inline]
RIP: 0010:jfs_flush_journal+0x7ec/0xeb0 fs/jfs/jfs_logmgr.c:1573
Code: f2 b2 fe 4d 8d 77 f0 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 12 d1 dc fe 4d 8b 26 49 83 c4 40 4c 89 e0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 e7 e8 f6 d0 dc fe 49 8b 3c 24 e8 3d f2 b2
RSP: 0018:ffffc9000468fb20 EFLAGS: 00010202
RAX: 0000000000000008 RBX: dffffc0000000000 RCX: 6aeebec33af97500
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000468fc50 R08: 0000000000000004 R09: 0000000000000004
R10: ffffc9000468fa44 R11: fffff520008d1f51 R12: 0000000000000040
R13: ffff88807c0cf9a8 R14: ffff8880211fb428 R15: ffff8880211fb438
FS:  000055557eab0500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f817f3b7dac CR3: 00000000615b4000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
   0:	f2 b2 fe             	repnz mov $0xfe,%dl
   3:	4d 8d 77 f0          	lea    -0x10(%r15),%r14
   7:	4c 89 f0             	mov    %r14,%rax
   a:	48 c1 e8 03          	shr    $0x3,%rax
   e:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
  12:	74 08                	je     0x1c
  14:	4c 89 f7             	mov    %r14,%rdi
  17:	e8 12 d1 dc fe       	call   0xfedcd12e
  1c:	4d 8b 26             	mov    (%r14),%r12
  1f:	49 83 c4 40          	add    $0x40,%r12
  23:	4c 89 e0             	mov    %r12,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 e7             	mov    %r12,%rdi
  33:	e8 f6 d0 dc fe       	call   0xfedcd12e
  38:	49 8b 3c 24          	mov    (%r12),%rdi
  3c:	e8                   	.byte 0xe8
  3d:	3d                   	.byte 0x3d
  3e:	f2                   	repnz
  3f:	b2                   	.byte 0xb2

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/26 02:02 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in jfs_flush_journal
2025/08/26 01:56 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in jfs_flush_journal
2025/08/26 01:52 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in jfs_flush_journal
2025/08/10 08:22 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in jfs_flush_journal
2025/08/09 14:39 linux-6.6.y 3a8ababb8b6a 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in jfs_flush_journal
2025/06/19 06:27 linux-6.6.y c2603c511feb ed3e87f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in jfs_flush_journal
* Struck through repros no longer work on HEAD.