ptrace attach of "/root/syz-executor.1"[9044] was attempted by "/root/syz-executor.1"[12622] ptrace attach of "/root/syz-executor.1"[9044] was attempted by "/root/syz-executor.1"[12622] ================================================================== BUG: KASAN: slab-out-of-bounds in ____bpf_clone_redirect net/core/filter.c:1768 [inline] BUG: KASAN: slab-out-of-bounds in bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 Read of size 8 at addr ffff88805a3e5f90 by task syz-executor.5/12630 CPU: 0 PID: 12630 Comm: syz-executor.5 Not tainted 4.14.146 #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+0x138/0x197 lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 ____bpf_clone_redirect net/core/filter.c:1768 [inline] bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 bpf_prog_5dcdee4b6441ca99+0x4b6/0x1000 Allocated by task 11963: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kmem_cache_alloc_trace+0x152/0x790 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] perf_event_mmap_event kernel/events/core.c:7010 [inline] perf_event_mmap+0x413/0xbb0 kernel/events/core.c:7204 mprotect_fixup+0x4d7/0x920 mm/mprotect.c:431 do_mprotect_pkey+0x470/0x830 mm/mprotect.c:541 SYSC_mprotect mm/mprotect.c:566 [inline] SyS_mprotect+0x2b/0x40 mm/mprotect.c:563 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 11963: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 perf_event_mmap_event kernel/events/core.c:7090 [inline] perf_event_mmap+0x65d/0xbb0 kernel/events/core.c:7204 mprotect_fixup+0x4d7/0x920 mm/mprotect.c:431 do_mprotect_pkey+0x470/0x830 mm/mprotect.c:541 SYSC_mprotect mm/mprotect.c:566 [inline] SyS_mprotect+0x2b/0x40 mm/mprotect.c:563 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff88805a3e4e80 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 272 bytes to the right of 4096-byte region [ffff88805a3e4e80, ffff88805a3e5e80) The buggy address belongs to the page: page:ffffea000168f900 count:1 mapcount:0 mapping:ffff88805a3e4e80 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff88805a3e4e80 0000000000000000 0000000100000001 raw: ffffea00023bd820 ffffea0001660d20 ffff8880aa800dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88805a3e5e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805a3e5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805a3e5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805a3e6000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff88805a3e6080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================