Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp845297pxb; Wed, 13 Jan 2021 18:08:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoNMHw6ns/IOIUVkbjFRkj/K2Jdk9l7cDckrSIdJ6LDUiZYk7Y51mYIPDVGdX/GollqsNl X-Received: by 2002:a17:906:a84a:: with SMTP id dx10mr3687768ejb.13.1610590115621; Wed, 13 Jan 2021 18:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610590115; cv=none; d=google.com; s=arc-20160816; b=mvxW1c84cE1lFZgWuaYaTWWDqdoTtVwJy9xZv2ECrJPkHQHmtqDWAaTk0ycmMaZMYQ EPVXX0QxB5U2+hS/1hcrxd6DuxSBSRcgMIr/HryYGTZShbeVv19kEluPEzxJm+L2fO+z IzCYUmkLDWFtB14QS4IRiikHPh4kApN81YjN2UwY9kRZkdq/BWFXNRxk2sSyNHcwlsYF lHJtOsXFSjC5UIt1RMYVJepUwZk/yG308FnsqFl4mM9c0lvFOiBRvA1owdyafkJDdufE 2WG8oWb9uWFXfPD9lMDBmRLJb0zmDjVnMn1iGEtQXRSZh4ws5CURz484P62VfaCUFL+N PQBg== 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=mHvKCEj3/7nBBxrW4tVVo0k16Rhddoa7YQd2OFic81Y=; b=R46okbrtvq9OVA52nw/FtEtZXSCtP6GMPfxGE/+yr/zyHlRg7hNqGxFf4Jmvjdhens gKnF1fTbBZfCPx3zdZDFxERa+MQM9cNSUCmgvVKX+squLM5Im3LsYaqwHLWKaE2cKWAM AfDd65zrkjQRYMsyRGfv6YgItUkd47VHsds02hIgp91hHOE4SdoGgjbhsbiHWIYoxIcU LqypVXarNY8eXt48ml3Mh0iNHzVFQykEdzi6W5uHT0YczXLszc+zx0p4EpLzCsWZq+WS Sj9TEW4/G1OWGbB3sMKmMqRfZwyuXCUw5ib3hJwVv4VUpgwnk/YkvrP0TgcVwFWykBEl +2DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FVFcyxYu; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si204064edd.202.2021.01.13.18.08.12; Wed, 13 Jan 2021 18:08:35 -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=@kernel.org header.s=k20201202 header.b=FVFcyxYu; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729937AbhANCEq (ORCPT + 99 others); Wed, 13 Jan 2021 21:04:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:45618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729365AbhAMWbL (ORCPT ); Wed, 13 Jan 2021 17:31:11 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 75534233FD for ; Wed, 13 Jan 2021 22:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610576967; bh=mHvKCEj3/7nBBxrW4tVVo0k16Rhddoa7YQd2OFic81Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FVFcyxYuFODJwc1NmCq6dGYUEoqC8dzhGHg0FuoCqh5X/YZZkUMGkePdU8HMTwX/t jfKtp1SjnptuInY/ZByd0inH/ALCBa4jES85UEPmrbobY0vm1aRGAjO1FX2Hjxu0yS gLVKbjdZ8mBUhuVzF9QyrZVXqPKwznB+/+Qrgc6Zy0l6P1LiCMOyS3DX5e7yvD9Cgf x8n3IsFITJilMRqyu8twyH4Ke/Wufmh+GciuVls7JYHwIcTqszFYFWxmznlp+cqVZC Qow/5H0y6+He63QtAcrQ1Cb8GkDm5mUvGfJBTBt6UJVGX7xH0DJqn4bAlEud9gFEhx a8xdjguWtOnYQ== Received: by mail-lj1-f173.google.com with SMTP id e7so4337973ljg.10 for ; Wed, 13 Jan 2021 14:29:27 -0800 (PST) X-Gm-Message-State: AOAM530ZRuzD151hUU+K9BHDUjQxbkRRBj7MvI+jTY6HPqWnEP+FFqVG RzhVfLsDcf80nBx+OpUNw0ti1eUBi62n6hUbLyqyIw== X-Received: by 2002:a2e:b5dc:: with SMTP id g28mr1848338ljn.112.1610576965768; Wed, 13 Jan 2021 14:29:25 -0800 (PST) MIME-Version: 1.0 References: <20210113053810.13518-1-gilad.reti@gmail.com> In-Reply-To: <20210113053810.13518-1-gilad.reti@gmail.com> From: KP Singh Date: Wed, 13 Jan 2021 23:29:16 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH bpf v2 1/2] bpf: support PTR_TO_MEM{,_OR_NULL} register spilling To: Gilad Reti Cc: bpf , Yonghong Song , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , Shuah Khan , Networking , open list , linux-kselftest@vger.kernel.org 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 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