syzbot


divide error in do_journal_end

Status: upstream: reported C repro on 2023/12/30 01:46
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+9e58b6fea5933362e394@syzkaller.appspotmail.com
First crash: 115d, last: 15d
Bug presence (2)
Date Name Commit Repro Result
2023/12/30 upstream (ToT) f016f7547aee C [report] divide error in do_journal_end
2024/04/14 upstream (ToT) 7efd0a74039f C Failed due to an error; will retry later
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream divide error in do_journal_end reiserfs 2 1250d 1278d 0/26 auto-closed as invalid on 2021/03/19 22:00
linux-4.14 divide error in do_journal_end (2) C error 1 602d 1091d 0/1 upstream: reported C repro on 2021/04/28 16:52
upstream divide error in do_journal_end (3) reiserfs C error done 83 107d 487d 0/26 auto-obsoleted due to no activity on 2024/04/14 06:39
upstream divide error in do_journal_end (2) reiserfs C inconclusive 2 1077d 1077d 20/26 fixed on 2021/11/10 00:50
linux-5.15 divide error in do_journal_end origin:upstream C 22 1d14h 290d 0/3 upstream: reported C repro on 2023/07/08 18:42
linux-4.19 divide error in do_journal_end (3) reiserfs C error 1 452d 452d 0/1 upstream: reported C repro on 2023/01/27 02:59
linux-4.19 divide error in do_journal_end (2) C done 4 1017d 1128d 1/1 fixed on 2021/08/12 11:53
linux-4.14 divide error in do_journal_end C done 1 1201d 1261d 1/1 fixed on 2021/02/21 17:18
linux-4.19 divide error in do_journal_end C done 2 1213d 1273d 1/1 fixed on 2021/01/27 05:38
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/03/11 07:45 1h04m bisect fix linux-6.1.y job log (0) log
2024/02/01 19:32 59m bisect fix linux-6.1.y job log (0) log

Sample crash report:
REISERFS (device loop0): Using r5 hash to sort names
REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 1) not found (pos 2)
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3541 Comm: syz-executor212 Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:do_journal_end+0x1286/0x4870 fs/reiserfs/journal.c:4093
Code: 28 84 c0 0f 85 b8 2f 00 00 4a 8d 5c 32 01 4c 89 e0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 c5 2f 00 00 41 8b 0f 48 89 d8 31 d2 <48> f7 f1 48 89 d3 48 03 5c 24 40 48 8b 84 24 e8 00 00 00 42 80 3c
RSP: 0018:ffffc90003a8f7e0 EFLAGS: 00010246
RAX: 0000000000000003 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888028e1f000
RBP: ffffc90003a8fa50 R08: dffffc0000000000 R09: ffff888028e1f000
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807af15017
R13: dffffc0000000000 R14: 0000000000000002 R15: ffff88807af15014
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffb5dafce78 CR3: 000000000ce8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 reiserfs_sync_fs+0xca/0x140 fs/reiserfs/super.c:78
 sync_filesystem+0xe8/0x220 fs/sync.c:56
 generic_shutdown_super+0x6b/0x340 fs/super.c:474
 kill_block_super+0x7a/0xe0 fs/super.c:1459
 deactivate_locked_super+0xa0/0x110 fs/super.c:332
 cleanup_mnt+0x490/0x520 fs/namespace.c:1186
 task_work_run+0x246/0x300 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa73/0x26a0 kernel/exit.c:869
 do_group_exit+0x202/0x2b0 kernel/exit.c:1019
 __do_sys_exit_group kernel/exit.c:1030 [inline]
 __se_sys_exit_group kernel/exit.c:1028 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1028
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ffb5dab2909
Code: Unable to access opcode bytes at 0x7ffb5dab28df.
RSP: 002b:00007ffccc57d278 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ffb5dab2909
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007ffb5db2f2d0 R08: ffffffffffffffb8 R09: 00007ffccc57d350
R10: 00007ffccc57d350 R11: 0000000000000246 R12: 00007ffb5db2f2d0
R13: 0000000000000000 R14: 00007ffb5db30040 R15: 00007ffb5da80e50
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:do_journal_end+0x1286/0x4870 fs/reiserfs/journal.c:4093
Code: 28 84 c0 0f 85 b8 2f 00 00 4a 8d 5c 32 01 4c 89 e0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 c5 2f 00 00 41 8b 0f 48 89 d8 31 d2 <48> f7 f1 48 89 d3 48 03 5c 24 40 48 8b 84 24 e8 00 00 00 42 80 3c
RSP: 0018:ffffc90003a8f7e0 EFLAGS: 00010246
RAX: 0000000000000003 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888028e1f000
RBP: ffffc90003a8fa50 R08: dffffc0000000000 R09: ffff888028e1f000
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807af15017
R13: dffffc0000000000 R14: 0000000000000002 R15: ffff88807af15014
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555904e30560 CR3: 000000000ce8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	28 84 c0 0f 85 b8 2f 	sub    %al,0x2fb8850f(%rax,%rax,8)
   7:	00 00                	add    %al,(%rax)
   9:	4a 8d 5c 32 01       	lea    0x1(%rdx,%r14,1),%rbx
   e:	4c 89 e0             	mov    %r12,%rax
  11:	48 c1 e8 03          	shr    $0x3,%rax
  15:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax
  1a:	84 c0                	test   %al,%al
  1c:	0f 85 c5 2f 00 00    	jne    0x2fe7
  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:	48 89 d3             	mov    %rdx,%rbx
  30:	48 03 5c 24 40       	add    0x40(%rsp),%rbx
  35:	48 8b 84 24 e8 00 00 	mov    0xe8(%rsp),%rax
  3c:	00
  3d:	42                   	rex.X
  3e:	80                   	.byte 0x80
  3f:	3c                   	.byte 0x3c

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/08 11:29 linux-6.1.y 347385861c50 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan divide error in do_journal_end
2023/12/30 01:45 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan divide error in do_journal_end
2024/04/08 10:13 linux-6.1.y 347385861c50 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in do_journal_end
* Struck through repros no longer work on HEAD.