Skip to content

x86/boot: Warn on future overlapping memcpy() use

Kees Cook lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesNew
  2. v41 patch 5 repliesApplied
  3. v31 patch 2 repliesSuperseded

Changes in v5 from the cover letter

- split out warn/error into error.c/error.h

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/boot: Extract error reporting functionsarch/x86/boot/compressed/Makefile arch/x86/boot/compressed/error.c arch/x86/boot/compressed/error.h +4 more+34 -190 replies
2/2x86/boot: Warn on future overlapping memcpy() usearch/x86/boot/compressed/string.c+13 -30 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/2] x86/boot: Warn on future overlapping memcpy() use

This attempts to bring some sanity to how warn() and error() are defined so that they can be used by misc.c, kaslr.c, and string.c. After that, we add a warn() to memcpy and call memmove on detected overlaps.

-Kees

v5:
- split out warn/error into error.c/error.h
v4:
- use __memcpy not memcpy since we've already done the check. v3:
- call memmove in addition to doing the warning
v2:
- warn about overlapping region