From: Sergei Shtylyov Subject: Re: [PATCH net-next 2/3] bpf: change helper bpf_probe_read arg2 type to ARG_CONST_SIZE_OR_ZERO Date: Sun, 12 Nov 2017 14:20:06 +0300 Message-ID: References: <20171112000036.3597189-1-yhs@fb.com> <20171112000036.3597189-3-yhs@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kernel-team@fb.com To: Yonghong Song , ast@fb.com, daniel@iogearbox.net, netdev@vger.kernel.org Return-path: Received: from mail-lf0-f66.google.com ([209.85.215.66]:54663 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbdKLLUH (ORCPT ); Sun, 12 Nov 2017 06:20:07 -0500 Received: by mail-lf0-f66.google.com with SMTP id a2so15394330lfh.11 for ; Sun, 12 Nov 2017 03:20:07 -0800 (PST) In-Reply-To: <20171112000036.3597189-3-yhs@fb.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Hello! On 11/12/2017 3:00 AM, Yonghong Song wrote: > The helper bpf_probe_read arg2 type is changed > from ARG_CONST_SIZE to ARG_CONST_SIZE_OR_ZERO to permit > size-0 buffer. Together with newer ARG_CONST_SIZE_OR_ZERO > semantics which allows non-NULL buffer with size 0, > this allows simpler bpf programs with verifier acceptance. > The prvious commit which changes ARG_CONST_SIZE_OR_ZERO semantics Previous. > has details on examples. > > Signed-off-by: Yonghong Song > Acked-by: Alexei Starovoitov [...] MBR, Sergei