================================================================== 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 ffff88803d2bb780 by task syz.1.64/6203 CPU: 1 UID: 0 PID: 6203 Comm: syz.1.64 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)} Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 __list_del_entry_valid include/linux/list.h:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] bt_accept_unlink+0x39/0x260 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x17e/0x490 net/bluetooth/l2cap_sock.c:1616 l2cap_chan_del+0xb5/0x620 net/bluetooth/l2cap_core.c:656 l2cap_conn_del+0x326/0x5b0 net/bluetooth/l2cap_core.c:1788 hci_disconn_cfm include/net/bluetooth/hci_core.h:2146 [inline] hci_conn_hash_flush+0x10d/0x260 net/bluetooth/hci_conn.c:2637 hci_dev_close_sync+0x821/0x1100 net/bluetooth/hci_sync.c:5326 hci_dev_do_close net/bluetooth/hci_core.c:501 [inline] hci_dev_close+0x108/0x270 net/bluetooth/hci_core.c:526 sock_do_ioctl+0xdc/0x300 net/socket.c:1254 sock_ioctl+0x579/0x790 net/socket.c:1375 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f50cbe0f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f50ca04d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f50cc066090 RCX: 00007f50cbe0f749 RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000007 RBP: 00007f50cbe93f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f50cc066128 R14: 00007f50cc066090 R15: 00007ffd5b6f4c98 Allocated by task 5996: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:397 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:414 kasan_kmalloc include/linux/kasan.h:262 [inline] __do_kmalloc_node mm/slub.c:5657 [inline] __kmalloc_noprof+0x23e/0x7e0 mm/slub.c:5669 kmalloc_noprof include/linux/slab.h:961 [inline] sk_prot_alloc+0xe7/0x220 net/core/sock.c:2245 sk_alloc+0x3a/0x390 net/core/sock.c:2301 bt_sock_alloc+0x3b/0x310 net/bluetooth/af_bluetooth.c:151 l2cap_sock_alloc net/bluetooth/l2cap_sock.c:1897 [inline] l2cap_sock_create+0x147/0x330 net/bluetooth/l2cap_sock.c:1939 bt_sock_create+0x163/0x240 net/bluetooth/af_bluetooth.c:135 __sock_create+0x4b3/0x9d0 net/socket.c:1605 sock_create net/socket.c:1663 [inline] __sys_socket_create net/socket.c:1700 [inline] __sys_socket+0xd7/0x1b0 net/socket.c:1747 __do_sys_socket net/socket.c:1761 [inline] __se_sys_socket net/socket.c:1759 [inline] __x64_sys_socket+0x7a/0x90 net/socket.c:1759 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5993: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kfree+0x1bd/0x900 mm/slub.c:6878 sk_prot_free net/core/sock.c:2284 [inline] __sk_destruct+0x626/0x880 net/core/sock.c:2384 l2cap_sock_release+0x1c1/0x270 net/bluetooth/l2cap_sock.c:1438 __sock_release net/socket.c:662 [inline] sock_close+0xc3/0x240 net/socket.c:1455 __fput+0x45b/0xa80 fs/file_table.c:468 task_work_run+0x1d4/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xef/0x4e0 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2b7/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803d2bb000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1920 bytes inside of freed 2048-byte region [ffff88803d2bb000, ffff88803d2bb800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803d2b8000 pfn:0x3d2b8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x80000000000240(workingset|head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000240 ffff88813ff27000 ffffea0000d85010 ffffea000165a210 raw: ffff88803d2b8000 0000000000080002 00000000f5000000 0000000000000000 head: 0080000000000240 ffff88813ff27000 ffffea0000d85010 ffffea000165a210 head: ffff88803d2b8000 0000000000080002 00000000f5000000 0000000000000000 head: 0080000000000003 ffffea0000f4ae01 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5804, tgid 5804 (syz-executor), ts 106190893344, free_ts 105651497874 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x234/0x290 mm/page_alloc.c:1846 prep_new_page mm/page_alloc.c:1854 [inline] get_page_from_freelist+0x28c0/0x2960 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5210 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab+0x86/0x3b0 mm/slub.c:3248 new_slab mm/slub.c:3302 [inline] ___slab_alloc+0xb10/0x13e0 mm/slub.c:4656 __slab_alloc+0xc6/0x1f0 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kmalloc_node_track_caller_noprof+0x2bf/0x810 mm/slub.c:5764 kmalloc_reserve+0x136/0x290 net/core/skbuff.c:608 pskb_expand_head+0x19d/0x1160 net/core/skbuff.c:2282 netlink_trim+0x1b3/0x2c0 net/netlink/af_netlink.c:1299 netlink_broadcast_filtered+0xd6/0x1000 net/netlink/af_netlink.c:1512 nlmsg_multicast_filtered include/net/netlink.h:1165 [inline] nlmsg_multicast include/net/netlink.h:1184 [inline] nlmsg_notify+0xf0/0x1a0 net/netlink/af_netlink.c:2593 rtnl_notify net/core/rtnetlink.c:958 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:4436 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4452 [inline] rtnetlink_event+0x224/0x270 net/core/rtnetlink.c:7018 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 netdev_lower_state_changed+0xb6/0x120 net/core/dev.c:9507 page last free pid 5801 tgid 5801 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xfe1/0x1170 mm/page_alloc.c:2943 __slab_free+0x2e6/0x330 mm/slub.c:6004 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:349 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __kmalloc_cache_noprof+0x18d/0x6d0 mm/slub.c:5771 kmalloc_noprof include/linux/slab.h:957 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:664 [inline] netdevice_event+0x3a1/0x8a0 drivers/infiniband/core/roce_gid_mgmt.c:823 notifier_call_chain+0x19d/0x3a0 kernel/notifier.c:85 __netdev_upper_dev_link+0x3a4/0x550 net/core/dev.c:8864 netdev_master_upper_dev_link+0xb0/0x100 net/core/dev.c:8934 team_upper_dev_link drivers/net/team/team_core.c:1069 [inline] team_port_add drivers/net/team/team_core.c:1207 [inline] team_add_slave+0xa80/0x2880 drivers/net/team/team_core.c:1927 do_set_master+0x533/0x6d0 net/core/rtnetlink.c:2963 do_setlink+0xcf0/0x41c0 net/core/rtnetlink.c:3165 rtnl_changelink net/core/rtnetlink.c:3776 [inline] __rtnl_newlink net/core/rtnetlink.c:3935 [inline] rtnl_newlink+0x161c/0x1c90 net/core/rtnetlink.c:4072 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6958 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550 Memory state around the buggy address: ffff88803d2bb680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803d2bb700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88803d2bb780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803d2bb800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803d2bb880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================