diff options
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0001-arm64-kexec-disabled-check-if-kaslr-seed-dtb-propert.patch | 11 | ||||
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0001-kexec.c-add-MFD_NOEXEC_SEAL-flag-explicitly.patch | 9 | ||||
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools_2.0.30.bb (renamed from meta/recipes-kernel/kexec/kexec-tools_2.0.29.bb) | 2 |
3 files changed, 8 insertions, 14 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-kexec-disabled-check-if-kaslr-seed-dtb-propert.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-kexec-disabled-check-if-kaslr-seed-dtb-propert.patch index ddc1519126..ee731cea4b 100644 --- a/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-kexec-disabled-check-if-kaslr-seed-dtb-propert.patch +++ b/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-kexec-disabled-check-if-kaslr-seed-dtb-propert.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d48ec5e1a5fb7907520dee71b1d94045486a0c29 Mon Sep 17 00:00:00 2001 | 1 | From 9e95f8933bded10fdd664fc95492825347ec59a7 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kamensky <alexander.kamensky42@gmail.com> | 2 | From: Alexander Kamensky <alexander.kamensky42@gmail.com> |
3 | Date: Thu, 12 Nov 2020 12:56:46 -0800 | 3 | Date: Thu, 12 Nov 2020 12:56:46 -0800 |
4 | Subject: [PATCH] arm64: kexec: disabled check if kaslr-seed dtb property was | 4 | Subject: [PATCH] arm64: kexec: disabled check if kaslr-seed dtb property was |
@@ -34,10 +34,10 @@ Upstream-Status: Submitted [http://lists.infradead.org/pipermail/kexec/2020-Nove | |||
34 | 1 file changed, 1 insertion(+), 13 deletions(-) | 34 | 1 file changed, 1 insertion(+), 13 deletions(-) |
35 | 35 | ||
36 | diff --git a/kexec/arch/arm64/kexec-arm64.c b/kexec/arch/arm64/kexec-arm64.c | 36 | diff --git a/kexec/arch/arm64/kexec-arm64.c b/kexec/arch/arm64/kexec-arm64.c |
37 | index ec6df4b..10238d9 100644 | 37 | index 9091f40..ea304f9 100644 |
38 | --- a/kexec/arch/arm64/kexec-arm64.c | 38 | --- a/kexec/arch/arm64/kexec-arm64.c |
39 | +++ b/kexec/arch/arm64/kexec-arm64.c | 39 | +++ b/kexec/arch/arm64/kexec-arm64.c |
40 | @@ -503,7 +503,7 @@ static int setup_2nd_dtb(struct dtb *dtb, char *command_line, int on_crash) | 40 | @@ -504,7 +504,7 @@ static int setup_2nd_dtb(struct dtb *dtb, char *command_line, int on_crash) |
41 | int len, range_len; | 41 | int len, range_len; |
42 | int nodeoffset; | 42 | int nodeoffset; |
43 | int new_size; | 43 | int new_size; |
@@ -46,7 +46,7 @@ index ec6df4b..10238d9 100644 | |||
46 | 46 | ||
47 | result = fdt_check_header(dtb->buf); | 47 | result = fdt_check_header(dtb->buf); |
48 | 48 | ||
49 | @@ -576,18 +576,6 @@ static int setup_2nd_dtb(struct dtb *dtb, char *command_line, int on_crash) | 49 | @@ -577,18 +577,6 @@ static int setup_2nd_dtb(struct dtb *dtb, char *command_line, int on_crash) |
50 | return result; | 50 | return result; |
51 | } | 51 | } |
52 | } else { | 52 | } else { |
@@ -65,6 +65,3 @@ index ec6df4b..10238d9 100644 | |||
65 | /* | 65 | /* |
66 | * Invoke the getrandom system call with | 66 | * Invoke the getrandom system call with |
67 | * GRND_NONBLOCK, to make sure we | 67 | * GRND_NONBLOCK, to make sure we |
68 | -- | ||
69 | 2.25.1 | ||
70 | |||
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-kexec.c-add-MFD_NOEXEC_SEAL-flag-explicitly.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-kexec.c-add-MFD_NOEXEC_SEAL-flag-explicitly.patch index dc52981025..8dc5fed765 100644 --- a/meta/recipes-kernel/kexec/kexec-tools/0001-kexec.c-add-MFD_NOEXEC_SEAL-flag-explicitly.patch +++ b/meta/recipes-kernel/kexec/kexec-tools/0001-kexec.c-add-MFD_NOEXEC_SEAL-flag-explicitly.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a6a9e17dfeb5627f3e6f569b66f243f50f8a3645 Mon Sep 17 00:00:00 2001 | 1 | From 1a09bf71c2f541c2cfb44a00661051597bbd0b76 Mon Sep 17 00:00:00 2001 |
2 | From: Chen Qi <Qi.Chen@windriver.com> | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
3 | Date: Tue, 6 Aug 2024 21:42:43 -0700 | 3 | Date: Tue, 6 Aug 2024 21:42:43 -0700 |
4 | Subject: [PATCH] kexec.c: add MFD_NOEXEC_SEAL flag explicitly | 4 | Subject: [PATCH] kexec.c: add MFD_NOEXEC_SEAL flag explicitly |
@@ -18,7 +18,7 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | |||
18 | 1 file changed, 5 insertions(+), 1 deletion(-) | 18 | 1 file changed, 5 insertions(+), 1 deletion(-) |
19 | 19 | ||
20 | diff --git a/kexec/kexec.c b/kexec/kexec.c | 20 | diff --git a/kexec/kexec.c b/kexec/kexec.c |
21 | index 7c614b0..41d285d 100644 | 21 | index 4f51987..8f02595 100644 |
22 | --- a/kexec/kexec.c | 22 | --- a/kexec/kexec.c |
23 | +++ b/kexec/kexec.c | 23 | +++ b/kexec/kexec.c |
24 | @@ -60,6 +60,10 @@ | 24 | @@ -60,6 +60,10 @@ |
@@ -32,7 +32,7 @@ index 7c614b0..41d285d 100644 | |||
32 | unsigned long long mem_min = 0; | 32 | unsigned long long mem_min = 0; |
33 | unsigned long long mem_max = ULONG_MAX; | 33 | unsigned long long mem_max = ULONG_MAX; |
34 | unsigned long elfcorehdrsz = 0; | 34 | unsigned long elfcorehdrsz = 0; |
35 | @@ -655,7 +659,7 @@ static int copybuf_memfd(const char *kernel_buf, size_t size) | 35 | @@ -657,7 +661,7 @@ static int copybuf_memfd(const char *kernel_buf, size_t size) |
36 | { | 36 | { |
37 | int fd, count; | 37 | int fd, count; |
38 | 38 | ||
@@ -41,6 +41,3 @@ index 7c614b0..41d285d 100644 | |||
41 | if (fd == -1) | 41 | if (fd == -1) |
42 | return fd; | 42 | return fd; |
43 | 43 | ||
44 | -- | ||
45 | 2.25.1 | ||
46 | |||
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.29.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.30.bb index 9f5eb6e8c1..6a67427888 100644 --- a/meta/recipes-kernel/kexec/kexec-tools_2.0.29.bb +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.30.bb | |||
@@ -20,7 +20,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz | |||
20 | file://0001-kexec.c-add-MFD_NOEXEC_SEAL-flag-explicitly.patch \ | 20 | file://0001-kexec.c-add-MFD_NOEXEC_SEAL-flag-explicitly.patch \ |
21 | " | 21 | " |
22 | 22 | ||
23 | SRC_URI[sha256sum] = "0756dd54dab2f2a437e5d4df64b9760c3e6cf6a7d29fb296bdeeeb749f6ea28e" | 23 | SRC_URI[sha256sum] = "bb6b39bbe00099219e95ab34b25ea4348e1a95964eefc45c1e6fe32362ac9021" |
24 | 24 | ||
25 | inherit autotools update-rc.d systemd | 25 | inherit autotools update-rc.d systemd |
26 | 26 | ||