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: use-after-free in register_lock_class+0x7e6/0x880 kernel/locking/lockdep.c:1324 Read of size 1 at addr ffff8880240e6091 by task swapper/1/0 CPU: 1 PID: 0 Comm: swapper/1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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 register_lock_class+0x7e6/0x880 kernel/locking/lockdep.c:1324 __lock_acquire+0x265/0x7d40 kernel/locking/lockdep.c:4997 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb0/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:1677 dummy_timer+0xa44/0x3570 drivers/usb/gadget/udc/dummy_hcd.c:2016 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:default_idle+0xb/0x10 arch/x86/kernel/process.c:730 Code: b7 48 89 df e8 46 92 eb f7 eb ad e8 6f a7 f6 ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 00 cc 66 90 0f 00 2d 27 ea 52 00 fb f4 0f 1f 40 00 41 57 41 56 53 49 be 00 00 00 00 00 fc ff df 65 48 RSP: 0018:ffffc90000d67d48 EFLAGS: 000002c2 RAX: 72f3210a3b6e7700 RBX: ffff88813fe28000 RCX: 72f3210a3b6e7700 RDX: 0000000000000001 RSI: ffffffff8a2b2b60 RDI: ffffffff8a7a5100 RBP: ffffc90000d67e80 R08: ffff8880b8f3b30b R09: 1ffff110171e7661 R10: dffffc0000000000 R11: ffffed10171e7662 R12: 1ffff920001acfb4 R13: dffffc0000000000 R14: 1ffff11027fc5000 R15: 0000000000000000 default_idle_call+0x81/0xc0 kernel/sched/idle.c:112 cpuidle_idle_call kernel/sched/idle.c:202 [inline] do_idle+0x3a1/0x650 kernel/sched/idle.c:326 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:424 start_secondary+0x32f/0x430 arch/x86/kernel/smpboot.c:281 secondary_startup_64_no_verify+0xb1/0xbb 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:1800 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+0x1ad8/0x2140 drivers/usb/core/message.c:2229 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:2642 hub_port_connect drivers/usb/core/hub.c:5507 [inline] hub_port_connect_change drivers/usb/core/hub.c:5647 [inline] port_event drivers/usb/core/hub.c:5809 [inline] hub_event+0x2b8d/0x5260 drivers/usb/core/hub.c:5891 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 4866: 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:1948 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:1478 usb_disconnect+0x33c/0x8a0 drivers/usb/core/hub.c:2297 hub_port_connect drivers/usb/core/hub.c:5351 [inline] hub_port_connect_change drivers/usb/core/hub.c:5647 [inline] port_event drivers/usb/core/hub.c:5809 [inline] hub_event+0x1d64/0x5260 drivers/usb/core/hub.c:5891 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 ffff8880240e6000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 145 bytes inside of 1024-byte region [ffff8880240e6000, ffff8880240e6400) The buggy address belongs to the page: page:ffffea0000903800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x240e0 head:ffffea0000903800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888017841dc0 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 4195, ts 73381087122, free_ts 73317828013 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] rtmsg_fib+0xd7/0x440 net/ipv4/fib_semantics.c:554 fib_table_insert+0xd24/0x1b80 net/ipv4/fib_trie.c:1377 fib_magic+0x2ca/0x3b0 net/ipv4/fib_frontend.c:1113 fib_add_ifaddr+0x372/0x5c0 net/ipv4/fib_frontend.c:1150 fib_netdev_event+0x35c/0x480 net/ipv4/fib_frontend.c:1495 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:8918 dev_change_flags+0xda/0x1a0 net/core/dev.c:8956 do_setlink+0xca4/0x29d0 net/core/rtnetlink.c:2793 __rtnl_newlink net/core/rtnetlink.c:3464 [inline] rtnl_newlink+0x15bb/0x1920 net/core/rtnetlink.c:3586 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 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_trace+0x165/0x290 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:643 [inline] netdevice_event+0x3ad/0x930 drivers/infiniband/core/roce_gid_mgmt.c:802 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_set_mac_address+0x2ed/0x400 net/core/dev.c:9141 dev_set_mac_address_user+0x2d/0x50 net/core/dev.c:9155 do_setlink+0x842/0x29d0 net/core/rtnetlink.c:2748 __rtnl_newlink net/core/rtnetlink.c:3464 [inline] rtnl_newlink+0x15bb/0x1920 net/core/rtnetlink.c:3586 rtnetlink_rcv_msg+0x7f1/0xf10 net/core/rtnetlink.c:5698 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2527 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x804/0x9e0 net/netlink/af_netlink.c:1340 Memory state around the buggy address: ffff8880240e5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880240e6000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880240e6080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880240e6100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880240e6180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess): 0: b7 48 mov $0x48,%bh 2: 89 df mov %ebx,%edi 4: e8 46 92 eb f7 call 0xf7eb924f 9: eb ad jmp 0xffffffb8 b: e8 6f a7 f6 ff call 0xfff6a77f 10: 00 00 add %al,(%rax) 12: cc int3 13: cc int3 14: 00 00 add %al,(%rax) 16: cc int3 17: cc int3 18: 00 00 add %al,(%rax) 1a: cc int3 1b: cc int3 1c: 00 00 add %al,(%rax) 1e: cc int3 1f: 66 90 xchg %ax,%ax 21: 0f 00 2d 27 ea 52 00 verw 0x52ea27(%rip) # 0x52ea4f 28: fb sti 29: f4 hlt * 2a: c3 ret <-- trapping instruction 2b: 0f 1f 40 00 nopl 0x0(%rax) 2f: 41 57 push %r15 31: 41 56 push %r14 33: 53 push %rbx 34: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 3b: fc ff df 3e: 65 gs 3f: 48 rex.W