Skip to content

Fix kexec of pesigned images

Robbie Harwood keyrings 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Fix linking syntax in first commit message
- Upgrade to pr_warn() in second commit at dhowells's suggestion

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2verify_pefile: relax wrapper length checkcrypto/asymmetric_keys/verify_pefile.c+8 -40 replies
2/2asymmetric_keys: log on fatal failures in PE/pkcs7crypto/asymmetric_keys/pkcs7_verify.c crypto/asymmetric_keys/verify_pefile.c+17 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix kexec of pesigned images

In order to comply with the PE specification, recent versions of pesign do not include 8-byte padding in the dwLength field. kexec of signed images has therefore not worked in Fedora (which uses pesign) for some time.

The first commit relaxes the check in order to fix this issue. The second upgrades several pe_debug() messages to pe_warn() in order to make this more debuggable on systems with secureboot lockdown in place.

Changelog:
v2:
- Fix linking syntax in first commit message
- Upgrade to pr_warn() in second commit at dhowells's suggestion

Be well,
--Robbie

Robbie Harwood (2):
verify_pefile: relax wrapper length check
asymmetric_keys: log on fatal failures in PE/pkcs7

 crypto/asymmetric_keys/pkcs7_verify.c  | 10 ++++----
 crypto/asymmetric_keys/verify_pefile.c | 32 +++++++++++++++-----------
 2 files changed, 23 insertions(+), 19 deletions(-)
Signature · 1 line
2.39.1