summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2026-02-12 04:18:13 -0700
committerJens Axboe <axboe@kernel.dk>2026-02-12 04:18:13 -0700
commita60f1908d2f0106835efac4d40bf97829ec0cd2e (patch)
treeff98d55c7bc71336b7e19c22ffdeb64b7282441c /include/uapi/linux
parentb725e254ca326296e0a6ec6c0914a29d9af3421b (diff)
parente21dcb89b552f2778faf453bb49777076b47b8bd (diff)
Merge branch 'io_uring-bpf-update' into for-next
* io_uring-bpf-update: io_uring/bpf_filter: pass in expected filter payload size io_uring/bpf_filter: move filter size and populate helper into struct
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/io_uring/bpf_filter.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/uapi/linux/io_uring/bpf_filter.h b/include/uapi/linux/io_uring/bpf_filter.h
index 220351b81bc0..1b461d792a7b 100644
--- a/include/uapi/linux/io_uring/bpf_filter.h
+++ b/include/uapi/linux/io_uring/bpf_filter.h
@@ -35,13 +35,19 @@ enum {
* If set, any currently unset opcode will have a deny filter attached
*/
IO_URING_BPF_FILTER_DENY_REST = 1,
+ /*
+ * If set, if kernel and application don't agree on pdu_size for
+ * the given opcode, fail the registration of the filter.
+ */
+ IO_URING_BPF_FILTER_SZ_STRICT = 2,
};
struct io_uring_bpf_filter {
__u32 opcode; /* io_uring opcode to filter */
__u32 flags;
__u32 filter_len; /* number of BPF instructions */
- __u32 resv;
+ __u8 pdu_size; /* expected pdu size for opcode */
+ __u8 resv[3];
__u64 filter_ptr; /* pointer to BPF filter */
__u64 resv2[5];
};