SELinux: failed to load policy ================================================================== BUG: KASAN: slab-out-of-bounds in erspan_build_header+0x392/0x3b0 net/ipv4/ip_gre.c:706 Read of size 2 at addr ffff88806a1430cb by task syz-executor.3/15848 CPU: 1 PID: 15848 Comm: syz-executor.3 Not tainted 4.14.113 #3 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/0x19c 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+0xaf/0x2b5 mm/kasan/report.c:393 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:440 erspan_build_header+0x392/0x3b0 net/ipv4/ip_gre.c:706 erspan_xmit net/ipv4/ip_gre.c:748 [inline] erspan_xmit+0x3ec/0x11c0 net/ipv4/ip_gre.c:725 __netdev_start_xmit include/linux/netdevice.h:4033 [inline] netdev_start_xmit include/linux/netdevice.h:4042 [inline] packet_direct_xmit+0x438/0x640 net/packet/af_packet.c:269 packet_snd net/packet/af_packet.c:2969 [inline] packet_sendmsg+0x31e1/0x5990 net/packet/af_packet.c:2994 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd0/0x110 net/socket.c:656 ___sys_sendmsg+0x70c/0x850 net/socket.c:2062 __sys_sendmsg+0xb9/0x140 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2103 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x458c29 RSP: 002b:00007f2d41277c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2d412786d4 R13: 00000000004c64a3 R14: 00000000004dadd8 R15: 00000000ffffffff Allocated by task 7168: 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 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15d/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] __register_sysctl_table+0xc7/0xe50 fs/proc/proc_sysctl.c:1300 register_net_sysctl+0x29/0x30 net/sysctl_net.c:120 __addrconf_sysctl_register+0x209/0x3e0 net/ipv6/addrconf.c:6404 addrconf_sysctl_register net/ipv6/addrconf.c:6451 [inline] addrconf_sysctl_register+0xf9/0x1a0 net/ipv6/addrconf.c:6440 ipv6_add_dev net/ipv6/addrconf.c:460 [inline] ipv6_add_dev+0x8e2/0xfb0 net/ipv6/addrconf.c:375 addrconf_notify+0x614/0x1b40 net/ipv6/addrconf.c:3365 notifier_call_chain+0x116/0x1b0 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x56/0x70 net/core/dev.c:1671 call_netdevice_notifiers net/core/dev.c:1687 [inline] register_netdevice+0x9d0/0xca0 net/core/dev.c:7694 veth_newlink+0x403/0x900 drivers/net/veth.c:416 rtnl_newlink+0xed2/0x1710 net/core/rtnetlink.c:2698 rtnetlink_rcv_msg+0x3ed/0xb70 net/core/rtnetlink.c:4285 netlink_rcv_skb+0x152/0x3c0 net/netlink/af_netlink.c:2432 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4297 netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline] netlink_unicast+0x466/0x780 net/netlink/af_netlink.c:1312 netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd0/0x110 net/socket.c:656 SYSC_sendto+0x206/0x310 net/socket.c:1763 SyS_sendto+0x40/0x50 net/socket.c:1731 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88806a142a00 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 1739 bytes inside of 2048-byte region [ffff88806a142a00, ffff88806a143200) The buggy address belongs to the page: page:ffffea0001a85080 count:1 mapcount:0 mapping:ffff88806a142180 index:0xffff88806a142180 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff88806a142180 ffff88806a142180 0000000100000002 raw: ffffea0002203d20 ffffea000247b5a0 ffff8880aa800c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806a142f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806a143000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806a143080: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806a143100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806a143180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================