On February 25, 2025 2:37:11 AM PST, Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> wrote: >On Tue, Feb 25, 2025 at 08:45:21AM +0000, Berg, Benjamin wrote: >> Hi, >> >> On Tue, 2025-02-25 at 06:22 +0000, Lorenzo Stoakes wrote: >> > On Mon, Feb 24, 2025 at 10:52:44PM +0000, jeffxu@xxxxxxxxxxxx wrote: >> > > From: Jeff Xu <jeffxu@xxxxxxxxxxxx> >> > > >> > > Provide support for CONFIG_MSEAL_SYSTEM_MAPPINGS on UML, covering >> > > the vdso. >> > > >> > > Testing passes on UML. >> > >> > Maybe expand on this by stating that it has been confirmed by Benjamin (I >> > _believe_) that UML has no need for problematic relocation so this is known to >> > be good. >> >> I may well be misreading this message, but this sounds to me that this >> is a misinterpretation. So, just to clarify in case that is needed. >> >> CONFIG_MSEAL_SYSTEM_MAPPINGS does work fine for the UML kernel. >> However, the UML kernel is a normal userspace application itself and >> for this application to run, the host kernel must have the feature >> disabled. >> >> So, UML supports the feature. But it still *cannot* run on a host >> machine that has the feature enabled. > >Sigh ok. Apologies if I misunderstood. > >Is there any point having this for the 'guest' system? I mean security wise are >we concerned about sealing of system mappings? UML guests are used for testing. For example, it's the default target for KUnit's scripts. Having sealing working in the guest seems generally useful to me. > >I feel like having this here might just add confusion and churn if it's not >useful. > >If this is useless for UML guest, let's just drop this patch. But on the flip side, it's certainly not critical to have UML supported. I guess I just don't see a down side to keeping the patch. -Kees -- Kees Cook