Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp844460pxb; Wed, 13 Jan 2021 18:07:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPNqMGfKjWLZrQKV5dibFnjrjDN0nJD1DFmnAG6eAA07nWdMh8zrXXVnxWzIrjmFo3EJSO X-Received: by 2002:a17:906:25c4:: with SMTP id n4mr3457917ejb.359.1610590027505; Wed, 13 Jan 2021 18:07:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610590027; cv=none; d=google.com; s=arc-20160816; b=0lEkBNMINSPrhN7XOiYGBaFmaVDJd53OFDSvDqJ2FpUjcf6ROaSvWeEBsRVw7uI+eL I6vwUL5EDvmJWKCmUZyrw6uJyIBOLyR7Tv8qm/sdLiOR2nW9BZrHpVigV/C0QmceyXHs gJ2th0EtGLQjd0aWcKNK0e6zDXyn1dVs6nNN3CNF/nnc7CGY/gqEivfQMCZ4ffG0CsIT INMm2cLlKR1Xy11C5IWtW9ztLlpgKQiwR3DU8NQOe6o0wgsH6pL/xMw+CKwRwbMGpnhz NtuZt07Tm/S4KlMdLisu7qNZl8KYydEkjTL58k6qQQxOG9QBAXpFlU2PE86YPyzn3uC/ XxoA== 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=srLRPLK5YXTuhUWWEHIPjYvPj65Ukrwxe3nwgOVQ1H4=; b=Se09o1ikHLLlqOeOIvumQwM3YoZs8iBpo6tcq0ub2MPvyHFwLJSbf6NcLW0Lu7Z2t4 cnoAcdzWvmxfmwHug2mrt83C6lIKXkTDq2h+OS3CpZDFN1bJwPgTCXZztxwtOLIFQAFT TIR5x4v6NfBrdn3bd7nzbLR0nowIC2Q0wj4L6/MevoyHPCorVwAioV2Mu3qD4b3ew7BK 4LN8aaqma2MbUu9WCuM7d07CZXYuLmVzvC35HpOl2AQHyo4C9o7qr9ECNCy/v9HBitoq t87mvkzdkwiWJ16bV51aSHfWeFoacC3BGyRVC+jBmBIH3WZGnqT1YRAwg8mbuFyb4WhV kM2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BDH1F9rc; 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 cq10si1775996edb.140.2021.01.13.18.06.43; Wed, 13 Jan 2021 18:07:07 -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=BDH1F9rc; 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 S1730082AbhANCFf (ORCPT + 99 others); Wed, 13 Jan 2021 21:05:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:45396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729318AbhAMW3q (ORCPT ); Wed, 13 Jan 2021 17:29:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2220B23383 for ; Wed, 13 Jan 2021 22:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610576945; bh=srLRPLK5YXTuhUWWEHIPjYvPj65Ukrwxe3nwgOVQ1H4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BDH1F9rcJtI4Q0+49LL11CWjXcM8SruYfVwIiIGJerbKhGRLAxcKLSAt+qK2b9KFF NwxaKjgnukIfeo109QKruQRNc66yXVrNVI1iY6hiWeIMR3u67hPoV7GA6VwA/jbk0J 7Y0ypCT/Z8AeZT1DJvGC7jd60dKJb9CtD/9GuYhTRypi/ZkLv3wW7QEe0XXvAQwSzj GnNkrxSGKKlriE3ld8VSioPb8/BnIyB2ZNRXYYdxhYoZ3PCFcs/0szGB4aYVK7LstN fpftl9LRQ3A+HKOKdQywPy+0zOSWRtlBJZxEtTeMVTa/5G/OGeiFpAL3FfK6XBiku5 6OrGLIfG73Q9g== Received: by mail-lj1-f170.google.com with SMTP id w26so4365053ljo.4 for ; Wed, 13 Jan 2021 14:29:05 -0800 (PST) X-Gm-Message-State: AOAM532P5EVwFPbPRJQyov+pI2e17nY4Q6bSzE8SO6oNFZ6whcn+0Fpt oEtVNOffVZ280T2rYJfv7YsDLiZWPNMvHzjfXa+KwA== X-Received: by 2002:a2e:9b1a:: with SMTP id u26mr1828558lji.187.1610576943394; Wed, 13 Jan 2021 14:29:03 -0800 (PST) MIME-Version: 1.0 References: <20210113053810.13518-1-gilad.reti@gmail.com> <20210113053810.13518-2-gilad.reti@gmail.com> In-Reply-To: From: KP Singh Date: Wed, 13 Jan 2021 23:28:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH bpf v2 2/2] selftests/bpf: add verifier test for PTR_TO_MEM spill To: Yonghong Song Cc: Gilad Reti , bpf , 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 5:05 PM Yonghong Song wrote: > > > > On 1/12/21 9:38 PM, Gilad Reti wrote: > > Add a test to check that the verifier is able to recognize spilling of > > PTR_TO_MEM registers, by reserving a ringbuf buffer, forcing the spill > > of a pointer holding the buffer address to the stack, filling it back > > in from the stack and writing to the memory area pointed by it. > > > > The patch was partially contributed by CyberArk Software, Inc. > > > > Signed-off-by: Gilad Reti > > I didn't verify result_unpriv = ACCEPT part. I think it is correct > by checking code. > > Acked-by: Yonghong Song Thanks for the description! Acked-by: KP Singh