syzbot


divide error in qnx6_mmi_fill_super

Status: upstream: reported C repro on 2024/11/01 19:35
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+6a0633f11d3fb88860bf@syzkaller.appspotmail.com
First crash: 38d, last: 9d07h
Cause bisection: introduced by (bisect log) [release commit]:
commit df0cc57e057f18e44dac8e6c18aba47ab53202f9
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Jan 9 22:55:34 2022 +0000

  Linux 5.16

Crash: divide error in qnx6_mmi_fill_super (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] fix: divide error in qnx6_mmi_fill_super 1 (1) 2024/11/04 05:44
[syzbot] [ext4?] divide error in qnx6_mmi_fill_super 0 (1) 2024/11/01 19:35
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/11/26 12:50 15m retest repro upstream report log
2024/11/11 21:39 15m retest repro upstream report log
2024/11/11 21:39 15m retest repro upstream report log
2024/11/11 21:39 13m retest repro upstream report log

Sample crash report:
loop0: detected capacity change from 0 to 128
qnx6: unable to set blocksize
loop0: detected capacity change from 0 to 128
Oops: divide error: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 5895 Comm: syz-executor153 Not tainted 6.12.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:qnx6_mmi_fill_super+0x20c/0x810 fs/qnx6/super_mmi.c:68
Code: c4 28 4c 89 e0 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 60 05 00 00 45 85 f6 41 8b 04 24 89 c6 0f ce 0f 44 f0 b8 00 10 00 00 31 d2 <f7> f6 41 89 c6 4c 89 ff e8 a7 8f 82 01 89 c3 31 ff 89 c6 e8 8c 89
RSP: 0018:ffffc90003d47ac8 EFLAGS: 00010246
RAX: 0000000000001000 RBX: dffffc0000000000 RCX: ffff888035db0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88804e2ee034
RBP: 0000000000000000 R08: ffffffff830f53df R09: ffffffff8c60b100
R10: ffffffff8c60ad00 R11: ffffffff8c60a900 R12: ffff88804e2ee028
R13: 0000000000000000 R14: 0000000000000000 R15: ffff888032e9a000
FS:  00007f0869e546c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0869e55000 CR3: 0000000032466000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 qnx6_fill_super+0x181/0x15a0 fs/qnx6/inode.c:321
 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636
 vfs_get_tree+0x90/0x2b0 fs/super.c:1814
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
 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:0x7f0869ec01aa
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0869e54038 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020009e00 RCX: 00007f0869ec01aa
RDX: 0000000020009e00 RSI: 0000000020000080 RDI: 00007f0869e54090
RBP: 00007f0869e54090 R08: 00007f0869e540d0 R09: 002c73665f696d6d
R10: 000000000020c800 R11: 0000000000000286 R12: 0000000020000080
R13: 00007f0869e540d0 R14: 0000000000009e0d R15: 0000000020000040
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:qnx6_mmi_fill_super+0x20c/0x810 fs/qnx6/super_mmi.c:68
Code: c4 28 4c 89 e0 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 60 05 00 00 45 85 f6 41 8b 04 24 89 c6 0f ce 0f 44 f0 b8 00 10 00 00 31 d2 <f7> f6 41 89 c6 4c 89 ff e8 a7 8f 82 01 89 c3 31 ff 89 c6 e8 8c 89
RSP: 0018:ffffc90003d47ac8 EFLAGS: 00010246
RAX: 0000000000001000 RBX: dffffc0000000000 RCX: ffff888035db0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88804e2ee034
RBP: 0000000000000000 R08: ffffffff830f53df R09: ffffffff8c60b100
R10: ffffffff8c60ad00 R11: ffffffff8c60a900 R12: ffff88804e2ee028
R13: 0000000000000000 R14: 0000000000000000 R15: ffff888032e9a000
FS:  00007f0869e546c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0869e55000 CR3: 0000000032466000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	28 4c 89 e0          	sub    %cl,-0x20(%rcx,%rcx,4)
   4:	48 c1 e8 03          	shr    $0x3,%rax
   8:	0f b6 04 18          	movzbl (%rax,%rbx,1),%eax
   c:	84 c0                	test   %al,%al
   e:	0f 85 60 05 00 00    	jne    0x574
  14:	45 85 f6             	test   %r14d,%r14d
  17:	41 8b 04 24          	mov    (%r12),%eax
  1b:	89 c6                	mov    %eax,%esi
  1d:	0f ce                	bswap  %esi
  1f:	0f 44 f0             	cmove  %eax,%esi
  22:	b8 00 10 00 00       	mov    $0x1000,%eax
  27:	31 d2                	xor    %edx,%edx
* 29:	f7 f6                	div    %esi <-- trapping instruction
  2b:	41 89 c6             	mov    %eax,%r14d
  2e:	4c 89 ff             	mov    %r15,%rdi
  31:	e8 a7 8f 82 01       	call   0x1828fdd
  36:	89 c3                	mov    %eax,%ebx
  38:	31 ff                	xor    %edi,%edi
  3a:	89 c6                	mov    %eax,%esi
  3c:	e8                   	.byte 0xe8
  3d:	8c                   	.byte 0x8c
  3e:	89                   	.byte 0x89

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/12 08:32 upstream 2d5404caa8c7 75bb1b32 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-upstream-fs divide error in qnx6_mmi_fill_super
2024/10/28 21:12 upstream 819837584309 9efb3cc7 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-snapshot-upstream-root divide error in qnx6_mmi_fill_super
2024/10/28 20:37 upstream 819837584309 9efb3cc7 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-snapshot-upstream-root divide error in qnx6_mmi_fill_super
2024/10/28 20:09 upstream 819837584309 9efb3cc7 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-snapshot-upstream-root divide error in qnx6_mmi_fill_super
2024/10/28 19:25 upstream 819837584309 9efb3cc7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root divide error in qnx6_mmi_fill_super
* Struck through repros no longer work on HEAD.