IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid+0xf1/0x100 lib/list_debug.c:51 Read of size 8 at addr ffff8881b9552730 by task kworker/0:1/12 CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 4.20.0-rc6+ #336 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.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_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 15608: 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] __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 register_netdev+0x30/0x50 net/core/dev.c:8706 ip6_tnl_init_net+0x6ab/0xa70 net/ipv6/ip6_tunnel.c:2254 ops_init+0x101/0x560 net/core/net_namespace.c:129 setup_net+0x362/0x8d0 net/core/net_namespace.c:314 copy_net_ns+0x2b1/0x4a0 net/core/net_namespace.c:437 create_new_namespaces+0x6ad/0x900 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc3/0x1f0 kernel/nsproxy.c:206 ksys_unshare+0x79c/0x10b0 kernel/fork.c:2539 __do_sys_unshare kernel/fork.c:2607 [inline] __se_sys_unshare kernel/fork.c:2605 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2605 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 13682: 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 skb_free_head+0x99/0xc0 net/core/skbuff.c:550 skb_release_data+0x70c/0x9a0 net/core/skbuff.c:570 skb_release_all+0x4a/0x60 net/core/skbuff.c:627 __kfree_skb+0x15/0x20 net/core/skbuff.c:641 sk_wmem_free_skb include/net/sock.h:1458 [inline] tcp_write_queue_purge+0x2b6/0x8b0 net/ipv4/tcp.c:2524 tcp_v4_destroy_sock+0x169/0x990 net/ipv4/tcp_ipv4.c:2069 inet_csk_destroy_sock+0x19f/0x440 net/ipv4/inet_connection_sock.c:845 tcp_close+0xb2c/0x11e0 net/ipv4/tcp.c:2480 inet_release+0x104/0x1f0 net/ipv4/af_inet.c:428 __sock_release+0xd7/0x250 net/socket.c:579 sock_close+0x19/0x20 net/socket.c:1141 __fput+0x385/0xa30 fs/file_table.c:278 ____fput+0x15/0x20 fs/file_table.c:309 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 get_signal+0x1558/0x1980 kernel/signal.c:2347 do_signal+0x9c/0x21c0 arch/x86/kernel/signal.c:816 kobject: 'rx-0' (000000004211d9d4): kobject_uevent_env exit_to_usermode_loop+0x2e5/0x380 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8881b95524c0 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 624 bytes inside of 1024-byte region [ffff8881b95524c0, ffff8881b95528c0) The buggy address belongs to the page: page:ffffea0006e55480 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0006f03d88 ffffea00070d4788 ffff8881da800ac0 kobject: 'rx-0' (000000004211d9d4): fill_kobj_path: path = '/devices/virtual/net/ip6_vti0/queues/rx-0' raw: 0000000000000000 ffff8881b9552040 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881b9552600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881b9552680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881b9552700: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881b9552780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881b9552800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================