EXT4-fs (loop1): VFS: Can't find ext4 filesystem ================================================================== BUG: KASAN: slab-out-of-bounds in perf_output_read_group kernel/events/core.c:5883 [inline] BUG: KASAN: slab-out-of-bounds in perf_output_read+0xedc/0x1050 kernel/events/core.c:5918 Read of size 8 at addr ffff8881c8e9df08 by task syz-executor.5/3500 CPU: 1 PID: 3500 Comm: syz-executor.5 Not tainted 4.14.155-syzkaller #0 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xe5/0x154 lib/dump_stack.c:58 print_address_description+0x60/0x226 mm/kasan/report.c:187 __kasan_report.cold+0x1a/0x41 mm/kasan/report.c:316 perf_output_read_group kernel/events/core.c:5883 [inline] perf_output_read+0xedc/0x1050 kernel/events/core.c:5918 perf_output_sample+0xcea/0x1700 kernel/events/core.c:5960 __perf_event_output kernel/events/core.c:6270 [inline] perf_event_output_backward+0x10b/0x220 kernel/events/core.c:6291 __perf_event_overflow+0x12d/0x340 kernel/events/core.c:7541 perf_swevent_overflow+0x7a/0xf0 kernel/events/core.c:7617 perf_swevent_event+0x19c/0x270 kernel/events/core.c:7650 do_perf_sw_event kernel/events/core.c:7758 [inline] ___perf_sw_event+0x2a4/0x4a0 kernel/events/core.c:7789 __perf_sw_event+0x42/0x80 kernel/events/core.c:7801 perf_sw_event include/linux/perf_event.h:1051 [inline] __do_page_fault+0x7b8/0xbb0 arch/x86/mm/fault.c:1461 page_fault+0x22/0x50 arch/x86/entry/entry_64.S:1122 RIP: 0010:copy_user_enhanced_fast_string+0x7/0x10 arch/x86/lib/copy_user_64.S:181 RSP: 0018:ffff88819ac2fb90 EFLAGS: 00010206 RAX: 0000000000000000 RBX: 0000000000001000 RCX: 00000000000000c0 RDX: 0000000000001000 RSI: ffff8881ca4c6f40 RDI: 0000000020c17000 RBP: ffff8881ca4c6000 R08: ffffed1039498e00 R09: 0000000000000000 R10: ffffed1039498dff R11: ffff8881ca4c6fff R12: 0000000020c160c0 R13: 00007ffffffff000 R14: 0000000020c170c0 R15: 0000000000001000 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:112 [inline] _copy_to_user+0xaa/0xd0 lib/usercopy.c:28 copy_to_user include/linux/uaccess.h:155 [inline] mem_rw.isra.0+0x1fe/0x2d0 fs/proc/base.c:859 do_loop_readv_writev fs/read_write.c:699 [inline] do_loop_readv_writev fs/read_write.c:686 [inline] do_iter_read+0x3e8/0x5b0 fs/read_write.c:923 vfs_readv+0xe6/0x150 fs/read_write.c:985 do_preadv+0x189/0x230 fs/read_write.c:1069 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a639 RSP: 002b:00007f20fdc13c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045a639 RDX: 0000000000000001 RSI: 0000000020000180 RDI: 0000000000000007 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 000000002000107c R11: 0000000000000246 R12: 00007f20fdc146d4 R13: 00000000004c8050 R14: 00000000004de1b8 R15: 00000000ffffffff Allocated by task 3500: save_stack mm/kasan/common.c:76 [inline] set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc.part.0+0x53/0xc0 mm/kasan/common.c:501 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] alloc_perf_context+0x44/0xf0 kernel/events/core.c:3865 find_get_context.isra.0+0x119/0x550 kernel/events/core.c:3954 SYSC_perf_event_open kernel/events/core.c:10190 [inline] SyS_perf_event_open+0x9c1/0x2560 kernel/events/core.c:10018 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 0xffffffffffffffff Freed by task 2066: save_stack mm/kasan/common.c:76 [inline] set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x164/0x210 mm/kasan/common.c:463 slab_free_hook mm/slub.c:1407 [inline] slab_free_freelist_hook mm/slub.c:1458 [inline] slab_free mm/slub.c:3039 [inline] kfree+0x108/0x3a0 mm/slub.c:3976 load_elf_binary+0x1c09/0x46e0 fs/binfmt_elf.c:1096 search_binary_handler fs/exec.c:1638 [inline] search_binary_handler+0x13f/0x6d0 fs/exec.c:1616 exec_binprm fs/exec.c:1680 [inline] do_execveat_common.isra.0+0xf73/0x1bb0 fs/exec.c:1802 do_execve+0x2c/0x40 fs/exec.c:1847 call_usermodehelper_exec_async+0x28c/0x4c0 kernel/umh.c:100 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:404 0xffffffffffffffff The buggy address belongs to the object at ffff8881c8e9db80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 392 bytes to the right of 512-byte region [ffff8881c8e9db80, ffff8881c8e9dd80) The buggy address belongs to the page: page:ffffea000723a700 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000000000000 00000001000c000c raw: ffffea00071f2e00 0000000300000003 ffff8881da802c00 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c8e9de00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881c8e9de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881c8e9df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881c8e9df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881c8e9e000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================