xpad 3-1:179.65: xpad_irq_in - usb_submit_urb failed with result -19
xpad 3-1:179.65: xpad_irq_out - usb_submit_urb failed with result -19
==================================================================
BUG: KASAN: use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
BUG: KASAN: use-after-free in do_raw_spin_lock+0x283/0x2f0 kernel/locking/spinlock_debug.c:114
Read of size 4 at addr ffff8880797c085c by task syz-executor/4188
CPU: 0 PID: 4188 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
print_address_description+0x60/0x2d0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0xdf/0x130 mm/kasan/report.c:451
debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
do_raw_spin_lock+0x283/0x2f0 kernel/locking/spinlock_debug.c:114
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline]
_raw_spin_lock_irqsave+0xbc/0x100 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:137 [inline]
__wake_up+0xf4/0x180 kernel/sched/wait.c:157
__usb_hcd_giveback_urb+0x394/0x520 drivers/usb/core/hcd.c:1675
dummy_timer+0xa47/0x34a0 drivers/usb/gadget/udc/dummy_hcd.c:2012
call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648
expire_timers kernel/time/timer.c:1699 [inline]
__run_timers+0x56c/0x810 kernel/time/timer.c:1970
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983
handle_softirqs+0x336/0x830 kernel/softirq.c:576
__do_softirq kernel/softirq.c:610 [inline]
invoke_softirq kernel/softirq.c:450 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659
irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:arch_atomic_inc arch/x86/include/asm/atomic.h:-1 [inline]
RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:182 [inline]
RIP: 0010:page_dup_rmap include/linux/rmap.h:188 [inline]
RIP: 0010:copy_present_pte mm/memory.c:966 [inline]
RIP: 0010:copy_pte_range mm/memory.c:1081 [inline]
RIP: 0010:copy_pmd_range mm/memory.c:1167 [inline]
RIP: 0010:copy_pud_range mm/memory.c:1204 [inline]
RIP: 0010:copy_p4d_range mm/memory.c:1228 [inline]
RIP: 0010:copy_page_range+0x16c2/0x32c0 mm/memory.c:1301
Code: ff be 04 00 00 00 e8 4d ec 10 00 f0 41 ff 07 4c 8b 7c 24 30 4c 89 ff 48 83 c7 30 be 04 00 00 00 e8 33 ec 10 00 f0 41 ff 47 30 <49> bd 00 00 00 00 00 fc ff df 42 80 3c 2b 00 74 08 4c 89 f7 e8 75
RSP: 0018:ffffc90002eff6c0 EFLAGS: 00000202
RAX: ffffffff81ad3701 RBX: 1ffffd4000349eb1 RCX: ffffffff81ad373d
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea0001a4f5b0
RBP: ffffc90002eff970 R08: ffffea0001a4f5b3 R09: 1ffffd4000349eb6
R10: dffffc0000000000 R11: fffff94000349eb7 R12: 0000000000000082
R13: ffffea0001a4f580 R14: ffffea0001a4f588 R15: ffffea0001a4f580
dup_mmap kernel/fork.c:616 [inline]
dup_mm kernel/fork.c:1467 [inline]
copy_mm+0xc61/0x13d0 kernel/fork.c:1519
copy_process+0x17fb/0x3ec0 kernel/fork.c:2291
kernel_clone+0x23f/0x990 kernel/fork.c:2681
__do_sys_clone kernel/fork.c:2798 [inline]
__se_sys_clone kernel/fork.c:2782 [inline]
__x64_sys_clone+0x19a/0x210 kernel/fork.c:2782
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:0x7f53541ecb52
Code: 89 e7 e8 71 8b f7 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffc2a73ab20 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffc2a73ab20 RCX: 00007f53541ecb52
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffc2a73acac R08: 0000000000000000 R09: 0000000000000001
R10: 000055558f5817d0 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000000927c0 R14: 000000000001b0df R15: 00007ffc2a73ad00
Allocated by task 1325:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc mm/kasan/common.c:513 [inline]
__kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522
kmalloc include/linux/slab.h:607 [inline]
kzalloc include/linux/slab.h:738 [inline]
xpad_probe+0x408/0x1980 drivers/input/joystick/xpad.c:1792
usb_probe_interface+0x5be/0xae0 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x276/0xc70 drivers/base/dd.c:595
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:775
driver_probe_device+0x4f/0x420 drivers/base/dd.c:805
__device_attach_driver+0x2b0/0x500 drivers/base/dd.c:927
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:999
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3427
usb_set_configuration+0x19d5/0x2030 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x89/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x126/0x250 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x276/0xc70 drivers/base/dd.c:595
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:775
driver_probe_device+0x4f/0x420 drivers/base/dd.c:805
__device_attach_driver+0x2b0/0x500 drivers/base/dd.c:927
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:999
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3427
usb_new_device+0x9f6/0x15d0 drivers/usb/core/hub.c:2632
hub_port_connect drivers/usb/core/hub.c:5497 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5637 [inline]
port_event drivers/usb/core/hub.c:5799 [inline]
hub_event+0x2b8d/0x5260 drivers/usb/core/hub.c:5881
process_one_work+0x867/0xff0 kernel/workqueue.c:2310
worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Freed by task 5850:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1710 [inline]
slab_free_freelist_hook+0xec/0x170 mm/slub.c:1736
slab_free mm/slub.c:3504 [inline]
kfree+0xef/0x2a0 mm/slub.c:4564
xpad_disconnect+0x31f/0x440 drivers/input/joystick/xpad.c:1940
usb_unbind_interface+0x203/0x870 drivers/usb/core/driver.c:458
__device_release_driver drivers/base/dd.c:1249 [inline]
device_release_driver_internal+0x487/0x710 drivers/base/dd.c:1282
bus_remove_device+0x2dd/0x400 drivers/base/bus.c:531
device_del+0x63f/0xa80 drivers/base/core.c:3615
usb_disable_device+0x3e7/0x8a0 drivers/usb/core/message.c:1472
usb_disconnect+0x33c/0x8a0 drivers/usb/core/hub.c:2287
hub_port_connect drivers/usb/core/hub.c:5341 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5637 [inline]
port_event drivers/usb/core/hub.c:5799 [inline]
hub_event+0x1d64/0x5260 drivers/usb/core/hub.c:5881
process_one_work+0x867/0xff0 kernel/workqueue.c:2310
worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
The buggy address belongs to the object at ffff8880797c0800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 92 bytes inside of
1024-byte region [ffff8880797c0800, ffff8880797c0c00)
The buggy address belongs to the page:
page:ffffea0001e5f000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x797c0
head:ffffea0001e5f000 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888016c41dc0
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 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4174, ts 63276468915, free_ts 63267885879
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192
__alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
alloc_slab_page mm/slub.c:1780 [inline]
allocate_slab mm/slub.c:1917 [inline]
new_slab+0xc0/0x4b0 mm/slub.c:1980
___slab_alloc+0x807/0xdd0 mm/slub.c:3013
__slab_alloc mm/slub.c:3100 [inline]
slab_alloc_node mm/slub.c:3191 [inline]
slab_alloc mm/slub.c:3233 [inline]
__kmalloc+0x11d/0x340 mm/slub.c:4408
kmalloc include/linux/slab.h:612 [inline]
kzalloc include/linux/slab.h:738 [inline]
tomoyo_init_log+0x19f9/0x1e90 security/tomoyo/audit.c:275
tomoyo_supervisor+0x38d/0x1190 security/tomoyo/common.c:2097
tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
tomoyo_path_permission+0x262/0x3a0 security/tomoyo/file.c:587
tomoyo_path_perm+0x423/0x5d0 security/tomoyo/file.c:838
security_inode_getattr+0xcf/0x120 security/security.c:1349
vfs_getattr+0x26/0x3a0 fs/stat.c:157
vfs_statx+0x146/0x4c0 fs/stat.c:225
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x15f/0x200 fs/stat.c:405
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
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396
free_slab mm/slub.c:2020 [inline]
discard_slab mm/slub.c:2026 [inline]
__unfreeze_partials+0x188/0x1e0 mm/slub.c:2512
put_cpu_partial+0x12d/0x190 mm/slub.c:2592
qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3225 [inline]
slab_alloc mm/slub.c:3233 [inline]
kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238
getname_flags+0xb7/0x4f0 fs/namei.c:138
user_path_at_empty+0x2a/0x190 fs/namei.c:2890
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x107/0x4c0 fs/stat.c:221
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x15f/0x200 fs/stat.c:405
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
Memory state around the buggy address:
ffff8880797c0700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8880797c0780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880797c0800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880797c0880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880797c0900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: be 04 00 00 00 mov $0x4,%esi
5: e8 4d ec 10 00 call 0x10ec57
a: f0 41 ff 07 lock incl (%r15)
e: 4c 8b 7c 24 30 mov 0x30(%rsp),%r15
13: 4c 89 ff mov %r15,%rdi
16: 48 83 c7 30 add $0x30,%rdi
1a: be 04 00 00 00 mov $0x4,%esi
1f: e8 33 ec 10 00 call 0x10ec57
24: f0 41 ff 47 30 lock incl 0x30(%r15)
* 29: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 <-- trapping instruction
30: fc ff df
33: 42 80 3c 2b 00 cmpb $0x0,(%rbx,%r13,1)
38: 74 08 je 0x42
3a: 4c 89 f7 mov %r14,%rdi
3d: e8 .byte 0xe8
3e: 75 .byte 0x75