android_kernel_xiaomi_sm8350/drivers/acpi/apei
Tony Luck a8ba72bbed ACPI: APEI: Better fix to avoid spamming the console with old error logs
commit c3481b6b75b4797657838f44028fd28226ab48e0 upstream.

The fix in commit 3f8dec116210 ("ACPI/APEI: Limit printable size of BERT
table data") does not work as intended on systems where the BIOS has a
fixed size block of memory for the BERT table, relying on s/w to quit
when it finds a record with estatus->block_status == 0. On these systems
all errors are suppressed because the check:

	if (region_len < ACPI_BERT_PRINT_MAX_LEN)

always fails.

New scheme skips individual CPER records that are too large, and also
limits the total number of records that will be printed to 5.

Fixes: 3f8dec116210 ("ACPI/APEI: Limit printable size of BERT table data")
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-11 12:57:51 +02:00
..
apei-base.c
apei-internal.h
bert.c ACPI: APEI: Better fix to avoid spamming the console with old error logs 2022-08-11 12:57:51 +02:00
einj.c
erst-dbg.c
erst.c
ghes.c
hest.c
Kconfig
Makefile