eBPF-based security platform
upatches: align and space the kernel-cve sources as checkpatch asks
Daniel Borkmann64aa37eef3b7
diff --git a/upatches/kernel-cve/sources/cve-2025-71093-e1000-oob-e1000-tbi-should-accept/observability/cve-2025-71093-e1000-tbi-detector.bpf.c b/upatches/kernel-cve/sources/cve-2025-71093-e1000-oob-e1000-tbi-should-accept/observability/cve-2025-71093-e1000-tbi-detector.bpf.cindex 6e927319..ccd82426 100644--- a/upatches/kernel-cve/sources/cve-2025-71093-e1000-oob-e1000-tbi-should-accept/observability/cve-2025-71093-e1000-tbi-detector.bpf.c+++ b/upatches/kernel-cve/sources/cve-2025-71093-e1000-oob-e1000-tbi-should-accept/observability/cve-2025-71093-e1000-tbi-detector.bpf.c@@ -42,7 +42,7 @@ static __always_inline void count_event(void *map)SEC("kprobe/e1000_tbi_should_accept")int BPF_KPROBE(cve_2025_71093_tbi, void *adapter, __u8 status,- __u8 errors, __u32 length, const __u8 *data)+ __u8 errors, __u32 length, const __u8 *data){count_event(&activity);if (!length)diff --git a/upatches/kernel-cve/sources/cve-2025-71116-libceph-make-decode-pool-more-resilient-against-corrupted/observability/cve_2025_71116-offset-predicate.bpf.c b/upatches/kernel-cve/sources/cve-2025-71116-libceph-make-decode-pool-more-resilient-against-corrupted/observability/cve_2025_71116-offset-predicate.bpf.cindex ae47db0f..02ba387d 100644--- a/upatches/kernel-cve/sources/cve-2025-71116-libceph-make-decode-pool-more-resilient-against-corrupted/observability/cve_2025_71116-offset-predicate.bpf.c+++ b/upatches/kernel-cve/sources/cve-2025-71116-libceph-make-decode-pool-more-resilient-against-corrupted/observability/cve_2025_71116-offset-predicate.bpf.c@@ -45,7 +45,6 @@ static __always_inline void count_map(void *map)SEC("kprobe/__decode_pools+0x0")int BPF_KPROBE(cve_2025_71116_predicate){-void *cursor = 0;void *end = (void *)ctx->si;__u64 paddr = ctx->di;@@ -58,5 +57,4 @@ int BPF_KPROBE(cve_2025_71116_predicate)(unsigned long)end - (unsigned long)cursor < sizeof(__u32))count_event();return 0;-}diff --git a/upatches/kernel-cve/sources/cve-2026-31675-net-sched-sch-netem-oob-access-packet-corruption/observability/cve-2026-31675-netem-detector.bpf.c b/upatches/kernel-cve/sources/cve-2026-31675-net-sched-sch-netem-oob-access-packet-corruption/observability/cve-2026-31675-netem-detector.bpf.cindex cf946e32..969ecf9e 100644--- a/upatches/kernel-cve/sources/cve-2026-31675-net-sched-sch-netem-oob-access-packet-corruption/observability/cve-2026-31675-netem-detector.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-31675-net-sched-sch-netem-oob-access-packet-corruption/observability/cve-2026-31675-netem-detector.bpf.c@@ -44,7 +44,7 @@ static __always_inline void count_event(void *map)SEC("kprobe/netem_enqueue")int BPF_KPROBE(cve_2026_31675_netem, const struct sk_buff *skb,- void *sch, void *to_free)+ void *sch, void *to_free){__u32 len;__u32 data_len;diff --git a/upatches/kernel-cve/sources/cve-2026-31682-bridge-br-nd-send-linearize-skb-parsing-nd/observability/cve_2026_31682-offset-predicate.bpf.c b/upatches/kernel-cve/sources/cve-2026-31682-bridge-br-nd-send-linearize-skb-parsing-nd/observability/cve_2026_31682-offset-predicate.bpf.cindex 6e066e32..212cba08 100644--- a/upatches/kernel-cve/sources/cve-2026-31682-bridge-br-nd-send-linearize-skb-parsing-nd/observability/cve_2026_31682-offset-predicate.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-31682-bridge-br-nd-send-linearize-skb-parsing-nd/observability/cve_2026_31682-offset-predicate.bpf.c@@ -45,7 +45,6 @@ static __always_inline void count_map(void *map)SEC("kprobe/br_do_suppress_nd+0x0")int BPF_KPROBE(cve_2026_31682_predicate){-struct sk_buff *skb = (struct sk_buff *)ctx->di;__u32 len, data_len;@@ -57,5 +56,4 @@ int BPF_KPROBE(cve_2026_31682_predicate)if (data_len && data_len <= len)count_event();return 0;-}diff --git a/upatches/kernel-cve/sources/cve-2026-31694-fuse-reject-oversized-dirents-page-cache/observability/cve-2026-31694-fuse-emit-detector.bpf.c b/upatches/kernel-cve/sources/cve-2026-31694-fuse-reject-oversized-dirents-page-cache/observability/cve-2026-31694-fuse-emit-detector.bpf.cindex f7c45418..56b2e852 100644--- a/upatches/kernel-cve/sources/cve-2026-31694-fuse-reject-oversized-dirents-page-cache/observability/cve-2026-31694-fuse-emit-detector.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-31694-fuse-reject-oversized-dirents-page-cache/observability/cve-2026-31694-fuse-emit-detector.bpf.c@@ -77,7 +77,7 @@ static __always_inline void count_event(void *map)SEC("kprobe/fuse_emit")int BPF_KPROBE(cve_2026_31694_fuse_emit, struct file *file,- void *dir_ctx, struct cve_fuse_dirent_layout *dirent)+ void *dir_ctx, struct cve_fuse_dirent_layout *dirent){void *private_data = 0;__u32 open_flags = 0;diff --git a/upatches/kernel-cve/sources/cve-2026-43281-mailbox-oob-access-fw-mbox-index-xlate/observability/cve-2026-43281-mailbox-detector.bpf.c b/upatches/kernel-cve/sources/cve-2026-43281-mailbox-oob-access-fw-mbox-index-xlate/observability/cve-2026-43281-mailbox-detector.bpf.cindex 1a4beb6c..753343d1 100644--- a/upatches/kernel-cve/sources/cve-2026-43281-mailbox-oob-access-fw-mbox-index-xlate/observability/cve-2026-43281-mailbox-detector.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-43281-mailbox-oob-access-fw-mbox-index-xlate/observability/cve-2026-43281-mailbox-detector.bpf.c@@ -36,8 +36,8 @@ static __always_inline void count_event(void *map)SEC("kprobe/fw_mbox_index_xlate")int BPF_KPROBE(cve_2026_43281_mailbox,- struct mbox_controller *mbox,- const struct fwnode_reference_args *sp)+ struct mbox_controller *mbox,+ const struct fwnode_reference_args *sp){__u32 nargs;__u64 index;diff --git a/upatches/kernel-cve/sources/cve-2026-52906-9p-access-mode-flags-being-ored-instead-replaced/observability/cve_2026_52906-offset-predicate.bpf.c b/upatches/kernel-cve/sources/cve-2026-52906-9p-access-mode-flags-being-ored-instead-replaced/observability/cve_2026_52906-offset-predicate.bpf.cindex 9fe93ef9..5905b15a 100644--- a/upatches/kernel-cve/sources/cve-2026-52906-9p-access-mode-flags-being-ored-instead-replaced/observability/cve_2026_52906-offset-predicate.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-52906-9p-access-mode-flags-being-ored-instead-replaced/observability/cve_2026_52906-offset-predicate.bpf.c@@ -45,7 +45,6 @@ static __always_inline void count_map(void *map)SEC("kprobe/v9fs_session_init+0x0")int BPF_KPROBE(cve_2026_52906_predicate){-struct v9fs_session_info *v9ses = (struct v9fs_session_info *)ctx->di;__u32 flags;@@ -56,5 +55,4 @@ int BPF_KPROBE(cve_2026_52906_predicate)if ((flags & (0x08U | 0x10U)) == (0x08U | 0x10U))count_event();return 0;-}diff --git a/upatches/kernel-cve/sources/cve-2026-52942-netfilter-nf-log-validate-mac-header-was-set/observability/cve-2026-52942-mac-header-detector.bpf.c b/upatches/kernel-cve/sources/cve-2026-52942-netfilter-nf-log-validate-mac-header-was-set/observability/cve-2026-52942-mac-header-detector.bpf.cindex e382f35d..01648c65 100644--- a/upatches/kernel-cve/sources/cve-2026-52942-netfilter-nf-log-validate-mac-header-was-set/observability/cve-2026-52942-mac-header-detector.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-52942-netfilter-nf-log-validate-mac-header-was-set/observability/cve-2026-52942-mac-header-detector.bpf.c@@ -36,7 +36,7 @@ static __always_inline void count_event(void *map)SEC("kprobe/dump_mac_header")int BPF_KPROBE(cve_2026_52942_mac, void *logbuf, void *info,- const struct sk_buff *skb)+ const struct sk_buff *skb){__u16 mac_header;diff --git a/upatches/kernel-cve/sources/cve-2026-53255-bluetooth-mgmt-validate-advertising-tlv-type-checks/observability/cve-2026-53255-tlv-detector.bpf.c b/upatches/kernel-cve/sources/cve-2026-53255-bluetooth-mgmt-validate-advertising-tlv-type-checks/observability/cve-2026-53255-tlv-detector.bpf.cindex d03e32a0..90a0338a 100644--- a/upatches/kernel-cve/sources/cve-2026-53255-bluetooth-mgmt-validate-advertising-tlv-type-checks/observability/cve-2026-53255-tlv-detector.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-53255-bluetooth-mgmt-validate-advertising-tlv-type-checks/observability/cve-2026-53255-tlv-detector.bpf.c@@ -35,7 +35,7 @@ static __always_inline void count_event(void *map)SEC("kprobe/tlv_data_is_valid")int BPF_KPROBE(cve_2026_53255_tlv, void *hdev, __u32 adv_flags,- const __u8 *data, __u8 len, bool is_adv_data)+ const __u8 *data, __u8 len, bool is_adv_data){__u32 i;diff --git a/upatches/kernel-cve/sources/cve-2026-63984-ipv6-rpl-hdrlen-overflow-ipv6-rpl-srh-decompress/observability/cve-2026-63984-rpl-detector.bpf.c b/upatches/kernel-cve/sources/cve-2026-63984-ipv6-rpl-hdrlen-overflow-ipv6-rpl-srh-decompress/observability/cve-2026-63984-rpl-detector.bpf.cindex a037294e..eedc9437 100644--- a/upatches/kernel-cve/sources/cve-2026-63984-ipv6-rpl-hdrlen-overflow-ipv6-rpl-srh-decompress/observability/cve-2026-63984-rpl-detector.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-63984-ipv6-rpl-hdrlen-overflow-ipv6-rpl-srh-decompress/observability/cve-2026-63984-rpl-detector.bpf.c@@ -35,7 +35,7 @@ static __always_inline void count_event(void *map)SEC("kprobe/ipv6_rpl_srh_decompress")int BPF_KPROBE(cve_2026_63984_rpl, void *outhdr, const void *inhdr,- const void *daddr, __u8 n)+ const void *daddr, __u8 n){count_event(&activity);if ((__u32)n + 1 > 127)diff --git a/upatches/kernel-cve/sources/cve-2026-64116-ipv6-ioam-add-null-check-idev-ipv6-hop/observability/cve_2026_64116-offset-predicate.bpf.c b/upatches/kernel-cve/sources/cve-2026-64116-ipv6-ioam-add-null-check-idev-ipv6-hop/observability/cve_2026_64116-offset-predicate.bpf.cindex d3abd694..58bff212 100644--- a/upatches/kernel-cve/sources/cve-2026-64116-ipv6-ioam-add-null-check-idev-ipv6-hop/observability/cve_2026_64116-offset-predicate.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-64116-ipv6-ioam-add-null-check-idev-ipv6-hop/observability/cve_2026_64116-offset-predicate.bpf.c@@ -45,7 +45,6 @@ static __always_inline void count_map(void *map)SEC("kprobe/ip6_parse_tlv+0x0")int BPF_KPROBE(cve_2026_64116_predicate){-bool hopbyhop = (bool)ctx->di;struct sk_buff *skb = (struct sk_buff *)ctx->si;struct net_device *dev;@@ -61,5 +60,4 @@ int BPF_KPROBE(cve_2026_64116_predicate)if (!ip6_ptr)count_event();return 0;-}diff --git a/upatches/kernel-cve/sources/cve-2026-68118-tcp-challenge-ack-non-exact-rst-syn-received/observability/cve_2026_68118-6.1-predicate-deferred.bpf.c b/upatches/kernel-cve/sources/cve-2026-68118-tcp-challenge-ack-non-exact-rst-syn-received/observability/cve_2026_68118-6.1-predicate-deferred.bpf.cindex 0271ea2c..3e6a5964 100644--- a/upatches/kernel-cve/sources/cve-2026-68118-tcp-challenge-ack-non-exact-rst-syn-received/observability/cve_2026_68118-6.1-predicate-deferred.bpf.c+++ b/upatches/kernel-cve/sources/cve-2026-68118-tcp-challenge-ack-non-exact-rst-syn-received/observability/cve_2026_68118-6.1-predicate-deferred.bpf.c@@ -60,7 +60,10 @@ static __always_inline int read_u16(const void *ptr, __u32 offset, __u16 *out)/* CVE-2026-68118: deferred source-context witness *//* tcp: challenge ACK for non-exact RST in SYN-RECEIVED *//* Required predicate: cve_condition */-/* Deferred: TCP challenge handling depends on packet/state/sequence locals in the SYN-RST branch. */+/*+ * Deferred: TCP challenge handling depends on packet/state/sequence+ * locals in the SYN-RST branch.+ */SEC("kprobe/tcp_check_req")int BPF_KPROBE(cve_2026_68118_predicate_deferred){