lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 30 Nov 2023 20:03:32 +0000
From:   "Luck, Tony" <tony.luck@...el.com>
To:     Avadhut Naik <avadnaik@....com>
CC:     "linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
        "rafael@...nel.org" <rafael@...nel.org>,
        "lenb@...nel.org" <lenb@...nel.org>,
        "james.morse@....com" <james.morse@....com>,
        "bp@...en8.de" <bp@...en8.de>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "yazen.ghannam@....com" <yazen.ghannam@....com>,
        Avadhut Naik <avadhut.naik@....com>
Subject: RE: [RESEND v2] ACPI: APEI: Skip initialization of GHES_ASSIST
 structures for Machine Check Architecture

> Actually, caching of values from an earlier structure to be compared against values
> in a later structure is what we intend to do here i.e. comparing cached source_id
> from an earlier structure with related_source_id in a later structure. To hint
> towards the same, I had added the below comment on top of the static structure's
> declaration:
>
> >>> + * Since GHES_ASSIST is not supported, skip initialization
> >>> + * of GHES_ASSIST structures for MCA.
> >>> + * During HEST parsing, detected MCA error sources are cached.
> >>> + * Flags and Source Id fields from these cached values are
> >>> + * then referred to determine if the encountered GHES_ASSIST
> >>> + * structure should be initialized.
> >>> + */
>
> Is this not good enough? Should I make it more explicit?

I understand now, but missed that the caching and use are across
different entries in the HEST table.

Maybe something like this:

 * Since GHES_ASSIST is not supported, skip initialization of GHES_ASSIST
 * structures for MCA.  During HEST parsing, detected MCA error sources
 * are cached from early table entries so that Flags and Source Id
 * fields from these cached values are then referred to in later table
 * entries to determine if the encountered GHES_ASSIST structure should
 * be initialized.

-Tony

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