xpad 6-1:179.65: xpad_irq_in - usb_submit_urb failed with result -19
xpad 6-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 ffff88811e86505c by task syz.9.971/10065

CPU: 0 UID: 0 PID: 10065 Comm: syz.9.971 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_address_description+0x55/0x1e0
 print_report+0x58/0x70
 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+0xbc0/0x4650
 __hrtimer_run_queues+0x3c0/0xa20
 hrtimer_run_softirq+0x17a/0x240
 handle_softirqs+0x22a/0x840
 __irq_exit_rcu+0xca/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:lock_acquire+0x221/0x350
Code: ff ff ff e8 f1 4d 07 0a f7 44 24 08 00 02 00 00 0f 84 3a ff ff ff 65 48 8b 05 db a8 97 11 48 3b 44 24 58 75 33 fb 48 83 c4 60 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 40 41 0a 0a cc 48 8d 3d 88 6b 92
RSP: 0000:ffffc90003b9f138 EFLAGS: 00000282
RAX: 93e3dba2d8962a00 RBX: 0000000000000000 RCX: 0000000000000046
RDX: 00000000c69161dd RSI: ffffffff8e21eace RDI: ffffffff8c28b0e0
RBP: ffffffff8176f256 R08: ffffffff8176f256 R09: ffffffff8e95cca0
R10: ffffc90003b9f298 R11: ffffffff81b0eff0 R12: 0000000000000002
R13: ffffffff8e95cca0 R14: 0000000000000000 R15: 0000000000000246
 unwind_next_frame+0xc3/0x2550
 arch_stack_walk+0x11b/0x150
 stack_trace_save+0xa9/0x100
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x182/0x650
 unlink_anon_vmas+0x368/0x730
 free_pgtables+0x836/0xb70
 exit_mmap+0x490/0x9e0
 __mmput+0x118/0x430
 exit_mm+0x1f6/0x2d0
 do_exit+0x6a2/0x22c0
 do_group_exit+0x21b/0x2d0
 get_signal+0x1284/0x1330
 arch_do_signal_or_restart+0xbc/0x840
 exit_to_user_mode_loop+0x8c/0x4d0
 do_syscall_64+0x33e/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd4ee19ce59
Code: Unable to access opcode bytes at 0x7fd4ee19ce2f.
RSP: 002b:00007fd4ef0ba028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: 0000200000000000 RBX: 00007fd4ee416090 RCX: 00007fd4ee19ce59
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000200000000000
RBP: 00007fd4ee232d6f R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd4ee416128 R14: 00007fd4ee416090 R15: 00007ffcf6d09e38
 </TASK>

Allocated by task 5079:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x31c/0x660
 xpad_probe+0x428/0x1fc0
 usb_probe_interface+0x659/0xc70
 really_probe+0x267/0xaf0
 __driver_probe_device+0x1ef/0x380
 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+0x7e9/0xbb0
 usb_set_configuration+0x1a87/0x2110
 usb_generic_driver_probe+0x8d/0x150
 usb_probe_device+0x1c4/0x3b0
 really_probe+0x267/0xaf0
 __driver_probe_device+0x1ef/0x380
 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+0x7e9/0xbb0
 usb_new_device+0xa08/0x16f0
 hub_event+0x2a1c/0x4f30
 process_scheduled_works+0xb5d/0x1860
 worker_thread+0xa53/0xfc0
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Freed by task 8934:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x640
 xpad_disconnect+0x350/0x480
 usb_unbind_interface+0x26e/0x910
 device_release_driver_internal+0x4d9/0x870
 bus_remove_device+0x455/0x570
 device_del+0x527/0x8f0
 usb_disable_device+0x3d4/0x8d0
 usb_disconnect+0x32f/0x990
 hub_event+0x1cc9/0x4f30
 process_scheduled_works+0xb5d/0x1860
 worker_thread+0xa53/0xfc0
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e860
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x17ff00000000040(head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000040 ffff888100041dc0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 017ff00000000040 ffff888100041dc0 dead000000000100 dead000000000122
head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 017ff00000000003 fffffffffffffe01 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 796, tgid 796 (kworker/0:2), ts 72686987669, free_ts 72232027127
 post_alloc_hook+0x231/0x280
 get_page_from_freelist+0x24ba/0x2540
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x77/0x660
 refill_objects+0x339/0x3d0
 __pcs_replace_empty_main+0x321/0x720
 __kmalloc_noprof+0x474/0x760
 usb_get_configuration+0x112/0x54f0
 usb_new_device+0x145/0x16f0
 hub_event+0x2a1c/0x4f30
 process_scheduled_works+0xb5d/0x1860
 worker_thread+0xa53/0xfc0
 kthread+0x389/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
page last free pid 5601 tgid 5601 stack trace:
 __free_frozen_pages+0xbc7/0xd30
 __folio_put+0x4a2/0x580
 skb_release_data+0x544/0xa60
 __kfree_skb+0x5d/0x210
 skb_defer_free_flush+0x191/0x260
 net_rx_action+0x455/0xf70
 handle_softirqs+0x22a/0x840
 do_softirq+0x76/0xd0
 __local_bh_enable_ip+0xf8/0x130
 __dev_queue_xmit+0x1fe5/0x3950
 ip_finish_output2+0xc68/0x1070
 ip_output+0x29f/0x450
 __ip_queue_xmit+0x116a/0x1bb0
 __tcp_transmit_skb+0x2d76/0x4790
 tcp_write_xmit+0x1be0/0x6540
 __tcp_push_pending_frames+0x97/0x380

Memory state around the buggy address:
 ffff88811e864f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88811e864f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88811e865000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                    ^
 ffff88811e865080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88811e865100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
