xpad 1-1:179.65: xpad_irq_in - usb_submit_urb failed with result -19
xpad 1-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 ffff88801f9b005c by task udevd/4448
CPU: 1 PID: 4448 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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+0x880/0x30b0 drivers/usb/gadget/udc/dummy_hcd.c:1998
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:blk_mq_rq_ctx_init+0xe0/0x910 block/blk-mq.c:289
Code: 00 00 00 49 03 1e 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 5e 0d f3 fd 4c 89 3c 24 41 89 ee 49 c1 e6 03 4c 03 33 <4c> 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 3a 0d f3 fd
RSP: 0018:ffffc900033def50 EFLAGS: 00000282
RAX: 1ffff11003fb2813 RBX: ffff88801fd94098 RCX: ffff888020977000
RDX: 0000000000000000 RSI: 000000000000006e RDI: ffffc900033df080
RBP: 000000000000006e R08: ffff888020977057 R09: 1ffff1100412ee0a
R10: dffffc0000000000 R11: ffffed100412ee0b R12: dffffc0000000000
R13: 0000000000000000 R14: ffff888020975b70 R15: ffffc900033df0a0
blk_mq_submit_bio+0x489/0x1820 block/blk-mq.c:2238
__submit_bio+0x7d1/0x820 block/blk-core.c:917
__submit_bio_noacct_mq block/blk-core.c:997 [inline]
submit_bio_noacct+0x6b0/0x800 block/blk-core.c:1027
submit_bio+0x2c1/0x560 block/blk-core.c:1089
mpage_bio_submit fs/mpage.c:66 [inline]
mpage_readahead+0x784/0x920 fs/mpage.c:393
read_pages+0x175/0x930 mm/readahead.c:130
page_cache_ra_unbounded+0x838/0x940 mm/readahead.c:239
do_page_cache_ra mm/readahead.c:269 [inline]
force_page_cache_ra+0x3e5/0x440 mm/readahead.c:301
page_cache_sync_readahead include/linux/pagemap.h:833 [inline]
filemap_get_pages mm/filemap.c:2551 [inline]
filemap_read+0x5de/0x2540 mm/filemap.c:2634
blkdev_read_iter+0x11d/0x150 block/fops.c:563
call_read_iter include/linux/fs.h:2167 [inline]
new_sync_read fs/read_write.c:404 [inline]
vfs_read+0x759/0xd60 fs/read_write.c:485
ksys_read+0x152/0x260 fs/read_write.c:623
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:0x7f1c58754407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffd9350fea0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f1c58666880 RCX: 00007f1c58754407
RDX: 0000000000000200 RSI: 00007f1c57cf5000 RDI: 0000000000000009
RBP: 000055ea12cb8f80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000000001f6
R13: 000000000000fe00 R14: 000055ea12cb47a8 R15: 00007f1c58eaa39c
Allocated by task 1109:
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:1792
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+0x1ef/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+0x2a8/0x480 drivers/base/dd.c:999
bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489
device_add+0xa3a/0x1000 drivers/base/core.c:3427
usb_set_configuration+0x1991/0x1fd0 drivers/usb/core/message.c:2223
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+0x1ef/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+0x2a8/0x480 drivers/base/dd.c:999
bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489
device_add+0xa3a/0x1000 drivers/base/core.c:3427
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 4229:
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:1940
usb_unbind_interface+0x1ee/0x860 drivers/usb/core/driver.c:458
__device_release_driver drivers/base/dd.c:1249 [inline]
device_release_driver_internal+0x4b4/0x750 drivers/base/dd.c:1282
bus_remove_device+0x2e2/0x400 drivers/base/bus.c:531
device_del+0x6af/0xb00 drivers/base/core.c:3615
usb_disable_device+0x3e2/0x890 drivers/usb/core/message.c:1472
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
Last potentially related work creation:
kasan_save_stack+0x35/0x60 mm/kasan/common.c:38
kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348
insert_work+0x54/0x3d0 kernel/workqueue.c:1366
__queue_work+0x9c5/0xd50 kernel/workqueue.c:1532
queue_work_on+0x124/0x1f0 kernel/workqueue.c:1559
queue_work include/linux/workqueue.h:512 [inline]
schedule_work include/linux/workqueue.h:573 [inline]
xpad360w_process_packet drivers/input/joystick/xpad.c:857 [inline]
xpad_irq_in+0xaab/0x1b30 drivers/input/joystick/xpad.c:997
__usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1674
dummy_timer+0x880/0x30b0 drivers/usb/gadget/udc/dummy_hcd.c:1998
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
Second to last potentially related work creation:
kasan_save_stack+0x35/0x60 mm/kasan/common.c:38
kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348
insert_work+0x54/0x3d0 kernel/workqueue.c:1366
__queue_work+0x9c5/0xd50 kernel/workqueue.c:1532
queue_work_on+0x124/0x1f0 kernel/workqueue.c:1559
queue_work include/linux/workqueue.h:512 [inline]
schedule_work include/linux/workqueue.h:573 [inline]
xpad360w_process_packet drivers/input/joystick/xpad.c:857 [inline]
xpad_irq_in+0xaab/0x1b30 drivers/input/joystick/xpad.c:997
__usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1674
dummy_timer+0x880/0x30b0 drivers/usb/gadget/udc/dummy_hcd.c:1998
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
The buggy address belongs to the object at ffff88801f9b0000
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 92 bytes inside of
1024-byte region [ffff88801f9b0000, ffff88801f9b0400)
The buggy address belongs to the page:
page:ffffea00007e6c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1f9b0
head:ffffea00007e6c00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffffea0000806a00 0000000400000004 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4202, ts 66550983663, free_ts 66529728487
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]
__kmalloc_node_track_caller+0x1fc/0x3a0 mm/slub.c:4963
kmalloc_reserve net/core/skbuff.c:356 [inline]
__alloc_skb+0x22c/0x750 net/core/skbuff.c:427
alloc_skb include/linux/skbuff.h:1162 [inline]
nlmsg_new include/net/netlink.h:964 [inline]
rtmsg_fib+0xe7/0x4b0 net/ipv4/fib_semantics.c:520
fib_table_insert+0xd36/0x1bb0 net/ipv4/fib_trie.c:1379
fib_magic+0x2e1/0x3c0 net/ipv4/fib_frontend.c:1106
fib_add_ifaddr+0x389/0x5e0 net/ipv4/fib_frontend.c:1143
fib_netdev_event+0x35c/0x480 net/ipv4/fib_frontend.c:1488
notifier_call_chain kernel/notifier.c:83 [inline]
raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391
call_netdevice_notifiers_extack net/core/dev.c:2074 [inline]
call_netdevice_notifiers net/core/dev.c:2088 [inline]
__dev_notify_flags+0x194/0x300 net/core/dev.c:8917
dev_change_flags+0xe3/0x1a0 net/core/dev.c:8955
do_setlink+0xcdb/0x3d60 net/core/rtnetlink.c:2785
__rtnl_newlink net/core/rtnetlink.c:3456 [inline]
rtnl_newlink+0x1658/0x1a50 net/core/rtnetlink.c:3578
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]
slab_alloc mm/slub.c:3233 [inline]
kmem_cache_alloc_trace+0x103/0x2a0 mm/slub.c:3250
kmalloc include/linux/slab.h:607 [inline]
kzalloc include/linux/slab.h:738 [inline]
mca_alloc net/ipv6/mcast.c:880 [inline]
__ipv6_dev_mc_inc+0x3fa/0xa90 net/ipv6/mcast.c:935
addrconf_join_solict net/ipv6/addrconf.c:2201 [inline]
addrconf_dad_begin net/ipv6/addrconf.c:4016 [inline]
addrconf_dad_work+0x3d1/0x1540 net/ipv6/addrconf.c:4143
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
Memory state around the buggy address:
ffff88801f9aff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88801f9aff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88801f9b0000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88801f9b0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88801f9b0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 00 00 add %al,(%rax)
2: 49 03 1e add (%r14),%rbx
5: 48 89 d8 mov %rbx,%rax
8: 48 c1 e8 03 shr $0x3,%rax
c: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
11: 74 08 je 0x1b
13: 48 89 df mov %rbx,%rdi
16: e8 5e 0d f3 fd call 0xfdf30d79
1b: 4c 89 3c 24 mov %r15,(%rsp)
1f: 41 89 ee mov %ebp,%r14d
22: 49 c1 e6 03 shl $0x3,%r14
26: 4c 03 33 add (%rbx),%r14
* 29: 4c 89 f0 mov %r14,%rax <-- trapping instruction
2c: 48 c1 e8 03 shr $0x3,%rax
30: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
35: 74 08 je 0x3f
37: 4c 89 f7 mov %r14,%rdi
3a: e8 3a 0d f3 fd call 0xfdf30d79