syzbot
general protection fault in kthread_destroy_worker
Status:
upstream: reported C repro on 2026/09/07 20:49
Reported-by: syzbot+82459b560b86b1901a90@syzkaller.appspotmail.com
First crash: 4d02h, last: 17h50m
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067]
CPU: 1 PID: 5958 Comm: syz.3.21 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:kthread_destroy_worker+0x26/0xd0 kernel/kthread.c:1422
Code: 1f 44 00 00 f3 0f 1e fa 41 57 41 56 53 48 89 fb 49 bf 00 00 00 00 00 fc ff df e8 75 e9 2c 00 4c 8d 73 68 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 db 6a 85 00 4d 8b 36 4d 85 f6 74
RSP: 0018:ffffc900035770b0 EFLAGS: 00010207
RAX: 000000000000000c RBX: fffffffffffffffc RCX: ffff88802e220000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: fffffffffffffffc
RBP: 0000000000000000 R08: ffff88807926003b R09: 1ffff1100f24c007
R10: dffffc0000000000 R11: ffffed100f24c008 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000064 R15: dffffc0000000000
FS: 00007fec393256c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555b20a91950 CR3: 000000005dab7000 CR4: 00000000003506e0
Call Trace:
<TASK>
vdpasim_free+0x56/0x430 drivers/vdpa/vdpa_sim/vdpa_sim.c:713
vdpa_release_dev+0x6c/0xf0 drivers/vdpa/vdpa.c:132
device_release+0xbc/0x1e0 drivers/base/core.c:-1
kobject_cleanup lib/kobject.c:689 [inline]
kobject_release lib/kobject.c:720 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x21b/0x450 lib/kobject.c:737
vdpasim_create+0x365/0x890 drivers/vdpa/vdpa_sim/vdpa_sim.c:274
vdpasim_blk_dev_add+0x11d/0x290 drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:430
vdpa_nl_cmd_dev_add_set_doit+0xa85/0xbd0 drivers/vdpa/vdpa.c:698
genl_family_rcv_msg_doit+0x21a/0x310 net/netlink/genetlink.c:971
genl_family_rcv_msg net/netlink/genetlink.c:1051 [inline]
genl_rcv_msg+0x611/0x7a0 net/netlink/genetlink.c:1066
netlink_rcv_skb+0x235/0x4c0 net/netlink/af_netlink.c:2550
genl_rcv+0x28/0x40 net/netlink/genetlink.c:1075
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x7b1/0x930 net/netlink/af_netlink.c:1346
netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1899
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
____sys_sendmsg+0x61b/0x980 net/socket.c:2595
___sys_sendmsg+0x2a6/0x360 net/socket.c:2649
__sys_sendmsg net/socket.c:2678 [inline]
__do_sys_sendmsg net/socket.c:2687 [inline]
__se_sys_sendmsg+0x1d0/0x2c0 net/socket.c:2685
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fec3839e159
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:00007fec39325028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fec38625fa0 RCX: 00007fec3839e159
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000004
RBP: 00007fec38435024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fec38626038 R14: 00007fec38625fa0 R15: 00007ffc24986e28
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kthread_destroy_worker+0x26/0xd0 kernel/kthread.c:1422
Code: 1f 44 00 00 f3 0f 1e fa 41 57 41 56 53 48 89 fb 49 bf 00 00 00 00 00 fc ff df e8 75 e9 2c 00 4c 8d 73 68 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 db 6a 85 00 4d 8b 36 4d 85 f6 74
RSP: 0018:ffffc900035770b0 EFLAGS: 00010207
RAX: 000000000000000c RBX: fffffffffffffffc RCX: ffff88802e220000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: fffffffffffffffc
RBP: 0000000000000000 R08: ffff88807926003b R09: 1ffff1100f24c007
R10: dffffc0000000000 R11: ffffed100f24c008 R12: dffffc0000000000
R13: dffffc0000000000 R14: 0000000000000064 R15: dffffc0000000000
FS: 00007fec393256c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe0d41eb840 CR3: 000000005dab7000 CR4: 00000000003506f0
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 44 00 00 add %r8b,(%rax)
3: f3 0f 1e fa endbr64
7: 41 57 push %r15
9: 41 56 push %r14
b: 53 push %rbx
c: 48 89 fb mov %rdi,%rbx
f: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15
16: fc ff df
19: e8 75 e9 2c 00 call 0x2ce993
1e: 4c 8d 73 68 lea 0x68(%rbx),%r14
22: 4c 89 f0 mov %r14,%rax
25: 48 c1 e8 03 shr $0x3,%rax
* 29: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 f7 mov %r14,%rdi
33: e8 db 6a 85 00 call 0x856b13
38: 4d 8b 36 mov (%r14),%r14
3b: 4d 85 f6 test %r14,%r14
3e: 74 .byte 0x74
* Struck through repros no longer work on HEAD.