================================================================== BUG: KASAN: slab-use-after-free in hci_cmd_timeout+0x1d9/0x1e0 net/bluetooth/hci_core.c:1522 Read of size 2 at addr ffff888028682538 by task kworker/u9:5/5122 CPU: 0 PID: 5122 Comm: kworker/u9:5 Not tainted 6.10.0-rc4-syzkaller-00301-g5f583a3162ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: hci0 hci_cmd_timeout Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 hci_cmd_timeout+0x1d9/0x1e0 net/bluetooth/hci_core.c:1522 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 5122: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:312 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:338 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3941 [inline] slab_alloc_node mm/slub.c:4001 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4008 skb_clone+0x20c/0x390 net/core/skbuff.c:2052 hci_send_cmd_sync net/bluetooth/hci_core.c:4123 [inline] hci_cmd_work+0x29e/0x670 net/bluetooth/hci_core.c:4143 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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 ffff888028682500 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 56 bytes inside of freed 240-byte region [ffff888028682500, ffff8880286825f0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x28682 memcg:ffff88802e523e01 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000000 ffff888018adb780 ffffea0001ed7100 dead000000000002 raw: 0000000000000000 00000000000c000c 00000001ffffefff ffff88802e523e01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 17268937372, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1468 prep_new_page mm/page_alloc.c:1476 [inline] get_page_from_freelist+0x2e43/0x2f00 mm/page_alloc.c:3420 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4678 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2265 allocate_slab+0x5a/0x2f0 mm/slub.c:2428 new_slab mm/slub.c:2481 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3667 __kmem_cache_alloc_bulk mm/slub.c:4723 [inline] kmem_cache_alloc_bulk_noprof+0x202/0x770 mm/slub.c:4795 napi_skb_cache_get+0x166/0x230 net/core/skbuff.c:346 __napi_build_skb net/core/skbuff.c:525 [inline] napi_alloc_skb+0x1fd/0x530 net/core/skbuff.c:843 napi_get_frags+0x6a/0x150 net/core/gro.c:680 napi_get_frags_check+0x39/0x90 net/core/skbuff.c:300 netif_napi_add_weight+0x898/0xc30 net/core/dev.c:6619 netif_napi_add include/linux/netdevice.h:2638 [inline] gro_cells_init+0x192/0x200 net/core/gro_cells.c:85 ip6_tnl_dev_init_gen net/ipv6/ip6_tunnel.c:1881 [inline] ip6_tnl_dev_init+0xc8/0x7c0 net/ipv6/ip6_tunnel.c:1915 register_netdevice+0x604/0x19e0 net/core/dev.c:10302 register_netdev+0x3b/0x50 net/core/dev.c:10512 page_owner free stack trace missing Memory state around the buggy address: ffff888028682400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888028682480: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc >ffff888028682500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888028682580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888028682600: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ==================================================================