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: 27d, last: 27d
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 441d 511d 0/28 auto-obsoleted due to no activity on 2023/09/29 16:20

Sample crash report:
page: ffffea000177bc40: 00fff0000000413c ffffea0001de2c88
page: ffffea000177bc50: ffff88807a922870 0000000000000000
page: ffffea000177bc60: 000000000000001c ffff888078ceeaa8
page: ffffea000177bc70: 00000001ffffffff ffff88807b110000
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 9610 Comm: syz-executor Not tainted 6.11.0-rc3-syzkaller-00321-g810996a36309 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:diSync+0xf7/0x6e0 fs/jfs/jfs_imap.c:226
Code: 00 00 48 89 04 24 48 8d 58 30 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 53 a0 d7 fe 4c 8b 3b 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 31 04 00 00 48 89 6c 24 08 41 8b 1c 24
RSP: 0018:ffffc900045afa38 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888057b89508 RCX: ffff88802354da00
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000003
RBP: ffff88805d91c4b8 R08: ffffffff83245834 R09: 1ffffd400036a3a8
R10: dffffc0000000000 R11: fffff9400036a3a9 R12: 0000000000000000
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff88806d475000
FS:  0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fada5245000 CR3: 000000007cc16000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 diUnmount+0xc7/0x130 fs/jfs/jfs_imap.c:185
 jfs_umount+0x186/0x3a0 fs/jfs/jfs_umount.c:63
 jfs_put_super+0x8a/0x190 fs/jfs/super.c:194
 generic_shutdown_super+0x136/0x2d0 fs/super.c:642
 kill_block_super+0x44/0x90 fs/super.c:1696
 deactivate_locked_super+0xc4/0x130 fs/super.c:473
 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373
 task_work_run+0x24f/0x310 kernel/task_work.c:228
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xa2f/0x27f0 kernel/exit.c:882
 do_group_exit+0x207/0x2c0 kernel/exit.c:1031
 __do_sys_exit_group kernel/exit.c:1042 [inline]
 __se_sys_exit_group kernel/exit.c:1040 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1040
 x64_sys_call+0x2634/0x2640 arch/x86/include/generated/asm/syscalls_64.h:232
 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:0x7f52f8179e79
Code: Unable to access opcode bytes at 0x7f52f8179e4f.
RSP: 002b:00007ffe704e1748 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f52f81e77d9 RCX: 00007f52f8179e79
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000002 R08: 00007ffe704df4e7 R09: 00007ffe704e2a00
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe704e2a00
R13: 00007f52f81e77b4 R14: 000000000006569c R15: 00007ffe704e3ac0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:diSync+0xf7/0x6e0 fs/jfs/jfs_imap.c:226
Code: 00 00 48 89 04 24 48 8d 58 30 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 53 a0 d7 fe 4c 8b 3b 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 31 04 00 00 48 89 6c 24 08 41 8b 1c 24
RSP: 0018:ffffc900045afa38 EFLAGS: 00010246

RAX: 0000000000000000 RBX: ffff888057b89508 RCX: ffff88802354da00
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000003
RBP: ffff88805d91c4b8 R08: ffffffff83245834 R09: 1ffffd400036a3a8
R10: dffffc0000000000 R11: fffff9400036a3a9 R12: 0000000000000000
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff88806d475000
FS:  0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005617131c7678 CR3: 000000002a54a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	48 89 04 24          	mov    %rax,(%rsp)
   6:	48 8d 58 30          	lea    0x30(%rax),%rbx
   a:	48 89 d8             	mov    %rbx,%rax
   d:	48 c1 e8 03          	shr    $0x3,%rax
  11:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
  16:	74 08                	je     0x20
  18:	48 89 df             	mov    %rbx,%rdi
  1b:	e8 53 a0 d7 fe       	call   0xfed7a073
  20:	4c 8b 3b             	mov    (%rbx),%r15
  23:	4c 89 e0             	mov    %r12,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 31 04 00 00    	jne    0x468
  37:	48 89 6c 24 08       	mov    %rbp,0x8(%rsp)
  3c:	41 8b 1c 24          	mov    (%r12),%ebx

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.