cpu/x86/smm: Add helper functions to verify SMM access
commit41fec869fb3b25fd5bb5b454ab1bf39660ce314d
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Wed, 6 May 2020 08:55:12 +0000 (6 10:55 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 17 Jun 2020 09:17:56 +0000 (17 09:17 +0000)
tree914ae7cef0e1b90e2173d62f3698a8e30a9a1655
parentc59d9e3917a4d30d74d64c8210ed3a516b269534
cpu/x86/smm: Add helper functions to verify SMM access

* Add a function to check if a region overlaps with SMM.
* Add a function to check if a pointer points to SMM.
* Document functions in Documentation/security/smm

To be used to verify data accesses in SMM.

Change-Id: Ia525d2bc685377f50ecf3bdcf337a4c885488213
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Christian Walter <christian.walter@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41084
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Documentation/security/index.md
Documentation/security/smm.md [new file with mode: 0644]
src/cpu/x86/smm/smihandler.c
src/cpu/x86/smm/smm_module_handler.c
src/include/cpu/x86/smm.h