]> git.baikalelectronics.ru Git - kernel.git/commit
nitro_enclaves: Sanity check physical memory regions during merging
authorLongpeng <longpeng2@huawei.com>
Sun, 7 Nov 2021 14:09:15 +0000 (22:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 15:11:09 +0000 (16:11 +0100)
commite4b9c7be63a18efddc847f5ae5da1bb960557419
tree5eee991c5f831a22fb3a7ce1e043eda3b0327c8c
parenta3831c86a7c1e2504b70329862febd7b3f9f06e8
nitro_enclaves: Sanity check physical memory regions during merging

Sanity check the physical memory regions during the merge of contiguous
regions. Thus we can test the physical memory regions setup logic
individually, including the error cases coming from the sanity checks.

Reviewed-by: Andra Paraschiv <andraprs@amazon.com>
Signed-off-by: Longpeng <longpeng2@huawei.com>
Link: https://lore.kernel.org/r/20211107140918.2106-3-longpeng2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/nitro_enclaves/ne_misc_dev.c