Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2366540pxb; Mon, 11 Jan 2021 07:55:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMUxhQdswJwhAajNSd+wg8v+9C7XMhToJ7XV5++WhBX2HrUzQjowX2xyCt3tX6a7nN0Du4 X-Received: by 2002:a17:906:d784:: with SMTP id pj4mr94221ejb.360.1610380548105; Mon, 11 Jan 2021 07:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610380548; cv=none; d=google.com; s=arc-20160816; b=WaB0F0qzQ1WDwRlQXTXBiyld970HrTC7WrANzKvLaF8P2dmsTiOKrhWmboxZmr2pgX HcKzSe5DFhhnH0NnueczS8Dt+WSkWQqV9uAp0swY/xv7Ye++NHNeJWZKF7ZyW+Ub9D6R oC6FLbbOdQkC8edZSNNsnrwhTZfnBzg9FTT5m8Q9T4uL2vA/lK/FPinZqk2NddKflr5/ SynLuhx711+Oxuch/HdZTYDbjZyR/zFVDKufEb+qP+3bWnfGWZKog/JklLJAma+qL1qZ RRo/tTdRBsAoSrjC6GsXexErFeflTjJf8bZ7B9wGhnAOOKCBsbWr5/nAshfvuBGxHlyz TwPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7m77qHG6iRjZE9zqIRj1HX+lQ1FNTK4AQrjGkUCji3Q=; b=wXY5hfTFcG0y15zuQ1NCi0PYKDUmHjeZ8Yp7oJ0CovYU87cRahhesz9V4+t3YvgAp+ rSWgT7uKEwyEjyhZYj+EjFHvMlYECesG5ebfk2tyWIqIfugkxuk+u8/kuytJ97agV0DT iJF52hncdLfMdLyN4WNuJqA7S8QJOwQzGyBUUVinZ+I/ZG5E9h33AUXEWq0ewqvzOMkC 44CrWpHOMhZkZ5gRAyHEbWPLVEqmvIxDmZARH6CeY4dxDtx6qp/qPGS/vA8nsecptZqw owvHHwy0t+SdSPpOJvg9ycaX6QvXdr9D/oWfJTY5g4gbtur/FAdHE4Af2GVto3TvHMED 6rHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l71kPYjB; 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 h19si1297203ejb.187.2021.01.11.07.55.23; Mon, 11 Jan 2021 07:55:48 -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=l71kPYjB; 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 S2388320AbhAKPwZ (ORCPT + 99 others); Mon, 11 Jan 2021 10:52:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:60548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731466AbhAKPwY (ORCPT ); Mon, 11 Jan 2021 10:52:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A07EF2251F; Mon, 11 Jan 2021 15:51:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610380303; bh=Es2k0h+26hNNjATG11DvaX8uXnVDAE5QUnH9ejSvFPI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=l71kPYjBBbCPdO3SBsxD9bpm7OE7Zi/6v3Lk3CtXQee3op9frz+YUPOXjg89qfgug RlEU7Aj0H/k5S6HVwXDpRPKgWzXaCCIUjsWIg7HXsR+k6XoW/4jNYZ7QpYQ31Mtvck ScGnT4FNMVsav4D+gfKmZBo26I+OftmauN+EWx4NFySxHHe0H3cQpRaJsS03wE0XgC BcqEZYPFgaaUEc0FODjwMcUkudt+AvwzqtFegyVsemSXvVFWoNkc4gOXRhAAcpP1Z5 +QwJ5NamXBo3yT6prJZhFDP316a14MCeZBzJ5vFYZvFYNzxwS8mW4fiY2QbL/HA/sV qHlTKBJr3B6uA== Date: Mon, 11 Jan 2021 16:51:38 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: giladreti Cc: bpf@vger.kernel.org, Yonghong Song , Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Signed-off-by: giladreti Message-ID: <20210111165138.652a5525@kernel.org> In-Reply-To: <20210111153123.GA423936@ubuntu> References: <20210111153123.GA423936@ubuntu> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Signed-off-by line should be last in the commit message, not first. First line (which becomes e-mail subject) should describe what the commit does (in a short one liner) and where it does it. So for your patch it could be something like bpf: support pointer to mem register spilling in verifier The commit message should be written in present simple tense, not past simple, ie. not "Added support" but "Add support". Also we need your name and surname in From: header and Signed-off-by: tag. So instead of giladreti it should be Gilad Reti if that is your real time. If it is not, please provide your real name. On Mon, 11 Jan 2021 17:31:23 +0200 giladreti wrote: > Added 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. > --- > kernel/bpf/verifier.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c > index 17270b8404f1..36af69fac591 100644 > --- a/kernel/bpf/verifier.c > +++ b/kernel/bpf/verifier.c > @@ -2217,6 +2217,8 @@ static bool is_spillable_regtype(enum bpf_reg_type type) > case PTR_TO_RDWR_BUF: > case PTR_TO_RDWR_BUF_OR_NULL: > case PTR_TO_PERCPU_BTF_ID: > + case PTR_TO_MEM: > + case PTR_TO_MEM_OR_NULL: > return true; > default: > return false;