All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] x86/boot: Warn on future overlapping memcpy() use
@ 2016-05-02 22:50 Kees Cook
  2016-05-02 22:51 ` [PATCH v5 1/2] x86/boot: Extract error reporting functions Kees Cook
  2016-05-02 22:51 ` [PATCH v5 2/2] x86/boot: Warn on future overlapping memcpy() use Kees Cook
  0 siblings, 2 replies; 5+ messages in thread
From: Kees Cook @ 2016-05-02 22:50 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Kees Cook, Lasse Collin, One Thousand Gnomes, H. Peter Anvin,
	Thomas Gleixner, Ingo Molnar, Yinghai Lu, Baoquan He,
	Borislav Petkov, x86@kernel.org, LKML

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-03  7:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02 22:50 [PATCH v5 0/2] x86/boot: Warn on future overlapping memcpy() use Kees Cook
2016-05-02 22:51 ` [PATCH v5 1/2] x86/boot: Extract error reporting functions Kees Cook
2016-05-03  7:45   ` [tip:x86/boot] " tip-bot for Kees Cook
2016-05-02 22:51 ` [PATCH v5 2/2] x86/boot: Warn on future overlapping memcpy() use Kees Cook
2016-05-03  7:46   ` [tip:x86/boot] " tip-bot for Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.