Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp902670pxb; Wed, 13 Jan 2021 20:05:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8JsOptoQz8GrGKP9S0+rbiUMJNkISgbY9BXsOGzyStlrQ1j6OG5+X7Us6+/ksUeHuFkG/ X-Received: by 2002:a17:906:ce2b:: with SMTP id sd11mr3942398ejb.334.1610597109546; Wed, 13 Jan 2021 20:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610597109; cv=none; d=google.com; s=arc-20160816; b=mo+4rgORDzx3vJ7EV7qC9n3X7JVBnBy8SvxmvP/hPMTqfqoGSvo3GZF2M5gcrrjIzQ ZTzQr2ZrNSK2GFcHqSe6YzxckMOA/+YOsY48thtQ/wHBLlcCQbKWNU8dOsT2Oz7jqMbo WodBlVvfRPM2DXGrgvLYV5jQOpE68J3vfdvCbzgzyMG8JCEFwxOGc25/OirgcL66yBkp NyJPjZ4BweBFcofnIgWNvzu1IFrgouq2xnuDHjElfiNH18VUdYQ6ffM+KHiPBNyAYrLl YvAvWXTDPZqs7w3xwyI2d5pztxAdChGFd9m7WsEwQSe7MViSFhMbkZa3erCkTCa53+dg Dukg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9zbOPoIi8TSOltOZ0lasCpcW26irh6vW30Vtu7ZvdrI=; b=cG/EFjhTxbyWGWiFx+tOEVcEgqdIB0WLulRWqs2m8LvWRdaT0qIR1On78zJPFvqnN1 6HM3ChoVnmyaSd2vIYwyi0HgeUYhqrMgtwPuLJKIE3hEgKfBbrlUP+Of9A0kRTu7JsY1 nj/03BDYANzkycJz9XCs9tJPyPX84V9tfVz29MzkGCKSJDQJlyDt+vOnmHXzgN0yqjHK qKFgBigN1uva+y6wdfyNCJs2tsgVoIqtMzwDP9fM2r5k8ptgDlxk2nitp8nymMAswQ59 FTf+AVS4+Iu9CqP4VYRWGhXJapacGCgzkJjD6abWFlv9N8zbgp9qRT0yH0LAUNSPjx3I P5LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G9sHLPMO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si1241722eji.619.2021.01.13.20.04.46; Wed, 13 Jan 2021 20:05:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G9sHLPMO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726013AbhANEDO (ORCPT + 99 others); Wed, 13 Jan 2021 23:03:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbhANEDN (ORCPT ); Wed, 13 Jan 2021 23:03:13 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BBFC061575; Wed, 13 Jan 2021 20:02:33 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id o19so6136256lfo.1; Wed, 13 Jan 2021 20:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9zbOPoIi8TSOltOZ0lasCpcW26irh6vW30Vtu7ZvdrI=; b=G9sHLPMOqgptKAZS7dyKhCRBvPXAF/JLHLzc5XarOLYayClSxWpLZP/mp068zjZle2 aJcguZB3t6UBWMYVPEYMNyp1HuNMOcXIDpUSuTUWmVo4L6RZiayW+HEMgtMkuQloc+wE el14WFuLdU8mz6IJwsjhjIGkQ5DhPnEdUdQf0Jde00BtZQkjscj1PFJPUG8tSAvJ9T6N nuiivM3yqX/7Md0SPfFxmk/A/n9ZKMvYw1kMCvdvM5yJsBBWMieL22QlpHT1SX7LJ0HL XcKEXc4diPe5SIc3wn46C8a0NUUGlEBsKABT8FyrsQhPGDhaIa+BOxyKuP6DA6rdI5Tu j4dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9zbOPoIi8TSOltOZ0lasCpcW26irh6vW30Vtu7ZvdrI=; b=LhcVK+QsFFM5pbvvZ8XajRrdWSUwCgGgIW4cnMdWdKNm/ivVJvDuC/TfVBYcx/5FVg Fxa+H8SP2BNpakaRvCxcUOo1FdsBmTL0WHi7UQgMxDmyhVEw0PRIFlWbe2TeSeIQ6r+t NNCy2FYiuENIp/f6ZHIQ5Jg1ThgHXhORqUmzhxAq+cNHQ2/QdxBPFrJq/FfbS9lMawmz 0oYWJgpffyMm5903SYk0OTE0ZTXyJmRWO9oc6hX5l7GAL2gWNpij80IbmYBzS+wie32J 5I212uKjSK7bIdXdFqNkVgGHqmTVC1+W2lFGiDj/yu/eimCYfq3fFYMA1kh5Scf6K4wD xtmA== X-Gm-Message-State: AOAM533r6mo2XiR62WwIxrHo89gpZyA1kHzpVJLyq3aKZMt1UjVxyCT7 Lhjf9aB1Z2GNn8q8kDR/lO3+7rulIIDGnPcFMQw= X-Received: by 2002:ac2:43c1:: with SMTP id u1mr2488353lfl.38.1610596951899; Wed, 13 Jan 2021 20:02:31 -0800 (PST) MIME-Version: 1.0 References: <20210113053810.13518-1-gilad.reti@gmail.com> In-Reply-To: From: Alexei Starovoitov Date: Wed, 13 Jan 2021 20:02:20 -0800 Message-ID: Subject: Re: [PATCH bpf v2 1/2] bpf: support PTR_TO_MEM{,_OR_NULL} register spilling To: KP Singh Cc: Gilad Reti , bpf , Yonghong Song , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , Shuah Khan , Networking , open list , "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 2:29 PM KP Singh wrote: > > On Wed, Jan 13, 2021 at 6:38 AM Gilad Reti wrote: > > > > Add support for pointer to mem register spilling, to allow the verifier > > to track pointers to valid memory addresses. Such pointers are returned > > for example by a successful call of the bpf_ringbuf_reserve helper. > > > > The patch was partially contributed by CyberArk Software, Inc. > > > > Fixes: 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it") > > Suggested-by: Yonghong Song > > Signed-off-by: Gilad Reti > > Acked-by: KP Singh It's a border line feature vs fix. Since the patch is trivial and it addresses a real problem I've applied to the bpf tree. Thanks!