syzbot


divide error in flush_commit_list

Status: auto-obsoleted due to no activity on 2023/08/23 09:10
Reported-by: syzbot+a6603b96972c21e2a304@syzkaller.appspotmail.com
First crash: 567d, last: 567d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 divide error in flush_commit_list (2) 5 38d 210d 0/3 upstream: reported on 2024/04/25 09:33
upstream divide error in flush_commit_list reiserfs 24 329d 703d 0/28 auto-obsoleted due to no activity on 2024/04/06 13:39
linux-4.19 divide error in flush_commit_list 1 641d 641d 0/1 upstream: reported on 2023/02/18 21:03

Sample crash report:
REISERFS (device loop4): Created .reiserfs_priv - reserved for xattr storage.
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 10129 Comm: syz-executor.4 Not tainted 5.15.110-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:flush_commit_list+0xeae/0x1ec0 fs/reiserfs/journal.c:1065
Code: 00 0f 85 06 03 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 30 84 c0 48 8b 9c 24 90 00 00 00 0f 85 11 03 00 00 41 8b 0f 4c 89 f0 31 d2 <48> f7 f1 49 89 d6 48 83 c3 18 48 89 d8 48 c1 e8 03 80 3c 30 00 74
RSP: 0018:ffffc9000271f760 EFLAGS: 00010246
RAX: 0000000000000004 RBX: ffff888050b82000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000007e83
RBP: ffffc9000271f8e0 R08: dffffc0000000000 R09: ffffed10036a9204
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888065d6c017
R13: ffff88804bcd0018 R14: 0000000000000004 R15: ffff888065d6c014
FS:  00007f772fdd1700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f731acd3000 CR3: 0000000057acd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_journal_end+0x3bb3/0x4650 fs/reiserfs/journal.c:4370
 reiserfs_sync_fs+0xca/0x140 fs/reiserfs/super.c:78
 sync_filesystem+0xe8/0x220 fs/sync.c:56
 reiserfs_remount+0x1e4/0x18e0 fs/reiserfs/super.c:1447
 reconfigure_super+0x3c5/0x7c0 fs/super.c:916
 vfs_fsconfig_locked fs/fsopen.c:254 [inline]
 __do_sys_fsconfig fs/fsopen.c:439 [inline]
 __se_sys_fsconfig+0x98b/0xec0 fs/fsopen.c:314
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f773185f169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f772fdd1168 EFLAGS: 00000246 ORIG_RAX: 00000000000001af
RAX: ffffffffffffffda RBX: 00007f773197ef80 RCX: 00007f773185f169
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000005
RBP: 00007f77318baca1 R08: e22db66300000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe1ebe7aaf R14: 00007f772fdd1300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 70aa3fd926288f7e ]---
RIP: 0010:flush_commit_list+0xeae/0x1ec0 fs/reiserfs/journal.c:1065
Code: 00 0f 85 06 03 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 30 84 c0 48 8b 9c 24 90 00 00 00 0f 85 11 03 00 00 41 8b 0f 4c 89 f0 31 d2 <48> f7 f1 49 89 d6 48 83 c3 18 48 89 d8 48 c1 e8 03 80 3c 30 00 74
RSP: 0018:ffffc9000271f760 EFLAGS: 00010246
RAX: 0000000000000004 RBX: ffff888050b82000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000007e83
RBP: ffffc9000271f8e0 R08: dffffc0000000000 R09: ffffed10036a9204
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888065d6c017
R13: ffff88804bcd0018 R14: 0000000000000004 R15: ffff888065d6c014
FS:  00007f772fdd1700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f731c7ad3a8 CR3: 0000000057acd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 0f                	add    %cl,(%rdi)
   2:	85 06                	test   %eax,(%rsi)
   4:	03 00                	add    (%rax),%eax
   6:	00 4c 89 e0          	add    %cl,-0x20(%rcx,%rcx,4)
   a:	48 c1 e8 03          	shr    $0x3,%rax
   e:	0f b6 04 30          	movzbl (%rax,%rsi,1),%eax
  12:	84 c0                	test   %al,%al
  14:	48 8b 9c 24 90 00 00 	mov    0x90(%rsp),%rbx
  1b:	00
  1c:	0f 85 11 03 00 00    	jne    0x333
  22:	41 8b 0f             	mov    (%r15),%ecx
  25:	4c 89 f0             	mov    %r14,%rax
  28:	31 d2                	xor    %edx,%edx
* 2a:	48 f7 f1             	div    %rcx <-- trapping instruction
  2d:	49 89 d6             	mov    %rdx,%r14
  30:	48 83 c3 18          	add    $0x18,%rbx
  34:	48 89 d8             	mov    %rbx,%rax
  37:	48 c1 e8 03          	shr    $0x3,%rax
  3b:	80 3c 30 00          	cmpb   $0x0,(%rax,%rsi,1)
  3f:	74                   	.byte 0x74

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/03 15:00 linux-5.15.y 8a7f2a5c5aa1 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in flush_commit_list
* Struck through repros no longer work on HEAD.