syzbot


divide error in do_journal_end

Status: upstream: reported C repro on 2023/07/08 18:42
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+8b4def6a27716cebedb3@syzkaller.appspotmail.com
First crash: 290d, last: 1d13h
Bug presence (1)
Date Name Commit Repro Result
2023/07/10 upstream (ToT) 06c2afb862f9 C [report] divide error in do_journal_end
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-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-6.1 divide error in do_journal_end origin:upstream C 3 15d 115d 0/3 upstream: reported C repro on 2023/12/30 01:46
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 (6)
Created Duration User Patch Repo Result
2024/03/12 04:15 50m bisect fix linux-5.15.y job log (0) log
2024/02/03 14:05 1h18m (2) bisect fix linux-5.15.y job log (0) log
2023/12/25 15:11 1h00m bisect fix linux-5.15.y job log (0) log
2023/11/24 23:23 56m bisect fix linux-5.15.y job log (0) log
2023/10/22 22:25 1h05m bisect fix linux-5.15.y job log (0) log
2023/09/21 16:44 56m bisect fix linux-5.15.y job log (0) log

Sample crash report:
REISERFS (device loop0): Using tea hash to sort names
REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 4) not found (pos 2)
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3515 Comm: syz-executor278 Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:do_journal_end+0x12f1/0x4650 fs/reiserfs/journal.c:4089
Code: 04 30 84 c0 0f 85 74 2d 00 00 4f 8d 7c 2f 01 48 89 e8 48 c1 e8 03 42 0f b6 04 30 84 c0 0f 85 7a 2d 00 00 8b 0b 4c 89 f8 31 d2 <48> f7 f1 48 89 d3 4c 01 e3 48 8b 84 24 c8 00 00 00 42 80 3c 30 00
RSP: 0018:ffffc900011df970 EFLAGS: 00010246
RAX: 0000000000000003 RBX: ffff8880758e9014 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888079704000
RBP: ffff8880758e9017 R08: dffffc0000000000 R09: ffff888079704000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000002 R14: dffffc0000000000 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc1198ee18 CR3: 000000000c68e000 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+0x6e/0x2c0 fs/super.c:448
 kill_block_super+0x7a/0xe0 fs/super.c:1414
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0x6a3/0x2480 kernel/exit.c:872
 do_group_exit+0x144/0x310 kernel/exit.c:994
 __do_sys_exit_group kernel/exit.c:1005 [inline]
 __se_sys_exit_group kernel/exit.c:1003 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003
 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:0x7f92fa18e889
Code: Unable to access opcode bytes at RIP 0x7f92fa18e85f.
RSP: 002b:00007fffcd0a14a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f92fa18e889
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007f92fa20b2d0 R08: ffffffffffffffb8 R09: 0000000000000003
R10: 0000000000007a00 R11: 0000000000000246 R12: 00007f92fa20b2d0
R13: 0000000000000000 R14: 00007f92fa20c040 R15: 00007f92fa15cdd0
 </TASK>
Modules linked in:
---[ end trace b02edc1ed820ad89 ]---
RIP: 0010:do_journal_end+0x12f1/0x4650 fs/reiserfs/journal.c:4089
Code: 04 30 84 c0 0f 85 74 2d 00 00 4f 8d 7c 2f 01 48 89 e8 48 c1 e8 03 42 0f b6 04 30 84 c0 0f 85 7a 2d 00 00 8b 0b 4c 89 f8 31 d2 <48> f7 f1 48 89 d3 4c 01 e3 48 8b 84 24 c8 00 00 00 42 80 3c 30 00
RSP: 0018:ffffc900011df970 EFLAGS: 00010246
RAX: 0000000000000003 RBX: ffff8880758e9014 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888079704000
RBP: ffff8880758e9017 R08: dffffc0000000000 R09: ffff888079704000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000002 R14: dffffc0000000000 R15: 0000000000000003
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92fa1d8df8 CR3: 0000000020500000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	04 30                	add    $0x30,%al
   2:	84 c0                	test   %al,%al
   4:	0f 85 74 2d 00 00    	jne    0x2d7e
   a:	4f 8d 7c 2f 01       	lea    0x1(%r15,%r13,1),%r15
   f:	48 89 e8             	mov    %rbp,%rax
  12:	48 c1 e8 03          	shr    $0x3,%rax
  16:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax
  1b:	84 c0                	test   %al,%al
  1d:	0f 85 7a 2d 00 00    	jne    0x2d9d
  23:	8b 0b                	mov    (%rbx),%ecx
  25:	4c 89 f8             	mov    %r15,%rax
  28:	31 d2                	xor    %edx,%edx
* 2a:	48 f7 f1             	div    %rcx <-- trapping instruction
  2d:	48 89 d3             	mov    %rdx,%rbx
  30:	4c 01 e3             	add    %r12,%rbx
  33:	48 8b 84 24 c8 00 00 	mov    0xc8(%rsp),%rax
  3a:	00
  3b:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/19 17:40 linux-5.15.y c52b9710c83d af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan divide error in do_journal_end
2023/12/31 01:49 linux-5.15.y d93fa2c78854 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan divide error in do_journal_end
2023/07/08 18:42 linux-5.15.y d54cfc420586 668cb1fa .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:53 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:53 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:51 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:51 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:49 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:48 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:47 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:47 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 06:47 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 02:40 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/22 00:20 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/21 10:40 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/19 14:25 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/15 12:25 linux-5.15.y fa3df276cd36 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/15 12:25 linux-5.15.y fa3df276cd36 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/15 12:24 linux-5.15.y fa3df276cd36 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/07 11:31 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/02 03:57 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
2024/04/01 14:24 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan divide error in do_journal_end
* Struck through repros no longer work on HEAD.