================================================================== BUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline] BUG: KASAN: slab-out-of-bounds in hci_sock_setsockopt+0x7f1/0x820 net/bluetooth/hci_sock.c:1925 Read of size 4 at addr ffff888111eaa5cb by task syz.0.213/1119 CPU: 0 PID: 1119 Comm: syz.0.213 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report_generic.c:319 copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] copy_from_sockptr include/linux/sockptr.h:55 [inline] hci_sock_setsockopt+0x7f1/0x820 net/bluetooth/hci_sock.c:1925 __sys_setsockopt+0x2e9/0x470 net/socket.c:2202 __do_sys_setsockopt net/socket.c:2213 [inline] __se_sys_setsockopt net/socket.c:2210 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2210 x64_sys_call+0x982/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb1d19e3f79 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb1d041e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fb1d1c5e090 RCX: 00007fb1d19e3f79 RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fb1d1a7a7e0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000200000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb1d1c5e128 R14: 00007fb1d1c5e090 R15: 00007fffa29f2cf8 Allocated by task 1119: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13d/0x2c0 mm/slub.c:4436 kmalloc include/linux/slab.h:624 [inline] __cgroup_bpf_run_filter_setsockopt+0x8e7/0xaa0 kernel/bpf/cgroup.c:1511 __sys_setsockopt+0x40e/0x470 net/socket.c:2185 __do_sys_setsockopt net/socket.c:2213 [inline] __se_sys_setsockopt net/socket.c:2210 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2210 x64_sys_call+0x982/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888111eaa5c8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 3 bytes inside of 8-byte region [ffff888111eaa5c8, ffff888111eaa5d0) The buggy address belongs to the page: page:ffffea000447aa80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111eaa flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea00045befc0 0000001100000011 ffff888100042300 raw: 0000000000000000 0000000080660066 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 712, ts 40122355820, free_ts 40042454610 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5808 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] __kmalloc+0x16a/0x2c0 mm/slub.c:4432 __kmalloc_node include/linux/slab.h:487 [inline] kmalloc_node include/linux/slab.h:642 [inline] __vmalloc_area_node mm/vmalloc.c:2967 [inline] __vmalloc_node_range+0x375/0xaf0 mm/vmalloc.c:3147 __vmalloc_node mm/vmalloc.c:3212 [inline] __vmalloc+0x79/0x90 mm/vmalloc.c:3226 __vmalloc_array mm/util.c:720 [inline] __vcalloc+0x36/0x50 mm/util.c:743 memslot_rmap_alloc+0x6e/0x2c0 arch/x86/kvm/x86.c:11811 kvm_alloc_memslot_metadata arch/x86/kvm/x86.c:11879 [inline] kvm_arch_prepare_memory_region+0xb8/0xb70 arch/x86/kvm/x86.c:11952 kvm_set_memslot+0x552/0x1790 virt/kvm/kvm_main.c:1683 __kvm_set_memory_region+0xb93/0xdf0 virt/kvm/kvm_main.c:1843 kvm_set_memory_region virt/kvm/kvm_main.c:1864 [inline] kvm_vm_ioctl_set_memory_region+0x74/0xa0 virt/kvm/kvm_main.c:1876 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page_list+0x13a/0x9d0 mm/page_alloc.c:3671 release_pages+0x1006/0x1060 mm/swap.c:1015 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:320 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x17e/0x310 mm/mmu_gather.c:338 exit_mmap+0x43b/0x8b0 mm/mmap.c:3248 __mmput+0x93/0x320 kernel/fork.c:1180 mmput+0x50/0x150 kernel/fork.c:1203 exit_mm kernel/exit.c:554 [inline] do_exit+0x9f2/0x27e0 kernel/exit.c:876 do_group_exit+0x141/0x310 kernel/exit.c:1003 get_signal+0x66a/0x1480 kernel/signal.c:2907 arch_do_signal_or_restart+0xdf/0x11c0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffff888111eaa480: fc fb fc fc fc fc fb fc fc fc fc fa fc fc fc fc ffff888111eaa500: 04 fc fc fc fc 00 fc fc fc fc fb fc fc fc fc fa >ffff888111eaa580: fc fc fc fc fb fc fc fc fc 01 fc fc fc fc fb fc ^ ffff888111eaa600: fc fc fc fb fc fc fc fc fb fc fc fc fc fb fc fc ffff888111eaa680: fc fc fb fc fc fc fc fb fc fc fc fc fb fc fc fc ==================================================================