Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 UID: 0 PID: 21366 Comm: syz-executor Not tainted 6.13.0-rc4-syzkaller-00069-g8379578b11d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:devlink_trap_group_item_lookup net/devlink/trap.c:436 [inline]
RIP: 0010:devlink_trap_group_unregister.isra.0+0xa4/0x2e0 net/devlink/trap.c:1590
Code: 49 39 c6 0f 84 ad 01 00 00 e8 38 55 95 f7 48 89 d8 48 c1 e8 03 42 80 3c 20 00 0f 85 b3 01 00 00 48 8b 2b 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 ab 01 00 00 48 8b 7d 00 4c 89 ee e8 d5 63 12
RSP: 0018:ffffc9000237f960 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8881437a4380 RCX: ffffffff8a03fcac
RDX: ffff888026533c00 RSI: ffffffff8a03fa18 RDI: ffff888060da5000
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000006 R12: dffffc0000000000
R13: ffffffff8c0a4420 R14: ffff888060da5120 R15: ffff888060da5000
FS: 0000555558df9500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f724c1a71d2 CR3: 000000005e6b6000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
devl_trap_groups_unregister+0x69/0x90 net/devlink/trap.c:1675
nsim_dev_traps_exit+0x67/0x170 drivers/net/netdevsim/dev.c:941
nsim_dev_reload_destroy+0x176/0x4d0 drivers/net/netdevsim/dev.c:1666
nsim_drv_remove+0x52/0x1d0 drivers/net/netdevsim/dev.c:1676
device_remove+0xc8/0x170 drivers/base/dd.c:567
__device_release_driver drivers/base/dd.c:1273 [inline]
device_release_driver_internal+0x44a/0x610 drivers/base/dd.c:1296
bus_remove_device+0x22f/0x420 drivers/base/bus.c:576
device_del+0x396/0x9f0 drivers/base/core.c:3854
device_unregister+0x1d/0xc0 drivers/base/core.c:3895
nsim_bus_dev_del drivers/net/netdevsim/bus.c:462 [inline]
del_device_store+0x346/0x4b0 drivers/net/netdevsim/bus.c:226
bus_attr_store+0x71/0xb0 drivers/base/bus.c:172
sysfs_kf_write+0x117/0x170 fs/sysfs/file.c:139
kernfs_fop_write_iter+0x33d/0x500 fs/kernfs/file.c:334
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0x5ae/0x1150 fs/read_write.c:679
ksys_write+0x12b/0x250 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff162f847df
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007ffeafeed4e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007ff162f847df
RDX: 0000000000000001 RSI: 00007ffeafeed530 RDI: 0000000000000005
RBP: 00007ff163002d15 R08: 0000000000000000 R09: 00007ffeafeed337
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001
R13: 00007ffeafeed530 R14: 00007ff163ca4620 R15: 0000000000000003
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:devlink_trap_group_item_lookup net/devlink/trap.c:436 [inline]
RIP: 0010:devlink_trap_group_unregister.isra.0+0xa4/0x2e0 net/devlink/trap.c:1590
Code: 49 39 c6 0f 84 ad 01 00 00 e8 38 55 95 f7 48 89 d8 48 c1 e8 03 42 80 3c 20 00 0f 85 b3 01 00 00 48 8b 2b 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 ab 01 00 00 48 8b 7d 00 4c 89 ee e8 d5 63 12
RSP: 0018:ffffc9000237f960 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8881437a4380 RCX: ffffffff8a03fcac
RDX: ffff888026533c00 RSI: ffffffff8a03fa18 RDI: ffff888060da5000
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000006 R12: dffffc0000000000
R13: ffffffff8c0a4420 R14: ffff888060da5120 R15: ffff888060da5000
FS: 0000555558df9500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562fb2d4b950 CR3: 000000005e6b6000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 49 39 c6 cmp %rax,%r14
3: 0f 84 ad 01 00 00 je 0x1b6
9: e8 38 55 95 f7 call 0xf7955546
e: 48 89 d8 mov %rbx,%rax
11: 48 c1 e8 03 shr $0x3,%rax
15: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
1a: 0f 85 b3 01 00 00 jne 0x1d3
20: 48 8b 2b mov (%rbx),%rbp
23: 48 89 e8 mov %rbp,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction
2f: 0f 85 ab 01 00 00 jne 0x1e0
35: 48 8b 7d 00 mov 0x0(%rbp),%rdi
39: 4c 89 ee mov %r13,%rsi
3c: e8 .byte 0xe8
3d: d5 (bad)
3e: 63 12 movsxd (%rdx),%edx