kernel msg: ebtables bug: please report to author: entry offsets not in right order ================================================================== BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid+0xf1/0x100 lib/list_debug.c:51 Read of size 8 at addr ffff8881ba2fb4b0 by task kworker/0:2/2950 CPU: 0 PID: 2950 Comm: kworker/0:2 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 kernel msg: ebtables bug: please report to author: entry offsets not in right order __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 kernel msg: ebtables bug: please report to author: entries_size too small kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 11627: 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 mm/slab.c:3709 [inline] __kmalloc+0x15d/0x760 mm/slab.c:3718 kmalloc include/linux/slab.h:550 [inline] kzalloc include/linux/slab.h:740 [inline] __register_sysctl_table+0xc7/0xfb0 fs/proc/proc_sysctl.c:1307 register_net_sysctl+0x29/0x30 net/sysctl_net.c:120 neigh_sysctl_register+0x399/0x730 net/core/neighbour.c:3430 addrconf_sysctl_register+0xb9/0x1e0 net/ipv6/addrconf.c:6790 ipv6_add_dev+0xa86/0x13a0 net/ipv6/addrconf.c:446 addrconf_notify+0x9fb/0x2770 net/ipv6/addrconf.c:3452 notifier_call_chain+0x17e/0x380 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1737 call_netdevice_notifiers_extack net/core/dev.c:1749 [inline] call_netdevice_notifiers net/core/dev.c:1763 [inline] register_netdevice+0xb7d/0x11a0 net/core/dev.c:8620 tun_set_iff drivers/net/tun.c:2831 [inline] __tun_chr_ioctl+0x28f4/0x4830 drivers/net/tun.c:3065 tun_chr_ioctl+0x2a/0x40 drivers/net/tun.c:3337 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 16: 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 __rcu_reclaim kernel/rcu/rcu.h:233 [inline] rcu_do_batch kernel/rcu/tree.c:2452 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2773 [inline] rcu_process_callbacks+0xd91/0x15f0 kernel/rcu/tree.c:2754 __do_softirq+0x308/0xb7e kernel/softirq.c:292 The buggy address belongs to the object at ffff8881ba2fb240 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 624 bytes inside of 1024-byte region [ffff8881ba2fb240, ffff8881ba2fb640) The buggy address belongs to the page: page:ffffea0006e8be80 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0xffff8881ba2fa040 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0006f9fa88 ffffea0006eb8188 ffff8881da800ac0 raw: ffff8881ba2fa040 ffff8881ba2fa040 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881ba2fb380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881ba2fb400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881ba2fb480: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881ba2fb500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881ba2fb580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================