audit: type=1400 audit(1521111845.007:6): avc: denied { map } for pid=4232 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 audit: type=1400 audit(1521111852.236:7): avc: denied { map } for pid=4247 comm="syzkaller701255" path="/root/syzkaller701255413" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 ================================================================== BUG: KASAN: slab-out-of-bounds in ip6_dst_idev include/net/ip6_fib.h:192 [inline] BUG: KASAN: slab-out-of-bounds in ip6_xmit+0x1f76/0x2260 net/ipv6/ip6_output.c:264 Read of size 8 at addr ffff8801b2441018 by task syzkaller701255/4247 CPU: 1 PID: 4247 Comm: syzkaller701255 Not tainted 4.16.0-rc5+ #354 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+0x194/0x24d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23c/0x360 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 ip6_dst_idev include/net/ip6_fib.h:192 [inline] ip6_xmit+0x1f76/0x2260 net/ipv6/ip6_output.c:264 inet6_csk_xmit+0x2fc/0x580 net/ipv6/inet6_connection_sock.c:139 l2tp_xmit_core net/l2tp/l2tp_core.c:1053 [inline] l2tp_xmit_skb+0x105f/0x1410 net/l2tp/l2tp_core.c:1148 pppol2tp_sendmsg+0x470/0x670 net/l2tp/l2tp_ppp.c:341 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2046 __sys_sendmsg+0xe5/0x210 net/socket.c:2080 SYSC_sendmsg net/socket.c:2091 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2087 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x440299 RSP: 002b:00007fffeab94d38 EFLAGS: 00000217 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fffeab94d50 RCX: 0000000000440299 RDX: 000000000000c045 RSI: 0000000020002540 RDI: 0000000000000004 RBP: 00000000006cb018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000217 R12: 0000000000401ad0 R13: 0000000000401b60 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 4177: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3541 sk_prot_alloc+0x65/0x2a0 net/core/sock.c:1465 sk_alloc+0x105/0x1440 net/core/sock.c:1525 unix_create1+0x16a/0x610 net/unix/af_unix.c:765 unix_create+0x14f/0x1c0 net/unix/af_unix.c:828 __sock_create+0x4d4/0x850 net/socket.c:1285 sock_create net/socket.c:1325 [inline] SYSC_socketpair net/socket.c:1409 [inline] SyS_socketpair+0x1c0/0x6f0 net/socket.c:1366 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 4233: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3485 [inline] kmem_cache_free+0x83/0x2a0 mm/slab.c:3743 sk_prot_free net/core/sock.c:1506 [inline] __sk_destruct+0x628/0x920 net/core/sock.c:1590 sk_destruct+0x47/0x80 net/core/sock.c:1598 __sk_free+0xf1/0x2b0 net/core/sock.c:1609 sk_free+0x2a/0x40 net/core/sock.c:1620 sock_put include/net/sock.h:1658 [inline] unix_release_sock+0x6f1/0xc10 net/unix/af_unix.c:549 unix_release+0x44/0x90 net/unix/af_unix.c:838 sock_release+0x8d/0x1e0 net/socket.c:595 sock_close+0x16/0x20 net/socket.c:1149 __fput+0x327/0x7e0 fs/file_table.c:209 ____fput+0x15/0x20 fs/file_table.c:243 task_work_run+0x199/0x270 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x275/0x2f0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x6ec/0x940 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8801b24411c0 which belongs to the cache UNIX of size 1664 The buggy address is located 424 bytes to the left of 1664-byte region [ffff8801b24411c0, ffff8801b2441840) The buggy address belongs to the page: page:ffffea0006c91040 count:1 mapcount:0 mapping:ffff8801b24411c0 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801b24411c0 0000000000000000 0000000100000002 raw: ffffea0006c90620 ffffea0007304420 ffff8801d52b1cc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801b2440f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801b2440f80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff8801b2441000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801b2441080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801b2441100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================