audit: type=1400 audit(1599773511.414:8): avc: denied { execmem } for pid=6365 comm="syz-executor811" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 IPVS: ftp: loaded support on port[0] = 21 netlink: 24 bytes leftover after parsing attributes in process `syz-executor811'. ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:183 [inline] BUG: KASAN: use-after-free in radix_tree_load_root lib/radix-tree.c:602 [inline] BUG: KASAN: use-after-free in radix_tree_next_chunk+0x89f/0x8c0 lib/radix-tree.c:1736 Read of size 8 at addr ffff88809c1ccd48 by task syz-executor811/6368 CPU: 0 PID: 6368 Comm: syz-executor811 Not tainted 4.14.197-syzkaller #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+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 __read_once_size include/linux/compiler.h:183 [inline] radix_tree_load_root lib/radix-tree.c:602 [inline] radix_tree_next_chunk+0x89f/0x8c0 lib/radix-tree.c:1736 radix_tree_iter_lookup include/linux/radix-tree.h:440 [inline] ida_remove+0x9b/0x210 lib/idr.c:377 ida_simple_remove+0x31/0x4c lib/idr.c:503 ipvlan_link_new+0x50c/0xfa0 drivers/net/ipvlan/ipvlan_main.c:648 rtnl_newlink+0xf88/0x1830 net/core/rtnetlink.c:2728 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4316 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x440ec9 RSP: 002b:00007fffd7bebda8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000004a2690 RCX: 0000000000440ec9 RDX: 0000000000000000 RSI: 0000000020000480 RDI: 0000000000000004 RBP: 00007fffd7bebdb0 R08: 0000000120080522 R09: 0000000120080522 R10: 0000000120080522 R11: 0000000000000246 R12: 00000000004a2690 R13: 00000000004023e0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 6368: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc_trace+0x131/0x3d0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] ipvlan_port_create drivers/net/ipvlan/ipvlan_main.c:140 [inline] ipvlan_link_new+0x64f/0xfa0 drivers/net/ipvlan/ipvlan_main.c:577 rtnl_newlink+0xf88/0x1830 net/core/rtnetlink.c:2728 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4316 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 6368: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 ipvlan_uninit+0xb6/0xe0 drivers/net/ipvlan/ipvlan_main.c:244 register_netdevice+0x7fd/0xe40 net/core/dev.c:7718 ipvlan_link_new+0x499/0xfa0 drivers/net/ipvlan/ipvlan_main.c:626 rtnl_newlink+0xf88/0x1830 net/core/rtnetlink.c:2728 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4316 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff88809c1cc480 which belongs to the cache kmalloc-4096 of size 4096 The buggy address is located 2248 bytes inside of 4096-byte region [ffff88809c1cc480, ffff88809c1cd480) The buggy address belongs to the page: page:ffffea0002707300 count:1 mapcount:0 mapping:ffff88809c1cc480 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff88809c1cc480 0000000000000000 0000000100000001 raw: ffffea000219a520 ffff88812fe51a48 ffff88812fe50dc0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809c1ccc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809c1ccc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88809c1ccd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88809c1ccd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809c1cce00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================