source
large_stringclasses
2 values
subject
large_stringclasses
112 values
code
large_stringclasses
112 values
critique
large_stringlengths
61
3.04M
metadata
dict
lkml
[PATCH next 00/14] bits: De-bloat expansion of GENMASK()
From: David Laight <david.laight.linux@gmail.com> The expansion of GENMASK() is a few hundred bytes, this is often multiplied when the value is passed to other #defines (eg FIELD_PREP). Part of the size is due to the compile-type check (for reversed arguments), the rest from the way the value is defined. Nothing in t...
On Fri, Jan 23, 2026 at 09:32:39AM +0100, Vincent Mailhol wrote: ... My ping: https://lore.kernel.org/all/aV9vo7_turBr84bs@black.igk.intel.com/ But now I realised that there was another version of the series, and Chris seems active there. https://lore.kernel.org/all/CACePvbU5Pqo=bw_j8arOq16o1JBOSwPtuMZBVozy4FV7YsSLG...
{ "author": "Andy Shevchenko <andriy.shevchenko@linux.intel.com>", "date": "Fri, 23 Jan 2026 10:46:37 +0200", "thread_id": "aYDt8gLSRbFHwVpn@yury.mbox.gz" }
lkml
[PATCH next 00/14] bits: De-bloat expansion of GENMASK()
From: David Laight <david.laight.linux@gmail.com> The expansion of GENMASK() is a few hundred bytes, this is often multiplied when the value is passed to other #defines (eg FIELD_PREP). Part of the size is due to the compile-type check (for reversed arguments), the rest from the way the value is defined. Nothing in t...
On Wed, Jan 21, 2026 at 02:57:22PM +0000, david.laight.linux@gmail.com wrote: Thanks David, Other than the motivation above, I appreciate that this removes two #ifdefs, improving readability (subjective) and compile coverage (objective) of this code. As an aside: I'm Not sure what your merge plan is for this patchse...
{ "author": "Simon Horman <horms@kernel.org>", "date": "Fri, 23 Jan 2026 15:44:25 +0000", "thread_id": "aYDt8gLSRbFHwVpn@yury.mbox.gz" }
lkml
[PATCH next 00/14] bits: De-bloat expansion of GENMASK()
From: David Laight <david.laight.linux@gmail.com> The expansion of GENMASK() is a few hundred bytes, this is often multiplied when the value is passed to other #defines (eg FIELD_PREP). Part of the size is due to the compile-type check (for reversed arguments), the rest from the way the value is defined. Nothing in t...
On Wed, Jan 21, 2026 at 02:57:18PM +0000, david.laight.linux@gmail.com wrote: Thanks! Reviewed-by: Yury Norov <ynorov@nvidia.com>
{ "author": "Yury Norov <ynorov@nvidia.com>", "date": "Mon, 2 Feb 2026 11:45:28 -0500", "thread_id": "aYDt8gLSRbFHwVpn@yury.mbox.gz" }
lkml
[PATCH next 00/14] bits: De-bloat expansion of GENMASK()
From: David Laight <david.laight.linux@gmail.com> The expansion of GENMASK() is a few hundred bytes, this is often multiplied when the value is passed to other #defines (eg FIELD_PREP). Part of the size is due to the compile-type check (for reversed arguments), the rest from the way the value is defined. Nothing in t...
On Wed, Jan 21, 2026 at 02:57:19PM +0000, david.laight.linux@gmail.com wrote: Honestly I don't understand this. AFAIU, you've outlined a list of compiler warnings that slow the compilation down, and you group them under 'W=c' option. What is the use case for it outside of your series. I think, a typical user would fi...
{ "author": "Yury Norov <ynorov@nvidia.com>", "date": "Mon, 2 Feb 2026 13:33:22 -0500", "thread_id": "aYDt8gLSRbFHwVpn@yury.mbox.gz" }
lkml
[PATCH v2 net] net: phy: change devlink flag to AUTOREMOVE_SUPPLIER for non-SFP PHYs
For the shared MDIO bus use case, multiple MACs will share the same MDIO bus. Therefore, these MACs all depend on this MDIO bus. If this shared MDIO bus is removed, all the PHY devices attached to this MDIO bus will also be removed. Consequently, the MAC driver should not access the PHY device, otherwise, it will lead ...
Hi Wei, On 02/02/2026 06:45, Wei Fang wrote: I gave that patch a test, with the following cases : - On Macchiatobin (we have PHYs that share an mdiobus). When unbinding a PHY, the MAC dissapears as well : #before : # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ...
{ "author": "Maxime Chevallier <maxime.chevallier@bootlin.com>", "date": "Mon, 2 Feb 2026 12:10:41 +0100", "thread_id": "5527e953-2225-46e7-9619-5f346c1af9c0@bootlin.com.mbox.gz" }
lkml
[PATCH v2 net] net: phy: change devlink flag to AUTOREMOVE_SUPPLIER for non-SFP PHYs
For the shared MDIO bus use case, multiple MACs will share the same MDIO bus. Therefore, these MACs all depend on this MDIO bus. If this shared MDIO bus is removed, all the PHY devices attached to this MDIO bus will also be removed. Consequently, the MAC driver should not access the PHY device, otherwise, it will lead ...
On Mon, Feb 02, 2026 at 12:10:41PM +0100, Maxime Chevallier wrote: Correct, this is why these band-aids are harmful. One "device" can correspond with *multiple* network interfaces, and the loss of one PHY can have a *very* detrimental effect. Consider the case where root-NFS is being used, and removing a PHY on anoth...
{ "author": "\"Russell King (Oracle)\" <linux@armlinux.org.uk>", "date": "Mon, 2 Feb 2026 14:25:09 +0000", "thread_id": "5527e953-2225-46e7-9619-5f346c1af9c0@bootlin.com.mbox.gz" }
lkml
[PATCH v2 net] net: phy: change devlink flag to AUTOREMOVE_SUPPLIER for non-SFP PHYs
For the shared MDIO bus use case, multiple MACs will share the same MDIO bus. Therefore, these MACs all depend on this MDIO bus. If this shared MDIO bus is removed, all the PHY devices attached to this MDIO bus will also be removed. Consequently, the MAC driver should not access the PHY device, otherwise, it will lead ...
On 02/02/2026 15:25, Russell King (Oracle) wrote: That's what I've been seeing. I unbound one PHY, it took out 3 netdevs and I don't have log regarding "why". I guess there's devlink debug knobs for that, but not enabled by default it seems. However, we seem to have the issue even without this patch. On MCBin, if I ...
{ "author": "Maxime Chevallier <maxime.chevallier@bootlin.com>", "date": "Mon, 2 Feb 2026 18:38:48 +0100", "thread_id": "5527e953-2225-46e7-9619-5f346c1af9c0@bootlin.com.mbox.gz" }
lkml
[PATCH v2 net] net: phy: change devlink flag to AUTOREMOVE_SUPPLIER for non-SFP PHYs
For the shared MDIO bus use case, multiple MACs will share the same MDIO bus. Therefore, these MACs all depend on this MDIO bus. If this shared MDIO bus is removed, all the PHY devices attached to this MDIO bus will also be removed. Consequently, the MAC driver should not access the PHY device, otherwise, it will lead ...
On Mon, Feb 02, 2026 at 06:38:48PM +0100, Maxime Chevallier wrote: See what I said above. "One "device" can correspond with *multiple* network interfaces". On Armada 8040, one network "device" has multiple ports - they all share the same packet infrastructure. Each port is a separate interface in the kernel. Consequ...
{ "author": "\"Russell King (Oracle)\" <linux@armlinux.org.uk>", "date": "Mon, 2 Feb 2026 18:00:29 +0000", "thread_id": "5527e953-2225-46e7-9619-5f346c1af9c0@bootlin.com.mbox.gz" }
lkml
[PATCH v2 net] net: phy: change devlink flag to AUTOREMOVE_SUPPLIER for non-SFP PHYs
For the shared MDIO bus use case, multiple MACs will share the same MDIO bus. Therefore, these MACs all depend on this MDIO bus. If this shared MDIO bus is removed, all the PHY devices attached to this MDIO bus will also be removed. Consequently, the MAC driver should not access the PHY device, otherwise, it will lead ...
On 02/02/2026 19:00, Russell King (Oracle) wrote: Don't get me wrong, I completely agree with you on that, it's pretty bad to lose all these interfaces in one go, and the debugging experience to figure this out on an unknown system doesn't sound great. Fair, fair. I think you gave enough pointers on a way forward th...
{ "author": "Maxime Chevallier <maxime.chevallier@bootlin.com>", "date": "Mon, 2 Feb 2026 19:37:42 +0100", "thread_id": "5527e953-2225-46e7-9619-5f346c1af9c0@bootlin.com.mbox.gz" }
lkml
Orphan filesystems after mount namespace destruction and tmpfs "leak"
Hi, In the Meta fleet, we saw a problem where destroying a container didn't lead to freeing the shmem memory attributed to a tmpfs mounted inside that container. It triggered an OOM when a new container attempted to start. Investigation has shown that this happened because a process outside of the container kept a fi...
On Mon, Feb 02, 2026 at 05:50:30PM +0000, Kiryl Shutsemau wrote: Yes? That's precisely what should happen as long as something's opened on a filesystem. Yes. Or remove the junk there from time to time, if you don't want it to stay until the filesystem shutdown... That's insane - if nothing else, the process th...
{ "author": "Al Viro <viro@zeniv.linux.org.uk>", "date": "Mon, 2 Feb 2026 18:43:56 +0000", "thread_id": "20260202184356.GD3183987@ZenIV.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
When CONFIG_MODULE_SIG is disabled set_module_sig_enforced() is defined as an empty stub, so the check is unnecessary. The specific configuration option for set_module_sig_enforced() is about to change and removing the check avoids some later churn. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- arch/powe...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:46 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
When configuration settings are disabled the guarded functions are defined as empty stubs, so the check is unnecessary. The specific configuration option for set_module_sig_enforced() is about to change and removing the checks avoids some later churn. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- securit...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:47 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
From: Coiby Xu <coxu@redhat.com> Currently if set_module_sig_enforced is called with CONFIG_MODULE_SIG=n e.g. [1], it can lead to a linking error, ld: security/integrity/ima/ima_appraise.o: in function `ima_appraise_measurement': security/integrity/ima/ima_appraise.c:587:(.text+0xbbb): undefined reference to ...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:45 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
Switching the types will make some later changes cleaner. size_t is also the semantically correct type for this field. As both 'size_t' and 'unsigned int' are always the same size, this should be risk-free. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/internal.h | 2 +- kernel/module/main...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:49 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The loading policy functionality will also be used by the hash-based module validation. Split it out from CONFIG_MODULE_SIG so it is usable by both. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- include/linux/module.h | 8 ++++---- kernel/module/Kconfig | 5 ++++- kernel/module/main.c | 26 ++++++...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:53 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
With the addition of hash-based integrity checking, the configuration matrix is easier to represent in a dedicated function and with explicit usage of IS_ENABLED(). Drop the now unnecessary stub for module_sig_check(). Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/internal.h | 7 ------- ...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:54 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The upcoming module hashes functionality will build the modules in between the generation of the BTF data and the final link of vmlinux. At this point vmlinux is not yet built and therefore can't be used for module BTF generation. vmlinux.unstripped however is usable and sufficient for BTF generation. Signed-off-by: T...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:51 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The lockdown check buried in module_sig_check() will not compose well with the introduction of hash-based module validation. Move it into module_integrity_check() which will work better. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/main.c | 6 +++++- kernel/module/signing.c | 3 +-- 2 f...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:55 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
It is not used outside of signing.c. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/internal.h | 1 - kernel/module/signing.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/module/internal.h b/kernel/module/internal.h index 618202578b42..e68fbcd60c35 100644 ---...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:48 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The new hash-based module integrity checking will also be able to satisfy the requirements of lockdown. Such an alternative is not representable with "select", so use "depends on" instead. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- security/lockdown/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 de...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:58 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The upcoming CONFIG_MODULE_HASHES will introduce a signature type. This needs to be handled by callers differently than PKCS7 signatures. Report the signature type to the caller and let them verify it. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- include/linux/module_signature.h | 2 +- kernel/modu...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:57 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
CONFIG_MODULE_HASHES needs to process the modules at build time in the exact form they will be loaded at runtime. If the modules are stripped afterwards they will not be loadable anymore. Also evaluate INSTALL_MOD_STRIP at build time and build the hashes based on modules stripped this way. If users specify inconsiste...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:29:01 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The logic to extract the signature bits from a module file are duplicated between the module core and IMA modsig appraisal. Unify the implementation. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- include/linux/module_signature.h | 4 +-- kernel/module/signing.c | 52 +++++++--------------...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:52 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
To allow CONFIG_MODULE_HASHES in combination with INSTALL_MOD_STRIP, this logc will also be used by Makefile.modfinal. Move it to a shared location to enable reuse. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- scripts/Makefile.lib | 32 ++++++++++++++++++++++++++++++++ scripts/Makefile.modinst | 37...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:29:00 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The signature splitting will also be used by CONFIG_MODULE_HASHES. Move it up the callchain, so the result can be reused. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/internal.h | 2 +- kernel/module/main.c | 13 ++++++++++++- kernel/module/signing.c | 21 +++++++-------------- 3 fi...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:56 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The upcoming module hashes functionality will build the modules in between the generation of the BTF data and the final link of vmlinux. Having a dependency from the modules on vmlinux would make this impossible as it would mean having a cyclic dependency. Break this cyclic dependency by introducing a new target. Sign...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:50 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:59 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On 2026-01-13 13:28:59 [+0100], Thomas Weißschuh wrote: … This and a few other instances below could be optimized to avoid hashing. I probably forgot to let you know. -> https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/mtree-hashed-mods.git/commit/?id=10b565c123c731da37befe862de13678b7c54877 Sebastian
{ "author": "Sebastian Andrzej Siewior <bigeasy@linutronix.de>", "date": "Tue, 13 Jan 2026 15:56:35 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On 1/13/26 1:28 PM, Thomas Weißschuh wrote: The patch looks to modify the behavior when mangled_module is true. Previously, module_sig_check() didn't attempt to extract the signature in such a case and treated the module as unsigned. The err remained set to -ENODATA and the function subsequently consulted module_sig_...
{ "author": "Petr Pavlu <petr.pavlu@suse.com>", "date": "Tue, 27 Jan 2026 16:20:15 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On 1/13/26 1:28 PM, Thomas Weißschuh wrote: I suggest moving the IS_ENABLED(CONFIG_MODULE_SIG) block under the new IS_ENABLED(CONFIG_MODULE_SIG_POLICY) section. I realize that CONFIG_MODULE_SIG implies CONFIG_MODULE_SIG_POLICY, but I believe this change makes it more apparent that this it the case. Otherwise, one migh...
{ "author": "Petr Pavlu <petr.pavlu@suse.com>", "date": "Thu, 29 Jan 2026 15:41:43 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On 1/13/26 1:28 PM, Thomas Weißschuh wrote: The new else branch means that if the user chooses not to configure any module integrity policy, they will no longer be able to load any modules. I think this entire if-else part should be moved under the IS_ENABLED(CONFIG_MODULE_SIG_POLICY) block above, as I'm mentioning on...
{ "author": "Petr Pavlu <petr.pavlu@suse.com>", "date": "Thu, 29 Jan 2026 15:44:31 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On 1/13/26 1:28 PM, Thomas Weißschuh wrote: I wonder if this dependency cycle could be resolved by utilizing the split into vmlinux.unstripped and vmlinux that occurred last year. The idea is to create the following ordering: vmlinux.unstripped -> modules -> vmlinux, and to patch in .module_hashes only when building ...
{ "author": "Petr Pavlu <petr.pavlu@suse.com>", "date": "Fri, 30 Jan 2026 18:06:20 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On Tue, Jan 13, 2026 at 01:28:46PM +0100, Thomas Weißschuh wrote: Reviewed-by: Aaron Tomlin <atomlin@atomlin.com> -- Aaron Tomlin
{ "author": "Aaron Tomlin <atomlin@atomlin.com>", "date": "Fri, 30 Jan 2026 15:43:09 -0500", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On Tue, Jan 13, 2026 at 01:28:47PM +0100, Thomas Weißschuh wrote: Reviewed-by: Aaron Tomlin <atomlin@atomlin.com> -- Aaron Tomlin
{ "author": "Aaron Tomlin <atomlin@atomlin.com>", "date": "Fri, 30 Jan 2026 15:49:16 -0500", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On Tue, Jan 13, 2026 at 01:28:48PM +0100, Thomas Weißschuh wrote: Reviewed-by: Aaron Tomlin <atomlin@atomlin.com> -- Aaron Tomlin
{ "author": "Aaron Tomlin <atomlin@atomlin.com>", "date": "Fri, 30 Jan 2026 15:53:50 -0500", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packaging process much more complicated. I think there is a middle ground whe...
{ "author": "=?UTF-8?q?Mihai-Drosi=20C=C3=A2ju?= <mcaju95@gmail.com>", "date": "Sat, 31 Jan 2026 09:36:36 +0200", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
Hi Mihai-Drosi, thanks for taking an interest into these patches! On 2026-01-31 09:36:36+0200, Mihai-Drosi Câju wrote: The goal is to make the distro kernel packages rebuildable by the general public. Any involvement of secret values will break this goal. I am not familiar with NixOS and its secret management. Thi...
{ "author": "Thomas =?utf-8?Q?Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Sun, 1 Feb 2026 17:22:12 +0100", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
Mihai-Drosi Câju <mcaju95@gmail.com> wrote: There is another issue too: If you have a static private key that you use to sign modules (and probably other things), someone will likely give you a GPL request to get it. One advantage of using a transient key every build and deleting it after is that no one has the key....
{ "author": "David Howells <dhowells@redhat.com>", "date": "Sun, 01 Feb 2026 17:09:48 +0000", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On Sun, Feb 01, 2026 at 05:09:48PM +0000, David Howells wrote: It sounds like hash-based module authentication is just better, then. If the full set of authentic modules is known at kernel build time, then signatures are unnecessary to verify their authenticity: a list of hashes built into the kernel image is perfectl...
{ "author": "Eric Biggers <ebiggers@kernel.org>", "date": "Sun, 1 Feb 2026 12:12:18 -0800", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
Eric Biggers <ebiggers@kernel.org> wrote: Because it's not just signing of modules and it's not just modules built with the kernel. Also a hash table just of module hashes built into the core kernel image will increase the size of the kernel by around a third of a meg (on Fedora 43 and assuming SHA512) with uncompre...
{ "author": "David Howells <dhowells@redhat.com>", "date": "Mon, 02 Feb 2026 09:21:19 +0000", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On Mon, Feb 02, 2026 at 09:21:19AM +0000, David Howells wrote: Module signing is indeed about the signing of modules. Could you give more details on this use case and why it needs signatures, as opposed to e.g. loading an additional Merkle tree root into the kernel to add to the set of allowed modules? This patchs...
{ "author": "Eric Biggers <ebiggers@kernel.org>", "date": "Mon, 2 Feb 2026 10:30:55 -0800", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
Eric Biggers <ebiggers@kernel.org> wrote: The signature verification stuff in the kernel isn't just used for modules. kexec, for instance; wifi restriction database for another. Because we don't want to, for example, include all the nvidia drivers in our kernel SRPM. David
{ "author": "David Howells <dhowells@redhat.com>", "date": "Mon, 02 Feb 2026 18:38:51 +0000", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
On Mon, Feb 02, 2026 at 06:38:51PM +0000, David Howells wrote: That doesn't answer my question. Are you trying to say these modules need to be built later *and* signed using the original signing key? - Eric
{ "author": "Eric Biggers <ebiggers@kernel.org>", "date": "Mon, 2 Feb 2026 10:47:25 -0800", "thread_id": "2513499.1770057531@warthog.procyon.org.uk.mbox.gz" }
lkml
[PATCH] perf: arm_spe: Add barrier before enabling profiling buffer
The Arm ARM known issues document [1] states that the architecture will be relaxed so that the profiling buffer must be correctly configured when ProfilingBufferEnabled() && !SPEProfilingStopped() && PMBLIMITR_EL1.FM != DISCARD: R24557 While the Profiling Buffer is enabled, profiling is not stopped, and Discard...
On Fri, Jan 23, 2026 at 04:03:53PM +0000, James Clark wrote: Makes sense. The isb() in the interrupt handler is useful and should not be removed. See the sequence in the interrupt handler: arm_spe_perf_aux_output_begin() { write_sysreg_s(base, SYS_PMBPTR_EL1); // Ensure the write pointer is or...
{ "author": "Leo Yan <leo.yan@arm.com>", "date": "Fri, 30 Jan 2026 20:24:37 +0000", "thread_id": "20260202184234.GC3481290@e132581.arm.com.mbox.gz" }
lkml
[PATCH] perf: arm_spe: Add barrier before enabling profiling buffer
The Arm ARM known issues document [1] states that the architecture will be relaxed so that the profiling buffer must be correctly configured when ProfilingBufferEnabled() && !SPEProfilingStopped() && PMBLIMITR_EL1.FM != DISCARD: R24557 While the Profiling Buffer is enabled, profiling is not stopped, and Discard...
On Fri, Jan 30, 2026 at 08:24:37PM +0000, Leo Yan wrote: Oh nice, since when was it ok to relax the architecture and break existing drivers that were perfectly fine before? The SPE spec's not worth the paper it's written on... Anyway, we're not changing the driver without a comment next to the new isb() explaining th...
{ "author": "Will Deacon <will@kernel.org>", "date": "Mon, 2 Feb 2026 16:53:57 +0000", "thread_id": "20260202184234.GC3481290@e132581.arm.com.mbox.gz" }
lkml
[PATCH] perf: arm_spe: Add barrier before enabling profiling buffer
The Arm ARM known issues document [1] states that the architecture will be relaxed so that the profiling buffer must be correctly configured when ProfilingBufferEnabled() && !SPEProfilingStopped() && PMBLIMITR_EL1.FM != DISCARD: R24557 While the Profiling Buffer is enabled, profiling is not stopped, and Discard...
On Mon, Feb 02, 2026 at 04:53:57PM +0000, Will Deacon wrote: [...] I think the ISB after arm_spe_perf_aux_output_begin() in the irq handler is required for both the failure and success cases. For a normal maintenance interrupt, an ISB is inserted between writing PMBLIMITR_EL1 and PMBSR_EL1 to ensure that a valid li...
{ "author": "Leo Yan <leo.yan@arm.com>", "date": "Mon, 2 Feb 2026 18:42:34 +0000", "thread_id": "20260202184234.GC3481290@e132581.arm.com.mbox.gz" }
lkml
[PATCH] sched_ext: Fix NULL pointer deref and warnings during scx teardown
When a BPF scheduler is being disabled, scx_root can be set to NULL while tasks are still associated with the sched_ext class. If a task is subject to an affinity change, priority adjustment, or policy switch during this window, sched_class operations will dereference a NULL scx_root pointer, triggering a BUG like the ...
Hello, On Mon, Feb 02, 2026 at 04:13:41PM +0100, Andrea Righi wrote: I don't quite understand how this would happen. set_cpu_allowed_scx() is called from do_set_cpus_allowed() with task_rq locked. ie. the task *has* to be on sched_ext for it to be called. It's straightforward task rq lock synchronization, so there's ...
{ "author": "Tejun Heo <tj@kernel.org>", "date": "Mon, 2 Feb 2026 07:10:02 -1000", "thread_id": "aYDy-tCqsH990lW9@gpd4.mbox.gz" }
lkml
[PATCH] sched_ext: Fix NULL pointer deref and warnings during scx teardown
When a BPF scheduler is being disabled, scx_root can be set to NULL while tasks are still associated with the sched_ext class. If a task is subject to an affinity change, priority adjustment, or policy switch during this window, sched_class operations will dereference a NULL scx_root pointer, triggering a BUG like the ...
On Mon, Feb 02, 2026 at 07:10:02AM -1000, Tejun Heo wrote: I'm able to reproduce the NULL pointer dereference in set_cpu_allowed_scx() quite easily running `stress-ng --race-sched 0` with an scx scheduler that is intentionally starving tasks, triggering a stall => disable. I think this is what's happening: CPU0 ...
{ "author": "Andrea Righi <arighi@nvidia.com>", "date": "Mon, 2 Feb 2026 19:54:50 +0100", "thread_id": "aYDy-tCqsH990lW9@gpd4.mbox.gz" }
lkml
[PATCH 1/1] mshv: Add comment about huge page mappings in guest physical address space
From: Michael Kelley <mhklinux@outlook.com> Huge page mappings in the guest physical address space depend on having matching alignment of the userspace address in the parent partition and of the guest physical address. Add a comment that captures this information. See the link to the mailing list thread. No code or f...
On Mon, Feb 02, 2026 at 08:51:01AM -0800, mhkelley58@gmail.com wrote: Thanks. However, I'd suggest to reduce this commet a lot and put the details into the commit message instead. Also, why this place? Why not a part of the function description instead, for example? Thanks, Stanislav
{ "author": "Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>", "date": "Mon, 2 Feb 2026 09:17:33 -0800", "thread_id": "aYDzU5ujoBlzWaa6@skinsburskii.localdomain.mbox.gz" }
lkml
[PATCH 1/1] mshv: Add comment about huge page mappings in guest physical address space
From: Michael Kelley <mhklinux@outlook.com> Huge page mappings in the guest physical address space depend on having matching alignment of the userspace address in the parent partition and of the guest physical address. Add a comment that captures this information. See the link to the mailing list thread. No code or f...
From: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> Sent: Monday, February 2, 2026 9:18 AM In general, I'm very much an advocate of putting a bit more detail into code comments, so that someone new reading the code has a chance of figuring out what's going on without having to search through the commit hist...
{ "author": "Michael Kelley <mhklinux@outlook.com>", "date": "Mon, 2 Feb 2026 18:26:42 +0000", "thread_id": "aYDzU5ujoBlzWaa6@skinsburskii.localdomain.mbox.gz" }
lkml
[PATCH 1/1] mshv: Add comment about huge page mappings in guest physical address space
From: Michael Kelley <mhklinux@outlook.com> Huge page mappings in the guest physical address space depend on having matching alignment of the userspace address in the parent partition and of the guest physical address. Add a comment that captures this information. See the link to the mailing list thread. No code or f...
On Mon, Feb 02, 2026 at 06:26:42PM +0000, Michael Kelley wrote: This approach is not well aligned with the existing kernel coding style. It is common to answer the “why” question in the commit message. Code comments should focus on “what” the code does. https://www.kernel.org/doc/html/latest/process/coding-style.html...
{ "author": "Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>", "date": "Mon, 2 Feb 2026 10:56:19 -0800", "thread_id": "aYDzU5ujoBlzWaa6@skinsburskii.localdomain.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
Modify online_memory_block() to accept the online type through its arg parameter rather than calling mhp_get_default_online_type() internally. This prepares for allowing callers to specify explicit online types. Update the caller in add_memory_resource() to pass the default online type via a local variable. No functi...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:34 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
Enable dax kmem driver to select how to online the memory rather than implicitly depending on the system default. This will allow users of dax to plumb through a preferred auto-online policy for their region. Refactor and new interface: Add __add_memory_driver_managed() which accepts an explicit online_type and expor...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:35 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
There is no way for drivers leveraging dax_kmem to plumb through a preferred auto-online policy - the system default policy is forced. Add online_type field to DAX device creation path to allow drivers to specify an auto-online policy when using the kmem driver. Current callers initialize online_type to mhp_get_defau...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:36 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
Move the pmem region driver logic from region.c into pmem_region.c. No functional changes. Signed-off-by: Gregory Price <gourry@gourry.net> --- drivers/cxl/core/Makefile | 1 + drivers/cxl/core/core.h | 1 + drivers/cxl/core/pmem_region.c | 191 +++++++++++++++++++++++++++++++++ drivers/cxl/core/regi...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:38 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
Move the CXL DAX region device infrastructure from region.c into a new dax_region.c file. No functional changes. Signed-off-by: Gregory Price <gourry@gourry.net> --- drivers/cxl/core/Makefile | 1 + drivers/cxl/core/core.h | 1 + drivers/cxl/core/dax_region.c | 113 ++++++++++++++++++++++++++++++++++ d...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:39 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
Add a new cxl_devdax_region driver that probes CXL regions in device dax mode and creates dax_region devices. This allows explicit binding to the device_dax dax driver instead of the kmem driver. Exports to_cxl_region() to core.h so it can be used by the driver. Signed-off-by: Gregory Price <gourry@gourry.net> --- d...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:40 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
CXL regions may wish not to auto-configure their memory as dax kmem, but the current plumbing defaults all cxl-created dax devices to the kmem driver. This exposes them to hotplug policy, even if the user intends to use the memory as a dax device. Add plumbing to allow CXL drivers to select whether a DAX region shoul...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:37 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
Explain the binding process for sysram and daxdev regions which are explicit about which dax driver to use during region creation. Jonathan Corbet <corbet@lwn.net> Signed-off-by: Gregory Price <gourry@gourry.net> --- .../driver-api/cxl/linux/cxl-driver.rst | 43 +++++++++++++++++++ .../driver-api/cxl/linux/dax...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:42 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
In the current kmem driver binding process, the only way for users to define hotplug policy is via a build-time option, or by not onlining memory by default and setting each individual memory block online after hotplug occurs. We can solve this with a configuration step between region-probe and dax-probe. Add the inf...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:04:41 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
Annoyingly, my email client has been truncating my titles: cxl: explicit DAX driver selection and hotplug policy for CXL regions ~Gregory
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Thu, 29 Jan 2026 16:17:55 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Thu, Jan 29, 2026 at 04:04:33PM -0500, Gregory Price wrote: Looks like build regression on configs without hotplug MMOP_ defines and mhp_get_default_online_type() undefined Will let this version sit for a bit before spinning a v2 ~Gregory
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Fri, 30 Jan 2026 12:34:33 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On 1/29/2026 3:04 PM, Gregory Price wrote: This technically comes up in the devdax_region driver patch first, but I noticed it here so this is where I'm putting it: I like the idea here, but the implementation is all off. Firstly, devm_cxl_add_sysram_region() is never called outside of sysram_region_driver::probe(), ...
{ "author": "\"Cheatham, Benjamin\" <benjamin.cheatham@amd.com>", "date": "Fri, 30 Jan 2026 15:27:12 -0600", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Fri, Jan 30, 2026 at 03:27:12PM -0600, Cheatham, Benjamin wrote: I originally tried doing with region0/region_driver, but that design pattern is also confusing - and it creates differently bad patterns. echo region0 > decoder0.0/create_ram_region -> creates region0 # Current pattern echo region > dr...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Fri, 30 Jan 2026 17:12:50 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On 1/30/2026 4:12 PM, Gregory Price wrote: Ok, that makes sense. I think I just got lost in the sauce while looking at this last week and this explanation helped a lot.> I think this was the source of my misunderstanding. I was trying to understand how it works for auto regions when it's never meant to apply to them...
{ "author": "\"Cheatham, Benjamin\" <benjamin.cheatham@amd.com>", "date": "Mon, 2 Feb 2026 11:02:37 -0600", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Thu, 29 Jan 2026 16:04:34 -0500 Gregory Price <gourry@gourry.net> wrote: Trivial comment inline. I don't really care either way. Pushing the policy up to the caller and ensuring it's explicitly constant for all the memory blocks (as opposed to relying on locks) seems sensible to me even without anything else. Rev...
{ "author": "Jonathan Cameron <jonathan.cameron@huawei.com>", "date": "Mon, 2 Feb 2026 17:10:29 +0000", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Thu, 29 Jan 2026 16:04:35 -0500 Gregory Price <gourry@gourry.net> wrote: Hi Gregory, I think maybe I'd have left the export for the first user outside of memory_hotplug.c. Not particularly important however. Maybe talk about why a caller of __add_memory_driver_managed() might want the default? Feels like that's...
{ "author": "Jonathan Cameron <jonathan.cameron@huawei.com>", "date": "Mon, 2 Feb 2026 17:25:24 +0000", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Mon, Feb 02, 2026 at 11:02:37AM -0600, Cheatham, Benjamin wrote: Auto regions explicitly use the dax_kmem path (all existing code, unchanged)- which auto-plugs into dax/hotplug. I do get what you're saying that everything binds on a region type, I will look a little closer at this and see if there's something more...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Mon, 2 Feb 2026 12:41:31 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Mon, Feb 02, 2026 at 05:10:29PM +0000, Jonathan Cameron wrote: ack. will update for next version w/ Ben's notes and the build fix. Thanks! ~Gregory
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Mon, 2 Feb 2026 12:46:25 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Thu, 29 Jan 2026 16:04:37 -0500 Gregory Price <gourry@gourry.net> wrote: LGTM Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
{ "author": "Jonathan Cameron <jonathan.cameron@huawei.com>", "date": "Mon, 2 Feb 2026 17:54:17 +0000", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Thu, 29 Jan 2026 16:04:38 -0500 Gregory Price <gourry@gourry.net> wrote: Needs to answer the question: Why? Minor stuff inline. Maybe sneak in dropping that trailing comma whilst you are moving it. ... Bonus line...
{ "author": "Jonathan Cameron <jonathan.cameron@huawei.com>", "date": "Mon, 2 Feb 2026 17:56:40 +0000", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Thu, 29 Jan 2026 16:04:39 -0500 Gregory Price <gourry@gourry.net> wrote: Likewise. Why?
{ "author": "Jonathan Cameron <jonathan.cameron@huawei.com>", "date": "Mon, 2 Feb 2026 17:57:11 +0000", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Mon, Feb 02, 2026 at 05:25:24PM +0000, Jonathan Cameron wrote: Less about why they want the default, more about maintaining backward compatibility. In the cxl driver, Ben pointed out something that made me realize we can change `region/bind()` to actually use the new `sysram/bind` path by just adding a one line `s...
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Mon, 2 Feb 2026 13:02:10 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Thu, 29 Jan 2026 16:04:41 -0500 Gregory Price <gourry@gourry.net> wrote: ZONE_MOVABLE Trivial stuff. Will mull over this series as a whole... My first instinctive reaction is positive - I'm just wondering where additional drivers fit into this and whether it has the right degree of flexibility. This smells li...
{ "author": "Jonathan Cameron <jonathan.cameron@huawei.com>", "date": "Mon, 2 Feb 2026 18:20:15 +0000", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Mon, Feb 02, 2026 at 06:20:15PM +0000, Jonathan Cameron wrote: I think the latter is more reasonably, MMOP_UNCONFIGURED doesn't much make sense for memory_hotplug.c ack. ~Gregory
{ "author": "Gregory Price <gourry@gourry.net>", "date": "Mon, 2 Feb 2026 13:23:37 -0500", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH 0/9] cxl: explicit DAX driver selection and hotplug
Currently, CXL regions that create DAX devices have no mechanism to control select the hotplug online policy for kmem regions at region creation time. Users must either rely on a build-time default or manually configure each memory block after hotplug occurs. Additionally, there is no explicit way to choose between de...
On Mon, 2 Feb 2026 13:02:10 -0500 Gregory Price <gourry@gourry.net> wrote: Good point. More coffee needed (or sleep) It lets sparse do some checking, but sadly only for wrong enum assignment. (Gcc has -Wenum-conversion as well which I think is effectively the same) I.e. you can't assign a value from a different enum...
{ "author": "Jonathan Cameron <jonathan.cameron@huawei.com>", "date": "Mon, 2 Feb 2026 18:46:09 +0000", "thread_id": "20260202184609.00004a02@huawei.com.mbox.gz" }
lkml
[PATCH] dt-bindings: dma: snps,dw-axi-dmac: add dma-coherent property
From: Khairul Anuar Romli <khairul.anuar.romli@altera.com> The Synopsys DesignWare AXI DMA Controller on Agilex5, the controller operates on a cache-coherent AXI interface, where DMA transactions are automatically kept coherent with the CPU caches. In previous generations SoC (Stratix10 and Agilex) the interconnect wa...
On Sat, Jan 31, 2026 at 11:28:56AM -0600, Dinh Nguyen wrote: Why does this v1 have an ack?
{ "author": "Conor Dooley <conor@kernel.org>", "date": "Sat, 31 Jan 2026 20:27:03 +0000", "thread_id": "20260202-stylishly-chaffing-0aab46b244d8@spud.mbox.gz" }
lkml
[PATCH] dt-bindings: dma: snps,dw-axi-dmac: add dma-coherent property
From: Khairul Anuar Romli <khairul.anuar.romli@altera.com> The Synopsys DesignWare AXI DMA Controller on Agilex5, the controller operates on a cache-coherent AXI interface, where DMA transactions are automatically kept coherent with the CPU caches. In previous generations SoC (Stratix10 and Agilex) the interconnect wa...
On 1/31/26 14:27, Conor Dooley wrote: I respun this patch based on the dmaengine tree so that the dma engine maintainer can take it. I had originally applied it to my tree, but avoid potential merge conflicts, I'm going to submit it through dma. This patch is the same as this[1]. Sorry for any confusion. Dinh [1]...
{ "author": "Dinh Nguyen <dinguyen@kernel.org>", "date": "Sun, 1 Feb 2026 13:30:59 -0600", "thread_id": "20260202-stylishly-chaffing-0aab46b244d8@spud.mbox.gz" }
lkml
[PATCH] dt-bindings: dma: snps,dw-axi-dmac: add dma-coherent property
From: Khairul Anuar Romli <khairul.anuar.romli@altera.com> The Synopsys DesignWare AXI DMA Controller on Agilex5, the controller operates on a cache-coherent AXI interface, where DMA transactions are automatically kept coherent with the CPU caches. In previous generations SoC (Stratix10 and Agilex) the interconnect wa...
On Sun, Feb 01, 2026 at 01:30:59PM -0600, Dinh Nguyen wrote: In the future, please note this or carry on the version number from the series it was originally in.
{ "author": "Conor Dooley <conor@kernel.org>", "date": "Mon, 2 Feb 2026 18:45:49 +0000", "thread_id": "20260202-stylishly-chaffing-0aab46b244d8@spud.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Extend kvm_riscv_gstage_mode_detect() to probe all HGATP.MODE values supported by the host and record them in a bitmask. Keep tracking the maximum supported G-stage page table level for existing internal users. Also provide lightweight helpers to retrieve the supported-mo...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:14 +0800", "thread_id": "73zrxri5snnenmezjxrdorbcsps4dlvtrkvkq3w4ain4ggbxdl@hjw4u73msaro.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Add a VM capability that allows userspace to select the G-stage page table format by setting HGATP.MODE on a per-VM basis. Userspace enables the capability via KVM_ENABLE_CAP, passing the requested HGATP.MODE in args[0]. The request is rejected with -EINVAL if the mode is...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:15 +0800", "thread_id": "73zrxri5snnenmezjxrdorbcsps4dlvtrkvkq3w4ain4ggbxdl@hjw4u73msaro.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Define UAPI bit positions for the supported-mode bitmask returned by KVM_CHECK_EXTENSION(KVM_CAP_RISCV_SET_HGATP_MODE). Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> --- arch/riscv/include/uapi/asm/kvm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arc...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:16 +0800", "thread_id": "73zrxri5snnenmezjxrdorbcsps4dlvtrkvkq3w4ain4ggbxdl@hjw4u73msaro.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Introduces one per-VM architecture-specific fields to support runtime configuration of the G-stage page table format: - kvm->arch.kvm_riscv_gstage_pgd_levels: the corresponding number of page table levels for the selected mode. These fields replace the previous global ...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:13 +0800", "thread_id": "73zrxri5snnenmezjxrdorbcsps4dlvtrkvkq3w4ain4ggbxdl@hjw4u73msaro.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
On Mon, Feb 02, 2026 at 10:07:14PM +0800, fangyu.yu@linux.alibaba.com wrote: These should be defined in the UAPI, as I see the last patch of the series does. No need to define them twice. It seems like we're going out of our way to only provide the capability for rv64. While the cap isn't useful for rv32, having #if...
{ "author": "Andrew Jones <andrew.jones@oss.qualcomm.com>", "date": "Mon, 2 Feb 2026 12:45:31 -0600", "thread_id": "73zrxri5snnenmezjxrdorbcsps4dlvtrkvkq3w4ain4ggbxdl@hjw4u73msaro.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
On Mon, Feb 02, 2026 at 10:07:15PM +0800, fangyu.yu@linux.alibaba.com wrote: If we only want this to work for rv64, then we should write riscv64 here, but, as I said in the last patch, I think we can just support rv32 too by supporting its one and only mode. We should write what happens if the capability (setting th...
{ "author": "Andrew Jones <andrew.jones@oss.qualcomm.com>", "date": "Mon, 2 Feb 2026 12:49:41 -0600", "thread_id": "73zrxri5snnenmezjxrdorbcsps4dlvtrkvkq3w4ain4ggbxdl@hjw4u73msaro.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Extend kvm_riscv_gstage_mode_detect() to probe all HGATP.MODE values supported by the host and record them in a bitmask. Keep tracking the maximum supported G-stage page table level for existing internal users. Also provide lightweight helpers to retrieve the supported-mo...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:14 +0800", "thread_id": "20260202140716.34323-1-fangyu.yu@linux.alibaba.com.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Add a VM capability that allows userspace to select the G-stage page table format by setting HGATP.MODE on a per-VM basis. Userspace enables the capability via KVM_ENABLE_CAP, passing the requested HGATP.MODE in args[0]. The request is rejected with -EINVAL if the mode is...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:15 +0800", "thread_id": "20260202140716.34323-1-fangyu.yu@linux.alibaba.com.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Define UAPI bit positions for the supported-mode bitmask returned by KVM_CHECK_EXTENSION(KVM_CAP_RISCV_SET_HGATP_MODE). Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> --- arch/riscv/include/uapi/asm/kvm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arc...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:16 +0800", "thread_id": "20260202140716.34323-1-fangyu.yu@linux.alibaba.com.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Introduces one per-VM architecture-specific fields to support runtime configuration of the G-stage page table format: - kvm->arch.kvm_riscv_gstage_pgd_levels: the corresponding number of page table levels for the selected mode. These fields replace the previous global ...
{ "author": "fangyu.yu@linux.alibaba.com", "date": "Mon, 2 Feb 2026 22:07:13 +0800", "thread_id": "20260202140716.34323-1-fangyu.yu@linux.alibaba.com.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
On Mon, Feb 02, 2026 at 10:07:14PM +0800, fangyu.yu@linux.alibaba.com wrote: These should be defined in the UAPI, as I see the last patch of the series does. No need to define them twice. It seems like we're going out of our way to only provide the capability for rv64. While the cap isn't useful for rv32, having #if...
{ "author": "Andrew Jones <andrew.jones@oss.qualcomm.com>", "date": "Mon, 2 Feb 2026 12:45:31 -0600", "thread_id": "20260202140716.34323-1-fangyu.yu@linux.alibaba.com.mbox.gz" }
lkml
[PATCH v4 0/4] Support runtime configuration for per-VM's HGATP mode
From: Fangyu Yu <fangyu.yu@linux.alibaba.com> Currently, RISC-V KVM hardcodes the G-stage page table format (HGATP mode) to the maximum mode detected at boot time (e.g., SV57x4 if supported). but often such a wide GPA is unnecessary, just as a host sometimes doesn't need sv57. This patch introduces per-VM configurabi...
On Mon, Feb 02, 2026 at 10:07:15PM +0800, fangyu.yu@linux.alibaba.com wrote: If we only want this to work for rv64, then we should write riscv64 here, but, as I said in the last patch, I think we can just support rv32 too by supporting its one and only mode. We should write what happens if the capability (setting th...
{ "author": "Andrew Jones <andrew.jones@oss.qualcomm.com>", "date": "Mon, 2 Feb 2026 12:49:41 -0600", "thread_id": "20260202140716.34323-1-fangyu.yu@linux.alibaba.com.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
When CONFIG_MODULE_SIG is disabled set_module_sig_enforced() is defined as an empty stub, so the check is unnecessary. The specific configuration option for set_module_sig_enforced() is about to change and removing the check avoids some later churn. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- arch/powe...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:46 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
When configuration settings are disabled the guarded functions are defined as empty stubs, so the check is unnecessary. The specific configuration option for set_module_sig_enforced() is about to change and removing the checks avoids some later churn. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- securit...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:47 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
From: Coiby Xu <coxu@redhat.com> Currently if set_module_sig_enforced is called with CONFIG_MODULE_SIG=n e.g. [1], it can lead to a linking error, ld: security/integrity/ima/ima_appraise.o: in function `ima_appraise_measurement': security/integrity/ima/ima_appraise.c:587:(.text+0xbbb): undefined reference to ...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:45 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
Switching the types will make some later changes cleaner. size_t is also the semantically correct type for this field. As both 'size_t' and 'unsigned int' are always the same size, this should be risk-free. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/internal.h | 2 +- kernel/module/main...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:49 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The loading policy functionality will also be used by the hash-based module validation. Split it out from CONFIG_MODULE_SIG so it is usable by both. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- include/linux/module.h | 8 ++++---- kernel/module/Kconfig | 5 ++++- kernel/module/main.c | 26 ++++++...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:53 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
With the addition of hash-based integrity checking, the configuration matrix is easier to represent in a dedicated function and with explicit usage of IS_ENABLED(). Drop the now unnecessary stub for module_sig_check(). Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/internal.h | 7 ------- ...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:54 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The upcoming module hashes functionality will build the modules in between the generation of the BTF data and the final link of vmlinux. At this point vmlinux is not yet built and therefore can't be used for module BTF generation. vmlinux.unstripped however is usable and sufficient for BTF generation. Signed-off-by: T...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:51 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
The lockdown check buried in module_sig_check() will not compose well with the introduction of hash-based module validation. Move it into module_integrity_check() which will work better. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/main.c | 6 +++++- kernel/module/signing.c | 3 +-- 2 f...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:55 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }
lkml
[PATCH v4 00/17] module: Introduce hash-based integrity checking
The current signature-based module integrity checking has some drawbacks in combination with reproducible builds. Either the module signing key is generated at build time, which makes the build unreproducible, or a static signing key is used, which precludes rebuilds by third parties and makes the whole build and packa...
It is not used outside of signing.c. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/module/internal.h | 1 - kernel/module/signing.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/module/internal.h b/kernel/module/internal.h index 618202578b42..e68fbcd60c35 100644 ---...
{ "author": "=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>", "date": "Tue, 13 Jan 2026 13:28:48 +0100", "thread_id": "20260202184725.GC2036@quark.mbox.gz" }