IPVS: ftp: loaded support on port[0] = 21 ================================================================== BUG: KASAN: slab-out-of-bounds in __write_once_size include/linux/compiler.h:218 [inline] BUG: KASAN: slab-out-of-bounds in __hlist_del include/linux/list.h:702 [inline] BUG: KASAN: slab-out-of-bounds in hlist_del_init include/linux/list.h:717 [inline] BUG: KASAN: slab-out-of-bounds in __xfrm_policy_unlink+0x977/0xa00 net/xfrm/xfrm_policy.c:2213 Write of size 8 at addr ffff88808ffaf5a8 by task syz-executor0/19985 CPU: 0 PID: 19985 Comm: syz-executor0 Not tainted 5.0.0-rc2+ #12 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1db/0x2d0 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_store8_noabort+0x17/0x20 mm/kasan/generic_report.c:140 __write_once_size include/linux/compiler.h:218 [inline] __hlist_del include/linux/list.h:702 [inline] hlist_del_init include/linux/list.h:717 [inline] __xfrm_policy_unlink+0x977/0xa00 net/xfrm/xfrm_policy.c:2213 xfrm_policy_flush+0x331/0x460 net/xfrm/xfrm_policy.c:1789 pfkey_spdflush+0xaf/0x3c0 net/key/af_key.c:2785 pfkey_process+0x6d2/0x810 net/key/af_key.c:2844 pfkey_sendmsg+0x5bb/0xfc0 net/key/af_key.c:3683 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 ___sys_sendmsg+0x7ec/0x910 net/socket.c:2116 __sys_sendmsg+0x112/0x270 net/socket.c:2154 __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 kobject: 'tx-0' (000000004f9b0066): kobject_uevent_env entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458099 Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 kobject: 'tx-0' (000000004f9b0066): fill_kobj_path: path = '/devices/virtual/net/lo/queues/tx-0' RSP: 002b:00007f343be3ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458099 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f343be3f6d4 R13: 00000000004c559c R14: 00000000004d91d8 R15: 00000000ffffffff kobject: 'tunl0' (00000000824c699d): kobject_add_internal: parent: 'net', set: 'devices' Allocated by task 17485: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:496 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:469 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:504 __do_kmalloc mm/slab.c:3711 [inline] __kmalloc+0x15c/0x740 mm/slab.c:3720 kmalloc include/linux/slab.h:550 [inline] kzalloc include/linux/slab.h:740 [inline] neigh_alloc net/core/neighbour.c:402 [inline] ___neigh_create+0x12da/0x2550 net/core/neighbour.c:580 __neigh_create+0x2f/0x40 net/core/neighbour.c:670 kobject: 'tunl0' (00000000824c699d): kobject_uevent_env ip6_finish_output2+0xa24/0x28e0 net/ipv6/ip6_output.c:117 ip6_fragment+0x2a70/0x3780 net/ipv6/ip6_output.c:727 ip6_finish_output+0x6aa/0xc30 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x23c/0xa00 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] ip6_local_out+0xc4/0x1b0 net/ipv6/output_core.c:176 ip6_send_skb+0xbb/0x350 net/ipv6/ip6_output.c:1727 kobject: 'tunl0' (00000000824c699d): fill_kobj_path: path = '/devices/virtual/net/tunl0' udp_v6_send_skb.isra.0+0x834/0x14b0 net/ipv6/udp.c:1169 udp_v6_push_pending_frames+0x2cb/0x3f0 net/ipv6/udp.c:1202 udpv6_sendmsg+0x22f7/0x3570 net/ipv6/udp.c:1493 inet_sendmsg+0x1af/0x740 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 __sys_sendto+0x387/0x5f0 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto net/socket.c:1796 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1796 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe kobject: 'queues' (00000000ae3bdf93): kobject_add_internal: parent: 'tunl0', set: '' Freed by task 9: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:458 kasan_slab_free+0xe/0x10 mm/kasan/common.c:466 __cache_free mm/slab.c:3487 [inline] kfree+0xcf/0x230 mm/slab.c:3806 sctp_transport_destroy_rcu+0x48/0x60 net/sctp/transport.c:163 __rcu_reclaim kernel/rcu/rcu.h:240 [inline] rcu_do_batch kernel/rcu/tree.c:2452 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2773 [inline] rcu_process_callbacks+0xc4a/0x1680 kernel/rcu/tree.c:2754 __do_softirq+0x30b/0xb11 kernel/softirq.c:292 kobject: 'queues' (00000000ae3bdf93): kobject_uevent_env The buggy address belongs to the object at ffff88808ffaf200 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 936 bytes inside of 1024-byte region [ffff88808ffaf200, ffff88808ffaf600) The buggy address belongs to the page: page:ffffea00023feb80 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0xffff88808ffae000 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00022e4a88 ffffea00025f1508 ffff88812c3f0ac0 kobject: 'queues' (00000000ae3bdf93): kobject_uevent_env: filter function caused the event to drop! raw: ffff88808ffae000 ffff88808ffae000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808ffaf480: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff88808ffaf500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808ffaf580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808ffaf600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808ffaf680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 kobject: 'rx-0' (00000000ffb9e3fa): kobject_add_internal: parent: 'queues', set: 'queues' ==================================================================