program: r0 = socket$nl_netfilter(0x10, 0x3, 0xc) sendmsg$NFT_BATCH(r0, &(0x7f00000000c0)={0x0, 0x0, &(0x7f0000000040)={&(0x7f0000000200)=ANY=[@ANYBLOB="140000001000010000000000000000000000000a20000000000a010300000000000000000100fffd0900010073797a300000000040000000030a01020000000000000000010000000900030073797a3200000000140004800800024032658aeb08000140000000010900010073797a300000000044000000060a010400000000000001040100000008000b40000000000900010073797a30000000001c000480180001800d00010073796e70726f7879000000000400028014000000110001"], 0xcc}}, 0x0) (async) syz_extract_tcp_res$synack(&(0x7f0000000000), 0x1, 0x0) (async) syz_emit_ethernet(0xcd, &(0x7f0000000100)={@link_local={0x3, 0x80, 0xc2, 0x0, 0x0, 0xe}, @multicast, @void, {@generic={0x201, "92b7879adedd2faf14661f5183f2ebdbff65b8df781c811da75adbb244491b378ea06be96d278dc5cd3e77dab9b2dc6b621012a89b06676183f400f095966118ff7ffa6ae896f776200fffbb04f03ddb45f4888a5ce12ebfb265b09435adbd70ff36a24552c0af1a398d4691906923c15d95b3c981e8831efa22af14ed313a44047d5aec62fb97d60b1f1a10446801ec2c91aa21cf9ef90c53f95c8d41a7e5792e97e6c8460f1378243f3b769d6172232872c30c20609adf7fce1a7096476e"}}}, 0x0) [ 86.099715][ T4665] Bluetooth: hci0: command tx timeout [ 86.181151][ T45] ================================================================== [ 86.189960][ T45] BUG: KASAN: slab-use-after-free in hci_conn_drop+0x34/0x2a0 [ 86.196299][ T45] Write of size 4 at addr ffff8880360c8010 by task kworker/u5:0/45 [ 86.207029][ T45] [ 86.213851][ T45] CPU: 0 UID: 0 PID: 45 Comm: kworker/u5:0 Not tainted syzkaller #0 PREEMPT(full) [ 86.213873][ T45] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 86.213883][ T45] Workqueue: hci0 hci_cmd_sync_work [ 86.213908][ T45] Call Trace: [ 86.213944][ T45] [ 86.213952][ T45] dump_stack_lvl+0xe8/0x150 [ 86.213971][ T45] print_report+0xba/0x230 [ 86.213986][ T45] ? hci_conn_drop+0x34/0x2a0 [ 86.214000][ T45] kasan_report+0x117/0x150 [ 86.214013][ T45] ? hci_conn_drop+0x34/0x2a0 [ 86.214026][ T45] kasan_check_range+0x264/0x2c0 [ 86.214039][ T45] hci_conn_drop+0x34/0x2a0 [ 86.214052][ T45] ? __pfx_le_read_features_complete+0x10/0x10 [ 86.214064][ T45] hci_cmd_sync_work+0x262/0x400 [ 86.214075][ T45] ? process_scheduled_works+0xa8d/0x18c0 [ 86.214091][ T45] process_scheduled_works+0xb6e/0x18c0 [ 86.214111][ T45] ? __pfx_process_scheduled_works+0x10/0x10 [ 86.214125][ T45] ? assign_work+0x3d5/0x5e0 [ 86.214138][ T45] worker_thread+0xa53/0xfc0 [ 86.214158][ T45] kthread+0x388/0x470 [ 86.214169][ T45] ? __pfx_worker_thread+0x10/0x10 [ 86.214181][ T45] ? __pfx_kthread+0x10/0x10 [ 86.214191][ T45] ret_from_fork+0x51e/0xb90 [ 86.214205][ T45] ? __pfx_ret_from_fork+0x10/0x10 [ 86.214217][ T45] ? __switch_to+0xc7d/0x1450 [ 86.214230][ T45] ? __pfx_kthread+0x10/0x10 [ 86.214240][ T45] ret_from_fork_asm+0x1a/0x30 [ 86.214258][ T45] [ 86.214262][ T45] [ 86.356091][ T45] Allocated by task 45: [ 86.361290][ T45] kasan_save_track+0x3e/0x80 [ 86.363867][ T45] __kasan_kmalloc+0x93/0xb0 [ 86.386093][ T45] __kmalloc_cache_noprof+0x31c/0x660 [ 86.399774][ T45] __hci_conn_add+0x3c4/0x1e00 [ 86.402547][ T45] le_conn_complete_evt+0x706/0x1430 [ 86.411956][ T45] hci_le_enh_conn_complete_evt+0x189/0x490 [ 86.414650][ T45] hci_event_packet+0x7af/0x12c0 [ 86.416736][ T45] hci_rx_work+0x3ee/0x1030 [ 86.418643][ T45] process_scheduled_works+0xb6e/0x18c0 [ 86.438089][ T45] worker_thread+0xa53/0xfc0 [ 86.449384][ T45] kthread+0x388/0x470 [ 86.451169][ T45] ret_from_fork+0x51e/0xb90 [ 86.453373][ T45] ret_from_fork_asm+0x1a/0x30 [ 86.456109][ T45] [ 86.457435][ T45] Freed by task 4665: [ 86.459295][ T45] kasan_save_track+0x3e/0x80 [ 86.461282][ T45] kasan_save_free_info+0x46/0x50 [ 86.463316][ T45] __kasan_slab_free+0x5c/0x80 [ 86.465451][ T45] kfree+0x1c1/0x630 [ 86.485479][ T45] device_release+0x9e/0x1d0 [ 86.487829][ T45] kobject_put+0x228/0x560 [ 86.490195][ T45] hci_conn_del+0xc36/0x1230 [ 86.492471][ T45] hci_disconn_complete_evt+0x64e/0x950 [ 86.495041][ T45] hci_event_packet+0x805/0x12c0 [ 86.497352][ T45] hci_rx_work+0x3ee/0x1030 [ 86.512515][ T45] process_scheduled_works+0xb6e/0x18c0 [ 86.515623][ T45] worker_thread+0xa53/0xfc0 [ 86.518283][ T45] kthread+0x388/0x470 [ 86.529464][ T45] ret_from_fork+0x51e/0xb90 [ 86.531607][ T45] ret_from_fork_asm+0x1a/0x30 [ 86.533818][ T45] [ 86.534985][ T45] The buggy address belongs to the object at ffff8880360c8000 [ 86.534985][ T45] which belongs to the cache kmalloc-8k of size 8192 [ 86.555180][ T45] The buggy address is located 16 bytes inside of [ 86.555180][ T45] freed 8192-byte region [ffff8880360c8000, ffff8880360ca000) [ 86.572285][ T45] [ 86.573605][ T45] The buggy address belongs to the physical page: [ 86.576760][ T45] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x360c8 [ 86.580768][ T45] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 86.608854][ T45] flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) [ 86.613281][ T45] page_type: f5(slab) [ 86.615441][ T45] raw: 04fff00000000040 ffff88801ac42280 dead000000000100 dead000000000122 [ 86.629635][ T45] raw: 0000000000000000 0000000800020002 00000000f5000000 0000000000000000 [ 86.643796][ T45] head: 04fff00000000040 ffff88801ac42280 dead000000000100 dead000000000122 [ 86.651689][ T45] head: 0000000000000000 0000000800020002 00000000f5000000 0000000000000000 [ 86.655673][ T45] head: 04fff00000000003 ffffea0000d83201 00000000ffffffff 00000000ffffffff [ 86.672035][ T45] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 86.705086][ T45] page dumped because: kasan: bad access detected [ 86.709092][ T45] page_owner tracks the page as allocated [ 86.712692][ T45] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5012, tgid 5012 (dhcpcd), ts 50188110306, free_ts 48335496832 [ 86.722596][ T45] post_alloc_hook+0x231/0x280 [ 86.729462][ T45] get_page_from_freelist+0x24dc/0x2580 [ 86.732066][ T45] __alloc_frozen_pages_noprof+0x18d/0x380 [ 86.734819][ T45] allocate_slab+0x77/0x660 [ 86.750036][ T45] refill_objects+0x331/0x3c0 [ 86.752739][ T45] __pcs_replace_empty_main+0x2e6/0x730 [ 86.761036][ T45] __kvmalloc_node_noprof+0x657/0x8a0 [ 86.764954][ T45] pfifo_fast_init+0x112/0x6c0 [ 86.773247][ T45] qdisc_create_dflt+0x13b/0x510 [ 86.781339][ T45] dev_activate+0x378/0x1150 [ 86.7[ 84.109744][ T45] Bluetooth: hci0: command tx timeout