From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C911D15218A; Tue, 2 Jul 2024 17:25:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719941109; cv=none; b=EhauAJUExigk831Lysk+PzemkHYFlpZfRB/LzYfFz1MoX8umP51KdZkOWHAdpK+q13uFkYfnDj8Zx6OWIu8mmdJkFuHR1BddqYNv0uq0ntRxXDLRPhk9JO/gmm4sfcoomofJaM2Yx1rp5/RDFrs2Nq/Kpi+0YYae1x8/HBDzwb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719941109; c=relaxed/simple; bh=hmYXRld7h37oLGvufmYZAm8I3a14K8h0WpGh30Mt0nw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eyKfZ/QIGJQn+bRyV4mSfVaEO5lKhOz1NNxiGHaqy4eGbQcP5Efy2AJbDcJE5R1Sb8LMLj87RB+mRaCEqcIaEPnaBVtyx4Z00+o300vIeRKn95vT+7kDtRbjyBgQXkD6mA1z/EvqnWTrVwsPoT2xJfZ/vuPZr23RT0/AAyGFdmw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wyhzdDvM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wyhzdDvM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 500D8C116B1; Tue, 2 Jul 2024 17:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719941109; bh=hmYXRld7h37oLGvufmYZAm8I3a14K8h0WpGh30Mt0nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wyhzdDvMXNkhg3lFd5KBmxv37oRiiBw4K1op+QKRxb5DC5pIDu1ItSYtfHb6cGK7S Xh/ctREbwn0ktcu61pRAjcNDdqV+guOCnp2cXFvn4zdcIqqBiIAV2D5CG4ZWj+3YQm I8Wcdu8fw7zf0W+Pz5vXEUZa+6cdZrj+3xvjE2o8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Diederik de Haas , Dragan Simic , Nicolas Schier , Masahiro Yamada Subject: [PATCH 6.6 130/163] kbuild: Install dtb files as 0644 in Makefile.dtbinst Date: Tue, 2 Jul 2024 19:04:04 +0200 Message-ID: <20240702170237.973429724@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240702170233.048122282@linuxfoundation.org> References: <20240702170233.048122282@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dragan Simic commit 9cc5f3bf63aa98bd7cc7ce8a8599077fde13283e upstream. The compiled dtb files aren't executable, so install them with 0644 as their permission mode, instead of defaulting to 0755 for the permission mode and installing them with the executable bits set. Some Linux distributions, including Debian, [1][2][3] already include fixes in their kernel package build recipes to change the dtb file permissions to 0644 in their kernel packages. These changes, when additionally propagated into the long-term kernel versions, will allow such distributions to remove their downstream fixes. [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/debian/6.8.12-1/debian/rules.real#L193 Cc: Diederik de Haas Cc: Fixes: aefd80307a05 ("kbuild: refactor Makefile.dtbinst more") Signed-off-by: Dragan Simic Reviewed-by: Nicolas Schier Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- scripts/Makefile.dtbinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/Makefile.dtbinst +++ b/scripts/Makefile.dtbinst @@ -24,7 +24,7 @@ __dtbs_install: $(dtbs) $(subdirs) @: quiet_cmd_dtb_install = INSTALL $@ - cmd_dtb_install = install -D $< $@ + cmd_dtb_install = install -D -m 0644 $< $@ $(dst)/%.dtb: $(obj)/%.dtb $(call cmd,dtb_install)