Skip to content

Commit 3d07dc3

Browse files
slptylerfanelli
authored andcommitted
Rebase on a v6.12.34 kernel
Rebase on the latest stable kernel. No changes were needed in the downstream patches. Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent e2bbc35 commit 3d07dc3

26 files changed

+98
-98
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
KERNEL_VERSION = linux-6.12.20
1+
KERNEL_VERSION = linux-6.12.34
22
KERNEL_REMOTE = https://cdn.kernel.org/pub/linux/kernel/v6.x/$(KERNEL_VERSION).tar.xz
33
KERNEL_TARBALL = tarballs/$(KERNEL_VERSION).tar.xz
44
KERNEL_SOURCES = $(KERNEL_VERSION)
55
KERNEL_PATCHES = $(shell find patches/ -name "0*.patch" | sort)
66
KERNEL_C_BUNDLE = kernel.c
77

88
ABI_VERSION = 4
9-
FULL_VERSION = 4.9.0
10-
TIMESTAMP = "Mon Mar 24 03:50:01 PM CET 2025"
9+
FULL_VERSION = 4.10.0
10+
TIMESTAMP = "Thu Jun 26 12:45:10 CEST 2025"
1111

1212
KERNEL_FLAGS = KBUILD_BUILD_TIMESTAMP=$(TIMESTAMP)
1313
KERNEL_FLAGS += KBUILD_BUILD_USER=root

patches-tee/0001-virtio-enable-DMA-API-if-memory-is-restricted.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 0f7bfee47191d977261c293b878a1b719aa36ca7 Mon Sep 17 00:00:00 2001
1+
From c1c7696bb15ad96da859c15acc6ffe6d7b8d71ab Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@sinrega.org>
33
Date: Fri, 10 Sep 2021 13:05:01 +0200
44
Subject: [PATCH 1/4] virtio: enable DMA API if memory is restricted
@@ -32,7 +32,7 @@ index b9095751e43b..9e6420d5bc66 100644
3232

3333
if (!virtio_has_feature(dev, VIRTIO_F_VERSION_1))
3434
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
35-
index 0112742e4504..84bfe596405f 100644
35+
index 147926c8bae0..87fd943cafa3 100644
3636
--- a/drivers/virtio/virtio_ring.c
3737
+++ b/drivers/virtio/virtio_ring.c
3838
@@ -6,6 +6,7 @@
@@ -54,5 +54,5 @@ index 0112742e4504..84bfe596405f 100644
5454
/*
5555
* In theory, it's possible to have a buggy QEMU-supposed
5656
--
57-
2.47.1
57+
2.49.0
5858

patches-tee/0002-x86-sev-write-AP-reset-vector.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 0c7204daf3df47a35126239bd525e633f49f8a8d Mon Sep 17 00:00:00 2001
1+
From eb4f5e615e0a6e75515449253e4014812b8008cf Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Thu, 20 Oct 2022 10:23:16 +0200
44
Subject: [PATCH 2/4] x86/sev: write AP reset vector
@@ -55,5 +55,5 @@ index de1df0cb45da..7ed486a790fb 100644
5555
/* Check if AP Jump Table is page-aligned */
5656
if (jump_table_addr & ~PAGE_MASK)
5757
--
58-
2.47.1
58+
2.49.0
5959

patches-tee/0003-Implement-driver-to-retrieve-secrets-from-cmdline.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 913e69fef12b332d96fadefbe8489574d5b1844f Mon Sep 17 00:00:00 2001
1+
From 3cf48a7455f13e02f080cbbecf87f86a59b82ea7 Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Wed, 3 Aug 2022 12:35:12 +0200
44
Subject: [PATCH 3/4] Implement driver to retrieve secrets from cmdline
@@ -290,5 +290,5 @@ index c4778edae797..a475bd3bcb34 100644
290290

