Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp732751ybl; Thu, 12 Dec 2019 04:07:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwCdmjiUImPnUn8PrQ4OSu4i5iUCK2eKm4jmTug4L05z/mBA3UYBIrmmcbgj9g2PKyoXbef X-Received: by 2002:a05:6830:13da:: with SMTP id e26mr7834965otq.302.1576152457792; Thu, 12 Dec 2019 04:07:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576152457; cv=none; d=google.com; s=arc-20160816; b=HCjcPkCL2CoyIxR1Tvb9jUKxITV3kzgRYfe7SExlNRO9nsSGuDszer54IjdQ33o4MJ HUBFHNt2Av0zlb1U5q6/GJUR5sb0valUTOhw8JWAXpC//ZrjyK+8qGUWt/A9sKFRIq06 G0fenr/SpDsD/m8q9N2qYsRs+WvTVTH+a3+oj5kp6/w8/5OoVNNQpejh/uXZ6PRYm/bM MvBroqvf3sX1EPPgqkIWSlK/C7WHYv7VgxuOhbF7sh1V0p7/WtgVI6UP/ysn45F18IWv RP903E8/o9xToFw0RGJ8VOkRhbLd7urxiPVFuA4BeNXlrAk4wMh9gYo0MBUumpZLFyF1 +cdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3+3unYMHlJ/uLIlhaxP0j10bBswoh2xpjSH8b/xHoEk=; b=VlNBNyfSRlJqyojtM3rpNm02Np5EIEor0Kzq1hhEq6o91cJB3a4Wvs4jKQrzHG97R7 6xXX/P6y8JaF+WKVqSFBKDk60VWhas08v3bDN+1X0lvOUees9J3UU1AibPw+qSu7TyMC AhVsIZxk31pPqrYdZoA/FFtuw02Z7baqDJ7I7XCMXb6A5Ifm241rQkXb17WCrfvQps3P p9SUo7Aztfm8/YCrDuieFHo3sXabn0YSR0/kdvS4H8pbcHv3f3NnO/TlBXAafzdFiPYM t1EM9GXF/pm12Yv9O+mlVRgNc0WgtxU4CZae+mZEx2Nf6HbcUYd1RykaN6ZGHeTfmyAa LmaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j18si2949005otq.275.2019.12.12.04.07.24; Thu, 12 Dec 2019 04:07:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729131AbfLLMG1 (ORCPT + 99 others); Thu, 12 Dec 2019 07:06:27 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:39370 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728996AbfLLMG0 (ORCPT ); Thu, 12 Dec 2019 07:06:26 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id C77F31C2461; Thu, 12 Dec 2019 13:06:24 +0100 (CET) Date: Thu, 12 Dec 2019 13:06:24 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Martin KaFai Lau , Yonghong Song , Alexei Starovoitov , Sasha Levin Subject: Re: [PATCH 4.19 134/243] bpf: btf: check name validity for various types Message-ID: <20191212120624.GA15567@duo.ucw.cz> References: <20191211150339.185439726@linuxfoundation.org> <20191211150348.188128369@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <20191211150348.188128369@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2019-12-11 16:04:56, Greg Kroah-Hartman wrote: > From: Yonghong Song >=20 > [ Upstream commit eb04bbb608e683f8fd3ef7f716e2fa32dd90861f ] >=20 > This patch added name checking for the following types: > . BTF_KIND_PTR, BTF_KIND_ARRAY, BTF_KIND_VOLATILE, > BTF_KIND_CONST, BTF_KIND_RESTRICT: > the name must be null > . BTF_KIND_STRUCT, BTF_KIND_UNION: the struct/member name > is either null or a valid identifier > . BTF_KIND_ENUM: the enum type name is either null or a valid > identifier; the enumerator name must be a valid identifier. > . BTF_KIND_FWD: the name must be a valid identifier > . BTF_KIND_TYPEDEF: the name must be a valid identifier >=20 > For those places a valid name is required, the name must be > a valid C identifier. This can be relaxed later if we found > use cases for a different (non-C) frontend. Does this fix any serious bug? I don't think this is suitable for stable. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXfItQAAKCRAw5/Bqldv6 8sZNAKCpPlKj4aNOz24kULtOT5OPHge6zgCdFh7w/ah2JlnWD5WRRljYPZLpo48= =1DLt -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--