Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp434255lqp; Mon, 10 Jun 2024 08:25:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXi8jmXRrgkRHVHfFdu2hnmv/yGHoqrsJ8BNjGvAH5X+6+3wNA+ilyOU1OaNAGBj+6h5gIqSkWoVeR2Pp10bYCp1j2Z7dX5TD1qybpzzw== X-Google-Smtp-Source: AGHT+IGHigfRF4apy06fH1D4Ej2jio8Lb5D8c50A2Mfj3OMTyGl4KfOcX1YmFbLVwui9kTuYBRaN X-Received: by 2002:a50:d65a:0:b0:57c:600d:5875 with SMTP id 4fb4d7f45d1cf-57c600d58f7mr4506806a12.24.1718033149963; Mon, 10 Jun 2024 08:25:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718033149; cv=pass; d=google.com; s=arc-20160816; b=yrtJvE6N9rZva9NonggoSqaXopbg9DOUd/zxNAkQsciKqbcztyeq4vYAn7LNyZLxlz Argbu8O1VS7rZASJ+ul+C3apWcRnbRb7uhKcnk9vz4ba2waDsYy6qsCcy75sLvCd1ym+ YkYkJlEfSYYptClRwnceZgMo8sa9vz23nQblwuhBgNWvrrwNzXfI63TRJFmIN3RCuW0L GHaZ6WSq55095JS6FIjxr/ye9Sa9ukeKLHGzRRw15/3CDk6Q4uAyYl6ZBXRxfAxgghny MGN6yABsMoq+Gf0k6VupYKILmkoKWoZ6mgGQaN+4nRC6fmesayTBjDqTokDOOm2s2FEk w3GA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature:dkim-signature :dkim-signature; bh=vQoHrYF9OOJVsItZVr7XOj46Z1AabogKCVDMzdKF77k=; fh=zLf8ebUuMRZcUfcP7yVCy7vmfi2Ft8PBcDkTEqR5ss8=; b=JLnA8C7I7ZRBf+1BpKo0qhCzoEqlFQESCHyGAYHtypFUDR9AjhfE43skXBq9ZHnQ09 SmK9Y7PQfFJHCMeC7jJIW2ypvsTb9paIZRhcs5+zzUEtSigse6TsLi2fqJQreaiY5YK0 gcxzQpH8gTrcZctH1QBkkEzVNSIvky1JDLT0OTFDkZizJI1BLyQ4IjnTqED01FT1Y3gc 2mNu4I8ybIrAKjpfC2vuc3BiC+0JthgYdzbnmcQB0t0OYGoiEgKMVqkDyE5VQSDLgd6/ QWHKrWEA/3/NXCAcmbM2gXfd9pwFcpwMiISYyUY31HZTy+7ENmKSZBGv7YjTr7PTBijH 4ajQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=neutral (bad version) header.i=@smtpservice.net header.s=mp6320.a1-4.dyn header.b=ktGD7Ta9; dkim=pass header.i=@fjasle.eu header.s=s1174286 header.b=TVmnXCU5; dkim=pass header.i=@fjasle.eu header.s=mail header.b=T0a5Z8z3; arc=pass (i=1 spf=pass spfdomain=em1174286.fjasle.eu dkim=pass dkdomain=fjasle.eu dkim=pass dkdomain=fjasle.eu dmarc=pass fromdomain=fjasle.eu); spf=pass (google.com: domain of linux-kernel+bounces-208472-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c72ede7bfsi2211934a12.400.2024.06.10.08.25.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 08:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208472-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@smtpservice.net header.s=mp6320.a1-4.dyn header.b=ktGD7Ta9; dkim=pass header.i=@fjasle.eu header.s=s1174286 header.b=TVmnXCU5; dkim=pass header.i=@fjasle.eu header.s=mail header.b=T0a5Z8z3; arc=pass (i=1 spf=pass spfdomain=em1174286.fjasle.eu dkim=pass dkdomain=fjasle.eu dkim=pass dkdomain=fjasle.eu dmarc=pass fromdomain=fjasle.eu); spf=pass (google.com: domain of linux-kernel+bounces-208472-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7B8B81F24B9A for ; Mon, 10 Jun 2024 15:25:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17C4014E2DE; Mon, 10 Jun 2024 15:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="unknown key version" (0-bit key) header.d=smtpservice.net header.i=@smtpservice.net header.b="ktGD7Ta9"; dkim=pass (2048-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b="TVmnXCU5"; dkim=pass (1024-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b="T0a5Z8z3" Received: from e2i411.smtp2go.com (e2i411.smtp2go.com [103.2.141.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 851B5142E97 for ; Mon, 10 Jun 2024 15:20:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.2.141.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032812; cv=none; b=FVe714HlqCC5597gBzcBpBeHXpw1lEgEyBms/vcXkUIqR27fYckaeHpTgwa03BgY6HAL9ORY6oqqILJZpOfsjYdrEWZ1kx4d9XAfDHXz5WyW85Xy0PZlWtzO+2HmD24Di4gw9UQi/nopQOogD174VZJf7DOYSGYo2EurJRLSyVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032812; c=relaxed/simple; bh=kxNj0ZVeNkElcPtWPQix8aAJ+poPiEk20mwi+FyEiHY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ALZh0P0tRdjJQfpktolmOXtgbwyx6vZpcwwCmcztardfTzVkLn4LLiEdAmkLkhdKXfovBdH7jS/4vCafb0hDYgldX+QHznHD8KTF1CObZGbzkFboA2HjehW0zOjGRid7TOOP2HSgy5JFsHhQBGAL98WVSh+lDpILvRTzHQFMbsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fjasle.eu; spf=pass smtp.mailfrom=em1174286.fjasle.eu; dkim=fail (0-bit key) header.d=smtpservice.net header.i=@smtpservice.net header.b=ktGD7Ta9 reason="unknown key version"; dkim=pass (2048-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b=TVmnXCU5; dkim=pass (1024-bit key) header.d=fjasle.eu header.i=@fjasle.eu header.b=T0a5Z8z3; arc=none smtp.client-ip=103.2.141.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fjasle.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=em1174286.fjasle.eu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=mp6320.a1-4.dyn; x=1718033703; h=Feedback-ID: X-Smtpcorp-Track:Message-ID:Subject:To:From:Date:Reply-To:Sender: List-Unsubscribe:List-Unsubscribe-Post; bh=vQoHrYF9OOJVsItZVr7XOj46Z1AabogKCVDMzdKF77k=; b=ktGD7Ta9j6z+WKRfBX0IVYfhTQ pWSMFU/95bPTdWEx09s8xAw5zCxTi4j8VqLlSyVgyA8kioCPaVUvhli5VVWxP2SPHjUwL/o9hpdev aBrAG0hDyxVum6o2RjVaCbuS27jNk4XcBt7OypmD9eqeSfzwqkkY6QfR8xGezw9Q9z2n2EpiEalIP PL982RTawVNhUpkjF7CME0mB1iI74hB2eiAqI2W3asdnmglbJOfKQcuA8Mq59oGUAjmDiqwRcCmj6 rkt3sZLZ6LkRooApaWz95Z3UAm3IyhC2biuRMWI3oxAALnX8XusIp+ZlDncFxfOqIfOKKQXnUlAtw qlqbUX6w==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fjasle.eu; i=@fjasle.eu; q=dns/txt; s=s1174286; t=1718032803; h=from : subject : to : message-id : date; bh=vQoHrYF9OOJVsItZVr7XOj46Z1AabogKCVDMzdKF77k=; b=TVmnXCU5bTyRwRi3Ur/ISUYbF25n+0xBvZ78v/bHU9GnLoKuyEahZ+zmQ5Qzi2j2bh6Gp lHwJwqOL7YQJ7xSe2L+nOhw8pINWDyPXBC5y3bNS0/8tfb0v+6f0dsWT6JThV4wBNIcN38q 9CEj7JigbyEbbX73Zfhfv6LbyWS7rImkXVWWviCtaFjV7EJfxZlUQuwotKdD2sABUBiltKk M94jnSHlJU9O5HhE5XHh0hSizJ6cbA4Q2P0+rjuNROi7dW2APl0jnHvKEHD9zxAgdgA9VVL RUf565XtA41Wr0e/rDEpG3N7QN5IBeZnnr5XGsncOPfHNahJzNKwGVBQBaNA== Received: from [10.139.162.187] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1sGgnR-TRk6qx-8T; Mon, 10 Jun 2024 15:18:58 +0000 Received: from [10.85.249.164] (helo=leknes.fjasle.eu) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97.1-S2G) (envelope-from ) id 1sGgnS-4o5NDgrmh8E-kNoA; Mon, 10 Jun 2024 15:18:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1718032735; bh=kxNj0ZVeNkElcPtWPQix8aAJ+poPiEk20mwi+FyEiHY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T0a5Z8z30r1iVhdVISPBwi+GY4h/CJgav387QmCnhhy/p5gbCtYB+9pvLo5sc2XQP vn5C64RVh2OrE1cmvlXTAzJPDcJ7fDH6DE6o4lOC4GFRAPjOLwajcMo2jO3TGzPjUU v0b46JGmtDSVIAqOBoY2zAhqvE+Fmr5xuMRO6l/A= Received: by leknes.fjasle.eu (Postfix, from userid 1000) id A81023C8B4; Mon, 10 Jun 2024 17:18:54 +0200 (CEST) Date: Mon, 10 Jun 2024 17:18:54 +0200 From: Nicolas Schier To: Dragan Simic Cc: linux-kbuild@vger.kernel.org, masahiroy@kernel.org, nathan@kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, Diederik de Haas , stable@vger.kernel.org Subject: Re: [PATCH v2] kbuild: Install dtb files as 0644 in Makefile.dtbinst Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1ZrVfO6RKau8OEqg" Content-Disposition: inline In-Reply-To: X-Smtpcorp-Track: s0AnpcI-4aHy.0j2y6zd2moHh.zPPq9AuQDAf Feedback-ID: 1174286m:1174286a9YXZ7r:1174286swy0Xjnx8o X-Report-Abuse: Please forward a copy of this message, including all headers, to --1ZrVfO6RKau8OEqg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 07:21:12AM +0200 Dragan Simic wrote: > The compiled dtb files aren't executable, so install them with 0644 as th= eir > permission mode, instead of defaulting to 0755 for the permission mode and > installing them with the executable bits set. >=20 > Some Linux distributions, including Debian, [1][2][3] already include fix= es > in their kernel package build recipes to change the dtb file permissions = to > 0644 in their kernel packages. These changes, when additionally propagat= ed > into the long-term kernel versions, will allow such distributions to remo= ve > their downstream fixes. >=20 > [1] https://salsa.debian.org/kernel-team/linux/-/merge_requests/642 > [2] https://salsa.debian.org/kernel-team/linux/-/merge_requests/749 > [3] https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/rules= =2Ereal?ref_type=3Dheads#L193 >=20 > Cc: Diederik de Haas > Cc: stable@vger.kernel.org > Fixes: aefd80307a05 ("kbuild: refactor Makefile.dtbinst more") > Signed-off-by: Dragan Simic > --- >=20 > Notes: > Changes in v2: > - Improved the patch description, to include additional details and > to address the patch submission issues pointed out by Greg K-H [4] > - No changes were made to the patch itself > =20 > Link to v1: https://lore.kernel.org/linux-kbuild/ae087ef1715142f606ba= 6477ace3e4111972cf8b.1717961381.git.dsimic@manjaro.org/T/#u > =20 > [4] https://lore.kernel.org/linux-kbuild/2024061006-ladylike-paving-a= 36b@gregkh/ >=20 > scripts/Makefile.dtbinst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst > index 67956f6496a5..9d920419a62c 100644 > --- a/scripts/Makefile.dtbinst > +++ b/scripts/Makefile.dtbinst > @@ -17,7 +17,7 @@ include $(srctree)/scripts/Kbuild.include > dst :=3D $(INSTALL_DTBS_PATH) > =20 > quiet_cmd_dtb_install =3D INSTALL $@ > - cmd_dtb_install =3D install -D $< $@ > + cmd_dtb_install =3D install -D -m 0644 $< $@ > =20 > $(dst)/%: $(obj)/% > $(call cmd,dtb_install) Thanks for the patch. Reviewed-by: Nicolas Schier --1ZrVfO6RKau8OEqg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmZnGVcACgkQB1IKcBYm EmnNrRAAnKc299Uv4LXbaLkPY/Bi3m3PR2SVFR1zYfcuvOU2PYgYKlKv4Yx9o+Y4 52yJrRJ9em1QyAeYqL4F37dTsGZm1IzxZON7vaqKUzdBjq8LbH+cKAhvzyuhO4lB 28pVDwVhVD38ylQe6soSv2t190TpBX6diDlAnAe/8c63Ao6RJ8qA9MEDeLQxTY4T +FTo3cRHDSAhgcmv/sYO44gd+/TPrELa5aBOsY4ohGQRKhqfa4G3gceRuz6GaJt3 QK3GmrEOk6GH6zxo9RxB8CDyv7Bu0Q5XTjK+HLvzS6IJ53y288KU2BIDtD81T01T OzR1f3HfjKX0komAk2Iqw8M35kOLqMVlv+39pttbT3cLEslma0vs8LGyuc1FabHd D+3HR2+3VeWmwHbfEHzQjz73XMPSeqhSvhxfRStXwyiz0BeVpkDiz3tLEchIv2hD XQdXCQldYlh2AKNXzZomBES30lU42BKs1lyDFCusJM+E1TIkQjWcv5xIrkyQNzES 5gPS24+8HQ9EvRXATZRNNoe7NDt1BTTKtzAZn723UnrSIbi4gfLfVl4zrxf2rQYC uSJaoQsGqTx7SwETNHSyULk3RNvjyG2JSAv/n3+pszYhw/Qa3tcj7Jd7LWHIT4Nd gsyro6LCplLpxICG7SLmTl8ZErRUlXBxwndXuiYkklJHLFGlcxE= =ckY9 -----END PGP SIGNATURE----- --1ZrVfO6RKau8OEqg--