291291
/*
292292
--
293-
2.47.1
293+
2.49.0
294294

patches-tee/0004-x86-sev-Avoid-using-native_cpuid.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From a5ac2bb45f25c15fd381af7930e3eb706125c8ff Mon Sep 17 00:00:00 2001
1+
From f4fa2d46824f4704ade2c6d1d42b8e1fa9eb8e4a Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Wed, 5 Jun 2024 16:20:08 +0200
44
Subject: [PATCH 4/4] x86/sev: Avoid using native_cpuid
@@ -16,7 +16,7 @@ Signed-off-by: Sergio Lopez <slp@redhat.com>
1616
1 file changed, 3 insertions(+), 23 deletions(-)
1717

1818
diff --git a/arch/x86/mm/mem_encrypt_identity.c b/arch/x86/mm/mem_encrypt_identity.c
19-
index ac33b2263a43..d894fdb89007 100644
19+
index b922b9fea6b6..c0de732b0121 100644
2020
--- a/arch/x86/mm/mem_encrypt_identity.c
2121
+++ b/arch/x86/mm/mem_encrypt_identity.c
2222
@@ -495,37 +495,17 @@ void __head sme_enable(struct boot_params *bp)
@@ -61,5 +61,5 @@ index ac33b2263a43..d894fdb89007 100644
6161
/* Check the SEV MSR whether SEV or SME is enabled */
6262
RIP_REL_REF(sev_status) = msr = __rdmsr(MSR_AMD64_SEV);
6363
--
64-
2.47.1
64+
2.49.0
6565

patches/0001-krunfw-Don-t-panic-when-init-dies.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From c88ba6301ded113877dad3ea177361319821bcb3 Mon Sep 17 00:00:00 2001
1+
From 2b3f8ccfb19e97f1ac92c1c1c7525ddac4477c52 Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Thu, 2 Mar 2023 07:34:49 +0100
44
Subject: [PATCH 01/21] krunfw: Don't panic when init dies
@@ -16,7 +16,7 @@ Signed-off-by: Sergio Lopez <slp@redhat.com>
1616
2 files changed, 8 insertions(+)
1717

1818
diff --git a/kernel/exit.c b/kernel/exit.c
19-
index 619f0014c33b..987bec96ebee 100644
19+
index 56b8bd9487b4..6e65dcb5f9dd 100644
2020
--- a/kernel/exit.c
2121
+++ b/kernel/exit.c
2222
@@ -69,6 +69,8 @@
@@ -42,7 +42,7 @@ index 619f0014c33b..987bec96ebee 100644
4242
#ifdef CONFIG_POSIX_TIMERS
4343
hrtimer_cancel(&tsk->signal->real_timer);
4444
diff --git a/kernel/reboot.c b/kernel/reboot.c
45-
index f05dbde2c93f..f047bde90c03 100644
45+
index d6ee090eda94..f6947c5bd671 100644
4646
--- a/kernel/reboot.c
4747
+++ b/kernel/reboot.c
4848
@@ -278,10 +278,12 @@ void kernel_restart(char *cmd)
@@ -59,5 +59,5 @@ index f05dbde2c93f..f047bde90c03 100644
5959
machine_restart(cmd);
6060
}
6161
--
62-
2.47.1
62+
2.49.0
6363

patches/0002-krunfw-Ignore-run_cmd-on-orderly-reboot.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From c102dfd9bc07e862fb91c5c4abb83dec6e5a73ea Mon Sep 17 00:00:00 2001
1+
From 032a1c9438576fd209739d2f522cbe0966cadcbd Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Mon, 16 May 2022 16:04:27 +0200
44
Subject: [PATCH 02/21] krunfw: Ignore run_cmd on orderly reboot
@@ -12,10 +12,10 @@ Signed-off-by: Sergio Lopez <slp@redhat.com>
1212
1 file changed, 4 insertions(+)
1313

