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: slab-use-after-free in do_raw_spin_lock+0x28b/0x2f0
Read of size 4 at addr ffff88811b62105c by task swapper/0/0

CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 print_report+0xba/0x230
 kasan_report+0x117/0x150
 do_raw_spin_lock+0x28b/0x2f0
 _raw_spin_lock_irqsave+0x4c/0x60
 __wake_up_common_lock+0x2f/0x1f0
 __usb_hcd_giveback_urb+0x3b0/0x540
 dummy_timer+0xbbd/0x45d0
 __hrtimer_run_queues+0x527/0xc30
 hrtimer_run_softirq+0x187/0x2b0
 handle_softirqs+0x22a/0x7c0
 __irq_exit_rcu+0x5f/0x150
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:pv_native_safe_halt+0xf/0x20
Code: b8 5e 02 e9 d3 e5 02 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d d3 27 10 00 fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90
RSP: 0018:ffffffff8e007dc0 EFLAGS: 00000202
RAX: 00000000007ab4bf RBX: ffffffff81984a1d RCX: 0000000080000001
RDX: 0000000000000001 RSI: ffffffff8dad1a6e RDI: ffffffff8be74b80
RBP: ffffffff8e007eb0 R08: ffff8881210336db R09: 1ffff110242066db
R10: dffffc0000000000 R11: ffffed10242066dc R12: ffffffff8fcef870
R13: 1ffffffff1c12a78 R14: 0000000000000000 R15: 0000000000000000
 default_idle+0x9/0x20
 default_idle_call+0x72/0xb0
 do_idle+0x1bd/0x500
 cpu_startup_entry+0x43/0x60
 rest_init+0x2de/0x300
 start_kernel+0x385/0x3d0
 x86_64_start_reservations+0x24/0x30
 x86_64_start_kernel+0x143/0x1c0
 common_startup_64+0x13e/0x147
 </TASK>

Allocated by task 6019:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x3d1/0x6e0
 xpad_probe+0x428/0x1fc0
 usb_probe_interface+0x668/0xc90
 really_probe+0x26d/0xac0
 __driver_probe_device+0x18c/0x320
 driver_probe_device+0x4f/0x240
 __device_attach_driver+0x279/0x430
 bus_for_each_drv+0x258/0x2f0
 __device_attach+0x2c5/0x450
 device_initial_probe+0xa1/0xd0
 bus_probe_device+0x12a/0x220
 device_add+0x7b6/0xb70
 usb_set_configuration+0x1a87/0x2110
 usb_generic_driver_probe+0x8d/0x150
 usb_probe_device+0x1c4/0x3b0
 really_probe+0x26d/0xac0
 __driver_probe_device+0x18c/0x320
 driver_probe_device+0x4f/0x240
 __device_attach_driver+0x279/0x430
 bus_for_each_drv+0x258/0x2f0
 __device_attach+0x2c5/0x450
 device_initial_probe+0xa1/0xd0
 bus_probe_device+0x12a/0x220
 device_add+0x7b6/0xb70
 usb_new_device+0xa08/0x16f0
 hub_event+0x2a1c/0x4f30
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0x89f/0xd90
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

Freed by task 6022:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1be/0x650
 xpad_disconnect+0x350/0x480
 usb_unbind_interface+0x26e/0x910
 device_release_driver_internal+0x4d9/0x800
 bus_remove_device+0x34d/0x440
 device_del+0x527/0x8f0
 usb_disable_device+0x3d4/0x8d0
 usb_disconnect+0x32f/0x990
 hub_event+0x1cc9/0x4f30
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0x89f/0xd90
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff88811b621000
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 92 bytes inside of
 freed 1024-byte region [ffff88811b621000, ffff88811b621400)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b620
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
anon flags: 0x17ff00000000040(head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000040 ffff888100041dc0 0000000000000000 dead000000000001
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 017ff00000000040 ffff888100041dc0 0000000000000000 dead000000000001
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 017ff00000000003 ffffea00046d8801 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
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 5945, tgid 5945 (syz-executor), ts 83572777048, free_ts 0
 post_alloc_hook+0x231/0x280
 get_page_from_freelist+0x24dc/0x2580
 __alloc_frozen_pages_noprof+0x18d/0x380
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x86/0x3a0
 ___slab_alloc+0xd82/0x1760
 __slab_alloc+0x65/0x100
 __kmalloc_node_noprof+0x5bc/0x7f0
 qdisc_alloc+0x92/0x900
 qdisc_create_dflt+0x8e/0x4c0
 dev_activate+0x378/0x1150
 __dev_open+0x67a/0x830
 __dev_change_flags+0x1f7/0x690
 netif_change_flags+0x88/0x1a0
 do_setlink+0xf82/0x4590
 rtnl_newlink+0x15a9/0x1be0
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88811b620f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88811b620f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88811b621000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                    ^
 ffff88811b621080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88811b621100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
