================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x88/0x140 lib/list_debug.c:62 Read of size 8 at addr ffff8880619d2550 by task syz-executor/5831 CPU: 1 UID: 0 PID: 5831 Comm: syz-executor Not tainted 6.13.0-rc1-next-20241205-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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+0x88/0x140 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:1601 l2cap_chan_del+0xb8/0x5d0 net/bluetooth/l2cap_core.c:658 l2cap_conn_del+0x38a/0x690 net/bluetooth/l2cap_core.c:1785 hci_disconn_cfm include/net/bluetooth/hci_core.h:2050 [inline] hci_conn_hash_flush+0xff/0x240 net/bluetooth/hci_conn.c:2698 hci_dev_close_sync+0xa42/0x11c0 net/bluetooth/hci_sync.c:5212 hci_dev_do_close net/bluetooth/hci_core.c:483 [inline] hci_unregister_dev+0x20b/0x510 net/bluetooth/hci_core.c:2698 vhci_release+0x80/0xd0 drivers/bluetooth/hci_vhci.c:664 __fput+0x23c/0xa50 fs/file_table.c:450 task_work_run+0x24f/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3017 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:0x7f05ae17e840 Code: Unable to access opcode bytes at 0x7f05ae17e816. RSP: 002b:00007ffca575d300 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: 0000000000000006 RBX: 0000000000000000 RCX: 00007f05ae17e840 RDX: 0000000000000000 RSI: 00007ffca575d430 RDI: 00000000ffffff9c RBP: 00007ffca575d430 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00007ffca575e520 R13: 00007f05ae1f3ab4 R14: 000055555d9e84a8 R15: 0000000000000006 Allocated by task 5924: 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:4283 [inline] __kmalloc_node_track_caller_noprof+0x28b/0x4c0 mm/slub.c:4302 kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:609 __alloc_skb+0x1f3/0x440 net/core/skbuff.c:678 skb_copy+0x19d/0x9c0 net/core/skbuff.c:2159 mac80211_hwsim_tx_frame_no_nl+0x106b/0x18d0 drivers/net/wireless/virtual/mac80211_hwsim.c:1866 mac80211_hwsim_tx+0x1837/0x23c0 drivers/net/wireless/virtual/mac80211_hwsim.c:2084 drv_tx net/mac80211/driver-ops.h:37 [inline] wake_tx_push_queue net/mac80211/util.c:298 [inline] ieee80211_handle_wake_tx_queue+0x1ae/0x2d0 net/mac80211/util.c:315 drv_wake_tx_queue net/mac80211/driver-ops.h:1363 [inline] schedule_and_wake_txq net/mac80211/driver-ops.h:1370 [inline] ieee80211_queue_skb+0x1ae9/0x24b0 net/mac80211/tx.c:1664 ieee80211_tx+0x2c4/0x470 net/mac80211/tx.c:1967 __ieee80211_subif_start_xmit+0xe93/0x1600 net/mac80211/tx.c:4339 ieee80211_subif_start_xmit+0xde/0x4d0 net/mac80211/tx.c:4533 __netdev_start_xmit include/linux/netdevice.h:5002 [inline] netdev_start_xmit include/linux/netdevice.h:5011 [inline] xmit_one net/core/dev.c:3590 [inline] dev_hard_start_xmit+0x27a/0x7d0 net/core/dev.c:3606 __dev_queue_xmit+0x1b73/0x3f50 net/core/dev.c:4434 dev_queue_xmit include/linux/netdevice.h:3168 [inline] neigh_hh_output include/net/neighbour.h:523 [inline] neigh_output include/net/neighbour.h:537 [inline] ip6_finish_output2+0x1263/0x1780 net/ipv6/ip6_output.c:141 ip6_finish_output+0x41e/0x840 net/ipv6/ip6_output.c:226 NF_HOOK+0x9e/0x430 include/linux/netfilter.h:314 mld_sendpack+0x843/0xdb0 net/ipv6/mcast.c:1819 mld_dad_work+0x44/0x500 net/ipv6/mcast.c:2260 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 5924: 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:2338 [inline] slab_free mm/slub.c:4598 [inline] kfree+0x196/0x430 mm/slub.c:4746 skb_kfree_head net/core/skbuff.c:1086 [inline] skb_free_head net/core/skbuff.c:1098 [inline] skb_release_data+0x6a0/0x8a0 net/core/skbuff.c:1125 skb_release_all net/core/skbuff.c:1190 [inline] __kfree_skb net/core/skbuff.c:1204 [inline] sk_skb_reason_drop+0x1c9/0x380 net/core/skbuff.c:1242 kfree_skb_reason include/linux/skbuff.h:1263 [inline] kfree_skb include/linux/skbuff.h:1272 [inline] ip6_mc_input+0xa1f/0xc30 net/ipv6/ip6_input.c:587 ip6_sublist_rcv_finish net/ipv6/ip6_input.c:88 [inline] ip6_list_rcv_finish net/ipv6/ip6_input.c:145 [inline] ip6_sublist_rcv+0xdb6/0x1110 net/ipv6/ip6_input.c:319 ipv6_list_rcv+0x42d/0x480 net/ipv6/ip6_input.c:353 __netif_receive_skb_list_ptype net/core/dev.c:5715 [inline] __netif_receive_skb_list_core+0x755/0x980 net/core/dev.c:5762 __netif_receive_skb_list net/core/dev.c:5814 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5905 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5957 ieee80211_rx_napi+0x362/0x3c0 net/mac80211/rx.c:5498 ieee80211_rx include/net/mac80211.h:5166 [inline] ieee80211_handle_queued_frames+0xe7/0x1e0 net/mac80211/main.c:441 tasklet_action_common+0x426/0x620 kernel/softirq.c:811 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 do_softirq+0x11b/0x1e0 kernel/softirq.c:462 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:389 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:919 [inline] __dev_queue_xmit+0x1775/0x3f50 net/core/dev.c:4461 dev_queue_xmit include/linux/netdevice.h:3168 [inline] neigh_hh_output include/net/neighbour.h:523 [inline] neigh_output include/net/neighbour.h:537 [inline] ip6_finish_output2+0x1263/0x1780 net/ipv6/ip6_output.c:141 ip6_finish_output+0x41e/0x840 net/ipv6/ip6_output.c:226 NF_HOOK+0x9e/0x430 include/linux/netfilter.h:314 mld_sendpack+0x843/0xdb0 net/ipv6/mcast.c:1819 mld_dad_work+0x44/0x500 net/ipv6/mcast.c:2260 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/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 ffff8880619d2000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1360 bytes inside of freed 2048-byte region [ffff8880619d2000, ffff8880619d2800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x619d0 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 ffff88801ac42000 ffffea000046b600 dead000000000002 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801ac42000 ffffea000046b600 dead000000000002 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001867401 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5832, tgid 5832 (syz-executor), ts 81090271551, free_ts 25789921889 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1549 prep_new_page mm/page_alloc.c:1557 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3475 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4752 alloc_pages_mpol+0x30e/0x550 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2408 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2574 new_slab mm/slub.c:2627 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3815 __slab_alloc+0x58/0xa0 mm/slub.c:3905 __slab_alloc_node mm/slub.c:3980 [inline] slab_alloc_node mm/slub.c:4141 [inline] __do_kmalloc_node mm/slub.c:4282 [inline] __kmalloc_node_noprof+0x2ee/0x4d0 mm/slub.c:4289 kmalloc_node_noprof include/linux/slab.h:928 [inline] qdisc_alloc+0x9a/0xa80 net/sched/sch_generic.c:952 qdisc_create_dflt+0x62/0x4b0 net/sched/sch_generic.c:1014 attach_one_default_qdisc net/sched/sch_generic.c:1180 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2562 [inline] attach_default_qdiscs net/sched/sch_generic.c:1198 [inline] dev_activate+0x3c0/0x1240 net/sched/sch_generic.c:1257 __dev_open+0x352/0x450 net/core/dev.c:1485 __dev_change_flags+0x1e2/0x6f0 net/core/dev.c:8949 dev_change_flags+0x8b/0x1a0 net/core/dev.c:9021 do_setlink+0xc90/0x4210 net/core/rtnetlink.c:3109 rtnl_changelink net/core/rtnetlink.c:3723 [inline] __rtnl_newlink net/core/rtnetlink.c:3874 [inline] rtnl_newlink+0x1a81/0x20e0 net/core/rtnetlink.c:4009 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2658 free_contig_range+0x14c/0x430 mm/page_alloc.c:6685 destroy_args+0x92/0x910 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x4be/0x550 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x248/0x870 init/main.c:1266 do_initcall_level+0x157/0x210 init/main.c:1328 do_initcalls+0x3f/0x80 init/main.c:1344 kernel_init_freeable+0x435/0x5d0 init/main.c:1577 kernel_init+0x1d/0x2b0 init/main.c:1466 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff8880619d2400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880619d2480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880619d2500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880619d2580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880619d2600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================