================================================================== BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3294 Read of size 8 at addr ffff888044268560 by task syz-executor.2/6427 CPU: 1 PID: 6427 Comm: syz-executor.2 Not tainted 4.19.188-syzkaller #0 Enabling of bearer rejected, failed to enable media Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 Enabling of bearer rejected, failed to enable media kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3294 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] lock_sock_nested+0x3b/0x110 net/core/sock.c:2864 l2cap_sock_teardown_cb+0xa0/0x6d0 net/bluetooth/l2cap_sock.c:1340 l2cap_chan_del+0xbc/0xa50 net/bluetooth/l2cap_core.c:599 l2cap_conn_del+0x3a6/0x6e0 net/bluetooth/l2cap_core.c:1729 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:7441 [inline] l2cap_disconn_cfm+0x98/0xd0 net/bluetooth/l2cap_core.c:7434 hci_disconn_cfm include/net/bluetooth/hci_core.h:1261 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1512 hci_dev_do_close+0x659/0xf10 net/bluetooth/hci_core.c:1668 hci_unregister_dev+0x18b/0x910 net/bluetooth/hci_core.c:3273 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:354 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 Code: Bad RIP value. RSP: 002b:00007fdc28045218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000056bf68 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000056bf68 RBP: 000000000056bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf6c R13: 00007ffc1fab1f9f R14: 00007fdc28045300 R15: 0000000000022000 Allocated by task 14550: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 ptlock_alloc+0x1d/0x70 mm/memory.c:4928 ptlock_init include/linux/mm.h:1897 [inline] pgtable_page_ctor include/linux/mm.h:1931 [inline] pte_alloc_one+0x68/0x190 arch/x86/mm/pgtable.c:38 __pte_alloc+0x21/0x340 mm/memory.c:665 copy_pte_range mm/memory.c:1089 [inline] copy_pmd_range mm/memory.c:1165 [inline] copy_pud_range mm/memory.c:1199 [inline] copy_p4d_range mm/memory.c:1221 [inline] copy_page_range+0x1d3d/0x2ff0 mm/memory.c:1283 dup_mmap kernel/fork.c:549 [inline] dup_mm kernel/fork.c:1284 [inline] copy_mm kernel/fork.c:1340 [inline] copy_process.part.0+0x5b22/0x8260 kernel/fork.c:1912 copy_process kernel/fork.c:1709 [inline] _do_fork+0x22f/0xf30 kernel/fork.c:2218 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 25435: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 pte_lock_deinit include/linux/mm.h:1907 [inline] pgtable_page_dtor include/linux/mm.h:1940 [inline] ___pte_free_tlb+0x40/0x190 arch/x86/mm/pgtable.c:64 __pte_free_tlb arch/x86/include/asm/pgalloc.h:73 [inline] free_pte_range mm/memory.c:457 [inline] free_pmd_range mm/memory.c:475 [inline] free_pud_range mm/memory.c:509 [inline] free_p4d_range mm/memory.c:543 [inline] free_pgd_range+0xa94/0x1020 mm/memory.c:623 free_pgtables+0x230/0x2f0 mm/memory.c:655 exit_mmap+0x2c8/0x530 mm/mmap.c:3094 __mmput kernel/fork.c:1015 [inline] mmput+0x14e/0x4a0 kernel/fork.c:1036 exit_mm kernel/exit.c:549 [inline] do_exit+0xaec/0x2be0 kernel/exit.c:857 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888044268528 which belongs to the cache page->ptl of size 56 The buggy address is located 0 bytes to the right of 56-byte region [ffff888044268528, ffff888044268560) The buggy address belongs to the page: page:ffffea0001109a00 count:1 mapcount:0 mapping:ffff88813bfec040 index:0xffff888044268318 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea00025f97c8 ffffea00028c7308 ffff88813bfec040 raw: ffff888044268318 ffff888044268000 000000010000002c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888044268400: fc fc fc fc fb fb fb fb fb fb fb fc fc fc fc fb ffff888044268480: fb fb fb fb fb fb fc fc fc fc 00 00 00 00 00 00 >ffff888044268500: 00 fc fc fc fc fb fb fb fb fb fb fb fc fc fc fc ^ ffff888044268580: 00 00 00 00 00 00 00 fc fc fc fc fb fb fb fb fb ffff888044268600: fb fb fc fc fc fc 00 00 00 00 00 00 00 fc fc fc ==================================================================