From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Naoya Tezuka <naoyatezuka@chromium.org>
Cc: Benson Leung <bleung@chromium.org>, Kees Cook <kees@kernel.org>,
Tony Luck <tony.luck@intel.com>,
"Guilherme G . Piccoli" <gpiccoli@igalia.com>,
chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-hardening@vger.kernel.org
Subject: Re: [PATCH v2] platform/chrome: chromeos_pstore: Add ecc_size module parameter
Date: Tue, 10 Jun 2025 23:10:46 +0800 [thread overview]
Message-ID: <aEhK9knE1Fu_e_Sv@tzungbi-laptop> (raw)
In-Reply-To: <20250610050458.4014083-1-naoyatezuka@chromium.org>
On Tue, Jun 10, 2025 at 02:04:58PM +0900, Naoya Tezuka wrote:
> On ChromiumOS devices, the ecc_size is set to 0 (check dmesg | grep ecc
> to see `ecc: 0`): this disables ECC for ramoops region, even when
> ramoops.ecc=1 is given to kernel command line parameter.
>
> This patch introduces ecc_size module parameter to provide an method to
> turn on ECC for ramoops and set different values of ecc_size per devices.
The doc [1] suggests to describe changes in imperative mood. If you have
chance to send next version, please fix it. Otherwise, it doesn't really
bother me.
[1]: https://docs.kernel.org/process/submitting-patches.html
> @@ -9,6 +9,10 @@
> #include <linux/platform_device.h>
> #include <linux/pstore_ram.h>
>
> +static int ecc_size;
> +module_param(ecc_size, int, 0444);
Does it need to be world-readable? How about 0400?
> @@ -117,6 +121,9 @@ static int __init chromeos_pstore_init(void)
> {
> bool acpi_dev_found;
>
> + if (ecc_size > 0)
> + chromeos_ramoops_data.ecc_info.ecc_size = ecc_size;
It seems `ecc_size` doesn't have an upper bound. Wondering what would
be happened if it is a somehow large value.
next prev parent reply other threads:[~2025-06-10 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 5:04 [PATCH v2] platform/chrome: chromeos_pstore: Add ecc_size module parameter Naoya Tezuka
2025-06-10 15:10 ` Tzung-Bi Shih [this message]
2025-06-20 2:50 ` Naoya Tezuka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aEhK9knE1Fu_e_Sv@tzungbi-laptop \
--to=tzungbi@kernel.org \
--cc=bleung@chromium.org \
--cc=chrome-platform@lists.linux.dev \
--cc=gpiccoli@igalia.com \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=naoyatezuka@chromium.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox