==================================================================
BUG: KASAN: slab-use-after-free in dummy_timer+0xcf6/0x4cf0
Read of size 1 at addr ffff888112b364da by task acpid/5031

CPU: 1 UID: 0 PID: 5031 Comm: acpid 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
 dummy_timer+0xcf6/0x4cf0
 __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:_raw_spin_unlock_irqrestore+0x47/0x80
Code: f7 e8 9d fb d0 f5 f7 c3 00 02 00 00 74 05 e8 d0 d9 fc f5 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> c4 0d c2 f5 65 8b 05 0d f5 99 07 85 c0 74 18 5b 41 5e c3 cc cc
RSP: 0018:ffffc9000280f698 EFLAGS: 00000206
RAX: 0000000000000006 RBX: 0000000000000246 RCX: 0000000080000001
RDX: 0000000000000006 RSI: ffffffff8e226e7e RDI: 0000000000000001
RBP: 0000000000000007 R08: ffffffff90572537 R09: 1ffffffff20ae4a6
R10: dffffc0000000000 R11: fffffbfff20ae4a7 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff888168718000 R15: 1ffff1102d858a94
 dummy_urb_enqueue+0x587/0x780
 usb_hcd_submit_urb+0x328/0x1b60
 usbtouch_open+0x1b3/0x290
 input_open_device+0x1f9/0x3b0
 mousedev_open_device+0xcc/0x150
 mousedev_open+0x2e4/0x480
 chrdev_open+0x4d9/0x600
 do_dentry_open+0x816/0x1380
 vfs_open+0x3b/0x340
 path_openat+0x2e44/0x3830
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f49f77309a4
Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffed6f12c50 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffed6f12f38 RCX: 00007f49f77309a4
RDX: 0000000000080800 RSI: 00007ffed6f12e38 RDI: 00000000ffffff9c
RBP: 00007ffed6f12e38 R08: 00000000000000f4 R09: 00007ffed6f12e38
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080800
R13: 0000000000000040 R14: 00007ffed6f12f38 R15: 00007ffed6f12e38
 </TASK>

Allocated by task 24:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x32d/0x660
 snd_mixer_oss_build_test+0x7a/0x380
 snd_mixer_oss_build_input+0x626/0x1370
 snd_mixer_oss_notify_handler+0x93f/0x1050
 snd_card_register+0x589/0x720
 try_to_register_card+0x662/0x820
 usb_audio_probe+0x1898/0x2280
 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 24:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x640
 snd_mixer_oss_build_test+0x28f/0x380
 snd_mixer_oss_build_input+0x626/0x1370
 snd_mixer_oss_notify_handler+0x93f/0x1050
 snd_card_register+0x589/0x720
 try_to_register_card+0x662/0x820
 usb_audio_probe+0x1898/0x2280
 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

The buggy address belongs to the object at ffff888112b36400
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 218 bytes inside of
 freed 512-byte region [ffff888112b36400, ffff888112b36600)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888112b36400 pfn:0x112b34
head: order:2 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 ffff888100041c80 ffffea0004514710 ffffea0004469010
raw: ffff888112b36400 000000080010000f 00000000f5000000 0000000000000000
head: 017ff00000000240 ffff888100041c80 ffffea0004514710 ffffea0004469010
head: ffff888112b36400 000000080010000f 00000000f5000000 0000000000000000
head: 017ff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 14925365322
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2205/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7c/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2bf/0x6b0
 __kmalloc_node_track_caller_noprof+0x557/0x730
 krealloc_node_align_noprof+0x19a/0x390
 add_sysfs_param+0xd4/0xb80
 kernel_add_sysfs_param+0x7f/0xe0
 param_sysfs_builtin+0x199/0x250
 param_sysfs_builtin_init+0x23/0x30
 do_one_initcall+0x250/0x870
 do_initcall_level+0x10a/0x1a0
 do_initcalls+0x59/0xa0
 kernel_init_freeable+0x29d/0x3e0
page last free pid 32 tgid 32 ts 14914800498 stack trace:
 free_pages_prepare+0x9eb/0xaf0
 __free_contig_range_common+0x174/0x340
 free_pages_bulk+0x48/0x120
 vfree+0x22f/0x490
 delayed_vfree_work+0x55/0x80
 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:
 ffff888112b36380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888112b36400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888112b36480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                    ^
 ffff888112b36500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888112b36580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
