Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp15505pxb; Tue, 12 Jan 2021 18:33:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUzEvmIBOITtwUY8nUm22Eu9JQj+Vq4nhmwrEXkv2YmOpllqB5gWio50wu+DjkGWp1uaxm X-Received: by 2002:a17:906:369a:: with SMTP id a26mr1193699ejc.276.1610505199522; Tue, 12 Jan 2021 18:33:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610505199; cv=none; d=google.com; s=arc-20160816; b=XPYRFls66AQbhg7A4DzRXeRD46G1YqVN5qwjH24bwEVck2p69ZLAEWCDL1gQsMxvYB Znke4N+SkB/tANiWHdpn9wQ55Wvq6DOAUrL1gF/bc1J2Xh8FtEpC4kRmnjQnP3t3hydS YdST4zIs2578neYB3Ya1w2IiS3hf1Kj523si0Eergubj+zwwmDoV8R9E1H4n9YCtzd03 JVMy4N59K48A8JleRjWALgHXzG+JnHDfDB06Ci2/4C7gcb9IdE+L3OjdR0PvV5FgiQKe NKMLh7rNSIonlAtt0BLzj+gg/fi9uJWFyjXFB0OCLgXfDSY6wyE+kQ/FWrgzRnwqze8G NYkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=q1lL6vbku11sPHaSJ92+gFUaKeJGiGGotQlz2F8vwk8=; b=tLKwPxivccc8IQf8rHJhyXhuje4vppaqo4MS1nK9n9OMwi5BkTThwBSMU6ByfSYT6M x3mDS7YF2FynfiibUg+XoMvfJbseHAjiotqiYclt0jJCpsfyvphUUygkDIHveijI20sh Wwb1Z3aFOgRWUOZBi9Tor8cAzk3DvLsQkhSOpuee6YMjQlChi7GGmwVrN7Z4Wr5QM4X0 9ZbKsgO0VwCvGBQ+waomYYeyHCcnkFmqhyvW93FrG2gaxz+RJwFYlA64Fpem0rPrar43 eXqkomPwTbDU3JeGIFqpsw2bzPSQ9IiOMdKktA4/vmpdfa1EURppDflwkpF5uZUkSczp j8Og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si346028edl.517.2021.01.12.18.32.55; Tue, 12 Jan 2021 18:33:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437503AbhALVe2 (ORCPT + 99 others); Tue, 12 Jan 2021 16:34:28 -0500 Received: from www62.your-server.de ([213.133.104.62]:58750 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436901AbhALUWb (ORCPT ); Tue, 12 Jan 2021 15:22:31 -0500 Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1kzQAn-00072e-Gt; Tue, 12 Jan 2021 21:21:49 +0100 Received: from [85.7.101.30] (helo=pc-9.home) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzQAn-0009jQ-8E; Tue, 12 Jan 2021 21:21:49 +0100 Subject: Re: [PATCH bpf 1/2] bpf: support PTR_TO_MEM{,_OR_NULL} register spilling To: Andrii Nakryiko , Gilad Reti Cc: bpf , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Networking , open list References: <20210112091403.10458-1-gilad.reti@gmail.com> From: Daniel Borkmann Message-ID: Date: Tue, 12 Jan 2021 21:21:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.4/26047/Tue Jan 12 13:33:56 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/12/21 8:46 PM, Andrii Nakryiko wrote: > On Tue, Jan 12, 2021 at 1:14 AM Gilad Reti wrote: >> >> Add support for pointer to mem register spilling, to allow the verifier >> to track pointer to valid memory addresses. Such pointers are returned >> for example by a successful call of the bpf_ringbuf_reserve helper. >> >> This patch was suggested as a solution by Yonghong Song. >> >> The patch was partially contibuted by CyberArk Software, Inc. >> >> Fixes: 457f44363a88 ("bpf: Implement BPF ring buffer and verifier >> support for it") > > Surprised no one mentioned this yet. Fixes tag should always be on a > single unwrapped line, however long it is, please fix. Especially for first-time contributors there is usually some luxury that we would have fixed this up on the fly while applying. ;) But given a v2 is going to be sent anyway it's good to point it out for future reference, agree. Thanks, Daniel