Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
KERNEL_VERSION = linux-6.12.109
KERNEL_VERSION = linux-6.12.111
KERNEL_REMOTE = https://cdn.kernel.org/pub/linux/kernel/v6.x/$(KERNEL_VERSION).tar.xz
KERNEL_TARBALL = tarballs/$(KERNEL_VERSION).tar.xz
KERNEL_SOURCES = $(KERNEL_VERSION)
KERNEL_PATCHES = $(shell find patches/ -name "0*.patch" | sort)
KERNEL_C_BUNDLE = kernel.c

ABI_VERSION = 5
FULL_VERSION = 5.6.2
TIMESTAMP = "Mon Sep 21 20:29:27 CEST 2026"
FULL_VERSION = 5.7.0
TIMESTAMP = "Thu Oct 1 11:02:46 CEST 2026"

KERNEL_FLAGS = KBUILD_BUILD_TIMESTAMP=$(TIMESTAMP)
KERNEL_FLAGS += KBUILD_BUILD_USER=root
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 7c25b1a6a2f1a7d9c1f7ac762bc4f855a69099c4 Mon Sep 17 00:00:00 2001
From a858e1f970880b6a4904dc708c4079fa2ac23cc8 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@sinrega.org>
Date: Fri, 10 Sep 2021 13:05:01 +0200
Subject: [PATCH 1/4] virtio: enable DMA API if memory is restricted
Expand All @@ -15,7 +15,7 @@ Signed-off-by: Sergio Lopez <slp@redhat.com>
2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index b9095751e43b..9e6420d5bc66 100644
index 1b193d08a6ba..55f1dbe703d1 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -213,12 +213,6 @@ static int virtio_features_ok(struct virtio_device *dev)
Expand Down
2 changes: 1 addition & 1 deletion patches-tee/0002-x86-sev-write-AP-reset-vector.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From dd6d8ff1c77bff2e640720778602f63de744743e Mon Sep 17 00:00:00 2001
From 57b14a1cc119a7233967699e466954b0ab628ba9 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Thu, 20 Oct 2022 10:23:16 +0200
Subject: [PATCH 2/4] x86/sev: write AP reset vector
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From f53c42eb667b87a44b92dd505f88869050c7b46b Mon Sep 17 00:00:00 2001
From 8fdfb74318a2f58ed1ab84b9f7c7784044928489 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Wed, 3 Aug 2022 12:35:12 +0200
Subject: [PATCH 3/4] Implement driver to retrieve secrets from cmdline
Expand Down
2 changes: 1 addition & 1 deletion patches-tee/0004-x86-sev-Avoid-using-native_cpuid.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 6067167bc59a2c6e898f1ef468c00c891781bb80 Mon Sep 17 00:00:00 2001
From 9901fb97cced6ced9cf356b8cd7d7a6708ef6cbe Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Wed, 5 Jun 2024 16:20:08 +0200
Subject: [PATCH 4/4] x86/sev: Avoid using native_cpuid
Expand Down
4 changes: 2 additions & 2 deletions patches/0001-krunfw-Don-t-panic-when-init-dies.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 1019974df06a399d9755b1ee592f0ff62c709371 Mon Sep 17 00:00:00 2001
From 6f4cad41f3ed7a98ac7a943a10113a10875de4c2 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Thu, 2 Mar 2023 07:34:49 +0100
Subject: [PATCH 01/36] krunfw: Don't panic when init dies
Subject: [PATCH 01/38] krunfw: Don't panic when init dies

In libkrun, the isolated process runs as PID 1. When it exits,
trigger an orderly reboot instead of panic'ing.
Expand Down
4 changes: 2 additions & 2 deletions patches/0002-krunfw-Ignore-run_cmd-on-orderly-reboot.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e7c60d5e1f4173a6a228e4609ecf0c2f5c46a987 Mon Sep 17 00:00:00 2001
From 61501edb76d01cdfc51012d6da83f9303cff1a50 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Mon, 16 May 2022 16:04:27 +0200
Subject: [PATCH 02/36] krunfw: Ignore run_cmd on orderly reboot
Subject: [PATCH 02/38] krunfw: Ignore run_cmd on orderly reboot

We don't really support restarting the conventional way, so ignore
"run_cmd" so we can fall back to an emergency sync and reboot.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7d78c03e4d008b83e0262ee1af5c54515c0df711 Mon Sep 17 00:00:00 2001
From 624f72b5004a3624ba7ab0f90d1a494b230b446e Mon Sep 17 00:00:00 2001
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
Date: Sat, 10 Jun 2023 00:58:28 +0000
Subject: [PATCH 03/36] vsock/dgram: generalize recvmsg and drop
Subject: [PATCH 03/38] vsock/dgram: generalize recvmsg and drop
transport->dgram_dequeue

This commit drops the transport->dgram_dequeue callback and makes
Expand Down Expand Up @@ -81,7 +81,7 @@ index 70302c92d329..9ba6e2bcef94 100644
/* STREAM. */
/* TODO: stream_bind() */
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index f03e00cae028..e75651c04f5d 100644
index 0cbe5a1a40d3..2b710d5ccd5f 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -1374,10 +1374,62 @@ static int vsock_dgram_connect(struct socket *sock,
Expand Down Expand Up @@ -151,7 +151,7 @@ index f03e00cae028..e75651c04f5d 100644

int vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg,
diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c
index 865e004ee286..5564c0e11d74 100644
index c73793615f70..cd7b193e8919 100644
--- a/net/vmw_vsock/hyperv_transport.c
+++ b/net/vmw_vsock/hyperv_transport.c
@@ -557,8 +557,17 @@ static int hvs_dgram_bind(struct vsock_sock *vsk, struct sockaddr_vm *addr)
Expand Down Expand Up @@ -232,7 +232,7 @@ index 39584992c6c8..d2340f6139e1 100644
{
return false;
diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index 75bf643ff6fa..a203166f3620 100644
index 4f02a6f269cd..648074165727 100644
--- a/net/vmw_vsock/vmci_transport.c
+++ b/net/vmw_vsock/vmci_transport.c
@@ -1735,57 +1735,40 @@ static int vmci_transport_dgram_enqueue(
Expand Down
6 changes: 3 additions & 3 deletions patches/0004-vsock-refactor-transport-lookup-code.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 87c404066aa6497430d824f5fa2d114d0e768c68 Mon Sep 17 00:00:00 2001
From da005e088a069d3a6b57b6e5c40841123dc9b470 Mon Sep 17 00:00:00 2001
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
Date: Sat, 10 Jun 2023 00:58:29 +0000
Subject: [PATCH 04/36] vsock: refactor transport lookup code
Subject: [PATCH 04/38] vsock: refactor transport lookup code

Introduce new reusable function vsock_connectible_lookup_transport()
that performs the transport lookup logic.
Expand All @@ -14,7 +14,7 @@ Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
1 file changed, 18 insertions(+), 7 deletions(-)

diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index e75651c04f5d..fa5821c97845 100644
index 2b710d5ccd5f..568912943df1 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -432,6 +432,22 @@ static void vsock_deassign_transport(struct vsock_sock *vsk)
Expand Down
8 changes: 4 additions & 4 deletions patches/0005-vsock-support-multi-transport-datagrams.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From cb66798255b582838b5dd5d2dee04f039cf7e281 Mon Sep 17 00:00:00 2001
From 5ba1cba96b3ffaf41d29ddf26427b8a5caa72b26 Mon Sep 17 00:00:00 2001
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
Date: Sat, 10 Jun 2023 00:58:30 +0000
Subject: [PATCH 05/36] vsock: support multi-transport datagrams
Subject: [PATCH 05/38] vsock: support multi-transport datagrams

This patch adds support for multi-transport datagrams.

Expand Down Expand Up @@ -82,7 +82,7 @@ index 06d5b15642ae..6c8791d3bc70 100644
int virtio_transport_dgram_get_cid(struct sk_buff *skb, unsigned int *cid);
int virtio_transport_dgram_get_port(struct sk_buff *skb, unsigned int *port);
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index fa5821c97845..9ea29661b5aa 100644
index 568912943df1..93e79c0f27e0 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -448,6 +448,18 @@ vsock_connectible_lookup_transport(unsigned int cid, __u8 flags)
Expand Down Expand Up @@ -238,7 +238,7 @@ index fa5821c97845..9ea29661b5aa 100644

/* sock map disallows redirection of non-TCP sockets with sk_state !=
diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c
index 5564c0e11d74..238b18544e51 100644
index cd7b193e8919..6e2f7038e846 100644
--- a/net/vmw_vsock/hyperv_transport.c
+++ b/net/vmw_vsock/hyperv_transport.c
@@ -552,11 +552,6 @@ static void hvs_destruct(struct vsock_sock *vsk)
Expand Down
6 changes: 3 additions & 3 deletions patches/0006-vsock-make-vsock-bind-reusable.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 909eb28767726557a02619ecc50c9f207df55d5a Mon Sep 17 00:00:00 2001
From 438f55c2d8c67455e53e38389ce8b9a4681be5d7 Mon Sep 17 00:00:00 2001
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
Date: Sat, 10 Jun 2023 00:58:31 +0000
Subject: [PATCH 06/36] vsock: make vsock bind reusable
Subject: [PATCH 06/38] vsock: make vsock bind reusable

This commit makes the bind table management functions in vsock usable
for different bind tables. For use by datagrams in a future patch.
Expand All @@ -12,7 +12,7 @@ Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com>
1 file changed, 26 insertions(+), 7 deletions(-)

diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 9ea29661b5aa..d33474b555a0 100644
index 93e79c0f27e0..b4af5ed65b0b 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -235,11 +235,12 @@ static void __vsock_remove_connected(struct vsock_sock *vsk)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From fc8093a6f7348558416cb16a62174448bf6e0a10 Mon Sep 17 00:00:00 2001
From c2ca09351719770dc4f078a00c7d7fbce0db4cb9 Mon Sep 17 00:00:00 2001
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
Date: Sat, 10 Jun 2023 00:58:32 +0000
Subject: [PATCH 07/36] virtio/vsock: add VIRTIO_VSOCK_F_DGRAM feature bit
Subject: [PATCH 07/38] virtio/vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

This commit adds a feature bit for virtio vsock to support datagrams.

Expand Down
6 changes: 3 additions & 3 deletions patches/0008-virtio-vsock-support-dgrams.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From aa8d05eb5d994be74195a42df0fde477e0216124 Mon Sep 17 00:00:00 2001
From f6b70f6797524ab6ffc6ea78765e606cce32db1d Mon Sep 17 00:00:00 2001
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
Date: Sat, 10 Jun 2023 00:58:33 +0000
Subject: [PATCH 08/36] virtio/vsock: support dgrams
Subject: [PATCH 08/38] virtio/vsock: support dgrams

This commit adds support for datagrams over virtio/vsock.

Expand Down Expand Up @@ -157,7 +157,7 @@ index 9c25f267bbc0..27b4b2b8bf13 100644

enum virtio_vsock_op {
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index d33474b555a0..5242795aad35 100644
index b4af5ed65b0b..4dfc16b4acb6 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -118,6 +118,7 @@ static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr);
Expand Down
6 changes: 3 additions & 3 deletions patches/0009-vsock-Add-support-for-SIOCINQ-ioctl.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 2fc5e66a1f39c626768559ea17769cfac5287b7f Mon Sep 17 00:00:00 2001
From 2303d7f8a82319de6fb0d061a3316f51d20cabc0 Mon Sep 17 00:00:00 2001
From: Xuewei Niu <niuxuewei.nxw@antgroup.com>
Date: Tue, 8 Jul 2025 14:36:12 +0800
Subject: [PATCH 09/36] vsock: Add support for SIOCINQ ioctl
Subject: [PATCH 09/38] vsock: Add support for SIOCINQ ioctl

Add support for SIOCINQ ioctl, indicating the length of bytes unread in the
socket. The value is obtained from `vsock_stream_has_data()`.
Expand All @@ -18,7 +18,7 @@ Signed-off-by: Sergio Lopez <slp@redhat.com>
1 file changed, 22 insertions(+)

diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 5242795aad35..522ac6a3c830 100644
index 4dfc16b4acb6..907b99101f29 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -1560,6 +1560,28 @@ static int vsock_do_ioctl(struct socket *sock, unsigned int cmd,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b2443370182382eee9e7aa1a11d472921182374d Mon Sep 17 00:00:00 2001
From ae076c6759008f96dec6ccfa2d4a13f55f2de2e0 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Thu, 28 May 2026 11:43:46 +0200
Subject: [PATCH 10/36] virtio/vsock: implement has_data for DGRAM
Subject: [PATCH 10/38] virtio/vsock: implement has_data for DGRAM

Signed-off-by: Sergio Lopez <slp@redhat.com>
---
Expand Down Expand Up @@ -46,7 +46,7 @@ index 5f93bb290a83..45469aa8cf60 100644
/* STREAM. */
/* TODO: stream_bind() */
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 522ac6a3c830..3f802cf57609 100644
index 907b99101f29..94befed82ff1 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -1007,6 +1007,15 @@ s64 vsock_stream_has_data(struct vsock_sock *vsk)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 3c2901379d8789be51b75a04fb99ded75d988667 Mon Sep 17 00:00:00 2001
From 170227a50e602db9d9231651a80b3ed29af99d90 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Thu, 19 May 2022 22:38:26 +0200
Subject: [PATCH 11/36] Transparent Socket Impersonation implementation
Subject: [PATCH 11/38] Transparent Socket Impersonation implementation

Transparent Socket Impersonation (AF_TSI) is an address family that
provides sockets presenting two simultaneous personalities, one of
Expand Down
4 changes: 2 additions & 2 deletions patches/0012-tsi-allow-hijacking-sockets-tsi_hijack.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 70e18687e023f17ecc999ee9ccf4734575f38413 Mon Sep 17 00:00:00 2001
From 268522d6c000dace0afb2a15625fb8a7e0aa15b7 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Thu, 19 May 2022 22:42:01 +0200
Subject: [PATCH 12/36] tsi: allow hijacking sockets (tsi_hijack)
Subject: [PATCH 12/38] tsi: allow hijacking sockets (tsi_hijack)

Add a kernel command line option (tsi_hijack) enabling users to
request the kernel to hijack AF_INET(SOCK_STREAM || SOCK_DGRAM)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 42c0a7432e0ab59dc8df40302081bee9257c714a Mon Sep 17 00:00:00 2001
From 6f5406d84e32de852c4d20155a786dfab10dc9ad Mon Sep 17 00:00:00 2001
From: Asahi Lina <lina@asahilina.net>
Date: Wed, 25 Sep 2024 16:35:34 +0200
Subject: [PATCH 13/36] arm64: cpufeature: Unify SCOPE_LOCAL_CPU early & late
Subject: [PATCH 13/38] arm64: cpufeature: Unify SCOPE_LOCAL_CPU early & late
behavior

SCOPE_LOCAL_CPU is mostly used for CPU errata. The early feature logic
Expand Down
6 changes: 3 additions & 3 deletions patches/0014-prctl-Introduce-PR_-SET-GET-_MEM_MODEL.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 6d853f297b8b497b0bc5fd632f5a3a8b61000c66 Mon Sep 17 00:00:00 2001
From b9ba99bb14ced622051507c0cb1c612b1be2dd9a Mon Sep 17 00:00:00 2001
From: Hector Martin <marcan@marcan.st>
Date: Thu, 11 Apr 2024 09:51:20 +0900
Subject: [PATCH 14/36] prctl: Introduce PR_{SET,GET}_MEM_MODEL
Subject: [PATCH 14/38] prctl: Introduce PR_{SET,GET}_MEM_MODEL

On some architectures, it is possible to query and/or change the CPU
memory model. This allows userspace to switch to a stricter memory model
Expand Down Expand Up @@ -73,7 +73,7 @@ index 35791791a879..36c278683cd6 100644
+
#endif /* _LINUX_PRCTL_H */
diff --git a/kernel/sys.c b/kernel/sys.c
index 8283e35c9eeb..b14846a80169 100644
index 6c870636ea73..4c7ca5e7a489 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -45,6 +45,7 @@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 8e536a62edd22dd81987aade17e01bda5fc918f7 Mon Sep 17 00:00:00 2001
From 99631bd5290cfe6496257be02040d812797e059c Mon Sep 17 00:00:00 2001
From: Hector Martin <marcan@marcan.st>
Date: Thu, 11 Apr 2024 09:51:21 +0900
Subject: [PATCH 15/36] arm64: Implement PR_{GET,SET}_MEM_MODEL for always-TSO
Subject: [PATCH 15/38] arm64: Implement PR_{GET,SET}_MEM_MODEL for always-TSO
CPUs

Some ARM64 implementations are known to always use the TSO memory model.
Expand All @@ -27,10 +27,10 @@ Reviewed-by: Neal Gompa <neal@gompa.dev>
create mode 100644 arch/arm64/kernel/cpufeature_impdef.c

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index dd98fa97aad0..4277f71e03aa 100644
index 938bf2f96b1a..a604440b6c17 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -2314,6 +2314,15 @@ config ARM64_DEBUG_PRIORITY_MASKING
@@ -2315,6 +2315,15 @@ config ARM64_DEBUG_PRIORITY_MASKING
If unsure, say N
endif # ARM64_PSEUDO_NMI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 4909f68d1d65a28af8ab2fa23b3b1209cf2b2cdd Mon Sep 17 00:00:00 2001
From bd9d82ee1335cc34f55ea4892781036eb12c5375 Mon Sep 17 00:00:00 2001
From: Hector Martin <marcan@marcan.st>
Date: Thu, 11 Apr 2024 09:51:22 +0900
Subject: [PATCH 16/36] arm64: Introduce scaffolding to add ACTLR_EL1 to thread
Subject: [PATCH 16/38] arm64: Introduce scaffolding to add ACTLR_EL1 to thread
state

Some CPUs expose IMPDEF features in ACTLR_EL1 that can be meaningfully
Expand All @@ -24,10 +24,10 @@ Reviewed-by: Neal Gompa <neal@gompa.dev>
5 files changed, 44 insertions(+)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 4277f71e03aa..5c180e2ab5bf 100644
index a604440b6c17..12c90108663e 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -430,6 +430,9 @@ config KASAN_SHADOW_OFFSET
@@ -431,6 +431,9 @@ config KASAN_SHADOW_OFFSET
config UNWIND_TABLES
bool

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c4057360186d0047a721c9852bc1d7a633139580 Mon Sep 17 00:00:00 2001
From 19e77d22d7f773dd22bfe6f14a1c4b3373a696d1 Mon Sep 17 00:00:00 2001
From: Hector Martin <marcan@marcan.st>
Date: Thu, 11 Apr 2024 09:51:23 +0900
Subject: [PATCH 17/36] arm64: Implement Apple IMPDEF TSO memory model control
Subject: [PATCH 17/38] arm64: Implement Apple IMPDEF TSO memory model control

Apple CPUs may implement the TSO memory model as an optional
configurable mode. This allows x86 emulators to simplify their
Expand All @@ -27,10 +27,10 @@ Reviewed-by: Neal Gompa <neal@gompa.dev>
create mode 100644 arch/arm64/include/asm/apple_cpufeature.h

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 5c180e2ab5bf..0f8062760f83 100644
index 12c90108663e..6fb3c5fd8e9c 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -2319,6 +2319,8 @@ endif # ARM64_PSEUDO_NMI
@@ -2320,6 +2320,8 @@ endif # ARM64_PSEUDO_NMI

config ARM64_MEMORY_MODEL_CONTROL
bool "Runtime memory model control"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 62efc5665240814f15f351cb37c29264e6e8d2f6 Mon Sep 17 00:00:00 2001
From ac14d97a51ae4dcfe8b27555ae468ddb655cf0d4 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <slp@redhat.com>
Date: Tue, 8 Oct 2024 11:24:25 +0200
Subject: [PATCH 19/36] Enable 64 bit processes to use compat input syscalls
Subject: [PATCH 18/38] Enable 64 bit processes to use compat input syscalls

The compat variant of input syscalls is only enabled for 32 bit
tasks, but in some cases, such as userspace emulation, it's useful to
Expand Down Expand Up @@ -94,7 +94,7 @@ index 36c278683cd6..c2027aa99409 100644
+
#endif /* _LINUX_PRCTL_H */
diff --git a/kernel/sys.c b/kernel/sys.c
index b14846a80169..f98671f25026 100644
index 4c7ca5e7a489..88fbfeb3d57c 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -2818,6 +2818,21 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
Expand Down
Loading
Loading