audit: type=1400 audit(1567013882.001:7): avc: denied { map } for pid=1777 comm="syz-executor948" path="/root/syz-executor948494683" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 audit: type=1400 audit(1567013882.001:8): avc: denied { prog_load } for pid=1777 comm="syz-executor948" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 audit: type=1400 audit(1567013882.051:9): avc: denied { prog_run } for pid=1777 comm="syz-executor948" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 ================================================================== BUG: KASAN: use-after-free in ____bpf_clone_redirect net/core/filter.c:1768 [inline] BUG: KASAN: use-after-free in bpf_clone_redirect+0x2a7/0x2b0 net/core/filter.c:1759 Read of size 8 at addr ffff8881d394a450 by task syz-executor948/1777 CPU: 0 PID: 1777 Comm: syz-executor948 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 ____bpf_clone_redirect net/core/filter.c:1768 [inline] bpf_clone_redirect+0x2a7/0x2b0 net/core/filter.c:1759 ___bpf_prog_run+0x2478/0x5510 kernel/bpf/core.c:1086 Allocated by task 1773: 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:495 slab_post_alloc_hook mm/slab.h:439 [inline] slab_alloc_node mm/slub.c:2758 [inline] slab_alloc mm/slub.c:2766 [inline] kmem_cache_alloc+0xd2/0x2e0 mm/slub.c:2771 kmem_cache_alloc_node include/linux/slab.h:361 [inline] __alloc_skb+0xea/0x5c0 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:980 [inline] sock_wmalloc+0xb6/0x110 net/core/sock.c:1925 unix_stream_connect+0x1e4/0x11c0 net/unix/af_unix.c:1244 SYSC_connect net/socket.c:1655 [inline] SyS_connect+0x19b/0x280 net/socket.c:1636 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 0xffffffffffffffff Freed by task 1773: 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:457 slab_free_hook mm/slub.c:1403 [inline] slab_free_freelist_hook mm/slub.c:1430 [inline] slab_free mm/slub.c:3005 [inline] kmem_cache_free+0xcb/0x340 mm/slub.c:3021 kfree_skbmem net/core/skbuff.c:586 [inline] kfree_skbmem+0xa0/0x110 net/core/skbuff.c:580 __kfree_skb net/core/skbuff.c:646 [inline] kfree_skb+0xeb/0x370 net/core/skbuff.c:663 unix_stream_connect+0x1043/0x11c0 net/unix/af_unix.c:1386 SYSC_connect net/socket.c:1655 [inline] SyS_connect+0x19b/0x280 net/socket.c:1636 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 0xffffffffffffffff The buggy address belongs to the object at ffff8881d394a3c0 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 144 bytes inside of 224-byte region [ffff8881d394a3c0, ffff8881d394a4a0) The buggy address belongs to the page: page:ffffea00074e5280 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000200(slab) raw: 4000000000000200 0000000000000000 0000000000000000 00000001800c000c raw: ffffea0007558800 0000000500000005 ffff8881dab70200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d394a300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff8881d394a380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8881d394a400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d394a480: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d394a500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================