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

CPU: 0 UID: 0 PID: 6307 Comm: dhcpcd-run-hook Not tainted syzkaller #0 PREEMPT(full) 
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+0x30/0x1f0
 __usb_hcd_giveback_urb+0x3ae/0x530
 dummy_timer+0xac3/0x4b40
 __hrtimer_run_queues+0x3bc/0xa10
 hrtimer_run_softirq+0x17a/0x240
 handle_softirqs+0x225/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:read_seqbegin+0xf9/0x180
Code: 85 e4 75 16 e8 38 d9 6d ff eb 15 e8 31 d9 6d ff e8 ac 7d 5a 09 4d 85 e4 74 ea e8 22 d9 6d ff fb 49 be 00 00 00 00 00 fc ff df <49> 89 df 49 c1 ef 03 43 0f b6 04 37 84 c0 75 2a 8b 2b 89 ee 83 e6
RSP: 0018:ffffc9000411f790 EFLAGS: 00000293
RAX: ffffffff8258577e RBX: ffffffff8e614980 RCX: ffff8881bf705940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000411f890 R08: ffffffff9032bff7 R09: 1ffffffff20657fe
R10: dffffc0000000000 R11: fffffbfff20657ff R12: 0000000000000200
R13: ffffffff8e614980 R14: dffffc0000000000 R15: ffffffff82583746
 prepend_path+0x116/0x840
 d_absolute_path+0xa1/0x140
 tomoyo_realpath_from_path+0x30d/0x640
 tomoyo_path_perm+0x283/0x560
 security_inode_getattr+0x12b/0x310
 vfs_getattr+0x23/0x70
 vfs_statx_path+0x2b/0x230
 vfs_statx+0x12e/0x200
 vfs_fstatat+0x11b/0x170
 __x64_sys_newfstatat+0x151/0x200
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9ade1a45f4
Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8
RSP: 002b:00007ffc5aa6efe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007ffc5aa6f138 RCX: 00007f9ade1a45f4
RDX: 00007ffc5aa6f048 RSI: 00005555b9a57fe8 RDI: 00000000ffffff9c
RBP: 00005555b9a57f90 R08: 000000000000000d R09: fefefefeff6f6c62
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Allocated by task 5683:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x32d/0x660
 xpad_probe+0x43f/0x2020
 usb_probe_interface+0x653/0xc60
 really_probe+0x254/0xae0
 __driver_probe_device+0x1e8/0x360
 driver_probe_device+0x4f/0x240
 __device_attach_driver+0x270/0x410
 bus_for_each_drv+0x258/0x2f0
 __device_attach+0x2c4/0x450
 device_initial_probe+0xa1/0xd0
 bus_probe_device+0x12a/0x220
 device_add+0x7d7/0xb80
 usb_set_configuration+0x1ad8/0x2180
 usb_generic_driver_probe+0x8d/0x150
 usb_probe_device+0x1c3/0x3b0
 really_probe+0x254/0xae0
 __driver_probe_device+0x1e8/0x360
 driver_probe_device+0x4f/0x240
 __device_attach_driver+0x270/0x410
 bus_for_each_drv+0x258/0x2f0
 __device_attach+0x2c4/0x450
 device_initial_probe+0xa1/0xd0
 bus_probe_device+0x12a/0x220
 device_add+0x7d7/0xb80
 usb_new_device+0x99d/0x1620
 hub_event+0x28e8/0x4d30
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Freed by task 33:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x640
 xpad_disconnect+0x323/0x440
 usb_unbind_interface+0x295/0x9f0
 device_release_driver_internal+0x4f5/0x880
 bus_remove_device+0x444/0x560
 device_del+0x524/0x8f0
 usb_disable_device+0x3d4/0x8d0
 usb_disconnect+0x346/0x9a0
 hub_event+0x1bbb/0x4d30
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88811b60f800 pfn:0x11b608
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x17ff00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000240 ffff888100041dc0 ffffea00044ade10 ffffea00046df210
raw: ffff88811b60f800 000000080010000a 00000000f5000000 0000000000000000
head: 017ff00000000240 ffff888100041dc0 ffffea00044ade10 ffffea00046df210
head: ffff88811b60f800 000000080010000a 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 5849, tgid 5849 (syz-executor), ts 83330816569, free_ts 82133625742
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x21fa/0x2270
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x79/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2bf/0x6b0
 __kmalloc_cache_noprof+0x3a7/0x660
 afs_alloc_call+0x79/0x560
 afs_charge_preallocation+0x273/0x570
 afs_open_socket+0x33c/0x3f0
 afs_net_init+0x67d/0x880
 ops_init+0x35d/0x5d0
 setup_net+0x118/0x350
 copy_net_ns+0x4f9/0x720
 create_new_namespaces+0x3f0/0x6b0
 unshare_nsproxy_namespaces+0x149/0x190
page last free pid 5425 tgid 5425 stack trace:
 __free_frozen_pages+0xc1e/0xd10
 __slab_free+0x274/0x2c0
 qlist_free_all+0x99/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_cache_noprof+0x2ab/0x660
 device_add+0xb6/0xb80
 usb_new_device+0x99d/0x1620
 hub_event+0x28e8/0x4d30
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88811b60e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88811b60e780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88811b60e800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                    ^
 ffff88811b60e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88811b60e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
