summaryrefslogtreecommitdiff
path: root/pkg/linux-headers/patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/linux-headers/patch')
-rw-r--r--pkg/linux-headers/patch/0002-Revert-change-of-BPF_F_-to-enum-constants.patch8
-rw-r--r--pkg/linux-headers/patch/0004-Prevent-zero-length-array-members-in-asound.h.patch10
-rw-r--r--pkg/linux-headers/patch/0005-Make-struct-bpf_timer-include-a-named-member.patch32
3 files changed, 41 insertions, 9 deletions
diff --git a/pkg/linux-headers/patch/0002-Revert-change-of-BPF_F_-to-enum-constants.patch b/pkg/linux-headers/patch/0002-Revert-change-of-BPF_F_-to-enum-constants.patch
index 399d39e4..8296907d 100644
--- a/pkg/linux-headers/patch/0002-Revert-change-of-BPF_F_-to-enum-constants.patch
+++ b/pkg/linux-headers/patch/0002-Revert-change-of-BPF_F_-to-enum-constants.patch
@@ -1,4 +1,4 @@
-From 5d59692ac21d659a7d8a08c49d83fef2399fff6f Mon Sep 17 00:00:00 2001
+From d770264c9479c16bc45729d7bddd7e9275e44199 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Tue, 2 Jun 2020 03:56:03 -0700
Subject: [PATCH] Revert change of BPF_F_* to enum constants
@@ -8,10 +8,10 @@ Subject: [PATCH] Revert change of BPF_F_* to enum constants
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
-index bf9252c7381e..3c32dfb895a3 100644
+index 791f31dd0abe..a2e8fd2e798c 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
-@@ -5016,12 +5016,10 @@ enum {
+@@ -5120,12 +5120,10 @@ enum {
/* BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and
* BPF_FUNC_perf_event_read_value flags.
*/
@@ -28,5 +28,5 @@ index bf9252c7381e..3c32dfb895a3 100644
/* Current network namespace */
enum {
--
-2.32.0
+2.34.0
diff --git a/pkg/linux-headers/patch/0004-Prevent-zero-length-array-members-in-asound.h.patch b/pkg/linux-headers/patch/0004-Prevent-zero-length-array-members-in-asound.h.patch
index bd71403e..00d7533c 100644
--- a/pkg/linux-headers/patch/0004-Prevent-zero-length-array-members-in-asound.h.patch
+++ b/pkg/linux-headers/patch/0004-Prevent-zero-length-array-members-in-asound.h.patch
@@ -1,4 +1,4 @@
-From 3ff7594c56add20d75d8f8590e07d2dd56f3addd Mon Sep 17 00:00:00 2001
+From 1c362a59b41e944dd21b5d72dbab4465d2346415 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Mon, 30 Aug 2021 19:26:32 -0700
Subject: [PATCH] Prevent zero-length array members in asound.h
@@ -8,10 +8,10 @@ Subject: [PATCH] Prevent zero-length array members in asound.h
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h
-index 535a7229e1d9..fd8cdf7d5147 100644
+index 5859ca0a1439..bbb078f3fddf 100644
--- a/include/uapi/sound/asound.h
+++ b/include/uapi/sound/asound.h
-@@ -553,22 +553,30 @@ struct __snd_pcm_sync_ptr {
+@@ -554,22 +554,30 @@ struct __snd_pcm_sync_ptr {
} c;
};
@@ -48,7 +48,7 @@ index 535a7229e1d9..fd8cdf7d5147 100644
struct __snd_timespec64 tstamp; /* Timestamp */
snd_pcm_state_t suspended_state;/* RO: suspended stream state */
__u32 pad3; /* Needed for 64 bit alignment */
-@@ -576,15 +584,18 @@ struct __snd_pcm_mmap_status64 {
+@@ -577,15 +585,18 @@ struct __snd_pcm_mmap_status64 {
};
struct __snd_pcm_mmap_control64 {
@@ -72,5 +72,5 @@ index 535a7229e1d9..fd8cdf7d5147 100644
__u32 flags;
__u32 pad1;
--
-2.32.0
+2.34.0
diff --git a/pkg/linux-headers/patch/0005-Make-struct-bpf_timer-include-a-named-member.patch b/pkg/linux-headers/patch/0005-Make-struct-bpf_timer-include-a-named-member.patch
new file mode 100644
index 00000000..e1bcac0a
--- /dev/null
+++ b/pkg/linux-headers/patch/0005-Make-struct-bpf_timer-include-a-named-member.patch
@@ -0,0 +1,32 @@
+From aec886b601b85235a21baa303f75c589f434b727 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Thu, 2 Dec 2021 14:49:08 -0800
+Subject: [PATCH] Make struct bpf_timer include a named member
+
+A struct without any named members is undefined behavior by C11
+6.7.2.1p8.
+
+Signed-off-by: Michael Forney <mforney@mforney.org>
+---
+ include/uapi/linux/bpf.h | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
+index a2e8fd2e798c..79d70644e6a0 100644
+--- a/include/uapi/linux/bpf.h
++++ b/include/uapi/linux/bpf.h
+@@ -6180,9 +6180,8 @@ struct bpf_spin_lock {
+ };
+
+ struct bpf_timer {
+- __u64 :64;
+- __u64 :64;
+-} __attribute__((aligned(8)));
++ __u64 reserved[2];
++};
+
+ struct bpf_sysctl {
+ __u32 write; /* Sysctl is being read (= 0) or written (= 1).
+--
+2.34.0
+