kernel msg: ebtables bug: please report to author: Wrong len argument kernel msg: ebtables bug: please report to author: Wrong len argument ================================================================== BUG: KASAN: use-after-free in __list_add_valid+0x8f/0xac lib/list_debug.c:26 Read of size 8 at addr ffff8881b8e83930 by task kworker/1:1/22 CPU: 1 PID: 22 Comm: kworker/1:1 Not tainted 4.20.0-rc4+ #335 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: ipv6_addrconf addrconf_dad_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __list_add_valid+0x8f/0xac lib/list_debug.c:26 __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] neigh_alloc net/core/neighbour.c:395 [inline] ___neigh_create+0x14b7/0x2600 net/core/neighbour.c:553 __neigh_create+0x30/0x40 net/core/neighbour.c:640 ip6_finish_output2+0xa59/0x27a0 net/ipv6/ip6_output.c:117 ip6_finish_output+0x58c/0xc60 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x232/0x9d0 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] ndisc_send_skb+0x1005/0x1560 net/ipv6/ndisc.c:491 ndisc_send_ns+0x3c6/0x8e0 net/ipv6/ndisc.c:633 addrconf_dad_work+0xbf2/0x1310 net/ipv6/addrconf.c:4081 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 7735: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc mm/slab.c:3722 [inline] __kmalloc+0x15b/0x760 mm/slab.c:3731 kmalloc include/linux/slab.h:551 [inline] kzalloc include/linux/slab.h:741 [inline] neigh_alloc net/core/neighbour.c:375 [inline] ___neigh_create+0x13fc/0x2600 net/core/neighbour.c:553 __neigh_create+0x30/0x40 net/core/neighbour.c:640 ip6_finish_output2+0xa59/0x27a0 net/ipv6/ip6_output.c:117 ip6_finish_output+0x58c/0xc60 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x232/0x9d0 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] ip6_xmit+0xf69/0x23e0 net/ipv6/ip6_output.c:275 inet6_csk_xmit+0x378/0x630 net/ipv6/inet6_connection_sock.c:139 __tcp_transmit_skb+0x1bb7/0x3bb0 net/ipv4/tcp_output.c:1160 tcp_transmit_skb net/ipv4/tcp_output.c:1176 [inline] __tcp_retransmit_skb+0x7b6/0x2db0 net/ipv4/tcp_output.c:2921 tcp_retransmit_skb+0x2e/0x240 net/ipv4/tcp_output.c:2940 tcp_retransmit_timer+0xc6e/0x3340 net/ipv4/tcp_timer.c:514 tcp_write_timer_handler+0x2e6/0x950 net/ipv4/tcp_timer.c:600 tcp_write_timer+0x111/0x1d0 net/ipv4/tcp_timer.c:620 call_timer_fn+0x272/0x920 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7e5/0xc70 kernel/time/timer.c:1682 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1695 __do_softirq+0x308/0xb7e kernel/softirq.c:292 Freed by task 7731: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3817 __rcu_reclaim kernel/rcu/rcu.h:233 [inline] rcu_do_batch kernel/rcu/tree.c:2437 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2716 [inline] rcu_process_callbacks+0x1140/0x1ac0 kernel/rcu/tree.c:2697 __do_softirq+0x308/0xb7e kernel/softirq.c:292 The buggy address belongs to the object at ffff8881b8e836c0 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 624 bytes inside of 1024-byte region [ffff8881b8e836c0, ffff8881b8e83ac0) The buggy address belongs to the page: page:ffffea0006e3a080 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0xffff8881b8e82940 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea00072aec88 ffff8881da801838 ffff8881da800ac0 raw: ffff8881b8e82940 ffff8881b8e82040 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881b8e83800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881b8e83880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881b8e83900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881b8e83980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881b8e83a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================