================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock_bh include/linux/spinlock_api_smp.h:182 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:205 Read of size 1 at addr ffff8880697495a0 by task syz.7.927/11301 CPU: 0 UID: 0 PID: 11301 Comm: syz.7.927 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:574 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0x84/0x350 kernel/locking/lockdep.c:5860 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:182 [inline] _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:205 spin_lock_bh include/linux/spinlock.h:353 [inline] bt_accept_unlink+0x63/0x2c0 net/bluetooth/af_bluetooth.c:263 l2cap_sock_teardown_cb+0x17e/0x490 net/bluetooth/l2cap_sock.c:1711 l2cap_chan_del+0x98/0x600 net/bluetooth/l2cap_core.c:687 l2cap_conn_del+0x308/0x550 net/bluetooth/l2cap_core.c:1826 hci_disconn_cfm include/net/bluetooth/hci_core.h:2181 [inline] hci_conn_hash_flush+0x105/0x260 net/bluetooth/hci_conn.c:2745 hci_dev_close_sync+0x7fc/0x10a0 net/bluetooth/hci_sync.c:5587 hci_dev_do_close net/bluetooth/hci_core.c:502 [inline] hci_unregister_dev+0x232/0x5b0 net/bluetooth/hci_core.c:2681 vhci_release+0x16d/0x1c0 drivers/bluetooth/hci_vhci.c:700 __fput+0x418/0xa50 fs/file_table.c:512 task_work_run+0x1d9/0x270 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x73a/0x2360 kernel/exit.c:1008 do_group_exit+0x22d/0x2f0 kernel/exit.c:1151 get_signal+0x121b/0x12c0 kernel/signal.c:3046 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x10e/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9a7df9e0d9 Code: Unable to access opcode bytes at 0x7f9a7df9e0af. RSP: 002b:00007f9a7edb4028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: 0000000000010106 RBX: 00007f9a7e226090 RCX: 00007f9a7df9e0d9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000005 RBP: 00007f9a7e035024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9a7e226128 R14: 00007f9a7e226090 R15: 00007ffd1827d0e8 Allocated by task 11032: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5337 [inline] __kmalloc_noprof+0x379/0x720 mm/slub.c:5362 _kmalloc_noprof include/linux/slab.h:992 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] tls_get_rec net/tls/tls_sw.c:366 [inline] tls_sw_sendmsg_locked net/tls/tls_sw.c:811 [inline] tls_sw_sendmsg+0x59b/0x2b50 net/tls/tls_sw.c:1022 sock_sendmsg_nosec+0x90/0x180 net/socket.c:800 __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2281 __do_sys_sendto net/socket.c:2288 [inline] __se_sys_sendto net/socket.c:2284 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2284 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 11032: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2678 [inline] slab_free mm/slub.c:6372 [inline] kfree+0x1c5/0x640 mm/slub.c:6687 tls_tx_records+0x493/0x5e0 net/tls/tls_sw.c:454 tls_push_record net/tls/tls_sw.c:698 [inline] bpf_exec_tx_verdict+0x179b/0x2680 net/tls/tls_sw.c:706 tls_sw_sendmsg_locked net/tls/tls_sw.c:887 [inline] tls_sw_sendmsg+0x1dd0/0x2b50 net/tls/tls_sw.c:1022 sock_sendmsg_nosec+0x90/0x180 net/socket.c:800 __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2281 __do_sys_sendto net/socket.c:2288 [inline] __se_sys_sendto net/socket.c:2284 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2284 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888069749000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1440 bytes inside of freed 2048-byte region [ffff888069749000, ffff888069749800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806974f000 pfn:0x69748 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801b042000 ffffea00008ab610 ffffea0000480610 raw: ffff88806974f000 0000000800080001 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88801b042000 ffffea00008ab610 ffffea0000480610 head: ffff88806974f000 0000000800080001 00000000f5000000 0000000000000000 head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5620, tgid 5620 (kworker/0:3), ts 91610991634 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3267 [inline] allocate_slab+0x7c/0x5e0 mm/slub.c:3382 new_slab mm/slub.c:3428 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7305 refill_sheaf mm/slub.c:2805 [inline] __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677 alloc_from_pcs mm/slub.c:4775 [inline] slab_alloc_node mm/slub.c:4907 [inline] __kmalloc_cache_noprof+0x3ab/0x660 mm/slub.c:5480 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] keypair_create drivers/net/wireguard/noise.c:100 [inline] wg_noise_handshake_begin_session+0xd4/0xbf0 drivers/net/wireguard/noise.c:827 wg_receive_handshake_packet drivers/net/wireguard/receive.c:176 [inline] wg_packet_handshake_receive_worker+0x700/0x10c0 drivers/net/wireguard/receive.c:213 process_one_work kernel/workqueue.c:3387 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3551 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 5595 tgid 5595 ts 80032513735 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_unref_folios+0xdc2/0x14e0 mm/page_alloc.c:3022 folios_put_refs+0x9e9/0xb30 mm/folio.c:1055 free_pages_and_swap_cache+0x2ba/0x490 mm/swap_state.c:591 __tlb_batch_free_encoded_pages mm/mmu_gather.c:138 [inline] tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:417 [inline] tlb_flush_mmu+0x6d3/0xa30 mm/mmu_gather.c:424 tlb_finish_mmu+0xf4/0x220 mm/mmu_gather.c:549 unmap_region+0x2a5/0x330 mm/vma.c:506 vms_clear_ptes mm/vma.c:1348 [inline] vms_complete_munmap_vmas+0x427/0xbe0 mm/vma.c:1390 do_vmi_align_munmap+0x3b7/0x4b0 mm/vma.c:1649 do_vmi_munmap+0x252/0x2d0 mm/vma.c:1697 __vm_munmap+0x241/0x3e0 mm/vma.c:3346 __do_sys_munmap mm/mmap.c:1094 [inline] __se_sys_munmap mm/mmap.c:1091 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:1091 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888069749480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888069749500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888069749580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888069749600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888069749680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================