History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf

Daniel Borkmann says: ==================== pull-request: bpf 2019-12-02 The following pull-request contains BPF updates for your *net* tree. We've added 10 non-merge commits during the last 6 day(s) which contain a total of 10 files changed, 60 insertions(+), 51 deletions(-). The main changes are: 1) Fix vmlinux BTF generation for binutils pre v2.25, from Stanislav Fomichev. 2) Fix libbpf global variable relocation to take symbol's st_value offset into account, from Andrii Nakryiko. 3) Fix libbpf build on powerpc where check_abi target fails due to different readelf output format, from Aurelien Jarno. 4) Don't set BPF insns RO for the case when they are JITed in order to avoid fragmenting the direct map, from Daniel Borkmann. 5) Fix static checker warning in btf_distill_func_proto() as well as a build error due to empty enum when BPF is compiled out, from Alexei Starovoitov. 6) Fix up generation of bpf_helper_defs.h for perf, from Arnaldo Carvalho de Melo. ====================

David S. Miller committed 6 years ago

Commit 734c7022 parents 596cf45 3464afd10 files · +60 −51Browse files

Showing the changes to include/linux (1 of 10 files). Show all

Unified · Split

include/linux/filter.h+6−2
@@ -776,8 +776,12 @@ bpf_ctx_narrow_access_offset(u32 off, u32 size, u32 size_default) · 775 unmodified lines
776776
777777 static inline void bpf_prog_lock_ro(struct bpf_prog *fp)
778778 {
779− set_vm_flush_reset_perms(fp);
780− set_memory_ro((unsigned long)fp, fp->pages);
779+#ifndef CONFIG_BPF_JIT_ALWAYS_ON
780+ if (!fp->jited) {
781+ set_vm_flush_reset_perms(fp);
782+ set_memory_ro((unsigned long)fp, fp->pages);
783+ }
784+#endif
781785 }
782786
783787 static inline void bpf_jit_binary_lock_ro(struct bpf_binary_header *hdr)

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