mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Error types in EINJV2 use different bit positions for each flavor of
injection from legacy EINJ.
Two issues:
1) The address sanity checks in einj_error_inject() were skipped for
EINJV2 injections. Noted by sashiko[1]
2) __einj_error_trigger() failed to drop the entry of the target
physical address from the list of resources that need to be
requested.
Add a helper function that checks if an injection is to memory and use it
to solve each of these issues.
Note that the old test in __einj_error_trigger() checked that param2 was
not zero. This isn't needed because the sanity checks in einj_error_inject()
reject memory injections with param2 == 0.
Fixes:
|
||
|---|---|---|
| .. | ||
| apei-base.c | ||
| apei-internal.h | ||
| bert.c | ||
| einj-core.c | ||
| einj-cxl.c | ||
| erst-dbg.c | ||
| erst.c | ||
| ghes_helpers.c | ||
| ghes-nvidia.c | ||
| ghes.c | ||
| hest.c | ||
| Kconfig | ||
| Makefile | ||