RDX: 0000000020000580 RSI: 0000000040082406 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014 R13: 0000000000000291 R14: 00000000006f6e38 R15: 0000000000000001 ================================================================== BUG: KASAN: stack-out-of-bounds in __read_once_size include/linux/compiler.h:188 [inline] BUG: KASAN: stack-out-of-bounds in free_prog kernel/trace/trace_events_filter.c:988 [inline] BUG: KASAN: stack-out-of-bounds in __free_filter.part.6+0x1ac/0x1d0 kernel/trace/trace_events_filter.c:1012 Read of size 8 at addr ffff88018c92f698 by task syz-executor2/11242 CPU: 0 PID: 11242 Comm: syz-executor2 Not tainted 4.16.0+ #19 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+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0xac/0x2f5 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __read_once_size include/linux/compiler.h:188 [inline] free_prog kernel/trace/trace_events_filter.c:988 [inline] __free_filter.part.6+0x1ac/0x1d0 kernel/trace/trace_events_filter.c:1012 __free_filter kernel/trace/trace_events_filter.c:1009 [inline] ftrace_profile_set_filter+0x159/0x2b0 kernel/trace/trace_events_filter.c:2053 perf_event_set_filter+0x248/0x1230 kernel/events/core.c:9064 _perf_ioctl+0x84c/0x1650 kernel/events/core.c:5056 perf_ioctl+0x59/0x80 kernel/events/core.c:5107 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1cf/0x1650 fs/ioctl.c:684 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 SYSC_ioctl fs/ioctl.c:708 [inline] SyS_ioctl+0x24/0x30 fs/ioctl.c:706 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x455259 RSP: 002b:00007f4fe49eec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4fe49ef6d4 RCX: 0000000000455259 RDX: 0000000020000580 RSI: 0000000040082406 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014 R13: 0000000000000291 R14: 00000000006f6e38 R15: 0000000000000001 The buggy address belongs to the page: page:ffffea0006324bc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 ffffea0006320101 ffff8801cc280d10 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88018c92f580: 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 f3 ffff88018c92f600: f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 >ffff88018c92f680: f1 00 f2 f2 f2 f3 f3 f3 f3 00 00 00 00 00 00 00 ^ ffff88018c92f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 ffff88018c92f780: f1 f1 00 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 f2 ==================================================================