From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: "Simon Glass" <sjg@chromium.org>, "Tom Rini" <trini@konsulko.com>,
"Alexey Brodkin" <alexey.brodkin@synopsys.com>,
"Eugeniy Paltsev" <Eugeniy.Paltsev@synopsys.com>,
"Caleb Connolly" <caleb.connolly@linaro.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Sumit Garg" <sumit.garg@linaro.org>,
"Huan Wang" <alison.wang@nxp.com>,
"Angelo Dureghello" <angelo@kernel-space.org>,
"Thomas Chou" <thomas@wytron.com.tw>,
"Rick Chen" <rick@andestech.com>, Leo <ycliang@andestech.com>,
"Marek Vasut" <marex@denx.de>,
"Nobuhiro Iwamatsu" <iwamatsu@nigauri.org>,
"Max Filippov" <jcmvbkbc@gmail.com>,
"Sughosh Ganu" <sughosh.ganu@linaro.org>,
"Sam Protsenko" <semen.protsenko@linaro.org>,
"Pierre-Clément Tosi" <ptosi@google.com>,
"Peng Fan" <peng.fan@nxp.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Sam Edwards" <CFSworks@gmail.com>,
"Jerome Forissier" <jerome.forissier@linaro.org>,
"Andre Przywara" <andre.przywara@arm.com>,
"Peter Hoyes" <Peter.Hoyes@arm.com>,
"Patrick Rudolph" <patrick.rudolph@9elements.com>,
"Sam Day" <me@samcday.com>,
"Mayuresh Chitale" <mchitale@ventanamicro.com>,
"Mattijs Korpershoek" <mkorpershoek@baylibre.com>,
"Stefan Roese" <sr@denx.de>,
"Alex Shumsky" <alexthreed@gmail.com>,
"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
"Joshua Watt" <jpewhacker@gmail.com>,
"Jagan Teki" <jagan@amarulasolutions.com>,
"Evgeny Bachinin" <EABachinin@salutedevices.com>,
"Peter Robinson" <pbrobinson@gmail.com>,
"Christian Marangi" <ansuelsmth@gmail.com>,
"Michal Simek" <michal.simek@amd.com>,
"Jonas Jelonek" <jelonek.jonas@gmail.com>,
uboot-snps-arc@synopsys.com, u-boot@lists.denx.de,
u-boot-qcom@groups.io
Subject: Re: [PATCH v1 5/6] treewide: Add a function to change page permissions
Date: Thu, 20 Feb 2025 11:22:40 +0200 [thread overview]
Message-ID: <Z7b0YHfFDuFwh_i0@hera> (raw)
In-Reply-To: <93152001-E018-4E2B-BA34-39D961624FAD@gmx.de>
Hi Heinrich
On Sun, Feb 09, 2025 at 09:27:36PM +0100, Heinrich Schuchardt wrote:
> Am 9. Februar 2025 21:15:53 MEZ schrieb Simon Glass <sjg@chromium.org>:
> >Hi Tom,
> >
> >On Sun, 9 Feb 2025 at 09:39, Tom Rini <trini@konsulko.com> wrote:
> >>
> >> On Thu, Feb 06, 2025 at 08:47:47AM -0700, Simon Glass wrote:
> >>
> >> [snip]
> >> > Perhaps make EFI_LOADER select CPU, or depend on CPU? If that's the
> >> > way you want to go, I'd be happy to do a precursor series to deal with
> >> > the fallout.
> >>
> >> I'm not sure what EFI_LOADER has to do with the generic security feature
> >> of enforcing permissions on pages. That's something we want everywhere
> >> that can enable it as it's a good defensive security measure and also
> >> catches code bugs.
> >
> >Yes, it's a good thing to have. I assumed it was related to EFI
> >because of all the mention of EFI, SetVirtualAddressMap() and the
> >like.
> >
> >It doesn't have to be DM. I was reacting to the idea that we cannot
> >add it to the CPU driver because hardly any boards have one. How about
> >mapping arch-specific stuff to generic functions, like we try to do
> >with the CPU uclass. The enforcement happens before initr_dm()
> >although I suppose it could be moved later, or a CPU driver could be
> >started up before relocation. Or just don't use a CPU driver, use
> >something else.
> >
> >WIth all the pain I've just been through with the EFI link scripts, I
> >would have rather seen some effort to follow the existing convention,
> >e.g. text_start rather than start_text. We already have
> >__image_copy_start - there is so much arch-specific variability here
> >already.
>
> Like we did for the EFI linker scripts we should standardize the u-boot binary linker scripts by using a common linker script include.
Yes, I already started this, but due to the efi_runtime complexity I need
to fix that weird split we have for .text_start, .efi_runtime, .text split first.
I have an idea of how we can fix it and link the EFI code in a way that all
relocatable objects of the .efi_runtime are self contained. But I'll send a
v2 as is first and work on the linker scripts afterwards
Thanks
/Ilias
>
> Best regards
>
> Heinrich
>
>
> >
> >Anyway, I'll stay away from this series in future.
> >
> >Regards,
> >Simon
>
next prev parent reply other threads:[~2025-02-20 13:50 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 7:16 [PATCH v1 0/6] Fix page permission on arm64 architectures Ilias Apalodimas
2025-02-05 7:16 ` [PATCH v1 1/6] meminfo: add memory details for armv8 Ilias Apalodimas
2025-02-05 9:27 ` Jerome Forissier
2025-02-05 10:32 ` Ilias Apalodimas
2025-02-11 21:08 ` Caleb Connolly
2025-02-05 7:16 ` [PATCH v1 2/6] doc: update meminfo with arch specific information Ilias Apalodimas
2025-02-05 17:22 ` Tom Rini
2025-02-05 17:35 ` Ilias Apalodimas
2025-02-06 12:31 ` Simon Glass
2025-02-06 12:32 ` Ilias Apalodimas
2025-02-05 7:16 ` [PATCH v1 3/6] arm: Prepare linker scripts for memory permissions Ilias Apalodimas
2025-02-05 8:22 ` Ilias Apalodimas
2025-02-05 12:41 ` Michal Simek
2025-02-05 13:11 ` Ilias Apalodimas
2025-02-05 19:03 ` Tom Rini
2025-02-05 17:23 ` Richard Henderson
2025-02-05 17:34 ` Ilias Apalodimas
2025-02-05 17:33 ` Tom Rini
2025-02-05 19:18 ` Ilias Apalodimas
2025-02-05 19:25 ` Tom Rini
2025-02-05 21:35 ` Ilias Apalodimas
2025-02-05 7:16 ` [PATCH v1 4/6] arm64: mmu_change_region_attr() add an option not to break PTEs Ilias Apalodimas
2025-02-05 7:16 ` [PATCH v1 5/6] treewide: Add a function to change page permissions Ilias Apalodimas
2025-02-05 16:47 ` Heinrich Schuchardt
2025-02-05 16:54 ` Ilias Apalodimas
2025-02-06 9:42 ` Ilias Apalodimas
2025-02-06 10:38 ` Heinrich Schuchardt
2025-02-06 12:30 ` Simon Glass
2025-02-06 12:51 ` Ilias Apalodimas
2025-02-06 12:58 ` Simon Glass
2025-02-06 15:15 ` Ilias Apalodimas
2025-02-06 15:47 ` Simon Glass
2025-02-06 16:21 ` Ilias Apalodimas
2025-02-09 14:35 ` Simon Glass
2025-02-09 16:36 ` Tom Rini
2025-02-09 16:39 ` Tom Rini
2025-02-09 20:15 ` Simon Glass
2025-02-09 20:27 ` Heinrich Schuchardt
2025-02-20 9:22 ` Ilias Apalodimas [this message]
2025-02-09 16:37 ` Tom Rini
2025-02-05 7:16 ` [PATCH v1 6/6] arm64: Enable RW, RX and RO mappings for the relocated binary Ilias Apalodimas
2025-02-05 9:57 ` Jerome Forissier
2025-02-05 10:31 ` Ilias Apalodimas
2025-02-05 19:17 ` Tom Rini
2025-02-06 8:33 ` [PATCH v1 0/6] Fix page permission on arm64 architectures Neil Armstrong
2025-02-06 12:33 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z7b0YHfFDuFwh_i0@hera \
--to=ilias.apalodimas@linaro.org \
--cc=CFSworks@gmail.com \
--cc=EABachinin@salutedevices.com \
--cc=Eugeniy.Paltsev@synopsys.com \
--cc=Peter.Hoyes@arm.com \
--cc=alexey.brodkin@synopsys.com \
--cc=alexthreed@gmail.com \
--cc=alison.wang@nxp.com \
--cc=andre.przywara@arm.com \
--cc=angelo@kernel-space.org \
--cc=ansuelsmth@gmail.com \
--cc=caleb.connolly@linaro.org \
--cc=iwamatsu@nigauri.org \
--cc=jagan@amarulasolutions.com \
--cc=jcmvbkbc@gmail.com \
--cc=jelonek.jonas@gmail.com \
--cc=jerome.forissier@linaro.org \
--cc=jiaxun.yang@flygoat.com \
--cc=jpewhacker@gmail.com \
--cc=marex@denx.de \
--cc=mchitale@ventanamicro.com \
--cc=me@samcday.com \
--cc=michal.simek@amd.com \
--cc=mkorpershoek@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=patrick.rudolph@9elements.com \
--cc=pbrobinson@gmail.com \
--cc=peng.fan@nxp.com \
--cc=ptosi@google.com \
--cc=richard.henderson@linaro.org \
--cc=rick@andestech.com \
--cc=semen.protsenko@linaro.org \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=sughosh.ganu@linaro.org \
--cc=sumit.garg@linaro.org \
--cc=thomas@wytron.com.tw \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
--cc=uboot-snps-arc@synopsys.com \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox