syzbot


divide error in flush_commit_list

Status: upstream: reported on 2022/12/18 15:58
Labels: reiserfs (incorrect?)
Reported-by: syzbot+32134c00ff57e0343b6b@syzkaller.appspotmail.com
First crash: 168d, last: 2d03h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] divide error in flush_commit_list 0 (1) 2022/12/18 15:58
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 divide error in flush_commit_list 1 102d 102d 0/1 upstream: reported on 2023/02/18 21:03
linux-5.15 divide error in flush_commit_list 1 28d 28d 0/3 upstream: reported on 2023/05/03 15:00

Sample crash report:
REISERFS (device loop2): journal params: device loop2, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30
REISERFS (device loop2): checking transaction log (loop2)
REISERFS (device loop2): Using r5 hash to sort names
reiserfs: enabling write barrier flush mode
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 2 PID: 29046 Comm: syz-executor.2 Not tainted 6.4.0-rc4-syzkaller-00031-g8b817fded42d #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:flush_commit_list.isra.0+0xa2f/0x1e70 fs/reiserfs/journal.c:1051
Code: c1 45 84 ca 0f 85 7a 0f 00 00 83 e2 07 40 38 d6 41 0f 9e c1 40 84 f6 0f 95 c2 41 84 d1 0f 85 61 0f 00 00 41 8b 7c 24 14 31 d2 <48> f7 f7 48 8b 44 24 38 8d 34 11 48 c1 e8 03 80 3c 18 00 0f 85 24
RSP: 0018:ffffc90003a178e8 EFLAGS: 00010246
RAX: 0000000000000045 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88801f4ad000 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88802edb4000
R13: 0000000000000045 R14: 0000000000000100 R15: ffff888059440000
FS:  00007febc5c83700(0000) GS:ffff88806b800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2df28000 CR3: 0000000039ae5000 CR4: 0000000000350ee0
DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_journal_end+0x3714/0x4af0 fs/reiserfs/journal.c:4300
 journal_end+0x27c/0x330 fs/reiserfs/journal.c:3414
 reiserfs_remount+0xa9a/0x1650 fs/reiserfs/super.c:1576
 legacy_reconfigure+0x119/0x180 fs/fs_context.c:633
 reconfigure_super+0x40c/0xa30 fs/super.c:956
 do_remount fs/namespace.c:2701 [inline]
 path_mount+0x1846/0x1e40 fs/namespace.c:3361
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x283/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7febc4e8d69a
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007febc5c82f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007febc4e8d69a
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00007febc5c83020 R08: 00007febc5c83020 R09: 0000000001a484bc
R10: 0000000001a484bc R11: 0000000000000202 R12: 00000000200000c0
R13: 0000000020000100 R14: 00007febc5c82fe0 R15: 00000000200005c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:flush_commit_list.isra.0+0xa2f/0x1e70 fs/reiserfs/journal.c:1051
Code: c1 45 84 ca 0f 85 7a 0f 00 00 83 e2 07 40 38 d6 41 0f 9e c1 40 84 f6 0f 95 c2 41 84 d1 0f 85 61 0f 00 00 41 8b 7c 24 14 31 d2 <48> f7 f7 48 8b 44 24 38 8d 34 11 48 c1 e8 03 80 3c 18 00 0f 85 24
RSP: 0018:ffffc90003a178e8 EFLAGS: 00010246
RAX: 0000000000000045 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88801f4ad000 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88802edb4000
R13: 0000000000000045 R14: 0000000000000100 R15: ffff888059440000
FS:  00007febc5c83700(0000) GS:ffff88806b600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f02e16dea78 CR3: 0000000039ae5000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	c1 45 84 ca          	roll   $0xca,-0x7c(%rbp)
   4:	0f 85 7a 0f 00 00    	jne    0xf84
   a:	83 e2 07             	and    $0x7,%edx
   d:	40 38 d6             	cmp    %dl,%sil
  10:	41 0f 9e c1          	setle  %r9b
  14:	40 84 f6             	test   %sil,%sil
  17:	0f 95 c2             	setne  %dl
  1a:	41 84 d1             	test   %dl,%r9b
  1d:	0f 85 61 0f 00 00    	jne    0xf84
  23:	41 8b 7c 24 14       	mov    0x14(%r12),%edi
  28:	31 d2                	xor    %edx,%edx
* 2a:	48 f7 f7             	div    %rdi <-- trapping instruction
  2d:	48 8b 44 24 38       	mov    0x38(%rsp),%rax
  32:	8d 34 11             	lea    (%rcx,%rdx,1),%esi
  35:	48 c1 e8 03          	shr    $0x3,%rax
  39:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
  3d:	0f                   	.byte 0xf
  3e:	85                   	.byte 0x85
  3f:	24                   	.byte 0x24

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/05/29 22:24 upstream 8b817fded42d cf184559 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream divide error in flush_commit_list
2023/05/16 20:33 upstream f1fcbaa18b28 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
2023/05/02 08:03 upstream c8c655c34e33 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
2023/04/27 23:05 upstream cec24b8b6bb8 70a605de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root divide error in flush_commit_list
2023/03/25 13:44 upstream 65aca32efdcb fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root divide error in flush_commit_list
2023/03/03 18:54 upstream 2eb29d59ddf0 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
2023/01/23 03:27 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
2023/01/16 09:50 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
2023/01/04 06:24 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
2022/12/28 02:50 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
2022/12/14 15:53 upstream e2ca6ba6ba01 b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs divide error in flush_commit_list
* Struck through repros no longer work on HEAD.