From: Daniel Borkmann Subject: Re: [PATCH bpf-next] bpf: clear the ip_tunnel_info. Date: Wed, 25 Apr 2018 09:54:49 +0200 Message-ID: References: <1524638819-31626-1-git-send-email-u9012063@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: William Tu , netdev@vger.kernel.org Return-path: Received: from www62.your-server.de ([213.133.104.62]:53660 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbeDYHyv (ORCPT ); Wed, 25 Apr 2018 03:54:51 -0400 In-Reply-To: <1524638819-31626-1-git-send-email-u9012063@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 04/25/2018 08:46 AM, William Tu wrote: > The percpu metadata_dst might carry the stale ip_tunnel_info > and cause incorrect behavior. When mixing tests using ipv4/ipv6 > bpf vxlan and geneve tunnel, the ipv6 tunnel info incorrectly uses > ipv4's src ip addr as its ipv6 src address, because the previous > tunnel info does not clean up. The patch zeros the fields in > ip_tunnel_info. > > Signed-off-by: William Tu > Reported-by: Yifeng Sun Since this is a fix, I've applied this to bpf, thanks William!