xpad 5-1:179.65: xpad_irq_in - usb_submit_urb failed with result -19
xpad 5-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 ffff88802aa4505c by task udevd/4332
CPU: 1 PID: 4332 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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+0x396/0x520 drivers/usb/core/hcd.c:1677
dummy_timer+0x8a8/0x31e0 drivers/usb/gadget/udc/dummy_hcd.c:1988
call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648
expire_timers kernel/time/timer.c:1699 [inline]
__run_timers+0x53e/0x800 kernel/time/timer.c:1970
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983
handle_softirqs+0x339/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:hlist_bl_first_rcu include/linux/rculist_bl.h:24 [inline]
RIP: 0010:__d_lookup_rcu+0xb9/0x760 fs/dcache.c:2307
Code: aa ff 48 83 fb 1f 0f 87 77 06 00 00 e8 50 3d aa ff 48 8b 44 24 20 89 d9 d3 e8 49 8d 1c c6 49 89 de 49 c1 ee 03 43 80 3c 2e 00 <74> 08 48 89 df e8 8d 48 ef ff 4c 8b 3b e8 95 8a ed 07 89 c5 31 ff
RSP: 0018:ffffc90003fff818 EFLAGS: 00000246
RAX: 00000000000e4c28 RBX: ffffc90000738140 RCX: 000000000000000c
RDX: 0000000000000000 RSI: 000000000000000c RDI: 0000000000000020
RBP: ffffc90003fff9b8 R08: ffffc90003fffaef R09: 1ffff920007fff5d
R10: dffffc0000000000 R11: fffff520007fff5e R12: dffffc0000000000
R13: dffffc0000000000 R14: 1ffff920000e7028 R15: ffffc90003fffae0
lookup_fast+0x159/0x720 fs/namei.c:1594
walk_component+0x81/0x460 fs/namei.c:1980
lookup_last fs/namei.c:2439 [inline]
path_lookupat+0x169/0x440 fs/namei.c:2463
filename_lookup+0x214/0x540 fs/namei.c:2492
user_path_at_empty+0x40/0x190 fs/namei.c:2891
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x107/0x500 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
RIP: 0033:0x7f225eb3db0a
Code: 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 b9 f2 0d 00 f7
RSP: 002b:00007fff643b0ba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 000000000000000f RCX: 00007f225eb3db0a
RDX: 00007fff643b0bb0 RSI: 00007fff643b0c80 RDI: 00000000ffffff9c
RBP: 00007fff643b1cc0 R08: 0000000000000064 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff643b1cd0
R13: 0000000000000000 R14: 0000000000000008 R15: 0000560c28b3ce00
Allocated by task 1108:
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+0xb5/0xf0 mm/kasan/common.c:522
kmalloc include/linux/slab.h:607 [inline]
kzalloc include/linux/slab.h:738 [inline]
xpad_probe+0x3f6/0x1b20 drivers/input/joystick/xpad.c:1790
usb_probe_interface+0x5c5/0xb20 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x284/0xc80 drivers/base/dd.c:595
__driver_probe_device+0x18c/0x330 drivers/base/dd.c:755
driver_probe_device+0x4f/0x420 drivers/base/dd.c:785
__device_attach_driver+0x2b0/0x500 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a8/0x480 drivers/base/dd.c:979
bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489
device_add+0xa00/0xfb0 drivers/base/core.c:3412
usb_set_configuration+0x1991/0x1fd0 drivers/usb/core/message.c:2165
usb_generic_driver_probe+0x89/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x139/0x270 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x284/0xc80 drivers/base/dd.c:595
__driver_probe_device+0x18c/0x330 drivers/base/dd.c:755
driver_probe_device+0x4f/0x420 drivers/base/dd.c:785
__device_attach_driver+0x2b0/0x500 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a8/0x480 drivers/base/dd.c:979
bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489
device_add+0xa00/0xfb0 drivers/base/core.c:3412
usb_new_device+0xd65/0x1660 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+0x2e4a/0x55e0 drivers/usb/core/hub.c:5881
process_one_work+0x85f/0x1010 kernel/workqueue.c:2310
worker_thread+0xaa6/0x1290 kernel/workqueue.c:2457
kthread+0x436/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Freed by task 4234:
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+0xea/0x170 mm/slub.c:1736
slab_free mm/slub.c:3504 [inline]
kfree+0xef/0x2a0 mm/slub.c:4564
xpad_disconnect+0x34c/0x470 drivers/input/joystick/xpad.c:1938
usb_unbind_interface+0x1ee/0x860 drivers/usb/core/driver.c:458
__device_release_driver drivers/base/dd.c:1229 [inline]
device_release_driver_internal+0x4b4/0x750 drivers/base/dd.c:1262
bus_remove_device+0x2e2/0x400 drivers/base/bus.c:531
device_del+0x6af/0xaf0 drivers/base/core.c:3600
usb_disable_device+0x3e2/0x890 drivers/usb/core/message.c:1414
usb_disconnect+0x348/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+0x1ecb/0x55e0 drivers/usb/core/hub.c:5881
process_one_work+0x85f/0x1010 kernel/workqueue.c:2310
worker_thread+0xaa6/0x1290 kernel/workqueue.c:2457
kthread+0x436/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 ffff88802aa45000
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 92 bytes inside of
1024-byte region [ffff88802aa45000, ffff88802aa45400)
The buggy address belongs to the page:
page:ffffea0000aa9000 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802aa44000 pfn:0x2aa40
head:ffffea0000aa9000 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffffea00017e0a00 0000000200000002 ffff888016c41dc0
raw: ffff88802aa44000 000000008010000e 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 0x152a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 4809, ts 278718007315, free_ts 278398887074
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x1bbd/0x1ca0 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+0x80a/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+0x1cd/0x330 mm/slub.c:4408
kmalloc include/linux/slab.h:612 [inline]
kzalloc include/linux/slab.h:738 [inline]
ieee802_11_parse_elems_crc+0xb3/0x10b0 net/mac80211/util.c:1478
ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2243 [inline]
ieee80211_bss_info_update+0x751/0xa70 net/mac80211/scan.c:212
ieee80211_rx_bss_info net/mac80211/ibss.c:1123 [inline]
ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline]
ieee80211_ibss_rx_queued_mgmt+0x1700/0x2ab0 net/mac80211/ibss.c:1643
ieee80211_iface_process_skb net/mac80211/iface.c:1459 [inline]
ieee80211_iface_work+0x70e/0xc60 net/mac80211/iface.c:1513
cfg80211_wiphy_work+0x221/0x260 net/wireless/core.c:433
process_one_work+0x85f/0x1010 kernel/workqueue.c:2310
worker_thread+0xaa6/0x1290 kernel/workqueue.c:2457
kthread+0x436/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
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+0x1a5/0x200 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/0xd0 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]
__kmalloc_node+0x15a/0x3b0 mm/slub.c:4456
kmalloc_node include/linux/slab.h:630 [inline]
kvmalloc_node+0x84/0x130 mm/util.c:619
kvmalloc include/linux/mm.h:816 [inline]
xt_alloc_table_info+0x37/0xa0 net/netfilter/x_tables.c:1192
do_replace net/ipv6/netfilter/ip6_tables.c:1145 [inline]
do_ip6t_set_ctl+0x873/0xd90 net/ipv6/netfilter/ip6_tables.c:1646
nf_setsockopt+0x25f/0x280 net/netfilter/nf_sockopt.c:101
ipv6_setsockopt+0x2086/0x3cc0 net/ipv6/ipv6_sockglue.c:1014
tcp_setsockopt+0x240/0x1e90 net/ipv4/tcp.c:3722
__sys_setsockopt+0x2bf/0x3d0 net/socket.c:2212
Memory state around the buggy address:
ffff88802aa44f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88802aa44f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88802aa45000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88802aa45080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88802aa45100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess), 2 bytes skipped:
0: 48 83 fb 1f cmp $0x1f,%rbx
4: 0f 87 77 06 00 00 ja 0x681
a: e8 50 3d aa ff call 0xffaa3d5f
f: 48 8b 44 24 20 mov 0x20(%rsp),%rax
14: 89 d9 mov %ebx,%ecx
16: d3 e8 shr %cl,%eax
18: 49 8d 1c c6 lea (%r14,%rax,8),%rbx
1c: 49 89 de mov %rbx,%r14
1f: 49 c1 ee 03 shr $0x3,%r14
23: 43 80 3c 2e 00 cmpb $0x0,(%r14,%r13,1)
* 28: 74 08 je 0x32 <-- trapping instruction
2a: 48 89 df mov %rbx,%rdi
2d: e8 8d 48 ef ff call 0xffef48bf
32: 4c 8b 3b mov (%rbx),%r15
35: e8 95 8a ed 07 call 0x7ed8acf
3a: 89 c5 mov %eax,%ebp
3c: 31 ff xor %edi,%edi