Bluetooth: hci2: Opcode 0x0c1a failed: -4 Bluetooth: hci2: Opcode 0x0406 failed: -4 Bluetooth: hci2: Opcode 0x0406 failed: -4 ================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid_or_report+0x1d4/0x200 lib/list_debug.c:62 Read of size 8 at addr ffff888143ae6558 by task syz.4.211/6880 CPU: 1 UID: 0 PID: 6880 Comm: syz.4.211 Not tainted 6.15.0-rc6-syzkaller-00346-g5723cc3450bc #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 __list_del_entry_valid_or_report+0x1d4/0x200 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+0x34/0x2e0 net/bluetooth/af_bluetooth.c:256 l2cap_sock_teardown_cb+0x1a3/0x3c0 net/bluetooth/l2cap_sock.c:1613 l2cap_chan_del+0xba/0x8f0 net/bluetooth/l2cap_core.c:655 l2cap_conn_del+0x37a/0x730 net/bluetooth/l2cap_core.c:1786 l2cap_connect_cfm+0x9e1/0xf80 net/bluetooth/l2cap_core.c:7234 hci_connect_cfm include/net/bluetooth/hci_core.h:2053 [inline] hci_conn_failed+0x1ba/0x330 net/bluetooth/hci_conn.c:1269 hci_abort_conn_sync+0x740/0xb40 net/bluetooth/hci_sync.c:5616 hci_disconnect_all_sync.constprop.0+0x104/0x3c0 net/bluetooth/hci_sync.c:5639 hci_suspend_sync+0x770/0xab0 net/bluetooth/hci_sync.c:6116 hci_suspend_dev+0x308/0x500 net/bluetooth/hci_core.c:2812 hci_suspend_notifier+0x28d/0x2f0 net/bluetooth/hci_core.c:2392 notifier_call_chain+0xbc/0x410 kernel/notifier.c:85 notifier_call_chain_robust kernel/notifier.c:120 [inline] blocking_notifier_call_chain_robust kernel/notifier.c:345 [inline] blocking_notifier_call_chain_robust+0xc8/0x160 kernel/notifier.c:333 pm_notifier_call_chain_robust+0x27/0x60 kernel/power/main.c:102 snapshot_open+0x189/0x2b0 kernel/power/user.c:77 misc_open+0x35d/0x420 drivers/char/misc.c:179 chrdev_open+0x234/0x6a0 fs/char_dev.c:414 do_dentry_open+0x744/0x1c10 fs/open.c:956 vfs_open+0x82/0x3f0 fs/open.c:1086 do_open fs/namei.c:3880 [inline] path_openat+0x1e5e/0x2d40 fs/namei.c:4039 do_filp_open+0x20b/0x470 fs/namei.c:4066 do_sys_openat2+0x11b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0cc0b8e969 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:00007f0cc193c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f0cc0db6160 RCX: 00007f0cc0b8e969 RDX: 0000000000007e00 RSI: 00002000000002c0 RDI: ffffffffffffff9c RBP: 00007f0cc0c10ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f0cc0db6160 R15: 00007fff630948d8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x143ae6 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 2145321904, free_ts 110887616670 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1714 prep_new_page mm/page_alloc.c:1722 [inline] get_page_from_freelist+0x135c/0x3920 mm/page_alloc.c:3684 __alloc_frozen_pages_noprof+0x263/0x23a0 mm/page_alloc.c:4966 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab mm/slub.c:2618 [inline] new_slab+0x244/0x340 mm/slub.c:2672 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3858 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3948 __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] __kmalloc_cache_noprof+0xfb/0x3e0 mm/slub.c:4353 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] acpi_ds_create_walk_state+0x78/0x250 drivers/acpi/acpica/dswstate.c:518 acpi_ds_auto_serialize_method+0xeb/0x250 drivers/acpi/acpica/dsmethod.c:81 acpi_ds_init_one_object drivers/acpi/acpica/dsinit.c:110 [inline] acpi_ds_init_one_object+0x35d/0x450 drivers/acpi/acpica/dsinit.c:46 acpi_ns_walk_namespace+0x408/0x5b0 drivers/acpi/acpica/nswalk.c:233 acpi_ds_initialize_objects+0x152/0x1b0 drivers/acpi/acpica/dsinit.c:189 acpi_ns_load_table+0x8a/0x130 drivers/acpi/acpica/nsload.c:106 acpi_tb_load_namespace+0x43d/0x710 drivers/acpi/acpica/tbxfload.c:186 acpi_load_tables+0x2c/0x110 drivers/acpi/acpica/tbxfload.c:59 page last free pid 6216 tgid 6216 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1258 [inline] __free_frozen_pages+0x69d/0xff0 mm/page_alloc.c:2721 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4147 [inline] slab_alloc_node mm/slub.c:4196 [inline] kmem_cache_alloc_noprof+0x1cb/0x3b0 mm/slub.c:4203 getname_flags.part.0+0x4c/0x550 fs/namei.c:146 getname_flags+0x93/0xf0 include/linux/audit.h:322 getname include/linux/fs.h:2852 [inline] __do_sys_symlinkat fs/namei.c:4765 [inline] __se_sys_symlinkat fs/namei.c:4762 [inline] __x64_sys_symlinkat+0x79/0xc0 fs/namei.c:4762 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888143ae6400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888143ae6480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888143ae6500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888143ae6580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888143ae6600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================