fscrypt (loop7, inode 12): Error -61 getting encryption context fscrypt (loop7, inode 12): Error -61 getting encryption context ================================================================== BUG: KASAN: slab-out-of-bounds in sco_conn_free net/bluetooth/sco.c:87 [inline] BUG: KASAN: slab-out-of-bounds in kref_put include/linux/kref.h:65 [inline] BUG: KASAN: slab-out-of-bounds in sco_conn_put+0x471/0x4c0 net/bluetooth/sco.c:107 Write of size 8 at addr ffff888057cea5a0 by task syz-executor/8486 CPU: 1 UID: 0 PID: 8486 Comm: syz-executor Not tainted 6.14.0-rc2-syzkaller-00281-g496659003dac #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 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:378 [inline] print_report+0xc3/0x620 mm/kasan/report.c:489 kasan_report+0xd9/0x110 mm/kasan/report.c:602 sco_conn_free net/bluetooth/sco.c:87 [inline] kref_put include/linux/kref.h:65 [inline] sco_conn_put+0x471/0x4c0 net/bluetooth/sco.c:107 sco_conn_del+0x26f/0x2e0 net/bluetooth/sco.c:263 hci_disconn_cfm include/net/bluetooth/hci_core.h:2069 [inline] hci_conn_hash_flush+0x44d/0x790 net/bluetooth/hci_conn.c:2698 hci_dev_close_sync+0x603/0x11a0 net/bluetooth/hci_sync.c:5197 hci_dev_do_close+0x2e/0x90 net/bluetooth/hci_core.c:482 hci_unregister_dev+0x213/0x620 net/bluetooth/hci_core.c:2677 vhci_release+0x79/0xf0 drivers/bluetooth/hci_vhci.c:664 __fput+0x402/0xb70 fs/file_table.c:464 task_work_run+0x151/0x250 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xad8/0x2d70 kernel/exit.c:938 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087 __do_sys_exit_group kernel/exit.c:1098 [inline] __se_sys_exit_group kernel/exit.c:1096 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1096 x64_sys_call+0x151f/0x1720 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5373d8cde9 Code: Unable to access opcode bytes at 0x7f5373d8cdbf. RSP: 002b:00007ffd0836a198 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f5373e0e110 RCX: 00007f5373d8cde9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000027 R08: 00007ffd08367f36 R09: 00007ffd0836b450 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd0836b450 R13: 00007f5373e0e08c R14: 000055557cbd74a8 R15: 00007ffd0836d610 Allocated by task 17356: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] __rfcomm_dev_add net/bluetooth/rfcomm/tty.c:224 [inline] rfcomm_dev_add net/bluetooth/rfcomm/tty.c:325 [inline] __rfcomm_create_dev net/bluetooth/rfcomm/tty.c:424 [inline] rfcomm_create_dev net/bluetooth/rfcomm/tty.c:485 [inline] rfcomm_dev_ioctl+0xa74/0x1ca0 net/bluetooth/rfcomm/tty.c:584 rfcomm_sock_ioctl+0xaa/0xd0 net/bluetooth/rfcomm/sock.c:869 sock_do_ioctl+0x119/0x280 net/socket.c:1199 sock_ioctl+0x228/0x6c0 net/socket.c:1318 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888057cea000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 328 bytes to the right of allocated 1112-byte region [ffff888057cea000, ffff888057cea458) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x57ce8 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 ffff88801b042000 ffffea00008df000 dead000000000002 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b042000 ffffea00008df000 dead000000000002 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea00015f3a01 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1083, tgid 1083 (kworker/u8:5), ts 95346045538, free_ts 32047752539 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4739 alloc_pages_mpol+0x1fc/0x540 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2423 [inline] allocate_slab mm/slub.c:2587 [inline] new_slab+0x23d/0x330 mm/slub.c:2640 ___slab_alloc+0xc5d/0x1720 mm/slub.c:3826 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3916 __slab_alloc_node mm/slub.c:3991 [inline] slab_alloc_node mm/slub.c:4152 [inline] __do_kmalloc_node mm/slub.c:4293 [inline] __kmalloc_node_track_caller_noprof+0x2f1/0x510 mm/slub.c:4313 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:609 __alloc_skb+0x164/0x380 net/core/skbuff.c:678 alloc_skb include/linux/skbuff.h:1331 [inline] nlmsg_new include/net/netlink.h:1018 [inline] inet6_ifinfo_notify+0x77/0x150 net/ipv6/addrconf.c:6158 addrconf_notify+0x81a/0x19c0 net/ipv6/addrconf.c:3756 notifier_call_chain+0xba/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2141 netdev_state_change net/core/dev.c:1506 [inline] netdev_state_change+0x115/0x150 net/core/dev.c:1499 linkwatch_do_dev+0x12b/0x160 net/core/link_watch.c:186 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+0x6db/0xfb0 mm/page_alloc.c:2660 free_contig_range+0x133/0x3f0 mm/page_alloc.c:6678 destroy_args+0x66f/0x830 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x130f/0x2d60 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x12b/0x700 init/main.c:1257 do_initcall_level init/main.c:1319 [inline] do_initcalls init/main.c:1335 [inline] do_basic_setup init/main.c:1354 [inline] kernel_init_freeable+0x5c7/0x900 init/main.c:1568 kernel_init+0x1c/0x2b0 init/main.c:1457 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff888057cea480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888057cea500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888057cea580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888057cea600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888057cea680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================