================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 Read of size 8 at addr ffff88807923e550 by task syz.0.1711/11898 CPU: 1 UID: 0 PID: 11898 Comm: syz.0.1711 Not tainted 6.14.0-rc2-next-20250210-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del_init include/linux/list.h:287 [inline] bt_accept_unlink+0x39/0x250 net/bluetooth/af_bluetooth.c:256 l2cap_sock_teardown_cb+0x176/0x440 net/bluetooth/l2cap_sock.c:1600 l2cap_chan_del+0xb8/0x5d0 net/bluetooth/l2cap_core.c:654 l2cap_conn_del+0x391/0x690 net/bluetooth/l2cap_core.c:1785 hci_disconn_cfm include/net/bluetooth/hci_core.h:2069 [inline] hci_conn_hash_flush+0x1be/0x350 net/bluetooth/hci_conn.c:2698 hci_dev_close_sync+0xa42/0x11c0 net/bluetooth/hci_sync.c:5197 hci_dev_do_close net/bluetooth/hci_core.c:482 [inline] hci_unregister_dev+0x20b/0x510 net/bluetooth/hci_core.c:2677 vhci_release+0x80/0xd0 drivers/bluetooth/hci_vhci.c:664 __fput+0x3e9/0x9f0 fs/file_table.c:464 task_work_run+0x24f/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2a/0x2860 kernel/exit.c:952 do_group_exit+0x207/0x2c0 kernel/exit.c:1101 get_signal+0x16b2/0x1750 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa2049bf6a5 Code: Unable to access opcode bytes at 0x7fa2049bf67b. RSP: 002b:00007fa205715f80 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007fa204ba5fa0 RCX: 00007fa2049bf6a5 RDX: 00007fa205715fc0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fa204a0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fa204ba5fa0 R15: 00007fff6500f848 Allocated by task 1145: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4308 [inline] __kmalloc_node_track_caller_noprof+0x28b/0x4c0 mm/slub.c:4327 kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:534 __alloc_skb+0x1f3/0x440 net/core/skbuff.c:603 alloc_skb include/linux/skbuff.h:1331 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline] nsim_dev_trap_report_work+0x261/0xb50 drivers/net/netdevsim/dev.c:851 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 1145: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2367 [inline] slab_free mm/slub.c:4623 [inline] kfree+0x196/0x430 mm/slub.c:4816 skb_kfree_head net/core/skbuff.c:993 [inline] skb_free_head net/core/skbuff.c:1005 [inline] skb_release_data+0x6a0/0x8a0 net/core/skbuff.c:1032 skb_release_all net/core/skbuff.c:1097 [inline] __kfree_skb net/core/skbuff.c:1111 [inline] consume_skb+0x9f/0xf0 net/core/skbuff.c:1343 nsim_dev_trap_report drivers/net/netdevsim/dev.c:821 [inline] nsim_dev_trap_report_work+0x7cc/0xb50 drivers/net/netdevsim/dev.c:851 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff88807923e000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1360 bytes inside of freed 4096-byte region [ffff88807923e000, ffff88807923f000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x79238 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801ac42140 ffffea0001e01200 dead000000000002 raw: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801ac42140 ffffea0001e01200 dead000000000002 head: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001e48e01 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5936, tgid 5936 (kworker/u8:11), ts 807888841595, free_ts 807652664749 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1629 prep_new_page mm/page_alloc.c:1637 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3555 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4817 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2437 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2601 new_slab mm/slub.c:2654 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3840 __slab_alloc+0x58/0xa0 mm/slub.c:3930 __slab_alloc_node mm/slub.c:4005 [inline] slab_alloc_node mm/slub.c:4166 [inline] __do_kmalloc_node mm/slub.c:4307 [inline] __kmalloc_node_track_caller_noprof+0x2e9/0x4c0 mm/slub.c:4327 kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:534 __alloc_skb+0x1f3/0x440 net/core/skbuff.c:603 alloc_skb include/linux/skbuff.h:1331 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline] nsim_dev_trap_report_work+0x261/0xb50 drivers/net/netdevsim/dev.c:851 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 9443 tgid 9443 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1205 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2738 discard_slab mm/slub.c:2698 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3167 put_cpu_partial+0x17c/0x250 mm/slub.c:3242 __slab_free+0x290/0x380 mm/slub.c:4493 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4129 [inline] slab_alloc_node mm/slub.c:4178 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4185 ptlock_alloc+0x20/0x70 mm/memory.c:7091 ptlock_init include/linux/mm.h:2941 [inline] pagetable_pte_ctor include/linux/mm.h:2989 [inline] __pte_alloc_one_noprof include/asm-generic/pgalloc.h:73 [inline] pte_alloc_one+0x73/0x160 arch/x86/mm/pgtable.c:44 __pte_alloc+0x79/0x220 mm/memory.c:449 copy_pte_range mm/memory.c:1109 [inline] copy_pmd_range+0x729d/0x7a80 mm/memory.c:1264 copy_pud_range mm/memory.c:1301 [inline] copy_p4d_range mm/memory.c:1325 [inline] copy_page_range+0x99f/0xe90 mm/memory.c:1423 dup_mmap kernel/fork.c:748 [inline] dup_mm kernel/fork.c:1711 [inline] copy_mm+0x1269/0x2160 kernel/fork.c:1763 copy_process+0x1845/0x3d50 kernel/fork.c:2414 kernel_clone+0x226/0x8e0 kernel/fork.c:2826 Memory state around the buggy address: ffff88807923e400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807923e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807923e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807923e580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807923e600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================