audit: type=1400 audit(1567265522.413:64): avc: denied { map } for pid=7260 comm="syz-executor.2" path="socket:[18312]" dev="sockfs" ino=18312 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=tcp_socket permissive=1 ================================================================== BUG: KASAN: use-after-free in _copy_to_user+0x9d/0xd0 lib/usercopy.c:27 Read of size 1079 at addr ffff8881ae3ffff2 by task syz-executor.4/7241 CPU: 1 PID: 7241 Comm: syz-executor.4 Not tainted 4.14.140+ #39 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xca/0x134 lib/dump_stack.c:53 print_address_description+0x60/0x226 mm/kasan/report.c:187 __kasan_report.cold+0x1a/0x41 mm/kasan/report.c:316 _copy_to_user+0x9d/0xd0 lib/usercopy.c:27 copy_to_user include/linux/uaccess.h:155 [inline] bpf_test_finish.isra.0+0xa7/0x160 net/bpf/test_run.c:59 bpf_prog_test_run_skb+0x528/0x8c0 net/bpf/test_run.c:144 bpf_prog_test_run kernel/bpf/syscall.c:1346 [inline] SYSC_bpf kernel/bpf/syscall.c:1618 [inline] SyS_bpf+0xa3b/0x3830 kernel/bpf/syscall.c:1563 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x459879 RSP: 002b:00007ff634520c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459879 RDX: 0000000000000028 RSI: 0000000020000040 RDI: 000000000000000a RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff6345216d4 R13: 00000000004bfbf2 R14: 00000000004d18b8 R15: 00000000ffffffff The buggy address belongs to the page: page:ffffea0006b8ffc0 count:0 mapcount:0 mapping: (null) index:0x1 flags: 0x4000000000000000() raw: 4000000000000000 0000000000000000 0000000000000001 00000000ffffffff raw: dead000000000100 dead000000000200 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881ae3ffe80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881ae3fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881ae3fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881ae400000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881ae400080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================