================================================================== BUG: KASAN: slab-out-of-bounds in inet_ctl_sock_destroy include/net/inet_common.h:56 [inline] BUG: KASAN: slab-out-of-bounds in tcp_sk_exit+0x203/0x230 net/ipv4/tcp_ipv4.c:2591 Read of size 8 at addr ffff8880a5a43e1c by task kworker/u4:0/1408 CPU: 0 PID: 1408 Comm: kworker/u4:0 Not tainted 5.0.0+ #97 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 inet_ctl_sock_destroy include/net/inet_common.h:56 [inline] tcp_sk_exit+0x203/0x230 net/ipv4/tcp_ipv4.c:2591 ops_exit_list.isra.0+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x3fb/0x960 net/core/net_namespace.c:551 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 8259: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:503 slab_post_alloc_hook mm/slab.h:440 [inline] slab_alloc mm/slab.c:3388 [inline] kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3548 sk_prot_alloc+0x67/0x2e0 net/core/sock.c:1601 sk_alloc+0x39/0xf70 net/core/sock.c:1661 inet_create net/ipv4/af_inet.c:321 [inline] inet_create+0x36a/0xe10 net/ipv4/af_inet.c:247 __sock_create+0x3e6/0x750 net/socket.c:1298 sock_create_kern+0x3b/0x50 net/socket.c:1344 inet_ctl_sock_create+0x9d/0x1f0 net/ipv4/af_inet.c:1623 tcp_sk_init+0x11b/0x12d0 net/ipv4/tcp_ipv4.c:2606 ops_init+0xb6/0x410 net/core/net_namespace.c:129 setup_net+0x2c5/0x730 net/core/net_namespace.c:314 copy_net_ns+0x1d9/0x340 net/core/net_namespace.c:437 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:206 ksys_unshare+0x440/0x980 kernel/fork.c:2550 __do_sys_unshare kernel/fork.c:2618 [inline] __se_sys_unshare kernel/fork.c:2616 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2616 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a5a43740 which belongs to the cache RAW(50:syz2) of size 1328 The buggy address is located 428 bytes to the right of 1328-byte region [ffff8880a5a43740, ffff8880a5a43c70) The buggy address belongs to the page: page:ffffea0002969080 count:1 mapcount:0 mapping:ffff888094a88480 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001605b08 ffff8880878a2748 ffff888094a88480 raw: 0000000000000000 ffff8880a5a42040 0000000100000005 ffff88806893ed00 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88806893ed00 Memory state around the buggy address: ffff8880a5a43d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a5a43d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a5a43e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a5a43e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a5a43f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== protocol 88fb is buggy, dev hsr_slave_0 kobject: 'loop1' (000000001d66d10e): kobject_uevent_env protocol 88fb is buggy, dev hsr_slave_1 kobject: 'loop1' (000000001d66d10e): fill_kobj_path: path = '/devices/virtual/block/loop1'