==================================================================
BUG: KASAN: use-after-free in release_card_device+0x1ab/0x1b0
Read of size 1 at addr ffff88810e918909 by task syz.0.191/6236

CPU: 0 UID: 0 PID: 6236 Comm: syz.0.191 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:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 release_card_device+0x1ab/0x1b0
 device_release+0xc4/0x1f0
 kobject_put+0x222/0x550
 snd_card_file_remove+0x331/0x390
 snd_pcm_release+0x12c/0x160
 __fput+0x418/0xa50
 task_work_run+0x1d9/0x270
 exit_to_user_mode_loop+0x1fa/0x730
 do_syscall_64+0x353/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f55efb9e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff51eb8498 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f55efe27da0 RCX: 00007f55efb9e0d9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f55efe27da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007f55efe27cb0 R11: 0000000000000246 R12: 00000000000123a4
R13: 00007f55efe25fac R14: 00000000000120a0 R15: 00007fff51eb85a0
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e918
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
raw: 017ff00000000000 ffff88823c6412c0 ffff88823c6412c0 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 16714115173
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2205/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 alloc_pages_mpol+0x21e/0x390
 ___kmalloc_large_node+0x4f/0x120
 __kmalloc_large_node_noprof+0x18/0x90
 __kmalloc_node_track_caller_noprof+0x164/0x730
 __devres_alloc_node+0x4c/0x160
 snd_devm_card_new+0x84/0x160
 loopback_probe+0x150/0x13d0
 platform_probe+0xf9/0x190
 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
page last free pid 6237 tgid 6236 ts 74818697114 stack trace:
 __free_frozen_pages+0xc8f/0xd80
 devres_release_all+0x1ce/0x260
 device_release_driver_internal+0x5d9/0x880
 unbind_store+0x1a1/0x1d0
 kernfs_fop_write_iter+0x3a4/0x540
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88810e918800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88810e918880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88810e918900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                      ^
 ffff88810e918980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88810e918a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
