Hello,
syzbot found the following issue on:
HEAD commit: 674f684f7c61 Linux 5.15.212
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=170831b9580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=f161cbc9aef65db0
dashboard link:
https://syzkaller.appspot.com/bug?extid=7e13341c5d62c0bd821b
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/f55be2937b89/disk-674f684f.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/a19fb0ffc049/vmlinux-674f684f.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/365d4529a007/bzImage-674f684f.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+7e1334...@syzkaller.appspotmail.com
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4348 Comm: syz.1.29 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:add_device drivers/mtd/devices/block2mtd.c:272 [inline]
RIP: 0010:block2mtd_setup2+0x5b0/0xd90 drivers/mtd/devices/block2mtd.c:425
Code: 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 80 3c 28 00 4c 8b 7c 24 18 74 08 4c 89 f7 e8 48 97 91 fc 49 8b 06 49 63 cf 48 99 <48> f7 f9 49 89 d6 31 ff 48 89 d6 e8 50 78 4c fc 4d 85 f6 0f 85 98
RSP: 0018:ffffc900030ff9e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff1100f5e7002 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000700000 RDI: 0000000001f00000
RBP: ffffc900030ffbd0 R08: ffff88801fef60af R09: 1ffff11003fdec15
R10: dffffc0000000000 R11: ffffed1003fdec16 R12: ffffc900030ffa60
R13: dffffc0000000000 R14: ffff88801cf22a20 R15: 0000000000000000
FS: 00007fc2387386c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4af184ad58 CR3: 0000000072c75000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
block2mtd_setup+0x1f/0x40 drivers/mtd/devices/block2mtd.c:442
param_attr_store+0x20a/0x300 kernel/params.c:585
module_attr_store+0x5b/0x80 kernel/params.c:905
kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296
call_write_iter include/linux/fs.h:2173 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x748/0xd70 fs/read_write.c:594
ksys_write+0x153/0x260 fs/read_write.c:647
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fc23a4dfe99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc238738028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fc23a767fa0 RCX: 00007fc23a4dfe99
RDX: 000000000000000b RSI: 00002000000001c0 RDI: 0000000000000003
RBP: 00007fc23a575eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc23a768038 R14: 00007fc23a767fa0 R15: 00007ffdccba5e68
</TASK>
Modules linked in:
---[ end trace 5009c6dfdb82fa57 ]---
RIP: 0010:add_device drivers/mtd/devices/block2mtd.c:272 [inline]
RIP: 0010:block2mtd_setup2+0x5b0/0xd90 drivers/mtd/devices/block2mtd.c:425
Code: 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 80 3c 28 00 4c 8b 7c 24 18 74 08 4c 89 f7 e8 48 97 91 fc 49 8b 06 49 63 cf 48 99 <48> f7 f9 49 89 d6 31 ff 48 89 d6 e8 50 78 4c fc 4d 85 f6 0f 85 98
RSP: 0018:ffffc900030ff9e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff1100f5e7002 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000700000 RDI: 0000000001f00000
RBP: ffffc900030ffbd0 R08: ffff88801fef60af R09: 1ffff11003fdec15
R10: dffffc0000000000 R11: ffffed1003fdec16 R12: ffffc900030ffa60
R13: dffffc0000000000 R14: ffff88801cf22a20 R15: 0000000000000000
FS: 00007fc2387386c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4af38622f8 CR3: 0000000072c75000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 c1 e8 03 shr $0x3,%rax
4: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13
b: fc ff df
e: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
13: 4c 8b 7c 24 18 mov 0x18(%rsp),%r15
18: 74 08 je 0x22
1a: 4c 89 f7 mov %r14,%rdi
1d: e8 48 97 91 fc call 0xfc91976a
22: 49 8b 06 mov (%r14),%rax
25: 49 63 cf movslq %r15d,%rcx
28: 48 99 cqto
* 2a: 48 f7 f9 idiv %rcx <-- trapping instruction
2d: 49 89 d6 mov %rdx,%r14
30: 31 ff xor %edi,%edi
32: 48 89 d6 mov %rdx,%rsi
35: e8 50 78 4c fc call 0xfc4c788a
3a: 4d 85 f6 test %r14,%r14
3d: 0f .byte 0xf
3e: 85 .byte 0x85
3f: 98 cwtl
---
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 report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup