================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xf1/0x100 lib/list_debug.c:51 Read of size 8 at addr ffff8881b7ae74b0 by task kworker/0:4/11021 CPU: 0 PID: 11021 Comm: kworker/0:4 Not tainted 4.20.0-rc6-next-20181210+ #164 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_power_efficient neigh_periodic_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.4+0x9/0x1ff mm/kasan/report.c:187 kasan_report.cold.5+0x1b/0x39 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __list_del_entry_valid+0xf1/0x100 lib/list_debug.c:51 __list_del_entry include/linux/list.h:117 [inline] list_del_init include/linux/list.h:159 [inline] neigh_mark_dead+0x13b/0x410 net/core/neighbour.c:125 neigh_periodic_work+0x89a/0xc30 net/core/neighbour.c:905 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 23300: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] kasan_kmalloc+0xcb/0xd0 mm/kasan/common.c:482 __do_kmalloc_node mm/slab.c:3671 [inline] __kmalloc_node_track_caller+0x4d/0x70 mm/slab.c:3685 __kmalloc_reserve.isra.38+0x41/0xe0 net/core/skbuff.c:137 __alloc_skb+0x155/0x770 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:1008 [inline] nlmsg_new include/net/netlink.h:654 [inline] rtmsg_fib+0x1f8/0x4d0 net/ipv4/fib_semantics.c:413 fib_table_insert+0x7b5/0x17d0 net/ipv4/fib_trie.c:1287 fib_magic.isra.22+0x667/0x880 net/ipv4/fib_frontend.c:992 fib_add_ifaddr+0x17b/0x500 net/ipv4/fib_frontend.c:1014 fib_inetaddr_event+0x172/0x222 net/ipv4/fib_frontend.c:1326 notifier_call_chain+0x17e/0x380 kernel/notifier.c:93 __blocking_notifier_call_chain kernel/notifier.c:317 [inline] blocking_notifier_call_chain+0x147/0x190 kernel/notifier.c:328 __inet_insert_ifa+0x865/0xbb0 net/ipv4/devinet.c:529 inet_rtm_newaddr+0xe61/0x13a0 net/ipv4/devinet.c:921 rtnetlink_rcv_msg+0x46a/0xc20 net/core/rtnetlink.c:4969 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4987 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x5a5/0x760 net/netlink/af_netlink.c:1336 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:632 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2117 __sys_sendmsg+0x11d/0x280 net/socket.c:2155 __do_sys_sendmsg net/socket.c:2164 [inline] __se_sys_sendmsg net/socket.c:2162 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2162 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 23300: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:444 kasan_slab_free+0xe/0x10 mm/kasan/common.c:452 __cache_free mm/slab.c:3485 [inline] kfree+0xcf/0x230 mm/slab.c:3804 skb_free_head+0x99/0xc0 net/core/skbuff.c:550 pskb_expand_head+0x3bb/0x10f0 net/core/skbuff.c:1500 netlink_trim+0x2ea/0x380 net/netlink/af_netlink.c:1292 netlink_broadcast_filtered+0xf4/0x1680 net/netlink/af_netlink.c:1489 netlink_broadcast net/netlink/af_netlink.c:1534 [inline] nlmsg_multicast include/net/netlink.h:734 [inline] nlmsg_notify+0xa0/0x1a0 net/netlink/af_netlink.c:2520 rtnl_notify+0xce/0xf0 net/core/rtnetlink.c:742 rtmsg_fib+0x369/0x4d0 net/ipv4/fib_semantics.c:426 fib_table_insert+0x7b5/0x17d0 net/ipv4/fib_trie.c:1287 fib_magic.isra.22+0x667/0x880 net/ipv4/fib_frontend.c:992 fib_add_ifaddr+0x17b/0x500 net/ipv4/fib_frontend.c:1014 fib_inetaddr_event+0x172/0x222 net/ipv4/fib_frontend.c:1326 notifier_call_chain+0x17e/0x380 kernel/notifier.c:93 __blocking_notifier_call_chain kernel/notifier.c:317 [inline] blocking_notifier_call_chain+0x147/0x190 kernel/notifier.c:328 __inet_insert_ifa+0x865/0xbb0 net/ipv4/devinet.c:529 inet_rtm_newaddr+0xe61/0x13a0 net/ipv4/devinet.c:921 rtnetlink_rcv_msg+0x46a/0xc20 net/core/rtnetlink.c:4969 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4987 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x5a5/0x760 net/netlink/af_netlink.c:1336 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:632 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2117 __sys_sendmsg+0x11d/0x280 net/socket.c:2155 __do_sys_sendmsg net/socket.c:2164 [inline] __se_sys_sendmsg net/socket.c:2162 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2162 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8881b7ae7240 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 624 bytes inside of 1024-byte region [ffff8881b7ae7240, ffff8881b7ae7640) The buggy address belongs to the page: page:ffffea0006deb980 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0xffff8881b7ae7b40 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0006cbf008 ffffea00072e4f88 ffff8881da800ac0 raw: ffff8881b7ae7b40 ffff8881b7ae6040 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881b7ae7380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881b7ae7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881b7ae7480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881b7ae7500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881b7ae7580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================