xpad 2-1:179.65: xpad_irq_in - usb_submit_urb failed with result -19
xpad 2-1:179.65: xpad_irq_out - usb_submit_urb failed with result -19
==================================================================
BUG: KASAN: slab-use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
BUG: KASAN: slab-use-after-free in do_raw_spin_lock+0x25d/0x2b0 kernel/locking/spinlock_debug.c:114
Read of size 4 at addr ffff88814de9d85c by task syz.0.69/6087
CPU: 1 PID: 6087 Comm: syz.0.69 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xa8/0x210 mm/kasan/report.c:468
kasan_report+0x117/0x150 mm/kasan/report.c:581
debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
do_raw_spin_lock+0x25d/0x2b0 kernel/locking/spinlock_debug.c:114
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
_raw_spin_lock_irqsave+0xc0/0x100 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:137 [inline]
__wake_up+0x10b/0x1a0 kernel/sched/wait.c:160
__usb_hcd_giveback_urb+0x394/0x520 drivers/usb/core/hcd.c:1651
dummy_timer+0xa40/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1754 [inline]
__hrtimer_run_queues+0x525/0xc10 kernel/time/hrtimer.c:1818
hrtimer_run_softirq+0x177/0x290 kernel/time/hrtimer.c:1835
handle_softirqs+0x27d/0x820 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661
irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:io_rw_init_file+0x22/0x6b0 io_uring/rw.c:677
Code: 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 18 89 f5 48 89 fb 49 be 00 00 00 00 00 fc ff df e8 be e0 61 fd <48> 8d 7b 58 48 89 f8 48 c1 e8 03 42 80 3c 30 00 74 05 e8 17 55 ba
RSP: 0018:ffffc900034377f0 EFLAGS: 00000246
RAX: ffffffff84250492 RBX: ffff88807e45c280 RCX: 0000000000080000
RDX: ffffc9000cbd9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: 0000000000000002 R08: ffff88802ce0da00 R09: 0000000000000002
R10: 0000000000000005 R11: 0000000000000002 R12: ffff88805daba800
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000080000001
io_write+0x198/0x1900 io_uring/rw.c:931
io_issue_sqe+0x295/0xc60 io_uring/io_uring.c:1869
io_queue_sqe io_uring/io_uring.c:2053 [inline]
io_req_task_submit+0x130/0x220 io_uring/io_uring.c:1470
handle_tw_list io_uring/io_uring.c:1192 [inline]
tctx_task_work+0x311/0x800 io_uring/io_uring.c:1266
task_work_run+0x1d4/0x260 kernel/task_work.c:245
get_signal+0x11da/0x1390 kernel/signal.c:2679
arch_do_signal_or_restart+0xc2/0x7b0 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f059fd9ce59
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:00007f05a0cb3f38 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: 0000000000000001 RBX: 0000200000000340 RCX: 00007f059fd9ce59
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000007
RBP: 0000000000000153 R08: 0000000000000000 R09: 0000000000000008
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000800
R13: 0000200000000808 R14: 0000000000000e26 R15: 0000000000000000
Allocated by task 787:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
____kasan_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384
kmalloc include/linux/slab.h:600 [inline]
kzalloc include/linux/slab.h:721 [inline]
xpad_probe+0x434/0x1e70 drivers/input/joystick/xpad.c:2081
usb_probe_interface+0x5c2/0xaf0 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x247/0xae0 drivers/base/dd.c:718
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:880
driver_probe_device+0x4f/0x420 drivers/base/dd.c:910
__device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038
bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459
__device_attach+0x2c1/0x420 drivers/base/dd.c:1110
bus_probe_device+0x180/0x260 drivers/base/bus.c:580
device_add+0x87c/0xc40 drivers/base/core.c:3700
usb_set_configuration+0x1ad0/0x2150 drivers/usb/core/message.c:2265
usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x12a/0x260 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x247/0xae0 drivers/base/dd.c:718
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:880
driver_probe_device+0x4f/0x420 drivers/base/dd.c:910
__device_attach_driver+0x2ca/0x510 drivers/base/dd.c:1038
bus_for_each_drv+0x252/0x2e0 drivers/base/bus.c:459
__device_attach+0x2c1/0x420 drivers/base/dd.c:1110
bus_probe_device+0x180/0x260 drivers/base/bus.c:580
device_add+0x87c/0xc40 drivers/base/core.c:3700
usb_new_device+0x995/0x1550 drivers/usb/core/hub.c:2660
hub_port_connect drivers/usb/core/hub.c:5529 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5669 [inline]
port_event drivers/usb/core/hub.c:5833 [inline]
hub_event+0x29d5/0x4a80 drivers/usb/core/hub.c:5915
process_one_work kernel/workqueue.c:2653 [inline]
process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2730
worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2811
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
Freed by task 9:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522
____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237
kasan_slab_free include/linux/kasan.h:164 [inline]
slab_free_hook mm/slub.c:1811 [inline]
slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837
slab_free mm/slub.c:3830 [inline]
__kmem_cache_free+0xba/0x1f0 mm/slub.c:3843
xpad_disconnect+0x323/0x440 drivers/input/joystick/xpad.c:2262
usb_unbind_interface+0x207/0x870 drivers/usb/core/driver.c:458
device_remove drivers/base/dd.c:629 [inline]
__device_release_driver drivers/base/dd.c:1352 [inline]
device_release_driver_internal+0x458/0x6f0 drivers/base/dd.c:1375
bus_remove_device+0x43b/0x520 drivers/base/bus.c:624
device_del+0x51f/0x910 drivers/base/core.c:3889
usb_disable_device+0x3ee/0x8a0 drivers/usb/core/message.c:1474
usb_disconnect+0x340/0x8a0 drivers/usb/core/hub.c:2315
hub_port_connect drivers/usb/core/hub.c:5369 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5669 [inline]
port_event drivers/usb/core/hub.c:5833 [inline]
hub_event+0x1d69/0x4a80 drivers/usb/core/hub.c:5915
process_one_work kernel/workqueue.c:2653 [inline]
process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2730
worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2811
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
Last potentially related work creation:
kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46
__kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492
insert_work+0x3d/0x310 kernel/workqueue.c:1670
__queue_work+0xbfd/0xfd0 kernel/workqueue.c:1819
queue_work_on+0x128/0x1f0 kernel/workqueue.c:1854
queue_work include/linux/workqueue.h:562 [inline]
schedule_work include/linux/workqueue.h:623 [inline]
xpad360w_process_packet drivers/input/joystick/xpad.c:1022 [inline]
xpad_irq_in+0xa72/0x2420 drivers/input/joystick/xpad.c:1237
__usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1648
dummy_timer+0xa40/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1754 [inline]
__hrtimer_run_queues+0x525/0xc10 kernel/time/hrtimer.c:1818
hrtimer_run_softirq+0x177/0x290 kernel/time/hrtimer.c:1835
handle_softirqs+0x27d/0x820 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661
irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
Second to last potentially related work creation:
kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46
__kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492
insert_work+0x3d/0x310 kernel/workqueue.c:1670
__queue_work+0xbfd/0xfd0 kernel/workqueue.c:1819
queue_work_on+0x128/0x1f0 kernel/workqueue.c:1854
queue_work include/linux/workqueue.h:562 [inline]
schedule_work include/linux/workqueue.h:623 [inline]
xpad360w_process_packet drivers/input/joystick/xpad.c:1022 [inline]
xpad_irq_in+0xa72/0x2420 drivers/input/joystick/xpad.c:1237
__usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1648
dummy_timer+0xa40/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:2003
__run_hrtimer kernel/time/hrtimer.c:1754 [inline]
__hrtimer_run_queues+0x525/0xc10 kernel/time/hrtimer.c:1818
hrtimer_run_softirq+0x177/0x290 kernel/time/hrtimer.c:1835
handle_softirqs+0x27d/0x820 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661
irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
The buggy address belongs to the object at ffff88814de9d800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 92 bytes inside of
freed 1024-byte region [ffff88814de9d800, ffff88814de9dc00)
The buggy address belongs to the physical page:
page:ffffea000537a600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14de98
head:ffffea000537a600 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000840(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000000840 ffff888017c41dc0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 26253934363, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582
prep_new_page mm/page_alloc.c:1589 [inline]
get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221
__alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501
alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2118
alloc_slab_page+0x5d/0x180 mm/slub.c:1881
allocate_slab mm/slub.c:2028 [inline]
new_slab+0x87/0x2d0 mm/slub.c:2081
___slab_alloc+0xc5c/0x12f0 mm/slub.c:3253
__slab_alloc mm/slub.c:3339 [inline]
__slab_alloc_node mm/slub.c:3392 [inline]
slab_alloc_node mm/slub.c:3485 [inline]
__kmem_cache_alloc_node+0x11f/0x250 mm/slub.c:3534
kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098
kmalloc include/linux/slab.h:600 [inline]
kmalloc_array include/linux/slab.h:636 [inline]
kcalloc include/linux/slab.h:668 [inline]
alloc_heuristic_ws fs/btrfs/compression.c:617 [inline]
alloc_workspace+0xed/0x2d0 fs/btrfs/compression.c:647
btrfs_init_workspace_manager+0xfe/0x280 fs/btrfs/compression.c:691
btrfs_init_compress+0x4f/0x70 fs/btrfs/compression.c:972
init_btrfs_fs+0x79/0x230 fs/btrfs/super.c:2539
do_one_initcall+0x242/0x790 init/main.c:1249
do_initcall_level+0x13d/0x1f0 init/main.c:1311
do_initcalls+0x69/0xd0 init/main.c:1327
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814de9d700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814de9d780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88814de9d800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88814de9d880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88814de9d900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 84 00 test %al,(%rax)
2: 00 00 add %al,(%rax)
4: 00 00 add %al,(%rax)
6: 90 nop
7: 55 push %rbp
8: 41 57 push %r15
a: 41 56 push %r14
c: 41 55 push %r13
e: 41 54 push %r12
10: 53 push %rbx
11: 48 83 ec 18 sub $0x18,%rsp
15: 89 f5 mov %esi,%ebp
17: 48 89 fb mov %rdi,%rbx
1a: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14
21: fc ff df
24: e8 be e0 61 fd call 0xfd61e0e7
* 29: 48 8d 7b 58 lea 0x58(%rbx),%rdi <-- trapping instruction
2d: 48 89 f8 mov %rdi,%rax
30: 48 c1 e8 03 shr $0x3,%rax
34: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
39: 74 05 je 0x40
3b: e8 .byte 0xe8
3c: 17 (bad)
3d: 55 push %rbp
3e: ba .byte 0xba