Bluetooth: hci0: command 0x0419 tx timeout ================================================================== BUG: KASAN: use-after-free in ex_handler_refcount+0x18f/0x1c0 arch/x86/mm/extable.c:49 Write of size 4 at addr ffff888092db2b00 by task syz-executor.0/11983 CPU: 0 PID: 11983 Comm: syz-executor.0 Not tainted 4.19.142-syzkaller #0 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/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_store4_noabort+0x88/0x90 mm/kasan/report.c:437 ex_handler_refcount+0x18f/0x1c0 arch/x86/mm/extable.c:49 fixup_exception+0x8a/0xc3 arch/x86/mm/extable.c:197 do_trap_no_signal arch/x86/kernel/traps.c:209 [inline] do_trap+0x61/0x250 arch/x86/kernel/traps.c:258 do_error_trap+0x15d/0x310 arch/x86/kernel/traps.c:303 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:csum_partial_copy_generic+0x54b/0x7820 Code: 0b 48 8d 4d 08 0f 0b 48 8d 4b 04 0f 0b 48 8d 4d 04 0f 0b 49 8d 4c 24 04 0f 0b 49 8d 0c 24 0f 0b 49 8d 0c 24 0f 0b 48 8d 4d 00 <0f> 0b 49 8d 0c 24 0f 0b 48 8d 88 c0 00 00 00 0f 0b 48 8d 8b 80 00 RSP: 0018:ffff88809310fe08 EFLAGS: 00010297 RAX: ffff8880a7eee0c0 RBX: ffff88809d23f7c0 RCX: ffff888092db2b00 RDX: 0000000000000000 RSI: ffffffff81bcf76a RDI: ffff888092db2b00 RBP: ffff888092db2b00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809d23f83c R13: ffff88809d23f7e8 R14: ffffffff81bcfc80 R15: ffff88821b6a9c20 eventfd_release+0x4f/0x60 fs/eventfd.c:115 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 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:0x45d5b9 Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f5f0dd1ac78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9 RAX: 0000000000000000 RBX: 0000000000002ac0 RCX: 000000000045d5b9 RDX: 0000000000000004 RSI: 0000000000000001 RDI: 0000000000000005 RBP: 000000000118cf88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020fe0ff4 R11: 0000000000000246 R12: 000000000118cf4c R13: 00007ffe116d6b8f R14: 00007f5f0dd1b9c0 R15: 000000000118cf4c Allocated by task 11983: kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] do_eventfd+0x61/0x1a0 fs/eventfd.c:410 __do_sys_eventfd2 fs/eventfd.c:429 [inline] __se_sys_eventfd2 fs/eventfd.c:427 [inline] __x64_sys_eventfd2+0x50/0x70 fs/eventfd.c:427 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 11982: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 eventfd_free_ctx fs/eventfd.c:87 [inline] eventfd_free fs/eventfd.c:94 [inline] kref_put include/linux/kref.h:70 [inline] eventfd_ctx_put+0x31/0x40 fs/eventfd.c:106 eventfd_release+0x4f/0x60 fs/eventfd.c:115 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 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 ffff888092db2b00 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of 96-byte region [ffff888092db2b00, ffff888092db2b60) The buggy address belongs to the page: page:ffffea00024b6c80 count:1 mapcount:0 mapping:ffff88812c39c4c0 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00023992c8 ffffea00024e6f48 ffff88812c39c4c0 raw: 0000000000000000 ffff888092db2000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888092db2a00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff888092db2a80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff888092db2b00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888092db2b80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888092db2c00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================