1414
diff --git a/kernel/reboot.c b/kernel/reboot.c
15-
index f047bde90c03..aeea51201f90 100644
15+
index f6947c5bd671..5925d8fcfbfa 100644
1616
--- a/kernel/reboot.c
1717
+++ b/kernel/reboot.c
18-
@@ -852,7 +852,11 @@ static int __orderly_reboot(void)
18+
@@ -853,7 +853,11 @@ static int __orderly_reboot(void)
1919
{
2020
int ret;
2121

@@ -28,5 +28,5 @@ index f047bde90c03..aeea51201f90 100644
2828
if (ret) {
2929
pr_warn("Failed to start orderly reboot: forcing the issue\n");
3030
--
31-
2.47.1
31+
2.49.0
3232

patches/0003-vsock-dgram-generalize-recvmsg-and-drop-transport-dg.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From fb7f60dde652bfc90b9e8b6656a9d0923c2c288b Mon Sep 17 00:00:00 2001
1+
From cd8a65ac0e41402e57e680a13cfa4bee3d55101e Mon Sep 17 00:00:00 2001
22
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
33
Date: Sat, 10 Jun 2023 00:58:28 +0000
44
Subject: [PATCH 03/21] vsock/dgram: generalize recvmsg and drop
@@ -40,10 +40,10 @@ index 802153e23073..1b3e6963335b 100644
4040
.stream_enqueue = virtio_transport_stream_enqueue,
4141
.stream_dequeue = virtio_transport_stream_dequeue,
4242
diff --git a/include/linux/virtio_vsock.h b/include/linux/virtio_vsock.h
43-
index 0387d64e2c66..954c5d66f8e4 100644
43+
index 36fb3edfa403..44fb05e1ee75 100644
4444
--- a/include/linux/virtio_vsock.h
4545
+++ b/include/linux/virtio_vsock.h
46-
@@ -235,6 +235,9 @@ bool virtio_transport_stream_allow(u32 cid, u32 port);
46+
@@ -236,6 +236,9 @@ bool virtio_transport_stream_allow(u32 cid, u32 port);
4747
int virtio_transport_dgram_bind(struct vsock_sock *vsk,
4848
struct sockaddr_vm *addr);
4949
bool virtio_transport_dgram_allow(u32 cid, u32 port);
@@ -81,7 +81,7 @@ index 9e85424c8343..fe0fb5c01823 100644
8181
/* STREAM. */
8282
/* TODO: stream_bind() */
8383
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
84-
index eb6ea26b390e..6dc98fab6888 100644
84+
index d08f205b33dc..3ba57d2339a3 100644
8585
--- a/net/vmw_vsock/af_vsock.c
8686
+++ b/net/vmw_vsock/af_vsock.c
8787
@@ -1324,10 +1324,62 @@ static int vsock_dgram_connect(struct socket *sock,
@@ -203,10 +203,10 @@ index f0e48e6911fc..c0d4f6e47cb7 100644
203203
.stream_dequeue = virtio_transport_stream_dequeue,
204204
.stream_enqueue = virtio_transport_stream_enqueue,
205205
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
206-
index 7f7de6d88096..17e8f2078e8d 100644
206+
index 2c9b1011cdcc..ad4dedcfa320 100644
207207
--- a/net/vmw_vsock/virtio_transport_common.c
208208
+++ b/net/vmw_vsock/virtio_transport_common.c
209-
@@ -1050,6 +1050,24 @@ int virtio_transport_dgram_bind(struct vsock_sock *vsk,
209+
@@ -1054,6 +1054,24 @@ int virtio_transport_dgram_bind(struct vsock_sock *vsk,
210210
}
211211
EXPORT_SYMBOL_GPL(virtio_transport_dgram_bind);
212212

@@ -348,5 +348,5 @@ index 6e78927a598e..3d5e05d8950f 100644
348348
.stream_dequeue = virtio_transport_stream_dequeue,
349349
.stream_enqueue = virtio_transport_stream_enqueue,
350350
--
351-
2.47.1
351+
2.49.0
352352

patches/0004-vsock-refactor-transport-lookup-code.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 4c239c0f574faad311a0339e52596fe2af98a210 Mon Sep 17 00:00:00 2001
1+
From 7b1488e5e1e6de64b764544609f745ebe24f5aa0 Mon Sep 17 00:00:00 2001
22
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
33
Date: Sat, 10 Jun 2023 00:58:29 +0000
44
Subject: [PATCH 04/21] vsock: refactor transport lookup code
@@ -14,7 +14,7 @@ Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
1414
1 file changed, 18 insertions(+), 7 deletions(-)
1515

1616
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
17-
index 6dc98fab6888..ef5ac5beca32 100644
17+
index 3ba57d2339a3..186e28329dd4 100644
1818
--- a/net/vmw_vsock/af_vsock.c
1919
+++ b/net/vmw_vsock/af_vsock.c
2020
@@ -430,6 +430,22 @@ static void vsock_deassign_transport(struct vsock_sock *vsk)
@@ -57,5 +57,5 @@ index 6dc98fab6888..ef5ac5beca32 100644
5757
default:
5858
return -ESOCKTNOSUPPORT;
5959
--
60-
2.47.1
60+
2.49.0
6161

patches/0005-vsock-support-multi-transport-datagrams.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 764265f7d0ecc0c5077783058369ab1a1711fb42 Mon Sep 17 00:00:00 2001
1+
From 07e9d1bdd10dc2a484a5d3b421efe184d05b4ddb Mon Sep 17 00:00:00 2001
22
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
33
Date: Sat, 10 Jun 2023 00:58:30 +0000
44
Subject: [PATCH 05/21] vsock: support multi-transport datagrams
@@ -69,10 +69,10 @@ index 1b3e6963335b..d58be350ddca 100644
6969
.dgram_get_cid = virtio_transport_dgram_get_cid,
7070
.dgram_get_port = virtio_transport_dgram_get_port,
7171
diff --git a/include/linux/virtio_vsock.h b/include/linux/virtio_vsock.h
72-
index 954c5d66f8e4..741d643534f4 100644
72+
index 44fb05e1ee75..efb028ea6463 100644
7373
--- a/include/linux/virtio_vsock.h
7474
+++ b/include/linux/virtio_vsock.h
75-
@@ -232,8 +232,6 @@ void virtio_transport_notify_buffer_size(struct vsock_sock *vsk, u64 *val);
75+
@@ -233,8 +233,6 @@ void virtio_transport_notify_buffer_size(struct vsock_sock *vsk, u64 *val);
7676
u64 virtio_transport_stream_rcvhiwat(struct vsock_sock *vsk);
7777
bool virtio_transport_stream_is_active(struct vsock_sock *vsk);
7878
bool virtio_transport_stream_allow(u32 cid, u32 port);
@@ -82,7 +82,7 @@ index 954c5d66f8e4..741d643534f4 100644
8282
int virtio_transport_dgram_get_cid(struct sk_buff *skb, unsigned int *cid);
8383
int virtio_transport_dgram_get_port(struct sk_buff *skb, unsigned int *port);
8484
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
85-
index ef5ac5beca32..c017b62d0783 100644
85+
index 186e28329dd4..8112fd22218b 100644
8686
--- a/net/vmw_vsock/af_vsock.c
8787
+++ b/net/vmw_vsock/af_vsock.c
8888
@@ -446,6 +446,18 @@ vsock_connectible_lookup_transport(unsigned int cid, __u8 flags)
@@ -274,10 +274,10 @@ index c0d4f6e47cb7..a50c678ae1ae 100644
274274
.dgram_allow = virtio_transport_dgram_allow,
275275
.dgram_get_cid = virtio_transport_dgram_get_cid,
276276
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
277-
index 17e8f2078e8d..0cebeeb1c94a 100644
277+
index ad4dedcfa320..96b6303b24c2 100644
278278
--- a/net/vmw_vsock/virtio_transport_common.c
279279
+++ b/net/vmw_vsock/virtio_transport_common.c
280-
@@ -1043,13 +1043,6 @@ bool virtio_transport_stream_allow(u32 cid, u32 port)
280+
@@ -1047,13 +1047,6 @@ bool virtio_transport_stream_allow(u32 cid, u32 port)
281281
}
282282
EXPORT_SYMBOL_GPL(virtio_transport_stream_allow);
283283

@@ -304,5 +304,5 @@ index 3d5e05d8950f..9e9e124f8d2b 100644
304304
.dgram_allow = virtio_transport_dgram_allow,
305305
.dgram_get_cid = virtio_transport_dgram_get_cid,
306306
--
307-
2.47.1
307+
2.49.0
308308

0 commit comments

Comments
 (0)