]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: Limit TASK_SIZE to the addressable range
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 19 Sep 2024 12:45:08 +0000 (14:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 10 Oct 2024 11:37:22 +0000 (13:37 +0200)
commit830003c73d190259e45d0a99a0e3d14cb73e0af0
treedaedac01201d5591775c58f044b3ee0d169560c5
parent91f0a0c5cc5bc863888a936fbd05394c6e284466
um: Limit TASK_SIZE to the addressable range

We may have a TASK_SIZE from the host that is bigger than UML is able to
address with a three-level pagetable on 64-bit. Guard against that by
clipping the maximum TASK_SIZE to the maximum addressable area.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20240919124511.282088-8-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/um_arch.c