aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bpf.h
AgeCommit message (Expand)AuthorFilesLines
18 hoursMerge tag 'mm-stable-2024-05-17-19-19' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-25/+8
2024-04-29Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-2/+20
2024-04-25mm: change inlined allocation helpers to account at the call siteSuren Baghdasaryan1-25/+8
2024-04-24bpf: make common crypto API for TC/XDP programsVadim Fedorenko1-0/+1
2024-04-24bpf: update the comment for BTF_FIELDS_MAXHaiyue Wang1-1/+1
2024-04-23bpf: allow struct bpf_wq to be embedded in arraymaps and hashmapsBenjamin Tissoires1-0/+2
2024-04-23bpf: add support for bpf_wq user typeBenjamin Tissoires1-1/+10
2024-04-10bpf: Add bpf_link support for sk_msg and sk_skb progsYonghong Song1-0/+6
2024-04-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+15
2024-03-28bpf: support deferring bpf_link dealloc to after RCU grace periodAndrii Nakryiko1-1/+15
2024-03-19bpf: support BPF cookie in raw tracepoint (raw_tp, tp_btf) programsAndrii Nakryiko1-0/+1
2024-03-19bpf: pass whole link instead of prog when triggering raw tracepointAndrii Nakryiko1-0/+5
2024-03-18bpf: Check return from set_memory_rox()Christophe Leroy1-1/+1
2024-03-18bpf: Remove arch_unprotect_bpf_trampoline()Christophe Leroy1-1/+0
2024-03-11bpf: move sleepable flag from bpf_prog_aux to bpf_progAndrii Nakryiko1-4/+4
2024-03-11bpf: Recognize btf_decl_tag("arg: Arena") as PTR_TO_ARENA.Alexei Starovoitov1-0/+1
2024-03-11bpf: Recognize addr_space_cast instruction in the verifier.Alexei Starovoitov1-0/+1
2024-03-11bpf: Add x86-64 JIT support for PROBE_MEM32 pseudo instructions.Alexei Starovoitov1-0/+1
2024-03-11bpf: Introduce bpf_arena.Alexei Starovoitov1-2/+5
2024-03-07bpf: Plumb get_unmapped_area() callback into bpf_map_opsAlexei Starovoitov1-0/+3
2024-03-04bpf: struct_ops supports more than one page for trampolines.Kui-Feng Lee1-1/+3
2024-02-21bpf: Shrink size of struct bpf_map/bpf_array.Alexei Starovoitov1-9/+3
2024-02-13bpf: Create argument information for nullable arguments.Kui-Feng Lee1-0/+21
2024-02-13bpf: add btf pointer to struct bpf_ctx_arg_aux.Kui-Feng Lee1-0/+1
2024-01-29bpf: Remove unused field "mod" in struct bpf_trampolineMenglong Dong1-1/+0
2024-01-24bpf,lsm: Add BPF token LSM hooksAndrii Nakryiko1-0/+3
2024-01-24bpf: Consistently use BPF token throughout BPF verifier logicAndrii Nakryiko1-8/+8
2024-01-24bpf: Take into account BPF token when fetching helper protosAndrii Nakryiko1-2/+3
2024-01-24bpf: Add BPF token support to BPF_PROG_LOAD commandAndrii Nakryiko1-0/+6
2024-01-24bpf: Add BPF token support to BPF_MAP_CREATE commandAndrii Nakryiko1-0/+2
2024-01-24bpf: Introduce BPF token objectAndrii Nakryiko1-0/+41
2024-01-24bpf: Add BPF token delegation mount options to BPF FSAndrii Nakryiko1-0/+12
2024-01-23bpf, net: switch to dynamic registrationKui-Feng Lee1-10/+17
2024-01-23bpf: validate value_typeKui-Feng Lee1-0/+12
2024-01-23bpf: hold module refcnt in bpf_struct_ops map creation and prog verification.Kui-Feng Lee1-0/+1
2024-01-23bpf: lookup struct_ops types from a given module BTF.Kui-Feng Lee1-2/+2
2024-01-23bpf: pass btf object id in bpf_map_info.Kui-Feng Lee1-0/+4
2024-01-23bpf, net: introduce bpf_struct_ops_desc.Kui-Feng Lee1-5/+10
2024-01-23bpf: support multiple tags per argumentAndrii Nakryiko1-0/+2
2024-01-04bpf: Relax tracing prog recursive attach rulesDmitrii Dolgov1-0/+1
2023-12-19bpf: move subprog call logic back to verifier.cAndrii Nakryiko1-2/+0
2023-12-19bpf: reuse btf_prepare_func_args() check for main program BTF validationAndrii Nakryiko1-2/+0
2023-12-19bpf: abstract away global subprog arg preparation logic from reg state setupAndrii Nakryiko1-2/+1
2023-12-19Revert BPF token-related functionalityAndrii Nakryiko1-75/+10
2023-12-18Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-19/+124
2023-12-15x86/cfi,bpf: Fix bpf_exception_cb() signatureAlexei Starovoitov1-1/+1
2023-12-15x86/cfi,bpf: Fix bpf_struct_ops CFIPeter Zijlstra1-0/+13
2023-12-15x86/cfi,bpf: Fix BPF JIT callPeter Zijlstra1-2/+10
2023-12-13bpf: Support uid and gid when mounting bpffsJie Jiang1-0/+2
2023-12-11bpf: tidy up exception callback management a bitAndrii Nakryiko1-1/+1
2023-12-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+3
2023-12-06bpf: Use arch_bpf_trampoline_sizeSong Liu1-1/+2
2023-12-06bpf: Add arch_bpf_trampoline_size()Song Liu1-0/+2
2023-12-06bpf: Add helpers for trampoline image managementSong Liu1-0/+5
2023-12-06bpf: Adjust argument names of arch_prepare_bpf_trampoline()Song Liu1-2/+2
2023-12-06bpf: Fix prog_array_map_poke_run map poke updateJiri Olsa1-0/+3
2023-12-06bpf,lsm: add BPF token LSM hooksAndrii Nakryiko1-0/+3
2023-12-06bpf: consistently use BPF token throughout BPF verifier logicAndrii Nakryiko1-8/+8
2023-12-06bpf: take into account BPF token when fetching helper protosAndrii Nakryiko1-2/+3
2023-12-06bpf: add BPF token support to BPF_PROG_LOAD commandAndrii Nakryiko1-0/+6
2023-12-06bpf: add BPF token support to BPF_MAP_CREATE commandAndrii Nakryiko1-0/+2
2023-12-06bpf: introduce BPF token objectAndrii Nakryiko1-0/+41
2023-12-06bpf: add BPF token delegation mount options to BPF FSAndrii Nakryiko1-0/+10
2023-12-04bpf: Optimize the free of inner mapHou Tao1-0/+2
2023-12-04bpf: Defer the free of inner map when necessaryHou Tao1-1/+6
2023-12-04bpf: Add map and need_defer parameters to .map_fd_put_ptr()Hou Tao1-1/+5
2023-11-24bpf: Validate global subprogs lazilyAndrii Nakryiko1-0/+2
2023-11-21Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-2/+4
2023-11-15bpf: Do not allocate percpu memory at init stageYonghong Song1-1/+1
2023-11-09bpf: handle ldimm64 properly in check_cfg()Andrii Nakryiko1-2/+6
2023-11-09bpf: Move GRAPH_{ROOT,NODE}_MASK macros into btf_field_type enumDave Marchevsky1-2/+2
2023-11-09bpf: Add __bpf_dynptr_data* for in kernel useSong Liu1-0/+2
2023-10-20bpf: Use bpf_global_percpu_ma for per-cpu kptr in __bpf_obj_drop_impl()Hou Tao1-1/+1
2023-10-20bpf: Move the declaration of __bpf_obj_drop_impl() to bpf.hHou Tao1-0/+1
2023-10-17net, bpf: Add a warning if NAPI cb missed xdp_do_flush().Sebastian Andrzej Siewior1-0/+3
2023-10-16Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-2/+18
2023-10-13bpf: Avoid unnecessary audit log for CPU security mitigationsYafang Shao1-2/+2
2023-10-06bpf: Inherit system settings for CPU security mitigationsYafang Shao1-2/+2
2023-10-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2023-09-25bpf: Count missed stats in trace_call_bpfJiri Olsa1-0/+16
2023-09-19bpf: Fix tr dereferencingLeon Hwang1-1/+1
2023-09-16bpf: Add support for custom exception callbacksKumar Kartikeya Dwivedi1-1/+3
2023-09-16bpf: Implement BPF exceptionsKumar Kartikeya Dwivedi1-0/+3
2023-09-16bpf: Implement support for adding hidden subprogsKumar Kartikeya Dwivedi1-0/+1
2023-09-16bpf: Use bpf_is_subprog to check for subprogsKumar Kartikeya Dwivedi1-0/+5
2023-09-12bpf, x64: Fix tailcall infinite loopLeon Hwang1-0/+5
2023-09-08bpf: Add BPF_KPTR_PERCPU as a field typeYonghong Song1-6/+12
2023-09-08bpf: Add support for non-fix-size percpu mem allocationYonghong Song1-2/+2
2023-08-31bpf: Annotate bpf_long_memcpy with data_raceDaniel Borkmann1-1/+1
2023-08-25bpf: Consider non-owning refs to refcounted nodes RCU protectedDave Marchevsky1-1/+2
2023-08-14bpf: Document struct bpf_struct_ops fieldsDavid Vernet1-0/+47
2023-08-11bpf: Remove unused declaration bpf_link_new_file()Yue Haibing1-1/+0
2023-08-07bpf: Add support for bpf_get_func_ip helper for uprobe programJiri Olsa1-2/+7
2023-08-02bpf: fix bpf_probe_read_kernel prototype mismatchArnd Bergmann1-0/+12
2023-07-18bpf: Add 'owner' field to bpf_{list,rb}_nodeDave Marchevsky1-0/+2
2023-07-18bpf: Introduce internal definitions for UAPI-opaque bpf_{rb,list}_nodeDave Marchevsky1-0/+10
2023-07-06bpf: add percpu stats for bpf_map elements insertions/deletionsAnton Protopopov1-0/+30
2023-05-23bpf: Support O_PATH FDs in BPF_OBJ_PIN and BPF_OBJ_GET commandsAndrii Nakryiko1-2/+2
2023-05-15bpf: Remove bpf trampoline selectorYafang Shao1-1/+0
2023-04-27bpf: Add bpf_dynptr_sizeJoanne Koong1-1/+1
2023-04-21bpf: add test_run support for netfilter program typeFlorian Westphal1-0/+3
2023-04-15bpf: Centralize btf_field-specific initialization logicDave Marchevsky1-4/+29
2023-04-15bpf: Support refcounted local kptrs in existing semanticsDave Marchevsky1-0/+3
2023-04-15bpf: Introduce opaque bpf_refcount struct and add btf_record plumbingDave Marchevsky1-0/+8
2023-04-15bpf: Remove btf_field_offs, use btf_record's fields insteadDave Marchevsky1-25/+19
2023-04-13bpf: Support 64-bit pointers to kfuncsIlya Leoshkevich1-0/+10
2023-04-11bpf: Add log_true_size output field to return necessary log buffer sizeAndrii Nakryiko1-1/+1
2023-04-04bpf: Refactor btf_nested_type_is_trusted().Alexei Starovoitov1-3/+4
2023-04-04bpf: Remove unused arguments from btf_struct_access().Alexei Starovoitov1-2/+1
2023-03-22bpf: Update the struct_ops of a bpf_link.Kui-Feng Lee1-0/+3
2023-03-22bpf: Create links for BPF struct_ops maps.Kui-Feng Lee1-0/+7
2023-03-22bpf: Retire the struct_ops map kvalue->refcnt.Kui-Feng Lee1-0/+1
2023-03-22bpf: return long from bpf_map_ops funcsJP Kobryn1-7/+7
2023-03-15bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modulesViktor Malik1-0/+2
2023-03-13bpf: Disable migration when freeing stashed local kptr using obj dropDave Marchevsky1-8/+4
2023-03-10bpf: Support __kptr to local kptrsDave Marchevsky1-1/+10
2023-03-10bpf: Change btf_record_find enum parameter to field_maskDave Marchevsky1-1/+1
2023-03-08bpf: implement numbers iteratorAndrii Nakryiko1-2/+6
2023-03-07bpf: offload map memory usageYafang Shao1-0/+6
2023-03-07bpf: add new map ops ->map_mem_usageYafang Shao1-0/+2
2023-03-03bpf: Refactor RCU enforcement in the verifier.Alexei Starovoitov1-1/+1
2023-03-01bpf: Add xdp dynptrsJoanne Koong1-1/+7
2023-03-01bpf: Add skb dynptrsJoanne Koong1-1/+13
2023-03-01bpf: Define no-ops for externally called bpf dynptr functionsJoanne Koong1-30/+45
2023-02-15bpf: Zeroing allocated object from slab in bpf memory allocatorHou Tao1-0/+7
2023-02-13bpf: Add basic bpf_rb_{root,node} supportDave Marchevsky1-1/+19
2023-02-13bpf: Migrate release_on_unlock logic to non-owning ref semanticsDave Marchevsky1-0/+6
2023-02-10bpf: allow to disable bpf map memory accountingYafang Shao1-0/+8
2023-02-10bpf: use bpf_map_kvcalloc in bpf_local_storageYafang Shao1-0/+8
2023-02-02bpf: Drop always true do_idr_lock parameter to bpf_map_free_idTobias Klauser1-1/+1
2023-01-29s390/bpf: Implement arch_prepare_bpf_trampoline()Ilya Leoshkevich1-0/+4
2023-01-28bpf: btf: Add BTF_FMODEL_SIGNED_ARG flagIlya Leoshkevich1-0/+4
2023-01-28bpf: Change BPF_MAX_TRAMP_LINKS to enumIlya Leoshkevich1-1/+3
2023-01-28Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-12/+67
2023-01-25bpf/selftests: Verify struct_ops prog sleepable behaviorDavid Vernet1-0/+1
2023-01-25bpf: Pass const struct bpf_prog * to .check_memberDavid Vernet1-1/+2
2023-01-24bpf: Allow trusted args to walk struct when checking BTF IDsDavid Vernet1-0/+4
2023-01-24bpf: Enable annotating trusted nested pointersDavid Vernet1-0/+4
2023-01-23bpf: Support consuming XDP HW metadata from fext programsToke Høiland-Jørgensen1-0/+14
2023-01-23bpf: XDP metadata RX kfuncsStanislav Fomichev1-1/+16
2023-01-23bpf: Introduce device-bound XDP programsStanislav Fomichev1-4/+20
2023-01-23bpf: Rename bpf_{prog,map}_is_dev_bound to is_offloadedStanislav Fomichev1-4/+4
2023-01-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2023-01-10bpf: Replace 0-length arrays with flexible arraysKees Cook1-3/+3
2023-01-09bpf: remove the do_idr_lock parameter from bpf_prog_free_id()Paul Moore1-1/+1
2022-12-28bpf: rename list_head -> graph_root in field info typesDave Marchevsky1-2/+2
2022-12-19bpf: Remove trace_printk_lockJiri Olsa1-0/+3
2022-12-19bpf: Do cleanup in bpf_bprintf_cleanup only when neededJiri Olsa1-1/+1
2022-12-19bpf: Add struct for bin_args arg in bpf_bprintf_prepareJiri Olsa1-1/+6
2022-12-08bpf: Rework process_dynptr_funcKumar Kartikeya Dwivedi1-2/+2
2022-11-30bpf: Tighten ptr_to_btf_id checks.Alexei Starovoitov1-5/+0
2022-11-28Daniel Borkmann says:Jakub Kicinski1-47/+107
2022-11-24bpf: Add kfunc bpf_rcu_read_lock/unlock()Yonghong Song1-0/+3
2022-11-24bpf: Introduce might_sleep field in bpf_func_protoYonghong Song1-0/+1
2022-11-20bpf: Allow trusted pointers to be passed to KF_TRUSTED_ARGS kfuncsDavid Vernet1-0/+30
2022-11-17bpf: Introduce bpf_obj_newKumar Kartikeya Dwivedi1-8/+13
2022-11-17bpf: Rewrite kfunc argument handlingKumar Kartikeya Dwivedi1-11/+0
2022-11-17bpf: Verify ownership relationships for user BTF typesKumar Kartikeya Dwivedi1-0/+1
2022-11-17bpf: Recognize lock and list fields in allocated objectsKumar Kartikeya Dwivedi1-0/+7
2022-11-17bpf: Introduce allocated objects supportKumar Kartikeya Dwivedi1-0/+11
2022-11-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-21/+39
2022-11-17bpf: Pass map file to .map_update_batch directlyHou Tao1-2/+3
2022-11-15bpf: Expand map key argument of bpf_redirect_map to u64Toke Høiland-Jørgensen1-1/+1
2022-11-14bpf: Refactor btf_struct_accessKumar Kartikeya Dwivedi1-9/+8
2022-11-14bpf: Rename MEM_ALLOC to MEM_RINGBUFKumar Kartikeya Dwivedi1-7/+4
2022-11-14bpf: Rename RET_PTR_TO_ALLOC_MEMKumar Kartikeya Dwivedi1-3/+3
2022-11-14bpf: Support bpf_list_head in map valuesKumar Kartikeya Dwivedi1-0/+17
2022-11-14bpf: Fix copy_map_value, zero_map_valueKumar Kartikeya Dwivedi1-2/+2
2022-11-14bpf: Remove BPF_MAP_OFF_ARR_MAXKumar Kartikeya Dwivedi1-5/+4
2022-11-11bpf: Fix offset calculation error in __copy_map_value and zero_map_valueXu Kuohai1-2/+2
2022-11-04bpf: Convert BPF_DISPATCHER to use static_call() (not ftrace)Peter Zijlstra1-1/+38
2022-11-04bpf: Revert ("Fix dispatcher patchable function entry to 5 bytes nop")Peter Zijlstra1-20/+1
2022-11-03bpf: Refactor map->off_arr handlingKumar Kartikeya Dwivedi1-17/+24
2022-11-03bpf: Consolidate spin_lock, timer management into btf_recordKumar Kartikeya Dwivedi1-21/+32
2022-11-03bpf: Refactor kptr_off_tab into btf_recordKumar Kartikeya Dwivedi1-44/+81
2022-11-02Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-14/+19
2022-10-25bpf: Implement cgroup storage available to non-cgroup-attached bpf progsYonghong Song1-0/+7
2022-10-25bpf: Add new bpf_task_storage_delete proto with no deadlock detectionMartin KaFai Lau1-0/+1
2022-10-25bpf: Add new bpf_task_storage_get proto with no deadlock detectionMartin KaFai Lau1-0/+1
2022-10-25bpf: Append _recur naming to the bpf_task_storage helper protoMartin KaFai Lau1-2/+2
2022-10-25bpf: Remove prog->active check for bpf_lsm and bpf_iterMartin KaFai Lau1-14/+10
2022-10-20bpf: Fix dispatcher patchable function entry to 5 bytes nopJiri Olsa1-1/+13
2022-09-29bpf: Add __bpf_prog_{enter,exit}_struct_ops for struct_ops trampolineMartin KaFai Lau1-0/+4
2022-09-28bpf: Parameterize task iterators.Kui-Feng Lee1-0/+25
2022-09-26bpf: Enforce W^X for bpf trampolineSong Liu1-1/+0
2022-09-26bpf: use bpf_prog_pack for bpf_dispatcherSong Liu1-1/+2
2022-09-21bpf: Prevent bpf program recursion for raw tracepoint probesJiri Olsa1-0/+6
2022-09-21bpf: Add bpf_lookup_*_key() and bpf_key_put() kfuncsRoberto Sassu1-0/+8
2022-09-21bpf: Export bpf_dynptr_get_size()Roberto Sassu1-0/+1
2022-09-21bpf: Add bpf_user_ringbuf_drain() helperDavid Vernet1-2/+9
2022-09-16bpf: Move bpf_dispatcher function out of ftrace locationsJiri Olsa1-0/+7
2022-09-10bpf: Add stub for btf_struct_access()Daniel Xu1-0/+9
2022-09-07bpf: Add zero_map_value to zero map value with special fieldsKumar Kartikeya Dwivedi1-0/+19
2022-09-07bpf: Add copy_map_value_long to copy to remote percpu memoryKumar Kartikeya Dwivedi1-19/+33
2022-09-07bpf/verifier: allow kfunc to return an allocated memBenjamin Tissoires1-1/+8
2022-09-07bpf: split btf_check_subprog_arg_match in twoBenjamin Tissoires1-0/+2
2022-09-06bpf: Allow struct argument in trampoline based programsYonghong Song1-0/+4
2022-08-25bpf: Introduce cgroup iterHao Luo1-0/+8
2022-08-23bpf: Use cgroup_{common,current}_func_proto in more hooksStanislav Fomichev1-0/+1
2022-08-18bpf: net: Avoid sk_setsockopt() taking sk lock when called from bpfMartin KaFai Lau1-0/+13