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: 127d, last: 19d
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 2801 14h36m 1118d 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 125 1d16h 949d 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 28d 953d 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: 5786 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:write_special_inodes fs/jfs/jfs_logmgr.c:208 [inline]
RIP: 0010:jfs_flush_journal+0x97c/0xeb0 fs/jfs/jfs_logmgr.c:1582
Code: 8c b2 fe 4d 8d 75 f0 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 22 7a dc fe 4d 8b 36 49 83 c6 40 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 06 7a dc fe 49 8b 3e e8 4e 8c b2 fe
RSP: 0018:ffffc90004327b20 EFLAGS: 00010202
RAX: 0000000000000008 RBX: dffffc0000000000 RCX: cdce0bab680e9a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90004327c50 R08: 0000000000000004 R09: 0000000000000004
R10: ffffc90004327a44 R11: fffff52000864f51 R12: 0000000000000000
R13: ffff88814b393038 R14: 0000000000000040 R15: ffff88807d549228
FS:  000055557b2d8500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200001000000 CR3: 0000000063f8c000 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+0xf6/0x180 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:0x7fabaaf901f7
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:00007ffdc0c389d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fabab011d7d RCX: 00007fabaaf901f7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdc0c38a90
RBP: 00007ffdc0c38a90 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdc0c39b20
R13: 00007fabab011d7d R14: 000000000002f6ab R15: 00007ffdc0c39b60
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:write_special_inodes fs/jfs/jfs_logmgr.c:208 [inline]
RIP: 0010:jfs_flush_journal+0x97c/0xeb0 fs/jfs/jfs_logmgr.c:1582
Code: 8c b2 fe 4d 8d 75 f0 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 22 7a dc fe 4d 8b 36 49 83 c6 40 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 06 7a dc fe 49 8b 3e e8 4e 8c b2 fe
RSP: 0018:ffffc90004327b20 EFLAGS: 00010202
RAX: 0000000000000008 RBX: dffffc0000000000 RCX: cdce0bab680e9a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90004327c50 R08: 0000000000000004 R09: 0000000000000004
R10: ffffc90004327a44 R11: fffff52000864f51 R12: 0000000000000000
R13: ffff88814b393038 R14: 0000000000000040 R15: ffff88807d549228
FS:  000055557b2d8500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055be916e1000 CR3: 0000000063f8c000 CR4: 00000000003506f0
----------------
Code disassembly (best guess):
   0:	8c b2 fe 4d 8d 75    	mov    %?,0x758d4dfe(%rdx)
   6:	f0 4c 89 f0          	lock 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 22 7a dc fe       	call   0xfedc7a3e
  1c:	4d 8b 36             	mov    (%r14),%r14
  1f:	49 83 c6 40          	add    $0x40,%r14
  23:	4c 89 f0             	mov    %r14,%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 f7             	mov    %r14,%rdi
  33:	e8 06 7a dc fe       	call   0xfedc7a3e
  38:	49 8b 3e             	mov    (%r14),%rdi
  3b:	e8 4e 8c b2 fe       	call   0xfeb28c8e

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/05 16:38 linux-6.6.y f34f16e5c632 49379ee0 .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 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.