Skip to content

Commit 4f06ce5

Browse files
committed
Rebase on a 6.12.68 kernel
Rebase on the latest LTS 6.12.x kernel. No changes needed in the downstream patches. Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent 20484a2 commit 4f06ce5

26 files changed

Lines changed: 95 additions & 95 deletions

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.62
1+
KERNEL_VERSION = linux-6.12.68
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 = 5
9-
FULL_VERSION = 5.1.0
10-
TIMESTAMP = "Mon Dec 15 19:43:20 CET 2025"
9+
FULL_VERSION = 5.2.0
10+
TIMESTAMP = "Mon Feb 2 09:49:04 CET 2026"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 22bd635cdd68a69b8c8d4634b8d4f4f137728c83 Mon Sep 17 00:00:00 2001
1+
From e04ce49396a2d87b76f3176ab2823d7570db8978 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
@@ -54,5 +54,5 @@ index c0276979675d..1d5b988e4452 100644
5454
/*
5555
* In theory, it's possible to have a buggy QEMU-supposed
5656
--
57-
2.51.0
57+
2.52.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 08abe3fa7e5077d68db83fd185824bd282f10bff Mon Sep 17 00:00:00 2001
1+
From 4f8ed469831f545810925db2a559ccdcaf14964b 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.51.0
58+
2.52.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 fa867286cb5c528dbe6f2f89adbef217f818ba86 Mon Sep 17 00:00:00 2001
1+
From 8b2ab39aa90f8f163b65e48d406f969059f6fcef 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 821df1f05e9c..04f8f5a6389d 100644
290290

291291
/*
292292
--
293-
2.51.0
293+
2.52.0
294294

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 39e43808af2c24b6241a09d1caba5accc2df0393 Mon Sep 17 00:00:00 2001
1+
From 7cd68aac6e847d830c47d8e941123e734b635bba 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
@@ -61,5 +61,5 @@ index b922b9fea6b6..c0de732b0121 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.51.0
64+
2.52.0
6565

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From f166568c772dd9b68e90e0aca45b945d495a77ba Mon Sep 17 00:00:00 2001
1+
From a394a9bf8eb5716dce71a31879ceb698e33af2a6 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
@@ -59,5 +59,5 @@ index d6ee090eda94..f6947c5bd671 100644
5959
machine_restart(cmd);
6060
}
6161
--
62-
2.51.0
62+
2.52.0
6363

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 1330ae22d337b4c4887edde853e602b79db06d17 Mon Sep 17 00:00:00 2001
1+
From e163341cc6e989390ff80648a6b1dd0b4008e1a1 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
@@ -28,5 +28,5 @@ index f6947c5bd671..5925d8fcfbfa 100644
2828
if (ret) {
2929
pr_warn("Failed to start orderly reboot: forcing the issue\n");
3030
--
31-
2.51.0
31+
2.52.0
3232

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From bf952042ef414f63b6b7f8a8ee60769af5121273 Mon Sep 17 00:00:00 2001
1+
From bf68cd730c769f73a2a6da9ed0b928c03c53bfac 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
@@ -23,7 +23,7 @@ Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
2323
9 files changed, 137 insertions(+), 52 deletions(-)
2424

2525
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
26-
index 66a0f060770e..d49a46b421ae 100644
26+
index 78cc66fbb3dd..fee8d1380e95 100644
2727
--- a/drivers/vhost/vsock.c
2828
+++ b/drivers/vhost/vsock.c
2929
@@ -421,9 +421,11 @@ static struct virtio_transport vhost_transport = {
@@ -40,10 +40,10 @@ index 66a0f060770e..d49a46b421ae 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 6c00687539cf..7df9b94e65fa 100644
43+
index 0c67543a45c8..06d5b15642ae 100644
4444
--- a/include/linux/virtio_vsock.h
4545
+++ b/include/linux/virtio_vsock.h
46-
@@ -241,6 +241,9 @@ bool virtio_transport_stream_allow(u32 cid, u32 port);
46+
@@ -260,6 +260,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 70302c92d329..9ba6e2bcef94 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 621be9be64f6..4c53748ab9a6 100644
84+
index 282d97323324..fccb4761b8af 100644
8585
--- a/net/vmw_vsock/af_vsock.c
8686
+++ b/net/vmw_vsock/af_vsock.c
8787
@@ -1359,10 +1359,62 @@ static int vsock_dgram_connect(struct socket *sock,
@@ -186,7 +186,7 @@ index 56c232cf5b0f..cc0a6c3401d3 100644
186186
.dgram_allow = hvs_dgram_allow,
187187

188188
diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c
189-
index 1ef6f7829d29..4751acddd117 100644
189+
index b6569b0ca2bb..d1107b65445e 100644
190190
--- a/net/vmw_vsock/virtio_transport.c
191191
+++ b/net/vmw_vsock/virtio_transport.c
192192
@@ -552,9 +552,11 @@ static struct virtio_transport virtio_transport = {
@@ -203,10 +203,10 @@ index 1ef6f7829d29..4751acddd117 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 2c9b1011cdcc..ad4dedcfa320 100644
206+
index 9b1f9a83c711..3ef8ff2a8b3c 100644
207207
--- a/net/vmw_vsock/virtio_transport_common.c
208208
+++ b/net/vmw_vsock/virtio_transport_common.c
209-
@@ -1054,6 +1054,24 @@ int virtio_transport_dgram_bind(struct vsock_sock *vsk,
209+
@@ -1069,6 +1069,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.51.0
351+
2.52.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 c9da069a2939f6fe9222277b4c536c462cac43da Mon Sep 17 00:00:00 2001
1+
From 8dce0bd708b16d791c3d5d9099e3b3c50b18ef00 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 4c53748ab9a6..e428073518c7 100644
17+
index fccb4761b8af..4a8f62e7520d 100644
1818
--- a/net/vmw_vsock/af_vsock.c
1919
+++ b/net/vmw_vsock/af_vsock.c
2020
@@ -432,6 +432,22 @@ static void vsock_deassign_transport(struct vsock_sock *vsk)
@@ -57,5 +57,5 @@ index 4c53748ab9a6..e428073518c7 100644
5757
default:
5858
ret = -ESOCKTNOSUPPORT;
5959
--
60-
2.51.0
60+
2.52.0
6161

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From d8679f7eeb8cc05258484773858942a708011771 Mon Sep 17 00:00:00 2001
1+
From 2e093eb6bbfb99d68cd71a92fa929a128433e0ae 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
@@ -57,7 +57,7 @@ Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
5757
7 files changed, 60 insertions(+), 36 deletions(-)
5858

5959
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
60-
index d49a46b421ae..4659a74078bd 100644
60+
index fee8d1380e95..03b0e789d161 100644
6161
--- a/drivers/vhost/vsock.c
6262
+++ b/drivers/vhost/vsock.c
6363
@@ -421,7 +421,6 @@ static struct virtio_transport vhost_transport = {
@@ -69,10 +69,10 @@ index d49a46b421ae..4659a74078bd 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 7df9b94e65fa..0a4369e01c4a 100644
72+
index 06d5b15642ae..6c8791d3bc70 100644
7373
--- a/include/linux/virtio_vsock.h
7474
+++ b/include/linux/virtio_vsock.h
75-
@@ -238,8 +238,6 @@ void virtio_transport_notify_buffer_size(struct vsock_sock *vsk, u64 *val);
75+
@@ -257,8 +257,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 7df9b94e65fa..0a4369e01c4a 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 e428073518c7..a97ee1966e14 100644
85+
index 4a8f62e7520d..c15d9a6f8b89 100644
8686
--- a/net/vmw_vsock/af_vsock.c
8787
+++ b/net/vmw_vsock/af_vsock.c
8888
@@ -448,6 +448,18 @@ vsock_connectible_lookup_transport(unsigned int cid, __u8 flags)
@@ -262,7 +262,7 @@ index cc0a6c3401d3..4c6d705cc9e6 100644
262262
.dgram_get_port = hvs_dgram_get_port,
263263
.dgram_get_length = hvs_dgram_get_length,
264264
diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c
265-
index 4751acddd117..359775d55685 100644
265+
index d1107b65445e..e9828815e741 100644
266266
--- a/net/vmw_vsock/virtio_transport.c
267267
+++ b/net/vmw_vsock/virtio_transport.c
268268
@@ -551,7 +551,6 @@ static struct virtio_transport virtio_transport = {
@@ -274,10 +274,10 @@ index 4751acddd117..359775d55685 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 ad4dedcfa320..96b6303b24c2 100644
277+
index 3ef8ff2a8b3c..70eee056871c 100644
278278
--- a/net/vmw_vsock/virtio_transport_common.c
279279
+++ b/net/vmw_vsock/virtio_transport_common.c
280-
@@ -1047,13 +1047,6 @@ bool virtio_transport_stream_allow(u32 cid, u32 port)
280+
@@ -1062,13 +1062,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.51.0
307+
2.52.0
308308

0 commit comments

Comments
 (0)