syzbot


divide error in flush_commit_list (2)

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

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10385 Comm: syz.4.1606 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:flush_commit_list+0xb4e/0x1ec0 fs/reiserfs/journal.c:1049
Code: c0 4c 8b ac 24 a8 00 00 00 0f 85 d5 01 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 30 84 c0 0f 85 ec 01 00 00 41 8b 0f 48 89 d8 31 d2 <48> f7 f1 49 89 d7 49 83 c6 18 4c 89 f0 48 c1 e8 03 80 3c 30 00 74
RSP: 0000:ffffc90002f771a0 EFLAGS: 00010246
RAX: 00000000000000f6 RBX: 00000000000000f6 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000040000
RBP: ffffc90002f77308 R08: dffffc0000000000 R09: ffffed100b8c4464
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880252ce017
R13: ffff8880771a8018 R14: ffff888077357000 R15: ffff8880252ce014
FS:  00007f5789c776c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2be1d5 CR3: 0000000090081000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 flush_journal_list+0x2a8/0x1c80 fs/reiserfs/journal.c:1388
 flush_used_journal_lists+0x1254/0x15d0 fs/reiserfs/journal.c:1826
 do_journal_end+0x391a/0x4650
 do_journal_begin_r+0x950/0x1000
 journal_begin+0x148/0x350 fs/reiserfs/journal.c:3253
 reiserfs_fill_super+0x1812/0x2690 fs/reiserfs/super.c:2108
 mount_bdev+0x2c9/0x3f0 fs/super.c:1398
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1528
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f578b82179a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5789c76e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5789c76ef0 RCX: 00007f578b82179a
RDX: 0000000020000000 RSI: 00000000200000c0 RDI: 00007f5789c76eb0
RBP: 0000000020000000 R08: 00007f5789c76ef0 R09: 0000000000008488
R10: 0000000000008488 R11: 0000000000000246 R12: 00000000200000c0
R13: 00007f5789c76eb0 R14: 0000000000001106 R15: 0000000020000780
 </TASK>
Modules linked in:
---[ end trace d31ee32fa18ced35 ]---
RIP: 0010:flush_commit_list+0xb4e/0x1ec0 fs/reiserfs/journal.c:1049
Code: c0 4c 8b ac 24 a8 00 00 00 0f 85 d5 01 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 30 84 c0 0f 85 ec 01 00 00 41 8b 0f 48 89 d8 31 d2 <48> f7 f1 49 89 d7 49 83 c6 18 4c 89 f0 48 c1 e8 03 80 3c 30 00 74
RSP: 0000:ffffc90002f771a0 EFLAGS: 00010246
RAX: 00000000000000f6 RBX: 00000000000000f6 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000040000
RBP: ffffc90002f77308 R08: dffffc0000000000 R09: ffffed100b8c4464
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880252ce017
R13: ffff8880771a8018 R14: ffff888077357000 R15: ffff8880252ce014
FS:  00007f5789c776c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa5e20d22d8 CR3: 0000000090081000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c0 4c 8b ac 24       	rorb   $0x24,-0x54(%rbx,%rcx,4)
   5:	a8 00                	test   $0x0,%al
   7:	00 00                	add    %al,(%rax)
   9:	0f 85 d5 01 00 00    	jne    0x1e4
   f:	4c 89 e0             	mov    %r12,%rax
  12:	48 c1 e8 03          	shr    $0x3,%rax
  16:	0f b6 04 30          	movzbl (%rax,%rsi,1),%eax
  1a:	84 c0                	test   %al,%al
  1c:	0f 85 ec 01 00 00    	jne    0x20e
  22:	41 8b 0f             	mov    (%r15),%ecx
  25:	48 89 d8             	mov    %rbx,%rax
  28:	31 d2                	xor    %edx,%edx
* 2a:	48 f7 f1             	div    %rcx <-- trapping instruction
  2d:	49 89 d7             	mov    %rdx,%r15
  30:	49 83 c6 18          	add    $0x18,%r14
  34:	4c 89 f0             	mov    %r14,%rax
  37:	48 c1 e8 03          	shr    $0x3,%rax
  3b:	80 3c 30 00          	cmpb   $0x0,(%rax,%rsi,1)
  3f:	74                   	.byte 0x74

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/14 10:35 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in flush_commit_list
2024/09/09 00:05 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in flush_commit_list
2024/09/02 03:00 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in flush_commit_list
2024/07/22 22:48 linux-5.15.y 7c6d66f0266f df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in flush_commit_list
2024/04/25 09:32 linux-5.15.y c52b9710c83d 8bdc0f22 .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.