Bluetooth: Unexpected start frame (len 14) ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: slab-use-after-free in refcount_read include/linux/refcount.h:136 [inline] BUG: KASAN: slab-use-after-free in skb_unref include/linux/skbuff.h:1228 [inline] BUG: KASAN: slab-use-after-free in __sk_skb_reason_drop net/core/skbuff.c:1211 [inline] BUG: KASAN: slab-use-after-free in sk_skb_reason_drop+0x3b/0x210 net/core/skbuff.c:1239 Read of size 4 at addr ffff88805cb86ea4 by task kworker/u9:3/5238 CPU: 0 UID: 0 PID: 5238 Comm: kworker/u9:3 Not tainted 6.11.0-rc3-syzkaller-00036-g9d5906799f7d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci1 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] refcount_read include/linux/refcount.h:136 [inline] skb_unref include/linux/skbuff.h:1228 [inline] __sk_skb_reason_drop net/core/skbuff.c:1211 [inline] sk_skb_reason_drop+0x3b/0x210 net/core/skbuff.c:1239 kfree_skb_reason include/linux/skbuff.h:1260 [inline] kfree_skb include/linux/skbuff.h:1269 [inline] l2cap_recv_reset net/bluetooth/l2cap_core.c:7473 [inline] l2cap_recv_acldata+0x129/0xb70 net/bluetooth/l2cap_core.c:7497 hci_acldata_packet net/bluetooth/hci_core.c:3790 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4027 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 12371: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:312 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:493 [inline] l2cap_recv_frag+0x13d/0x2b0 net/bluetooth/l2cap_core.c:7420 l2cap_recv_acldata+0x2a1/0xb70 net/bluetooth/l2cap_core.c:7528 hci_acldata_packet net/bluetooth/hci_core.c:3790 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4027 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 12371: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2252 [inline] slab_free mm/slub.c:4473 [inline] kmem_cache_free+0x12f/0x3a0 mm/slub.c:4548 kfree_skbmem+0x10e/0x200 net/core/skbuff.c:1146 __kfree_skb net/core/skbuff.c:1203 [inline] sk_skb_reason_drop+0x140/0x210 net/core/skbuff.c:1240 kfree_skb_reason include/linux/skbuff.h:1260 [inline] kfree_skb include/linux/skbuff.h:1269 [inline] l2cap_conn_del+0xa6/0x740 net/bluetooth/l2cap_core.c:1760 l2cap_connect_cfm+0x9e6/0xf80 net/bluetooth/l2cap_core.c:7241 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_conn_failed+0x1c3/0x370 net/bluetooth/hci_conn.c:1265 hci_abort_conn_sync+0x75a/0xb50 net/bluetooth/hci_sync.c:5545 abort_conn_sync+0x197/0x360 net/bluetooth/hci_conn.c:2917 hci_cmd_sync_work+0x1a4/0x410 net/bluetooth/hci_sync.c:328 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff88805cb86dc0 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 228 bytes inside of freed 240-byte region [ffff88805cb86dc0, ffff88805cb86eb0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5cb86 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000000 ffff8880196ad780 dead000000000100 dead000000000122 raw: 0000000000000000 00000000000c000c 00000001fdffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x172820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_MEMALLOC|__GFP_HARDWALL), pid 14081, tgid 14081 (syz-executor), ts 1162497055433, free_ts 1162453162259 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3442 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4700 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] kmem_cache_alloc_node_noprof+0xed/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 __netdev_alloc_skb+0x76/0x900 net/core/skbuff.c:738 netdev_alloc_skb include/linux/skbuff.h:3348 [inline] dev_alloc_skb include/linux/skbuff.h:3361 [inline] __ieee80211_beacon_get+0xc1f/0x16b0 net/mac80211/tx.c:5470 ieee80211_beacon_get_tim+0xa7/0x280 net/mac80211/tx.c:5592 ieee80211_beacon_get include/net/mac80211.h:5593 [inline] mac80211_hwsim_beacon_tx+0x4ea/0xa00 drivers/net/wireless/virtual/mac80211_hwsim.c:2311 __iterate_interfaces+0x2d0/0x5d0 net/mac80211/util.c:772 ieee80211_iterate_active_interfaces_atomic+0x71/0x1b0 net/mac80211/util.c:808 mac80211_hwsim_beacon+0x105/0x200 drivers/net/wireless/virtual/mac80211_hwsim.c:2345 page last free pid 5315 tgid 5315 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 vfree+0x181/0x7a0 mm/vmalloc.c:3364 delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3285 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff88805cb86d80: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff88805cb86e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805cb86e80: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ^ ffff88805cb86f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805cb86f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================