Bluetooth: hci1: Opcode 0x0c1a failed: -110 Bluetooth: hci1: Opcode 0x0406 failed: -4 Bluetooth: hci1: Opcode 0x0406 failed: -4 ================================================================== BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 Read of size 8 at addr ffff888011a4b578 by task syz.1.1729/11473 CPU: 1 UID: 0 PID: 11473 Comm: syz.1.1729 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x189/0x250 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:655 l2cap_conn_del+0x323/0x5b0 net/bluetooth/l2cap_core.c:1787 l2cap_connect_cfm+0x122/0x10c0 net/bluetooth/l2cap_core.c:7259 hci_connect_cfm include/net/bluetooth/hci_core.h:2121 [inline] hci_conn_failed+0x1ce/0x340 net/bluetooth/hci_conn.c:1331 hci_abort_conn_sync+0x658/0xe30 net/bluetooth/hci_sync.c:5710 hci_disconnect_all_sync+0x1b5/0x350 net/bluetooth/hci_sync.c:5733 hci_suspend_sync+0x3fc/0xc90 net/bluetooth/hci_sync.c:6209 hci_suspend_dev+0x28d/0x530 net/bluetooth/hci_core.c:2849 hci_suspend_notifier+0xf2/0x2f0 net/bluetooth/hci_core.c:2420 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85 notifier_call_chain_robust kernel/notifier.c:120 [inline] blocking_notifier_call_chain_robust+0x85/0x100 kernel/notifier.c:345 pm_notifier_call_chain_robust+0x2c/0x60 kernel/power/main.c:115 snapshot_open+0x19c/0x280 kernel/power/user.c:77 misc_open+0x2d5/0x350 drivers/char/misc.c:163 chrdev_open+0x4cc/0x5e0 fs/char_dev.c:414 do_dentry_open+0x953/0x13f0 fs/open.c:965 vfs_open+0x3b/0x340 fs/open.c:1097 do_open fs/namei.c:3975 [inline] path_openat+0x2ee5/0x3830 fs/namei.c:4134 do_filp_open+0x1fa/0x410 fs/namei.c:4161 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1463 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff9d818efc9 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:00007ff9d63f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ff9d83e5fa0 RCX: 00007ff9d818efc9 RDX: 0000000000008100 RSI: 0000200000000400 RDI: ffffffffffffff9c RBP: 00007ff9d8211f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff9d83e6038 R14: 00007ff9d83e5fa0 R15: 00007ffe4f82b368 Allocated by task 6019: 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:5650 [inline] __kmalloc_noprof+0x41d/0x800 mm/slub.c:5662 kmalloc_noprof include/linux/slab.h:961 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x213/0x4b0 security/tomoyo/file.c:822 tomoyo_path_unlink+0xa2/0xe0 security/tomoyo/tomoyo.c:162 security_path_unlink+0x167/0x360 security/security.c:1457 do_unlinkat+0x2c1/0x560 fs/namei.c:4734 __do_sys_unlink fs/namei.c:4783 [inline] __se_sys_unlink fs/namei.c:4781 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4781 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6019: 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:2547 [inline] slab_free mm/slub.c:6638 [inline] kfree+0x19a/0x6d0 mm/slub.c:6845 tomoyo_realpath_from_path+0x598/0x5d0 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x213/0x4b0 security/tomoyo/file.c:822 tomoyo_path_unlink+0xa2/0xe0 security/tomoyo/tomoyo.c:162 security_path_unlink+0x167/0x360 security/security.c:1457 do_unlinkat+0x2c1/0x560 fs/namei.c:4734 __do_sys_unlink fs/namei.c:4783 [inline] __se_sys_unlink fs/namei.c:4781 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4781 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888011a4a000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1400 bytes to the right of allocated 4096-byte region [ffff888011a4a000, ffff888011a4b000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11a48 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 ffff88801b027140 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b027140 dead000000000122 0000000000000000 head: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0000469201 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 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6019, tgid 6019 (udevd), ts 578765106186, free_ts 578713785130 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3920 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5214 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2479 alloc_slab_page mm/slub.c:3063 [inline] allocate_slab+0x96/0x350 mm/slub.c:3236 new_slab mm/slub.c:3290 [inline] ___slab_alloc+0xe94/0x18a0 mm/slub.c:4659 __slab_alloc+0x65/0x100 mm/slub.c:4778 __slab_alloc_node mm/slub.c:4854 [inline] slab_alloc_node mm/slub.c:5276 [inline] __do_kmalloc_node mm/slub.c:5649 [inline] __kmalloc_noprof+0x47d/0x800 mm/slub.c:5662 kmalloc_noprof include/linux/slab.h:961 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x213/0x4b0 security/tomoyo/file.c:822 security_inode_getattr+0x12f/0x330 security/security.c:1869 vfs_getattr fs/stat.c:259 [inline] vfs_fstat fs/stat.c:281 [inline] __do_sys_newfstat fs/stat.c:555 [inline] __se_sys_newfstat fs/stat.c:550 [inline] __x64_sys_newfstat+0xfc/0x200 fs/stat.c:550 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 11299 tgid 11298 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc8/0xd30 mm/page_alloc.c:2948 discard_slab mm/slub.c:3334 [inline] __put_partials+0x146/0x170 mm/slub.c:3880 put_cpu_partial+0x1f2/0x2e0 mm/slub.c:3955 __slab_free+0x2b9/0x390 mm/slub.c:5929 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 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:4978 [inline] slab_alloc_node mm/slub.c:5288 [inline] __do_kmalloc_node mm/slub.c:5649 [inline] __kmalloc_node_track_caller_noprof+0x522/0x810 mm/slub.c:5759 kvasprintf+0xdc/0x190 lib/kasprintf.c:25 kasprintf+0xd4/0x120 lib/kasprintf.c:59 make_driver_name drivers/base/module.c:16 [inline] module_remove_driver+0x154/0x1b0 drivers/base/module.c:108 bus_remove_driver+0x22e/0x320 drivers/base/bus.c:748 usb_gadget_register_driver_owner+0x223/0x270 drivers/usb/gadget/udc/core.c:1741 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:595 [inline] raw_ioctl+0x1465/0x4050 drivers/usb/gadget/legacy/raw_gadget.c:1304 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 Memory state around the buggy address: ffff888011a4b400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888011a4b480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888011a4b500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888011a4b580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888011a4b600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================