Commit eb0d6d9
committed
Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull bpf fixes from Alexei Starovoitov:
"Most of the diff stat comes from Xu Kuohai's fix to emit ENDBR/BTI,
since all JITs had to be touched to move constant blinding out and
pass bpf_verifier_env in.
- Fix use-after-free in arena_vm_close on fork (Alexei Starovoitov)
- Dissociate struct_ops program with map if map_update fails (Amery
Hung)
- Fix out-of-range and off-by-one bugs in arm64 JIT (Daniel Borkmann)
- Fix precedence bug in convert_bpf_ld_abs alignment check (Daniel
Borkmann)
- Fix arg tracking for imprecise/multi-offset in BPF_ST/STX insns
(Eduard Zingerman)
- Copy token from main to subprogs to fix missing kallsyms (Eduard
Zingerman)
- Prevent double close and leak of btf objects in libbpf (Jiri Olsa)
- Fix af_unix null-ptr-deref in sockmap (Michal Luczaj)
- Fix NULL deref in map_kptr_match_type for scalar regs (Mykyta
Yatsenko)
- Avoid unnecessary IPIs. Remove redundant bpf_flush_icache() in
arm64 and riscv JITs (Puranjay Mohan)
- Fix out of bounds access. Validate node_id in arena_alloc_pages()
(Puranjay Mohan)
- Reject BPF-to-BPF calls and callbacks in arm32 JIT (Puranjay Mohan)
- Refactor all JITs to pass bpf_verifier_env to emit ENDBR/BTI for
indirect jump targets on x86-64, arm64 JITs (Xu Kuohai)
- Allow UTF-8 literals in bpf_bprintf_prepare() (Yihan Ding)"
* tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: (32 commits)
bpf, arm32: Reject BPF-to-BPF calls and callbacks in the JIT
bpf: Dissociate struct_ops program with map if map_update fails
bpf: Validate node_id in arena_alloc_pages()
libbpf: Prevent double close and leak of btf objects
selftests/bpf: cover UTF-8 trace_printk output
bpf: allow UTF-8 literals in bpf_bprintf_prepare()
selftests/bpf: Reject scalar store into kptr slot
bpf: Fix NULL deref in map_kptr_match_type for scalar regs
bpf: Fix precedence bug in convert_bpf_ld_abs alignment check
bpf, arm64: Emit BTI for indirect jump target
bpf, x86: Emit ENDBR for indirect jump targets
bpf: Add helper to detect indirect jump targets
bpf: Pass bpf_verifier_env to JIT
bpf: Move constants blinding out of arch-specific JITs
bpf, sockmap: Take state lock for af_unix iter
bpf, sockmap: Fix af_unix null-ptr-deref in proto update
selftests/bpf: Extend bpf_iter_unix to attempt deadlocking
bpf, sockmap: Fix af_unix iter deadlock
bpf, sockmap: Annotate af_unix sock:: Sk_state data-races
selftests/bpf: verify kallsyms entries for token-loaded subprograms
...46 files changed
Lines changed: 1173 additions & 707 deletions
File tree
- arch
- arc/net
- arm64
- lib
- net
- arm/net
- loongarch/net
- mips/net
- parisc/net
- powerpc/net
- riscv/net
- s390/net
- sparc/net
- x86/net
- include/linux
- kernel/bpf
- net
- core
- unix
- tools
- lib/bpf
- testing/selftests/bpf
- prog_tests
- progs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | | - | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
117 | | - | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| |||
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 160 | + | |
171 | 161 | | |
172 | 162 | | |
173 | 163 | | |
| |||
214 | 204 | | |
215 | 205 | | |
216 | 206 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | 207 | | |
226 | 208 | | |
227 | 209 | | |
228 | 210 | | |
229 | 211 | | |
230 | 212 | | |
231 | 213 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
238 | 227 | | |
239 | 228 | | |
240 | 229 | | |
| |||
1411 | 1400 | | |
1412 | 1401 | | |
1413 | 1402 | | |
1414 | | - | |
| 1403 | + | |
1415 | 1404 | | |
1416 | 1405 | | |
1417 | 1406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1855 | 1858 | | |
1856 | 1859 | | |
1857 | 1860 | | |
| |||
2055 | 2058 | | |
2056 | 2059 | | |
2057 | 2060 | | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
2058 | 2064 | | |
2059 | 2065 | | |
2060 | 2066 | | |
| |||
2142 | 2148 | | |
2143 | 2149 | | |
2144 | 2150 | | |
2145 | | - | |
| 2151 | + | |
2146 | 2152 | | |
2147 | | - | |
2148 | 2153 | | |
2149 | | - | |
2150 | 2154 | | |
2151 | 2155 | | |
2152 | 2156 | | |
| |||
2156 | 2160 | | |
2157 | 2161 | | |
2158 | 2162 | | |
2159 | | - | |
2160 | | - | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
2166 | | - | |
2167 | | - | |
2168 | | - | |
2169 | | - | |
2170 | | - | |
2171 | | - | |
2172 | | - | |
| 2163 | + | |
2173 | 2164 | | |
2174 | 2165 | | |
2175 | 2166 | | |
| |||
2179 | 2170 | | |
2180 | 2171 | | |
2181 | 2172 | | |
2182 | | - | |
2183 | | - | |
2184 | | - | |
2185 | | - | |
| 2173 | + | |
| 2174 | + | |
2186 | 2175 | | |
2187 | 2176 | | |
2188 | 2177 | | |
| |||
2194 | 2183 | | |
2195 | 2184 | | |
2196 | 2185 | | |
2197 | | - | |
2198 | | - | |
| 2186 | + | |
2199 | 2187 | | |
2200 | | - | |
2201 | 2188 | | |
2202 | 2189 | | |
2203 | 2190 | | |
| |||
2213 | 2200 | | |
2214 | 2201 | | |
2215 | 2202 | | |
2216 | | - | |
2217 | | - | |
| 2203 | + | |
2218 | 2204 | | |
2219 | | - | |
2220 | 2205 | | |
2221 | 2206 | | |
2222 | 2207 | | |
| |||
2238 | 2223 | | |
2239 | 2224 | | |
2240 | 2225 | | |
2241 | | - | |
2242 | | - | |
| 2226 | + | |
2243 | 2227 | | |
2244 | | - | |
2245 | 2228 | | |
2246 | 2229 | | |
2247 | 2230 | | |
| |||
2278 | 2261 | | |
2279 | 2262 | | |
2280 | 2263 | | |
2281 | | - | |
2282 | | - | |
2283 | | - | |
2284 | | - | |
| 2264 | + | |
2285 | 2265 | | |
2286 | 2266 | | |
2287 | 2267 | | |
2288 | 2268 | | |
2289 | 2269 | | |
2290 | | - | |
2291 | 2270 | | |
2292 | 2271 | | |
2293 | 2272 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
| |||
0 commit comments