==================================================================
BUG: KASAN: slab-use-after-free in usbhid_power+0x7c/0xd0 drivers/hid/usbhid/hid-core.c:1284
Read of size 8 at addr ffff88811ee7c008 by task syz.3.10577/22258
CPU: 0 UID: 0 PID: 22258 Comm: syz.3.10577 Not tainted syzkaller #0 02f2c9a1947d185dcc234937001f7d1e6f97c77a
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:94
dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
print_address_description+0x71/0x210 mm/kasan/report.c:377
print_report+0x4a/0x70 mm/kasan/report.c:481
kasan_report+0x162/0x1a0 mm/kasan/report.c:594
__asan_report_load8_noabort+0x18/0x20 mm/kasan/report_generic.c:381
usbhid_power+0x7c/0xd0 drivers/hid/usbhid/hid-core.c:1284
hid_hw_power include/linux/hid.h:1174 [inline]
hidraw_open+0x257/0x960 drivers/hid/hidraw.c:302
chrdev_open+0x4e8/0x610 fs/char_dev.c:414
do_dentry_open+0x97f/0x1510 fs/open.c:960
vfs_open+0x86/0x240 fs/open.c:1092
do_open fs/namei.c:3782 [inline]
path_openat+0x2c49/0x35a0 fs/namei.c:3941
do_filp_open+0x1f2/0x440 fs/namei.c:3968
do_sys_openat2+0x134/0x1d0 fs/open.c:1440
do_sys_open fs/open.c:1455 [inline]
__do_sys_openat fs/open.c:1471 [inline]
__se_sys_openat fs/open.c:1466 [inline]
__x64_sys_openat+0x13a/0x170 fs/open.c:1466
x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f7670f5e90e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f7671dd3b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f7671dd46c0 RCX: 00007f7670f5e90e
RDX: 0000000000000800 RSI: 00007f7671dd3c00 RDI: ffffffffffffff9c
RBP: 00007f7671dd3c00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd
R13: 00007f7671226038 R14: 00007f7671225fa0 R15: 00007ffe23233fb8
Allocated by task 22057:
kasan_save_stack mm/kasan/common.c:49 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:70
kasan_save_alloc_info+0x3a/0x50 mm/kasan/generic.c:565
unpoison_slab_object mm/kasan/common.c:321 [inline]
__kasan_slab_alloc+0x73/0x90 mm/kasan/common.c:347
kasan_slab_alloc include/linux/kasan.h:251 [inline]
slab_post_alloc_hook mm/slub.c:4202 [inline]
slab_alloc_node mm/slub.c:4251 [inline]
kmem_cache_alloc_node_noprof+0x1ca/0x420 mm/slub.c:4305
kmalloc_reserve+0xcf/0x4f0 net/core/skbuff.c:596
__alloc_skb+0x13f/0x360 net/core/skbuff.c:687
alloc_skb_fclone include/linux/skbuff.h:1413 [inline]
tipc_buf_acquire net/tipc/msg.c:72 [inline]
tipc_msg_build+0x160/0xf20 net/tipc/msg.c:402
tipc_send_group_bcast+0x76f/0xab0 net/tipc/socket.c:1125
__tipc_sendmsg+0x33a/0x28a0 net/tipc/socket.c:1432
tipc_sendmsg+0x59/0x90 net/tipc/socket.c:1399
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
____sys_sendmsg+0x99e/0xa00 net/socket.c:2609
___sys_sendmsg+0x2a6/0x370 net/socket.c:2663
__sys_sendmmsg+0x2b4/0x4e0 net/socket.c:2749
__do_sys_sendmmsg net/socket.c:2778 [inline]
__se_sys_sendmmsg net/socket.c:2775 [inline]
__x64_sys_sendmmsg+0xa4/0xc0 net/socket.c:2775
x64_sys_call+0xfec/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:308
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
Freed by task 22057:
kasan_save_stack mm/kasan/common.c:49 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:70
kasan_save_free_info+0x44/0x50 mm/kasan/generic.c:579
poison_slab_object mm/kasan/common.c:249 [inline]
__kasan_slab_free+0x5f/0x80 mm/kasan/common.c:266
kasan_slab_free include/linux/kasan.h:234 [inline]
slab_free_hook mm/slub.c:2445 [inline]
slab_free mm/slub.c:4714 [inline]
kfree+0x158/0x440 mm/slub.c:4875
skb_kfree_head net/core/skbuff.c:1081 [inline]
skb_free_head+0xf7/0x300 net/core/skbuff.c:1098
skb_release_data+0x6d0/0x860 net/core/skbuff.c:1125
skb_release_all net/core/skbuff.c:1190 [inline]
__kfree_skb+0x62/0x210 net/core/skbuff.c:1204
sk_skb_reason_drop+0xd8/0x310 net/core/skbuff.c:1242
kfree_skb_reason include/linux/skbuff.h:1303 [inline]
__skb_queue_purge_reason include/linux/skbuff.h:3369 [inline]
__skb_queue_purge include/linux/skbuff.h:3374 [inline]
tipc_mcast_xmit+0x12ca/0x1810 net/tipc/bcast.c:428
tipc_send_group_bcast+0x7a7/0xab0 net/tipc/socket.c:1130
__tipc_sendmsg+0x33a/0x28a0 net/tipc/socket.c:1432
tipc_sendmsg+0x59/0x90 net/tipc/socket.c:1399
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
____sys_sendmsg+0x99e/0xa00 net/socket.c:2609
___sys_sendmsg+0x2a6/0x370 net/socket.c:2663
__sys_sendmmsg+0x2b4/0x4e0 net/socket.c:2749
__do_sys_sendmmsg net/socket.c:2778 [inline]
__se_sys_sendmmsg net/socket.c:2775 [inline]
__x64_sys_sendmmsg+0xa4/0xc0 net/socket.c:2775
x64_sys_call+0xfec/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:308
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
The buggy address belongs to the object at ffff88811ee7c000
which belongs to the cache skbuff_small_head of size 768
The buggy address is located 8 bytes inside of
freed 768-byte region [ffff88811ee7c000, ffff88811ee7c300)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11ee7c
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x4000000000000040(head|zone=1)
page_type: f5(slab)
raw: 4000000000000040 ffff888106263dc0 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000120012 00000001f5000000 0000000000000000
head: 4000000000000040 ffff888106263dc0 dead000000000122 0000000000000000
head: 0000000000000000 0000000000120012 00000001f5000000 0000000000000000
head: 4000000000000002 ffffea00047b9f01 ffffffffffffffff 0000000000000000
head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 22057, tgid 22051 (syz.2.10490), ts 462110484538, free_ts 461115113738
set_page_owner include/linux/page_owner.h:35 [inline]
post_alloc_hook+0x37d/0x3b0 mm/page_alloc.c:1863
prep_new_page+0x2d/0x180 mm/page_alloc.c:1871
get_page_from_freelist+0x4aea/0x4ba0 mm/page_alloc.c:3948
__alloc_pages_noprof+0x35a/0x7e0 mm/page_alloc.c:5315
alloc_slab_page+0x6b/0x1e0 mm/slub.c:-1
allocate_slab+0x69/0x430 mm/slub.c:2687
new_slab mm/slub.c:2741 [inline]
___slab_alloc+0x591/0x8c0 mm/slub.c:3934
__slab_alloc mm/slub.c:4025 [inline]
__slab_alloc_node mm/slub.c:4078 [inline]
slab_alloc_node mm/slub.c:4239 [inline]
kmem_cache_alloc_node_noprof+0x29b/0x420 mm/slub.c:4305
kmalloc_reserve+0xcf/0x4f0 net/core/skbuff.c:596
__alloc_skb+0x13f/0x360 net/core/skbuff.c:687
__pskb_copy_fclone+0xb7/0x1140 net/core/skbuff.c:2198
__pskb_copy include/linux/skbuff.h:1427 [inline]
tipc_sk_mcast_rcv+0x5ed/0xf30 net/tipc/socket.c:1245
tipc_mcast_xmit+0x11d4/0x1810 net/tipc/bcast.c:424
tipc_send_group_bcast+0x7a7/0xab0 net/tipc/socket.c:1130
__tipc_sendmsg+0x33a/0x28a0 net/tipc/socket.c:1432
tipc_sendmsg+0x59/0x90 net/tipc/socket.c:1399
page last free pid 529 tgid 529 stack trace:
reset_page_owner include/linux/page_owner.h:28 [inline]
free_pages_prepare mm/page_alloc.c:1390 [inline]
free_unref_page+0xbb8/0xf70 mm/page_alloc.c:2876
__free_pages+0x6b/0x3b0 mm/page_alloc.c:5402
__free_slab+0xb2/0x110 mm/slub.c:2758
free_slab+0x18/0xe0 mm/slub.c:2781
discard_slab mm/slub.c:2787 [inline]
__put_partials+0x115/0x150 mm/slub.c:3256
put_cpu_partial+0x91/0xc0 mm/slub.c:3331
__slab_free+0x1cf/0x2a0 mm/slub.c:4584
do_slab_free mm/slub.c:4666 [inline]
___cache_free+0xc9/0xe0 mm/slub.c:4781
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0xb5/0x130 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x14f/0x180 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x28/0x90 mm/kasan/common.c:331
kasan_slab_alloc include/linux/kasan.h:251 [inline]
slab_post_alloc_hook mm/slub.c:4202 [inline]
slab_alloc_node mm/slub.c:4251 [inline]
kmem_cache_alloc_noprof+0x1bf/0x410 mm/slub.c:4260
getname_flags+0xcc/0x6b0 fs/namei.c:139
vfs_fstatat+0xcb/0x1d0 fs/stat.c:340
__do_sys_newfstatat fs/stat.c:505 [inline]
__se_sys_newfstatat+0x127/0x3c0 fs/stat.c:499
__x64_sys_newfstatat+0x9f/0xc0 fs/stat.c:499
Memory state around the buggy address:
ffff88811ee7bf00: fc fa fb fb fb fb fb fb fb fb fc fc fc fc fa fb
ffff88811ee7bf80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc
>ffff88811ee7c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88811ee7c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811ee7c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Oops: general protection fault, probably for non-canonical address 0x21c03e000005859: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 22258 Comm: syz.3.10577 Tainted: G B syzkaller #0 02f2c9a1947d185dcc234937001f7d1e6f97c77a
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:arch_atomic_inc include/linux/instrumented.h:96 [inline]
RIP: 0010:raw_atomic_inc include/linux/atomic/atomic-arch-fallback.h:992 [inline]
RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:436 [inline]
RIP: 0010:__pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177
Code: ff e8 9b f9 3f fe 89 d8 83 e0 04 75 07 e8 4f f5 3f fe eb 1e e8 48 f5 3f fe 49 8d be e0 01 00 00 be 04 00 00 00 e8 f7 d6 98 fe 41 ff 86 e0 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 90 3f 5f
RSP: 0018:ffffc900042476a8 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff83477c89
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 021c03e000005859
RBP: ffffc900042476c8 R08: 021c03e00000585d R09: 0000000000000438
R10: dffffc0000000000 R11: fffffbfff1176f29 R12: 0000000000000000
R13: ffffffff8680c8e0 R14: 021c03e000005679 R15: dffffc0000000000
FS: 00007f7671dd46c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f39c3530000 CR3: 000000010b66a000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
pm_runtime_resume_and_get include/linux/pm_runtime.h:436 [inline]
usb_autopm_get_interface+0x25/0xf0 drivers/usb/core/driver.c:1888
usbhid_power+0x84/0xd0 drivers/hid/usbhid/hid-core.c:1284
hid_hw_power include/linux/hid.h:1174 [inline]
hidraw_open+0x257/0x960 drivers/hid/hidraw.c:302
chrdev_open+0x4e8/0x610 fs/char_dev.c:414
do_dentry_open+0x97f/0x1510 fs/open.c:960
vfs_open+0x86/0x240 fs/open.c:1092
do_open fs/namei.c:3782 [inline]
path_openat+0x2c49/0x35a0 fs/namei.c:3941
do_filp_open+0x1f2/0x440 fs/namei.c:3968
do_sys_openat2+0x134/0x1d0 fs/open.c:1440
do_sys_open fs/open.c:1455 [inline]
__do_sys_openat fs/open.c:1471 [inline]
__se_sys_openat fs/open.c:1466 [inline]
__x64_sys_openat+0x13a/0x170 fs/open.c:1466
x64_sys_call+0xe69/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f7670f5e90e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f7671dd3b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f7671dd46c0 RCX: 00007f7670f5e90e
RDX: 0000000000000800 RSI: 00007f7671dd3c00 RDI: ffffffffffffff9c
RBP: 00007f7671dd3c00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd
R13: 00007f7671226038 R14: 00007f7671225fa0 R15: 00007ffe23233fb8
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:arch_atomic_inc include/linux/instrumented.h:96 [inline]
RIP: 0010:raw_atomic_inc include/linux/atomic/atomic-arch-fallback.h:992 [inline]
RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:436 [inline]
RIP: 0010:__pm_runtime_resume+0x49/0xa0 drivers/base/power/runtime.c:1177
Code: ff e8 9b f9 3f fe 89 d8 83 e0 04 75 07 e8 4f f5 3f fe eb 1e e8 48 f5 3f fe 49 8d be e0 01 00 00 be 04 00 00 00 e8 f7 d6 98 fe 41 ff 86 e0 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 90 3f 5f
RSP: 0018:ffffc900042476a8 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff83477c89
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 021c03e000005859
RBP: ffffc900042476c8 R08: 021c03e00000585d R09: 0000000000000438
R10: dffffc0000000000 R11: fffffbfff1176f29 R12: 0000000000000000
R13: ffffffff8680c8e0 R14: 021c03e000005679 R15: dffffc0000000000
FS: 00007f7671dd46c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005567ef190300 CR3: 000000010b66a000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
0: ff ljmp (bad)
1: e8 9b f9 3f fe call 0xfe3ff9a1
6: 89 d8 mov %ebx,%eax
8: 83 e0 04 and $0x4,%eax
b: 75 07 jne 0x14
d: e8 4f f5 3f fe call 0xfe3ff561
12: eb 1e jmp 0x32
14: e8 48 f5 3f fe call 0xfe3ff561
19: 49 8d be e0 01 00 00 lea 0x1e0(%r14),%rdi
20: be 04 00 00 00 mov $0x4,%esi
25: e8 f7 d6 98 fe call 0xfe98d721
* 2a: f0 41 ff 86 e0 01 00 lock incl 0x1e0(%r14) <-- trapping instruction
31: 00
32: 4d 8d be 14 01 00 00 lea 0x114(%r14),%r15
39: 4c 89 ff mov %r15,%rdi
3c: e8 .byte 0xe8
3d: 90 nop
3e: 3f (bad)
3f: 5f pop %rdi