syzbot


general protection fault in inode_set_ctime_current

Status: upstream: reported C repro on 2025/10/24 23:10
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+cd7590567cc388f064f3@syzkaller.appspotmail.com
First crash: 21d, last: 6d21h
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] dtInsertEntry can result in buffer overflow on corrupted jfs filesystems 1 (1) 2025/10/28 23:23
[syzbot] [jfs?] general protection fault in inode_set_ctime_current 1 (5) 2025/10/28 20:53
Last patch testing requests (6)
Created Duration User Patch Repo Result
2025/11/08 08:52 14m retest repro upstream report log
2025/11/08 08:52 15m retest repro upstream report log
2025/11/08 08:52 14m retest repro upstream report log
2025/10/28 20:53 46m jkoolstra@xs4all.nl patch upstream OK log
2025/10/28 17:25 21m jkoolstra@xs4all.nl patch upstream OK log
2025/10/27 23:06 23m jkoolstra@xs4all.nl patch upstream OK log

Sample crash report:
loop0: detected capacity change from 0 to 32768
Oops: general protection fault, probably for non-canonical address 0xe00e9c0e000c6102: 0000 [#1] SMP KASAN PTI
KASAN: maybe wild-memory-access in range [0x0075007000630810-0x0075007000630817]
CPU: 0 UID: 0 PID: 6077 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:timestamp_truncate fs/inode.c:2732 [inline]
RIP: 0010:inode_set_ctime_current+0xcf/0xb40 fs/inode.c:2774
Code: d8 48 c1 e8 03 48 89 44 24 30 42 80 3c 20 00 74 08 48 89 df e8 92 fc eb ff 4c 8b 3b 49 8d bf a0 07 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 d6 07 00 00 48 89 5c 24 20 41 8b 87 a0
RSP: 0018:ffffc900047475a0 EFLAGS: 00010202
RAX: 000ea00e000c6102 RBX: ffff8880526f3528 RCX: ffff88803afdda00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0075007000630812
RBP: ffffc90004747690 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1dac52f R12: dffffc0000000000
R13: ffff8880526f4258 R14: ffffc90004747600 R15: 0075007000630072
FS:  000055556de63500(0000) GS:ffff888126dfc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff63fff CR3: 00000000382fc000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 jfs_create+0x7f7/0xa80 fs/jfs/namei.c:152
 lookup_open fs/namei.c:3796 [inline]
 open_last_lookups fs/namei.c:3895 [inline]
 path_openat+0x1500/0x3840 fs/namei.c:4131
 do_filp_open+0x1fa/0x410 fs/namei.c:4161
 do_sys_openat2+0x121/0x1c0 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1463
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fba988befc9
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:00007fff4fe1f1e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fba98b15fa0 RCX: 00007fba988befc9
RDX: 000000000000275a RSI: 0000200000000140 RDI: ffffffffffffff9c
RBP: 00007fba98941f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fba98b15fa0 R14: 00007fba98b15fa0 R15: 0000000000000004
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:timestamp_truncate fs/inode.c:2732 [inline]
RIP: 0010:inode_set_ctime_current+0xcf/0xb40 fs/inode.c:2774
Code: d8 48 c1 e8 03 48 89 44 24 30 42 80 3c 20 00 74 08 48 89 df e8 92 fc eb ff 4c 8b 3b 49 8d bf a0 07 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 d6 07 00 00 48 89 5c 24 20 41 8b 87 a0
RSP: 0018:ffffc900047475a0 EFLAGS: 00010202
RAX: 000ea00e000c6102 RBX: ffff8880526f3528 RCX: ffff88803afdda00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0075007000630812
RBP: ffffc90004747690 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1dac52f R12: dffffc0000000000
R13: ffff8880526f4258 R14: ffffc90004747600 R15: 0075007000630072
FS:  000055556de63500(0000) GS:ffff888126dfc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff63fff CR3: 00000000382fc000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	d8 48 c1             	fmuls  -0x3f(%rax)
   3:	e8 03 48 89 44       	call   0x4489480b
   8:	24 30                	and    $0x30,%al
   a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   f:	74 08                	je     0x19
  11:	48 89 df             	mov    %rbx,%rdi
  14:	e8 92 fc eb ff       	call   0xffebfcab
  19:	4c 8b 3b             	mov    (%rbx),%r15
  1c:	49 8d bf a0 07 00 00 	lea    0x7a0(%r15),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 d6 07 00 00    	jne    0x80d
  37:	48 89 5c 24 20       	mov    %rbx,0x20(%rsp)
  3c:	41                   	rex.B
  3d:	8b                   	.byte 0x8b
  3e:	87                   	.byte 0x87
  3f:	a0                   	.byte 0xa0

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/25 08:41 upstream d2818517e348 c0460fcd .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs general protection fault in inode_set_ctime_current
2025/10/24 19:05 upstream 6fab32bb6508 c0460fcd .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-snapshot-upstream-root general protection fault in inode_set_ctime_current
2025/10/24 18:18 upstream 6fab32bb6508 c0460fcd .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-snapshot-upstream-root general protection fault in inode_set_ctime_current
2025/10/24 17:29 upstream 6fab32bb6508 c0460fcd .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-snapshot-upstream-root general protection fault in inode_set_ctime_current
2025/10/24 16:36 upstream 6fab32bb6508 c0460fcd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in inode_set_ctime_current
* Struck through repros no longer work on HEAD.