History

Merge 6.12-rc4 into usb-next

We need the USB fixes in here as well.

Greg Kroah-Hartman committed 2 years ago

Commit c6d9e432 parents 07b887f 42f7652476 files · +5101 −2741Browse files

Showing the changes to include/uapi (2 of 476 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/bpf.h +5 −8
  2. include/uapi/linux/ublk_cmd.h +7 −1
include/uapi/linux/bpf.h+5−8
@@ -6047,11 +6047,6 @@ enum { · 6046 unmodified lines
60476047 BPF_F_MARK_ENFORCE = (1ULL << 6),
60486048 };
60496049
6050−/* BPF_FUNC_clone_redirect and BPF_FUNC_redirect flags. */
6051−enum {
6052− BPF_F_INGRESS = (1ULL << 0),
6053−};
6054−
60556050 /* BPF_FUNC_skb_set_tunnel_key and BPF_FUNC_skb_get_tunnel_key flags. */
60566051 enum {
60576052 BPF_F_TUNINFO_IPV6 = (1ULL << 0),
@@ -6198,10 +6193,12 @@ enum { · 140 unmodified lines
61986193 BPF_F_BPRM_SECUREEXEC = (1ULL << 0),
61996194 };
62006195
6201−/* Flags for bpf_redirect_map helper */
6196+/* Flags for bpf_redirect and bpf_redirect_map helpers */
62026197 enum {
6203− BPF_F_BROADCAST = (1ULL << 3),
6204− BPF_F_EXCLUDE_INGRESS = (1ULL << 4),
6198+ BPF_F_INGRESS = (1ULL << 0), /* used for skb path */
6199+ BPF_F_BROADCAST = (1ULL << 3), /* used for XDP path */
6200+ BPF_F_EXCLUDE_INGRESS = (1ULL << 4), /* used for XDP path */
6201+#define BPF_F_REDIRECT_FLAGS (BPF_F_INGRESS | BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS)
62056202 };
62066203
62076204 #define __bpf_md_ptr(type, name) \
include/uapi/linux/ublk_cmd.h+7−1
@@ -175,7 +175,13 @@ · 174 unmodified lines
175175 /* use ioctl encoding for uring command */
176176 #define UBLK_F_CMD_IOCTL_ENCODE (1UL << 6)
177177
178−/* Copy between request and user buffer by pread()/pwrite() */
178+/*
179+ * Copy between request and user buffer by pread()/pwrite()
180+ *
181+ * Not available for UBLK_F_UNPRIVILEGED_DEV, otherwise userspace may
182+ * deceive us by not filling request buffer, then kernel uninitialized
183+ * data may be leaked.
184+ */
179185 #define UBLK_F_USER_COPY (1UL << 7)
180186
181187 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t