================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0xf1/0x100 lib/list_debug.c:51 Read of size 8 at addr ffff8881be074ff0 by task kworker/0:4/6144 CPU: 0 PID: 6144 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 11819: 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 kmem_cache_alloc_trace+0x154/0x740 mm/slab.c:3607 kmalloc include/linux/slab.h:545 [inline] kzalloc include/linux/slab.h:740 [inline] sctp_transport_new+0x122/0x8a0 net/sctp/transport.c:111 sctp_assoc_add_peer+0x2de/0x10d0 net/sctp/associola.c:637 sctp_process_param net/sctp/sm_make_chunk.c:2543 [inline] sctp_process_init+0xfba/0x29c0 net/sctp/sm_make_chunk.c:2356 sctp_sf_do_5_1B_init+0x8e3/0xf70 net/sctp/sm_statefuns.c:416 sctp_do_sm+0x1c1/0x7190 net/sctp/sm_sideeffect.c:1188 sctp_endpoint_bh_rcv+0x465/0x960 net/sctp/endpointola.c:456 sctp_inq_push+0x280/0x370 net/sctp/inqueue.c:95 sctp_rcv+0x2e50/0x4170 net/sctp/input.c:271 sctp6_rcv+0x15/0x30 net/sctp/ipv6.c:1064 ip6_protocol_deliver_rcu+0x381/0x1950 net/ipv6/ip6_input.c:394 ip6_input_finish+0x84/0x170 net/ipv6/ip6_input.c:434 NF_HOOK include/linux/netfilter.h:289 [inline] ip6_input+0xe9/0x600 net/ipv6/ip6_input.c:443 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x17a/0x330 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:289 [inline] ipv6_rcv+0x115/0x640 net/ipv6/ip6_input.c:272 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4971 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5081 process_backlog+0x24e/0x7a0 net/core/dev.c:5911 napi_poll net/core/dev.c:6334 [inline] net_rx_action+0x7fa/0x19b0 net/core/dev.c:6400 __do_softirq+0x308/0xb7e kernel/softirq.c:292 Freed by task 9: 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 sctp_transport_destroy_rcu+0x4a/0x60 net/sctp/transport.c:163 __rcu_reclaim kernel/rcu/rcu.h:240 [inline] rcu_do_batch kernel/rcu/tree.c:2452 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2773 [inline] rcu_process_callbacks+0xc5b/0x15f0 kernel/rcu/tree.c:2754 __do_softirq+0x308/0xb7e kernel/softirq.c:292 The buggy address belongs to the object at ffff8881be074d80 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 624 bytes inside of 1024-byte region [ffff8881be074d80, ffff8881be075180) The buggy address belongs to the page: page:ffffea0006f81d00 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0006de9888 ffffea00074bdf08 ffff8881da800ac0 raw: 0000000000000000 ffff8881be074000 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881be074e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881be074f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881be074f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881be075000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881be075080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================