syzbot


general protection fault in diSync

Status: moderation: reported on 2024/08/22 04:42
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+94c5bb32f80b94f5774a@syzkaller.appspotmail.com
First crash: 95d, last: 23d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in diSync jfs 2 508d 578d 0/28 auto-obsoleted due to no activity on 2023/09/29 16:20

Sample crash report:
page: ffffea0001587850: ffffea00017c70c8 0000000000000000
page: ffffea0001587860: 000000000000001c ffff88802fecae88
page: ffffea0001587870: 00000001ffffffff ffff88807fde4000
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 6060 Comm: syz-executor Not tainted 6.12.0-rc5-syzkaller-00005-ge42b1a9a2557 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:diSync+0x13a/0x840 fs/jfs/jfs_imap.c:226
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 51 06 00 00 48 8b 04 24 48 89 ea 48 c1 ea 03 48 8b 58 30 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e e9 06 00 00 48 89 da 44 8b 65
RSP: 0018:ffffc90002d2fb98 EFLAGS: 00010256
RAX: dffffc0000000000 RBX: ffff88805f1c3000 RCX: ffffffff83113ff1
RDX: 0000000000000000 RSI: ffffffff830d8f2e RDI: ffff88802793f6f8
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000003
R10: 0000000000000002 R11: 0000000000000000 R12: ffff88805dd03b00
R13: 0000000000000000 R14: ffff88805dd03b80 R15: ffff888024dc2c28
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd40144528 CR3: 0000000069dca000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 diUnmount+0xc8/0x160 fs/jfs/jfs_imap.c:185
 jfs_umount+0x18a/0x440 fs/jfs/jfs_umount.c:63
 jfs_put_super+0x88/0x1d0 fs/jfs/super.c:194
 generic_shutdown_super+0x15f/0x3d0 fs/super.c:642
 kill_block_super+0x3b/0x90 fs/super.c:1696
 deactivate_locked_super+0xc1/0x1a0 fs/super.c:473
 deactivate_super+0xde/0x100 fs/super.c:506
 cleanup_mnt+0x222/0x450 fs/namespace.c:1373
 task_work_run+0x151/0x250 kernel/task_work.c:239
 exit_task_work include/linux/task_work.h:43 [inline]
 do_exit+0xadd/0x2d70 kernel/exit.c:939
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1088
 __do_sys_exit_group kernel/exit.c:1099 [inline]
 __se_sys_exit_group kernel/exit.c:1097 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1097
 x64_sys_call+0x14a9/0x16a0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6ca9f7e719
Code: Unable to access opcode bytes at 0x7f6ca9f7e6ef.
RSP: 002b:00007ffef4f3a538 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f6ca9ff11f1 RCX: 00007f6ca9f7e719
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000002 R08: 00007ffef4f382d7 R09: 00007ffef4f3b7f0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffef4f3b7f0
R13: 00007f6ca9ff11cc R14: 00000000000257b4 R15: 00007ffef4f3c8b0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:diSync+0x13a/0x840 fs/jfs/jfs_imap.c:226
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 51 06 00 00 48 8b 04 24 48 89 ea 48 c1 ea 03 48 8b 58 30 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e e9 06 00 00 48 89 da 44 8b 65
RSP: 0018:ffffc90002d2fb98 EFLAGS: 00010256
RAX: dffffc0000000000 RBX: ffff88805f1c3000 RCX: ffffffff83113ff1
RDX: 0000000000000000 RSI: ffffffff830d8f2e RDI: ffff88802793f6f8
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000003
R10: 0000000000000002 R11: 0000000000000000 R12: ffff88805dd03b00
R13: 0000000000000000 R14: ffff88805dd03b80 R15: ffff888024dc2c28
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd40144528 CR3: 0000000069dca000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	48 89 fa             	mov    %rdi,%rdx
   3:	48 c1 ea 03          	shr    $0x3,%rdx
   7:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   b:	0f 85 51 06 00 00    	jne    0x662
  11:	48 8b 04 24          	mov    (%rsp),%rax
  15:	48 89 ea             	mov    %rbp,%rdx
  18:	48 c1 ea 03          	shr    $0x3,%rdx
  1c:	48 8b 58 30          	mov    0x30(%rax),%rbx
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	74 08                	je     0x3a
  32:	3c 03                	cmp    $0x3,%al
  34:	0f 8e e9 06 00 00    	jle    0x723
  3a:	48 89 da             	mov    %rbx,%rdx
  3d:	44                   	rex.R
  3e:	8b                   	.byte 0x8b
  3f:	65                   	gs

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/29 02:13 upstream e42b1a9a2557 9efb3cc7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in diSync
2024/08/18 04:39 upstream 810996a36309 dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in diSync
* Struck through repros no longer work on HEAD.