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 52FD5187342 for ; Mon, 23 Dec 2024 08:29:48 +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=1734942589; cv=none; b=fyPVtY9P0AmG8Bir5CzRMRCLJ9eWKQJ2+LLP/g7K/5lBbxvnWhqhN6NMvpXAfgVkhFwW0X5u9tr/wZQvUkL4FcAL0iBEsm3FC0UJN0JFcCoLFBntCV8mg8Cow5ibE7aMadjPcjbu+wk7mCI3RWvNRmOyvYMARvIf2nqZY3wLHFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734942589; c=relaxed/simple; bh=pNhbfBdry62rJar522Vvd4uUBvmdkBXPqS3OA/Dde5g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=E4XpoEbkL+ekPxIROs9st5vOgUjo0j9qvDE5+l+vYEarep7+8lPtT2zGjozZVRepmKsY2m0wUNd2sjVuyYgf5uukEeKQTHmjodvjogYBrTFmS+qOCEn+OixK80mMm4NK7dHXkMlQ4bTVdzKQUjNcSGlx2PhpVniZHKXScOYWhKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iFFh+xqA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iFFh+xqA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80297C4CED3; Mon, 23 Dec 2024 08:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734942588; bh=pNhbfBdry62rJar522Vvd4uUBvmdkBXPqS3OA/Dde5g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iFFh+xqAxe220XQm17JBMFUVoMt+tn1awSfyMJ0SBaILPqt+MUKAPgzomaqOLqa5X WOuqr6MkofVE2ay3mSJ8+qmnXEL2+e0mLo1a9PIUtLD77r3J+AJehv5WyqWTPm9Lve bgr6is6yZSUMrHEm1otLNAzipjhetrJ3NvTKxJ2slwCzMysKAmxwvLhyxp+Qif+mRn bcUY79tJa89sImJyq9PFghufkcTT8vvLLRWyYbLYLMEUWzcCdQfVC25CkDrpnmwPwm qsdi2LjuHFMk4YisJxUGVXtzvBSSk8xcLWCD3H0CnI2J0KQeTDG7pfuZyxBgEWVcmi vZAdQLf8b6f0Q== From: Pratyush Yadav To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= Cc: Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: sysfs: constify 'struct bin_attribute' In-Reply-To: <20241222-sysfs-const-bin_attr-mtd-v1-1-ee13140a4e9b@weissschuh.net> ("Thomas =?utf-8?Q?Wei=C3=9Fschuh=22's?= message of "Sun, 22 Dec 2024 21:15:55 +0100") References: <20241222-sysfs-const-bin_attr-mtd-v1-1-ee13140a4e9b@weissschuh.net> Date: Mon, 23 Dec 2024 08:29:46 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Dec 22 2024, Thomas Wei=C3=9Fschuh wrote: > The sysfs core now allows instances of 'struct bin_attribute' to be > moved into read-only memory. Make use of that to protect them against > accidental or malicious modifications. > > Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Pratyush Yadav --=20 Regards, Pratyush Yadav