From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH bpf] xdp: linearize skb in netif_receive_generic_xdp() Date: Fri, 15 Dec 2017 14:39:02 +0100 Message-ID: References: <20171215011756.573758-1-songliubraving@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kernel-team@fb.com, Alexei Starovoitov To: Song Liu , netdev@vger.kernel.org Return-path: Received: from www62.your-server.de ([213.133.104.62]:51850 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755566AbdLONjE (ORCPT ); Fri, 15 Dec 2017 08:39:04 -0500 In-Reply-To: <20171215011756.573758-1-songliubraving@fb.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 12/15/2017 02:17 AM, Song Liu wrote: > In netif_receive_generic_xdp(), it is necessary to linearize all > nonlinear skb. However, in current implementation, skb with > troom <= 0 are not linearized. This patch fixes this by calling > skb_linearize() for all nonlinear skb. > > Fixes: de8f3a83b0a0 ("bpf: add meta pointer for direct access") > Signed-off-by: Song Liu > Acked-by: Martin KaFai Lau > Cc: Daniel Borkmann > Cc: Alexei Starovoitov Agree, applied to bpf, thanks Song!