xpad 7-1:179.65: xpad_irq_in - usb_submit_urb failed with result -19 xpad 7-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 ffff88806878f85c by task udevd/3558 CPU: 1 PID: 3558 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+0x394/0x520 drivers/usb/core/hcd.c:1675 dummy_timer+0xa41/0x33c0 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+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:step_into+0x393/0xcd0 fs/namei.c:1829 Code: f8 48 c1 e8 03 42 80 3c 28 00 74 05 e8 d6 84 f1 ff 48 8b 44 24 30 48 89 43 30 48 83 c3 40 48 89 d8 48 c1 e8 03 42 0f b6 04 28 <84> c0 0f 85 ad 07 00 00 44 89 33 31 c0 48 8b 4c 24 28 66 42 c7 44 RSP: 0018:ffffc90002e7f800 EFLAGS: 00000a02 RAX: 0000000000000000 RBX: ffffc90002e7fb20 RCX: 0000000000000000 RDX: 0000000000000010 RSI: ffffc90002e7f890 RDI: ffffc90002e7fb10 RBP: ffffc90002e7f8f0 R08: ffffc90002e7faef R09: 1ffff920005cff5d R10: dffffc0000000000 R11: fffff520005cff5e R12: 1ffff920005cff63 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000200000 link_path_walk+0x688/0xde0 fs/namei.c:-1 path_lookupat+0x83/0x420 fs/namei.c:2462 filename_lookup+0x21e/0x550 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/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 RIP: 0033:0x7f0e5141eb0a 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:00007fffa6b654c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007fffa6b65960 RCX: 00007f0e5141eb0a RDX: 00007fffa6b654d0 RSI: 00007fffa6b65960 RDI: 00000000ffffff9c RBP: 000055ef78c07910 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffa6b65560 R13: 00000000000000fe R14: 000055ef56638be0 R15: 00007fffa6b66060 Allocated by task 21: 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 1334: 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 ffff88806878f800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 92 bytes inside of 1024-byte region [ffff88806878f800, ffff88806878fc00) The buggy address belongs to the page: page:ffffea0001a1e200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888068788800 pfn:0x68788 head:ffffea0001a1e200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001d9cc08 ffffea000181fc08 ffff888016c41dc0 raw: ffff888068788800 0000000000100009 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 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 7356, ts 502493246181, free_ts 500865073457 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] __kmalloc_node_track_caller+0x13d/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] inet6_rt_notify+0xe0/0x290 net/ipv6/route.c:6180 fib6_add_rt2node net/ipv6/ip6_fib.c:1255 [inline] fib6_add+0x1e9a/0x3ee0 net/ipv6/ip6_fib.c:1484 __ip6_ins_rt net/ipv6/route.c:1306 [inline] ip6_route_add+0x86/0x130 net/ipv6/route.c:3868 addrconf_prefix_route net/ipv6/addrconf.c:2449 [inline] addrconf_add_linklocal+0x444/0x6d0 net/ipv6/addrconf.c:3243 addrconf_addr_gen+0x559/0x6b0 net/ipv6/addrconf.c:3372 addrconf_dev_config net/ipv6/addrconf.c:3417 [inline] addrconf_init_auto_addrs+0x6ec/0xab0 net/ipv6/addrconf.c:3496 addrconf_notify+0xa6b/0xf20 net/ipv6/addrconf.c:3665 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+0xda/0x1a0 net/core/dev.c:8955 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] kmem_cache_alloc_node_trace+0x194/0x2f0 mm/slub.c:3275 kmalloc_node include/linux/slab.h:625 [inline] kzalloc_node include/linux/slab.h:749 [inline] __get_vm_area_node+0x119/0x2d0 mm/vmalloc.c:2423 __vmalloc_node_range+0xef/0x8b0 mm/vmalloc.c:3027 __vmalloc_node mm/vmalloc.c:3087 [inline] vzalloc+0x75/0x80 mm/vmalloc.c:3157 alloc_counters+0xcc/0x740 net/ipv4/netfilter/ip_tables.c:800 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:822 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1021 [inline] do_ipt_get_ctl+0xa37/0x1110 net/ipv4/netfilter/ip_tables.c:1666 nf_getsockopt+0x25e/0x280 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x1219/0x1660 net/ipv4/ip_sockglue.c:1797 Memory state around the buggy address: ffff88806878f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806878f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806878f800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806878f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806878f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: f8 clc 1: 48 c1 e8 03 shr $0x3,%rax 5: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) a: 74 05 je 0x11 c: e8 d6 84 f1 ff call 0xfff184e7 11: 48 8b 44 24 30 mov 0x30(%rsp),%rax 16: 48 89 43 30 mov %rax,0x30(%rbx) 1a: 48 83 c3 40 add $0x40,%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax * 2a: 84 c0 test %al,%al <-- trapping instruction 2c: 0f 85 ad 07 00 00 jne 0x7df 32: 44 89 33 mov %r14d,(%rbx) 35: 31 c0 xor %eax,%eax 37: 48 8b 4c 24 28 mov 0x28(%rsp),%rcx 3c: 66 data16 3d: 42 rex.X 3e: c7 .byte 0xc7 3f: 44 rex.R