linuxKernel.packages.linux_7_0.tsme-test: 7.0.10-unstable-2022-12-07 -> 7.0.10-unstable-2026-02-09 (#526591)

This commit is contained in:
Peder Bergebakken Sundt
2026-07-30 17:43:27 +00:00
committed by GitHub
2 changed files with 24 additions and 3 deletions
+14 -3
View File
@@ -8,15 +8,26 @@
stdenv.mkDerivation {
pname = "tsme-test";
version = "${kernel.version}-unstable-2022-12-07";
version = "${kernel.version}-unstable-2026-02-09";
src = fetchFromGitHub {
owner = "AMDESE";
repo = "mem-encryption-tests";
rev = "7abb072ffc50ceb0b4145ae84105ce6c91bd1ff4";
hash = "sha256-v0KAGlo6ci0Ij1NAiMUK0vWDHBiFnpQG4Er6ArIKncQ=";
rev = "361bf41092aec06d7f6e7be239a62bc5a5ff2c66";
hash = "sha256-aDv4gXcAXOBnJ256Ph06q0qBa9bSXvTbAG+AClFJUTI=";
};
patches = [
# tsme-test.c calls kzalloc()/kzalloc_node()/kfree() without including
# <linux/slab.h>. It only compiled on newer kernels because slab.h is
# reachable transitively via <linux/mm.h> (mm.h -> huge_mm.h -> fs.h ->
# slab.h); the fs.h -> slab.h link was added in v5.18 and is absent from
# v5.17 and earlier, so the module fails to build on 5.10/5.15. Add the
# include explicitly.
# https://github.com/torvalds/linux/commit/8b9f3ac5b01db85c6cf74c2c3a71280cc3045c9c
./include-slab.patch
];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernelModuleMakeFlags ++ [
@@ -0,0 +1,10 @@
--- a/tsme-test.c
+++ b/tsme-test.c
@@ -13,6 +13,7 @@
#include <linux/smp.h>
#include <linux/mm.h>
#include <linux/io.h>
+#include <linux/slab.h>
#include <linux/kobject.h>
#include <linux/sysfs.h>