[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <lhujz0yoowe.fsf@oldenburg.str.redhat.com>
Date: Mon, 13 Oct 2025 16:30:09 +0200
From: Florian Weimer <fweimer@...hat.com>
To: Deepak Gupta <debug@...osinc.com>
Cc: Charles Mirabile <cmirabil@...hat.com>, pjw@...nel.org,
Liam.Howlett@...cle.com, a.hindborg@...nel.org,
akpm@...ux-foundation.org, alex.gaynor@...il.com,
alexghiti@...osinc.com, aliceryhl@...gle.com, alistair.francis@....com,
andybnac@...il.com, aou@...s.berkeley.edu, arnd@...db.de,
atishp@...osinc.com, bjorn3_gh@...tonmail.com, boqun.feng@...il.com,
bp@...en8.de, brauner@...nel.org, broonie@...nel.org,
charlie@...osinc.com, cleger@...osinc.com, conor+dt@...nel.org,
conor@...nel.org, corbet@....net, dave.hansen@...ux.intel.com,
david@...hat.com, devicetree@...r.kernel.org, ebiederm@...ssion.com,
evan@...osinc.com, gary@...yguo.net, hpa@...or.com, jannh@...gle.com,
jim.shu@...ive.com, kees@...nel.org, kito.cheng@...ive.com,
krzk+dt@...nel.org, linux-arch@...r.kernel.org,
linux-doc@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-mm@...ck.org, linux-riscv@...ts.infradead.org,
lorenzo.stoakes@...cle.com, lossin@...nel.org, mingo@...hat.com,
ojeda@...nel.org, oleg@...hat.com, palmer@...belt.com,
paul.walmsley@...ive.com, peterz@...radead.org,
richard.henderson@...aro.org, rick.p.edgecombe@...el.com,
robh@...nel.org, rust-for-linux@...r.kernel.org,
samitolvanen@...gle.com, shuah@...nel.org, tglx@...utronix.de,
tmgross@...ch.edu, vbabka@...e.cz, x86@...nel.org, zong.li@...ive.com
Subject: Re: [PATCH v19 00/27] riscv control-flow integrity for usermode
* Deepak Gupta:
> How will they contribute to CFI bringup without having a CFI compiled
> usersapce?
Build glibc themselves and then proceed one library at the time.
>>Another use case would be running container images with CFI on a
>>distribution kernel which supports pre-RVA23 hardware.
>
> Container image with CFI will have glibc and ld (and all other
> userspace) also compiled with shadow stack instructions in it. As soon
> as you take this container image to a pre-RVA23 hardware, you won't
> even reach vDSO. It'll break much before that, unless kernel is taking
> a trap on all sspush/sspopchk instructions in prologue/epilogue of
> functions in userspace (glibc, ld, etc)
The idea is that you can use a stock distribution kernel to run CFI
images (potentially form a different distribution or version of the
distribution).
But maybe none of this really matters. How far out is CFI-checking
hardware? Is it going to arrive much later than the RVA23 flag day
that people are suggesting?
Thanks,
Florian
Powered by blists - more mailing lists