================================================================== BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid+0xf1/0xf3 lib/list_debug.c:51 Read of size 8 at addr ffff888076713568 by task kworker/u4:3/29 CPU: 0 PID: 29 Comm: kworker/u4:3 Not tainted 5.2.0-rc2+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x113/0x167 lib/dump_stack.c:113 print_address_description.cold.5+0x9/0x1ff mm/kasan/report.c:188 __kasan_report.cold.6+0x1b/0x39 mm/kasan/report.c:317 kasan_report+0x12/0x20 mm/kasan/common.c:614 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 __list_del_entry_valid+0xf1/0xf3 lib/list_debug.c:51 __list_del_entry include/linux/list.h:117 [inline] list_del include/linux/list.h:125 [inline] unregister_shrinker+0x92/0x2a0 mm/vmscan.c:443 nfsd_reply_cache_shutdown+0x20/0x300 fs/nfsd/nfscache.c:194 nfsd_exit_net+0xee/0x330 fs/nfsd/nfsctl.c:1272 ops_exit_list.isra.5+0x8b/0x120 net/core/net_namespace.c:154 cleanup_net+0x363/0x850 net/core/net_namespace.c:553 process_one_work+0x830/0x16a0 kernel/workqueue.c:2269 worker_thread+0x85/0xb60 kernel/workqueue.c:2415 kthread+0x324/0x3e0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 10418: save_stack+0x21/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc.constprop.8+0xc7/0xd0 mm/kasan/common.c:489 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:503 __do_kmalloc mm/slab.c:3660 [inline] __kmalloc+0x15d/0x760 mm/slab.c:3669 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:742 [inline] __register_sysctl_table+0xaa/0xdf0 fs/proc/proc_sysctl.c:1323 register_net_sysctl+0x10/0x20 net/sysctl_net.c:121 neigh_sysctl_register+0x2f9/0x7e0 net/core/neighbour.c:3692 addrconf_sysctl_register+0x94/0x190 net/ipv6/addrconf.c:6876 ipv6_add_dev+0x822/0xec0 net/ipv6/addrconf.c:447 addrconf_notify+0x4de/0x1f50 net/ipv6/addrconf.c:3492 notifier_call_chain+0x8a/0x160 kernel/notifier.c:95 __raw_notifier_call_chain kernel/notifier.c:396 [inline] raw_notifier_call_chain+0x11/0x20 kernel/notifier.c:403 call_netdevice_notifiers_info+0x28/0x60 net/core/dev.c:1753 call_netdevice_notifiers_extack net/core/dev.c:1765 [inline] call_netdevice_notifiers net/core/dev.c:1779 [inline] register_netdevice+0x8c5/0x1100 net/core/dev.c:8772 __ip_tunnel_create+0x2fb/0x4a0 net/ipv4/ip_tunnel.c:282 ip_tunnel_init_net+0x29e/0x7f0 net/ipv4/ip_tunnel.c:1073 ipgre_tap_init_net+0x1d/0x20 net/ipv4/ip_gre.c:1577 ops_init+0x95/0x370 net/core/net_namespace.c:130 setup_net+0x2c1/0x660 net/core/net_namespace.c:316 copy_net_ns+0x199/0x2a0 net/core/net_namespace.c:439 create_new_namespaces+0x487/0x760 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0x87/0x1a0 kernel/nsproxy.c:206 ksys_unshare+0x31b/0x710 kernel/fork.c:2692 __do_sys_unshare kernel/fork.c:2760 [inline] __se_sys_unshare kernel/fork.c:2758 [inline] __x64_sys_unshare+0x2c/0x40 kernel/fork.c:2758 do_syscall_64+0xd0/0x530 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9748: save_stack+0x21/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:451 kasan_slab_free+0xe/0x10 mm/kasan/common.c:459 __cache_free mm/slab.c:3432 [inline] kfree+0xcf/0x220 mm/slab.c:3755 ops_init+0xa3/0x370 net/core/net_namespace.c:135 setup_net+0x2c1/0x660 net/core/net_namespace.c:316 copy_net_ns+0x199/0x2a0 net/core/net_namespace.c:439 create_new_namespaces+0x487/0x760 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0x87/0x1a0 kernel/nsproxy.c:206 ksys_unshare+0x31b/0x710 kernel/fork.c:2692 __do_sys_unshare kernel/fork.c:2760 [inline] __se_sys_unshare kernel/fork.c:2758 [inline] __x64_sys_unshare+0x2c/0x40 kernel/fork.c:2758 do_syscall_64+0xd0/0x530 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888076713200 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 872 bytes inside of 1024-byte region [ffff888076713200, ffff888076713600) The buggy address belongs to the page: page:ffffea0001d9c480 refcount:1 mapcount:0 mapping:ffff8880aa400ac0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00028f1a88 ffffea0001e13008 ffff8880aa400ac0 raw: 0000000000000000 ffff888076712000 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888076713400: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff888076713480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888076713500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888076713580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888076713600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================