[v5.15] divide error in flush_commit_list

0 views
Skip to first unread message

syzbot

unread,
May 3, 2023, 11:00:51 AM5/3/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8a7f2a5c5aa1 Linux 5.15.110
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=120ef604280000
kernel config: https://syzkaller.appspot.com/x/.config?x=ba8d5c9d6c5289f
dashboard link: https://syzkaller.appspot.com/bug?extid=a6603b96972c21e2a304
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/fc04f54c047f/disk-8a7f2a5c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6b4ba4cb1191/vmlinux-8a7f2a5c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/d927dc3f9670/bzImage-8a7f2a5c.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a6603b...@syzkaller.appspotmail.com

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Aug 23, 2023, 5:10:39 AM8/23/23
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages