Skip to content

Commit

Permalink
Merge pull request containers#27 from slp/tsi_accept_fix
Browse files Browse the repository at this point in the history
Update TSI patch to fix issue in tsi_accept
  • Loading branch information
slp authored Aug 18, 2022
2 parents ce2e1a3 + ca6eafc commit 45686a3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ KERNEL_PATCHES = $(shell find patches/ -name "0*.patch" | sort)
KERNEL_C_BUNDLE = kernel.c

ABI_VERSION=3
FULL_VERSION=3.6.1
FULL_VERSION=3.6.2

ifeq ($(SEV),1)
VARIANT = -sev
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 97dfe80d6fe0a0c2c0d09e641b4cb77eacce532e Mon Sep 17 00:00:00 2001
From 5bed46572790eae534077bf1d7d255e7415ab180 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <[email protected]>
Date: Fri, 10 Sep 2021 13:05:01 +0200
Subject: [PATCH 12/14] virtio: enable DMA API if memory is restricted
Expand Down
2 changes: 1 addition & 1 deletion patches-sev/0013-x86-sev-write-AP-reset-vector.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From a43719e6eee9c4eb15149e9501da90c4a5be9f96 Mon Sep 17 00:00:00 2001
From d773dd1bb5959f7cfa48dd06e93d2d42d0008019 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <[email protected]>
Date: Wed, 10 Aug 2022 13:28:06 +0200
Subject: [PATCH 13/14] x86/sev: write AP reset vector
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 2e45d69ba541bdc3737e20b4b00986c6a15cb4b1 Mon Sep 17 00:00:00 2001
From 18537264afe94f24d6238921ab76b7bc64bc3ab2 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <[email protected]>
Date: Wed, 3 Aug 2022 12:35:12 +0200
Subject: [PATCH 14/14] Implement driver to retrieve secrets from cmdline
Expand Down
20 changes: 17 additions & 3 deletions patches/0011-tsi-allow-hijacking-sockets-tsi_hijack.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 0d319fba8147178249ce686efcd35045764b57eb Mon Sep 17 00:00:00 2001
From 4ae01a8c0354ebcbb13f4ba9b1a801c702b3aee6 Mon Sep 17 00:00:00 2001
From: Sergio Lopez <[email protected]>
Date: Thu, 19 May 2022 22:42:01 +0200
Subject: [PATCH 11/14] tsi: allow hijacking sockets (tsi_hijack)
Expand All @@ -9,8 +9,9 @@ sockets to turn them into TSI sockets.

Signed-off-by: Sergio Lopez <[email protected]>
---
net/socket.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
net/socket.c | 17 +++++++++++++++++
net/tsi/af_tsi.c | 2 +-
2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/net/socket.c b/net/socket.c
index bb3976abd269..b274930a3691 100644
Expand Down Expand Up @@ -54,6 +55,19 @@ index bb3976abd269..b274930a3691 100644
rcu_read_lock();
pf = rcu_dereference(net_families[family]);
err = -EAFNOSUPPORT;
diff --git a/net/tsi/af_tsi.c b/net/tsi/af_tsi.c
index 724c0ea36520..bb6004dedaa2 100644
--- a/net/tsi/af_tsi.c
+++ b/net/tsi/af_tsi.c
@@ -474,7 +474,7 @@ static int tsi_accept(struct socket *sock, struct socket *newsock, int flags,
struct socket *csocket;
struct tsi_sock *tsk;
struct tsi_sock *newtsk;
- struct socket *nsock;
+ struct socket *nsock = NULL;
struct sock *sk;
int err;

--
2.37.1

0 comments on commit 45686a3

Please sign in to comment.