================================================================== BUG: KASAN: slab-use-after-free in hci_cmd_timeout+0x216/0x260 net/bluetooth/hci_core.c:1522 Read of size 2 at addr ffff8880207aab78 by task kworker/u33:3/5252 CPU: 1 PID: 5252 Comm: kworker/u33:3 Not tainted 6.10.0-rc4-syzkaller-00148-g50736169ecc8 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Workqueue: hci0 hci_cmd_timeout Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 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 hci_cmd_timeout+0x216/0x260 net/bluetooth/hci_core.c:1522 process_one_work+0x958/0x1ad0 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 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 5252: 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:3941 [inline] slab_alloc_node mm/slub.c:4001 [inline] kmem_cache_alloc_noprof+0x121/0x2f0 mm/slub.c:4008 skb_clone+0x190/0x3f0 net/core/skbuff.c:2052 hci_send_cmd_sync net/bluetooth/hci_core.c:4123 [inline] hci_cmd_work+0x66a/0x710 net/bluetooth/hci_core.c:4143 process_one_work+0x958/0x1ad0 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 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 ffff8880207aab40 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 56 bytes inside of freed 240-byte region [ffff8880207aab40, ffff8880207aac30) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x207aa head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888027bac201 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888016f66780 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000190019 00000001ffffefff ffff888027bac201 head: 00fff00000000040 ffff888016f66780 dead000000000100 dead000000000122 head: 0000000000000000 0000000000190019 00000001ffffefff ffff888027bac201 head: 00fff00000000001 ffffea000081ea81 ffffffffffffffff 0000000000000000 head: 0000000000000002 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 7501018100, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1468 prep_new_page mm/page_alloc.c:1476 [inline] get_page_from_freelist+0x136a/0x2e50 mm/page_alloc.c:3420 __alloc_pages_noprof+0x22b/0x2460 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+0x56/0x110 mm/slub.c:2265 allocate_slab mm/slub.c:2428 [inline] new_slab+0x84/0x260 mm/slub.c:2481 ___slab_alloc+0xdac/0x1870 mm/slub.c:3667 __kmem_cache_alloc_bulk mm/slub.c:4723 [inline] kmem_cache_alloc_bulk_noprof+0x249/0x8e0 mm/slub.c:4795 napi_skb_cache_get+0x154/0x210 net/core/skbuff.c:346 __napi_build_skb net/core/skbuff.c:525 [inline] napi_alloc_skb+0x2b2/0x5d0 net/core/skbuff.c:843 napi_get_frags net/core/gro.c:680 [inline] napi_get_frags+0x61/0x140 net/core/gro.c:675 napi_get_frags_check+0x2e/0xa0 net/core/skbuff.c:300 netif_napi_add_weight+0x538/0xab0 net/core/dev.c:6619 netif_napi_add include/linux/netdevice.h:2638 [inline] e1000_probe+0xd62/0x32a0 drivers/net/ethernet/intel/e1000/e1000_main.c:1013 local_pci_probe+0xde/0x1b0 drivers/pci/pci-driver.c:324 pci_call_probe drivers/pci/pci-driver.c:392 [inline] __pci_device_probe drivers/pci/pci-driver.c:417 [inline] pci_device_probe+0x29d/0x7b0 drivers/pci/pci-driver.c:451 call_driver_probe drivers/base/dd.c:578 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:656 page_owner free stack trace missing Memory state around the buggy address: ffff8880207aaa00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880207aaa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc >ffff8880207aab00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ^ ffff8880207aab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880207aac00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ==================================================================