Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) Bluetooth: Unexpected start frame (len 16) ================================================================== 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:147 [inline] BUG: KASAN: slab-use-after-free in skb_unref include/linux/skbuff.h:1217 [inline] BUG: KASAN: slab-use-after-free in __kfree_skb_reason net/core/skbuff.c:1080 [inline] BUG: KASAN: slab-use-after-free in kfree_skb_reason+0x36/0x210 net/core/skbuff.c:1107 Read of size 4 at addr ffff88802ca554a4 by task kworker/u5:5/5111 CPU: 0 PID: 5111 Comm: kworker/u5:5 Not tainted 6.7.0-syzkaller-02320-gacc657692aed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: hci2 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc4/0x620 mm/kasan/report.c:488 kasan_report+0xda/0x110 mm/kasan/report.c:601 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x190 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:147 [inline] skb_unref include/linux/skbuff.h:1217 [inline] __kfree_skb_reason net/core/skbuff.c:1080 [inline] kfree_skb_reason+0x36/0x210 net/core/skbuff.c:1107 kfree_skb include/linux/skbuff.h:1234 [inline] l2cap_recv_reset net/bluetooth/l2cap_core.c:8484 [inline] l2cap_recv_acldata+0x11c/0xbf0 net/bluetooth/l2cap_core.c:8512 hci_acldata_packet net/bluetooth/hci_core.c:3875 [inline] hci_rx_work+0xaa7/0x1610 net/bluetooth/hci_core.c:4110 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Allocated by task 5111: kasan_save_stack+0x33/0x50 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:314 [inline] __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3813 [inline] slab_alloc_node mm/slub.c:3860 [inline] kmem_cache_alloc_node+0x177/0x340 mm/slub.c:3903 __alloc_skb+0x287/0x330 net/core/skbuff.c:641 alloc_skb include/linux/skbuff.h:1286 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:487 [inline] l2cap_recv_frag+0x139/0x2b0 net/bluetooth/l2cap_core.c:8431 l2cap_recv_acldata+0x294/0xbf0 net/bluetooth/l2cap_core.c:8543 hci_acldata_packet net/bluetooth/hci_core.c:3875 [inline] hci_rx_work+0xaa7/0x1610 net/bluetooth/hci_core.c:4110 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Freed by task 51: kasan_save_stack+0x33/0x50 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3f/0x60 mm/kasan/generic.c:634 poison_slab_object mm/kasan/common.c:241 [inline] __kasan_slab_free+0x121/0x1b0 mm/kasan/common.c:257 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2121 [inline] slab_free mm/slub.c:4299 [inline] kmem_cache_free+0x129/0x350 mm/slub.c:4363 kfree_skbmem+0xef/0x1b0 net/core/skbuff.c:1015 __kfree_skb net/core/skbuff.c:1073 [inline] kfree_skb_reason+0x13a/0x210 net/core/skbuff.c:1108 kfree_skb include/linux/skbuff.h:1234 [inline] l2cap_conn_del+0xa4/0x740 net/bluetooth/l2cap_core.c:1899 l2cap_connect_cfm+0xa10/0xfb0 net/bluetooth/l2cap_core.c:8247 hci_connect_cfm include/net/bluetooth/hci_core.h:1964 [inline] hci_conn_failed+0x1c3/0x370 net/bluetooth/hci_conn.c:1283 hci_abort_conn_sync+0x758/0xb50 net/bluetooth/hci_sync.c:5424 abort_conn_sync+0x187/0x390 net/bluetooth/hci_conn.c:2957 hci_cmd_sync_work+0x1a4/0x410 net/bluetooth/hci_sync.c:306 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 The buggy address belongs to the object at ffff88802ca553c0 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 228 bytes inside of freed 240-byte region [ffff88802ca553c0, ffff88802ca554b0) The buggy address belongs to the physical page: page:ffffea0000b29540 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2ca55 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff8880172c2000 ffffea0001f1d1c0 dead000000000002 raw: 0000000000000000 00000000800c000c 00000001ffffffff 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 0x112820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 8931, tgid 8919 (syz-executor.1), ts 243018604428, free_ts 243014049995 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1526 prep_new_page mm/page_alloc.c:1533 [inline] get_page_from_freelist+0xa25/0x3720 mm/page_alloc.c:3304 __alloc_pages+0x22f/0x2440 mm/page_alloc.c:4560 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page mm/slub.c:2190 [inline] allocate_slab mm/slub.c:2354 [inline] new_slab+0xcc/0x3a0 mm/slub.c:2407 ___slab_alloc+0x4af/0x19a0 mm/slub.c:3540 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3625 __slab_alloc_node mm/slub.c:3678 [inline] slab_alloc_node mm/slub.c:3850 [inline] kmem_cache_alloc_node+0x10a/0x340 mm/slub.c:3903 __alloc_skb+0x287/0x330 net/core/skbuff.c:641 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0xe4/0x710 net/core/skbuff.c:6336 sock_alloc_send_pskb+0x7e4/0x970 net/core/sock.c:2787 sock_alloc_send_skb include/net/sock.h:1884 [inline] __ip6_append_data.isra.0+0x24ea/0x4580 net/ipv6/ip6_output.c:1641 ip6_append_data+0x1e6/0x500 net/ipv6/ip6_output.c:1832 icmp6_send+0x17b2/0x2b00 net/ipv6/icmp.c:616 __icmpv6_send include/linux/icmpv6.h:28 [inline] icmpv6_send include/linux/icmpv6.h:49 [inline] ip6_protocol_deliver_rcu+0xff6/0x13e0 net/ipv6/ip6_input.c:460 ip6_input_finish+0x14f/0x2f0 net/ipv6/ip6_input.c:483 NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] ip6_input+0xa1/0xc0 net/ipv6/ip6_input.c:492 page last free pid 5156 tgid 5156 stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1133 [inline] free_unref_page_prepare+0x4d7/0xa40 mm/page_alloc.c:2339 free_unref_page+0x33/0x3c0 mm/page_alloc.c:2479 vfree+0x181/0x7a0 mm/vmalloc.c:2842 delayed_vfree_work+0x56/0x70 mm/vmalloc.c:2763 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Memory state around the buggy address: ffff88802ca55380: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff88802ca55400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88802ca55480: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ^ ffff88802ca55500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802ca55580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ==================================================================