syzbot


divide error in dbNextAG (2)

Status: upstream: reported C repro on 2022/03/17 14:18
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+0c326bb9c3fc03e783e0@syzkaller.appspotmail.com
First crash: 854d, last: 560d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 divide error in dbNextAG 1 1059d 1059d 0/1 auto-closed as invalid on 2021/12/22 21:17
upstream divide error in dbNextAG jfs syz error 2 856d 852d 22/27 fixed on 2023/02/24 13:50

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8101 Comm: syz-executor362 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:dbNextAG+0xff/0x530 fs/jfs/jfs_dmap.c:615
Code: df 48 89 c1 48 89 04 24 83 e0 07 48 c1 e9 03 0f b6 0c 11 48 89 c2 83 c2 03 38 ca 7c 08 84 c9 0f 85 8a 03 00 00 44 89 f0 31 d2 <41> f7 74 24 14 49 89 c6 49 8d 44 24 20 48 89 c2 48 89 44 24 18 48
RSP: 0018:ffff8880b1477238 EFLAGS: 00010246
RAX: 00000000932f7300 RBX: ffff8880a50381c0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880b057c548
RBP: ffff8880b057c540 R08: 0000000000000000 R09: ffffed10160af932
R10: ffff8880b057c997 R11: 0000000000074071 R12: ffff8880b057c540
R13: 0000000000000001 R14: 00000000932f7300 R15: ffff88808b04c180
FS:  0000555556599300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f89014c46c0 CR3: 00000000ab3a3000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dbAlloc+0x44b/0xb00 fs/jfs/jfs_dmap.c:857
 dtSplitUp+0x365/0x4e70 fs/jfs/jfs_dtree.c:987
 dtInsert+0x7fd/0xa00 fs/jfs/jfs_dtree.c:876
 jfs_create.part.0+0x3c6/0x880 fs/jfs/namei.c:150
 jfs_create+0x3f/0x60 fs/jfs/namei.c:90
 lookup_open+0x893/0x1a20 fs/namei.c:3235
 do_last fs/namei.c:3327 [inline]
 path_openat+0x1094/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7faa49b4be19
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe840ce398 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007faa49b4be19
RDX: 000000000000275a RSI: 00000000200001c0 RDI: 00000000ffffff9c
RBP: 00007faa49b0b680 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000073
R13: 0000000000000000 R14: 00080000000000fc R15: 0000000000000000
Modules linked in:
---[ end trace 7b75155e2b03922c ]---
RIP: 0010:dbNextAG+0xff/0x530 fs/jfs/jfs_dmap.c:615
Code: df 48 89 c1 48 89 04 24 83 e0 07 48 c1 e9 03 0f b6 0c 11 48 89 c2 83 c2 03 38 ca 7c 08 84 c9 0f 85 8a 03 00 00 44 89 f0 31 d2 <41> f7 74 24 14 49 89 c6 49 8d 44 24 20 48 89 c2 48 89 44 24 18 48
RSP: 0018:ffff8880b1477238 EFLAGS: 00010246
RAX: 00000000932f7300 RBX: ffff8880a50381c0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880b057c548
RBP: ffff8880b057c540 R08: 0000000000000000 R09: ffffed10160af932
R10: ffff8880b057c997 R11: 0000000000074071 R12: ffff8880b057c540
R13: 0000000000000001 R14: 00000000932f7300 R15: ffff88808b04c180
FS:  0000555556599300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f89014c46c0 CR3: 00000000ab3a3000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	df 48 89             	fisttps -0x77(%rax)
   3:	c1 48 89 04          	rorl   $0x4,-0x77(%rax)
   7:	24 83                	and    $0x83,%al
   9:	e0 07                	loopne 0x12
   b:	48 c1 e9 03          	shr    $0x3,%rcx
   f:	0f b6 0c 11          	movzbl (%rcx,%rdx,1),%ecx
  13:	48 89 c2             	mov    %rax,%rdx
  16:	83 c2 03             	add    $0x3,%edx
  19:	38 ca                	cmp    %cl,%dl
  1b:	7c 08                	jl     0x25
  1d:	84 c9                	test   %cl,%cl
  1f:	0f 85 8a 03 00 00    	jne    0x3af
  25:	44 89 f0             	mov    %r14d,%eax
  28:	31 d2                	xor    %edx,%edx
* 2a:	41 f7 74 24 14       	divl   0x14(%r12) <-- trapping instruction
  2f:	49 89 c6             	mov    %rax,%r14
  32:	49 8d 44 24 20       	lea    0x20(%r12),%rax
  37:	48 89 c2             	mov    %rax,%rdx
  3a:	48 89 44 24 18       	mov    %rax,0x18(%rsp)
  3f:	48                   	rex.W

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/24 18:04 linux-4.19.y 3f8a27f9e27b faae2fda .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 divide error in dbNextAG
2022/03/17 14:18 linux-4.19.y 3f8a27f9e27b dfa9a8ed .config console log report syz ci2-linux-4-19 divide error in dbNextAG
2023/01/05 23:46 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
2022/11/19 04:43 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
2022/11/09 10:49 linux-4.19.y 3f8a27f9e27b 5fa28208 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
2022/11/07 05:35 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
2022/10/24 17:29 linux-4.19.y 3f8a27f9e27b faae2fda .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
2022/10/12 01:04 linux-4.19.y 3f8a27f9e27b 02b6492e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
2022/10/07 16:45 linux-4.19.y 3f8a27f9e27b 79a59635 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
2022/09/27 22:47 linux-4.19.y 3f8a27f9e27b 10323ddf .config console log report info [disk image] [vmlinux] ci2-linux-4-19 divide error in dbNextAG
* Struck through repros no longer work on HEAD.