[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/3] xen/arm: Frametable hardening and config.h cleanup
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Tue, 17 Jan 2023 12:43:29 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Jf6nKNHLvOErBL72flx6M70+gIIF/nfl192wzeKo9EE=; b=IGlhrBR1nCtJ6c7gk1IGU1vUFD58g/5E2OIPX2Dl5Z9VbRZJz/ckmxZRFrjdi/RWXu8BKsJldxrmXpC/I57fbJJxaoGSx/XzC7YRc8zj7fbGgJ0x/w2fl52mYPsYenp1rjWm8ISDLvYeBaAhSLekf85VCFkKGEEfnCKURn6FDsjjDxwvUrWDvqCmG2f3Y+phBHrhvzzUshOSD5ToRyCOybES/o6bR2PHQNwBjYzodXbZSCaYSfkxLJ77trQAckyT5XsRmhUEkAfnEkfvndF2kpcnTQo9vZBD7EWZa7T1LMzuB1eqIj1sdPwoayU4ahrhsSPAFUdsxh2A9ulRTul77w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VFNQG5vjTqgO+K6gzvk4yxzZej2wPLDh4t3HoiN8BmkBCNjQsVeGDZJfYPZ08A1YB6FcPAkPV0FamN151YHzCORuUU8Jswu1IzPg2q0XCXxdt4QKtaTTwYKataKZhrkSezJeFvNS4yKBlTLQMWfD0SKf4cqnmEKHBSZR7Jb1fxhS/9BIj7vs3jVCcwXWma9kRDO16Mv/SBIUsXcSOc37WWM2mtovVkzhL2t/kotw+qTl4YOUI5QQlvsA/rRYEXSQB5vcgkVlggd4ptv5Cr+L7AePnMKyhDO7uCtAYhRf3Vqb2Q2+0ebuoWdaHFX7oh9LxQ0/sqNebtrZJBKfN1P5iQ==
- Cc: Michal Orzel <michal.orzel@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Tue, 17 Jan 2023 11:43:50 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
The first patch fixes a bug due to incorrect DIRECTMAP_SIZE calculation.
The second patch removes unused macro FRAMETABLE_VIRT_END.
The third patch hardens the setup_frametable_mappings by adding a sanity check
for the size of struct page_info and calling panic if the calculate size of
the frametable exceeds the limit.
Sent together for ease of merging.
Michal Orzel (3):
xen/arm64: Fix incorrect DIRECTMAP_SIZE calculation
xen/arm32: Remove unused macro FRAMETABLE_VIRT_END
xen/arm: Harden setup_frametable_mappings
xen/arch/arm/include/asm/config.h | 7 +++----
xen/arch/arm/include/asm/mm.h | 11 +++++++++++
xen/arch/arm/mm.c | 6 ++++++
3 files changed, 20 insertions(+), 4 deletions(-)
--
2.25.1
|