batman_adv: batadv0: Interface activated: batadv_slave_1 IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready Bluetooth: hci0 command 0x0409 tx timeout ================================================================== BUG: KASAN: use-after-free in ex_handler_refcount+0x164/0x1a0 arch/x86/mm/extable.c:49 Write of size 4 at addr ffff888096c4ae00 by task syz-executor.0/6848 CPU: 1 PID: 6848 Comm: syz-executor.0 Not tainted 4.14.195-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_store4_noabort+0x68/0x70 mm/kasan/report.c:434 ex_handler_refcount+0x164/0x1a0 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:208 [inline] do_trap+0x61/0x250 arch/x86/kernel/traps.c:257 do_error_trap+0x132/0x2d0 arch/x86/kernel/traps.c:301 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964 RIP: 0010:inat_get_avx_attribute+0x3f2/0x6aaf RSP: 0018:ffff88808d997dd8 EFLAGS: 00010297 RAX: ffff888082d72400 RBX: ffff88809628bcc0 RCX: ffff888096c4ae00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888096c4ae00 RBP: ffff888096c4ae00 R08: ffff888096c4ae28 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809628bce8 R13: ffff88809628bd3c R14: ffffffff819d75d0 R15: ffff88809628bcd0 eventfd_release+0x4f/0x60 fs/eventfd.c:113 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45d5b9 RSP: 002b:00007f49a15c6c78 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: 00007ffe0cbbbd4f R14: 00007f49a15c79c0 R15: 000000000118cf4c Allocated by task 6848: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc_trace+0x131/0x3d0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] eventfd_file_create.part.0+0x43/0x160 fs/eventfd.c:441 eventfd_file_create fs/eventfd.c:458 [inline] SYSC_eventfd2 fs/eventfd.c:468 [inline] SyS_eventfd2+0x55/0xb0 fs/eventfd.c:458 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 6846: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 eventfd_free_ctx fs/eventfd.c:72 [inline] eventfd_free fs/eventfd.c:79 [inline] kref_put include/linux/kref.h:70 [inline] eventfd_ctx_put+0x22/0x30 fs/eventfd.c:104 eventfd_release+0x4f/0x60 fs/eventfd.c:113 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff888096c4ae00 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of 96-byte region [ffff888096c4ae00, ffff888096c4ae60) The buggy address belongs to the page: page:ffffea00025b1280 count:1 mapcount:0 mapping:ffff888096c4a000 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff888096c4a000 0000000000000000 0000000100000020 raw: ffffea0002a95ca0 ffffea00025b0e60 ffff88812fe524c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888096c4ad00: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ffff888096c4ad80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff888096c4ae00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888096c4ae80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888096c4af00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================