[v5.15] general protection fault in nsim_bus_dev_numvfs_store

0 views
Skip to first unread message

syzbot

unread,
Jul 28, 2026, 2:32:29 AMJul 28
to syzkaller...@googlegroups.com
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=16ed16b9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f161cbc9aef65db0
dashboard link: https://syzkaller.appspot.com/bug?extid=5a7d7ff6b97ba6c413e7
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+5a7d7f...@syzkaller.appspotmail.com

general protection fault, probably for non-canonical address 0xdffffc0000000045: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000228-0x000000000000022f]
CPU: 0 PID: 11784 Comm: syz.7.1953 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:nsim_esw_mode_is_switchdev drivers/net/netdevsim/netdevsim.h:278 [inline]
RIP: 0010:nsim_bus_dev_vfs_enable drivers/net/netdevsim/bus.c:41 [inline]
RIP: 0010:nsim_bus_dev_numvfs_store+0x2a5/0x480 drivers/net/netdevsim/bus.c:81
Code: 80 3c 30 00 74 08 4c 89 e7 e8 f7 f0 ed fb 4d 8b 2c 24 4d 8d b5 28 02 00 00 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 8d 01 00 00 45 0f b7 36 bf 01 00 00 00 44
RSP: 0018:ffffc90004d97bc0 EFLAGS: 00010202
RAX: 0000000000000045 RBX: ffff88807e39c558 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000004
RBP: ffffc90004d97c68 R08: ffffc90004d97987 R09: 1ffff920009b2f30
R10: dffffc0000000000 R11: fffff520009b2f31 R12: ffff88807e39c078
R13: 0000000000000000 R14: 0000000000000228 R15: 1ffff1100fc738ab
FS: 00007f5d06ed36c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056413eab7660 CR3: 000000004491b000 CR4: 00000000003506f0
DR0: 0000000000000013 DR1: 00000000000001f8 DR2: 0000000000000084
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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:0x7f5d08c9be99
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:00007f5d06ed3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f5d08f24090 RCX: 00007f5d08c9be99
RDX: 0000000000000002 RSI: 0000200000000300 RDI: 0000000000000003
RBP: 00007f5d08d31eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5d08f24128 R14: 00007f5d08f24090 R15: 00007fff88803d88
</TASK>
Modules linked in:
---[ end trace 48b32484942a3cad ]---
RIP: 0010:nsim_esw_mode_is_switchdev drivers/net/netdevsim/netdevsim.h:278 [inline]
RIP: 0010:nsim_bus_dev_vfs_enable drivers/net/netdevsim/bus.c:41 [inline]
RIP: 0010:nsim_bus_dev_numvfs_store+0x2a5/0x480 drivers/net/netdevsim/bus.c:81
Code: 80 3c 30 00 74 08 4c 89 e7 e8 f7 f0 ed fb 4d 8b 2c 24 4d 8d b5 28 02 00 00 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 8d 01 00 00 45 0f b7 36 bf 01 00 00 00 44
RSP: 0018:ffffc90004d97bc0 EFLAGS: 00010202
RAX: 0000000000000045 RBX: ffff88807e39c558 RCX: dffffc0000000000
RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000004
RBP: ffffc90004d97c68 R08: ffffc90004d97987 R09: 1ffff920009b2f30
R10: dffffc0000000000 R11: fffff520009b2f31 R12: ffff88807e39c078
R13: 0000000000000000 R14: 0000000000000228 R15: 1ffff1100fc738ab
FS: 00007f5d06ed36c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557f10b15b58 CR3: 000000004491b000 CR4: 00000000003506f0
DR0: 0000000000000013 DR1: 00000000000001f8 DR2: 0000000000000084
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 80 3c 30 00 cmpb $0x0,(%rax,%rsi,1)
4: 74 08 je 0xe
6: 4c 89 e7 mov %r12,%rdi
9: e8 f7 f0 ed fb call 0xfbedf105
e: 4d 8b 2c 24 mov (%r12),%r13
12: 4d 8d b5 28 02 00 00 lea 0x228(%r13),%r14
19: 4c 89 f0 mov %r14,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 8d 01 00 00 jne 0x1c3
36: 45 0f b7 36 movzwl (%r14),%r14d
3a: bf 01 00 00 00 mov $0x1,%edi
3f: 44 rex.R


---
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
Reply all
Reply to author
Forward
0 new messages