aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf
AgeCommit message (Expand)AuthorFilesLines
12 daysbpf: verifier: prevent userspace memory accessPuranjay Mohan2-0/+39
2024-04-12bpf: Fix a verifier verbose messageAnton Protopopov1-2/+1
2024-04-04Merge tag 'net-6.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netd...Linus Torvalds2-3/+35
2024-03-31Merge tag 'kbuild-fixes-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+1
2024-03-31kbuild: make -Woverride-init warnings more consistentArnd Bergmann1-1/+1
2024-03-29bpf: fix possible file descriptor leaks in verifierAnton Protopopov1-0/+3
2024-03-28bpf: support deferring bpf_link dealloc to after RCU grace periodAndrii Nakryiko1-3/+32
2024-03-27bpf: Protect against int overflow for stack access sizeAndrei Matei1-0/+5
2024-03-27bpf: Check bloom filter map value sizeAndrei Matei1-0/+13
2024-03-27bpf: fix warning for crash_kexecHari Bathini1-1/+1
2024-03-26Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Paolo Abeni2-10/+37
2024-03-22bpf: verifier: reject addr_space_cast insn without arenaPuranjay Mohan1-0/+4
2024-03-22bpf: verifier: fix addr_space_cast from as(1) to as(0)Puranjay Mohan1-2/+6
2024-03-20bpf: report RCU QS in cpumap kthreadYan Zhai1-0/+3
2024-03-15bpf: Clarify bpf_arena comments.Alexei Starovoitov1-7/+18
2024-03-14bpf: Temporarily disable atomic operations in BPF arenaPuranjay Mohan1-1/+9
2024-03-11Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski14-139/+1120
2024-03-11bpf: move sleepable flag from bpf_prog_aux to bpf_progAndrii Nakryiko5-14/+14
2024-03-11bpf: hardcode BPF_PROG_PACK_SIZE to 2MB * num_possible_nodes()Puranjay Mohan1-1/+6
2024-03-11bpf: Recognize btf_decl_tag("arg: Arena") as PTR_TO_ARENA.Alexei Starovoitov2-4/+30
2024-03-11bpf: Recognize addr_space_cast instruction in the verifier.Alexei Starovoitov3-9/+107
2024-03-11bpf: Add x86-64 JIT support for bpf_addr_space_cast instruction.Alexei Starovoitov1-0/+5
2024-03-11bpf: Disasm support for addr_space_cast instruction.Alexei Starovoitov1-0/+10
2024-03-11bpf: Introduce bpf_arena.Alexei Starovoitov5-0/+609
2024-03-07net: move skbuff_cache(s) to net_hotdataEric Dumazet1-1/+3
2024-03-07bpf: Fix stackmap overflow check on 32-bit archesToke Høiland-Jørgensen1-3/+6
2024-03-07bpf: Fix hashtab overflow check on 32-bit archesToke Høiland-Jørgensen1-5/+9
2024-03-07bpf: Fix DEVMAP_HASH overflow check on 32-bit archesToke Høiland-Jørgensen1-5/+6
2024-03-07bpf: Tell bpf programs kernel's PAGE_SIZEAlexei Starovoitov1-1/+6
2024-03-07bpf: Plumb get_unmapped_area() callback into bpf_map_opsAlexei Starovoitov1-0/+16
2024-03-07bpf: Recognize '__map' suffix in kfunc argumentsAlexei Starovoitov1-0/+16
2024-03-07bpf: Allow kfuncs return 'void *'Alexei Starovoitov1-0/+3
2024-03-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski2-1/+4
2024-03-06bpf: Allow all printable characters in BTF DATASEC namesEduard Zingerman1-1/+15
2024-03-06bpf: Recognize that two registers are safe when their ranges matchAlexei Starovoitov1-21/+30
2024-03-06bpf: Introduce may_goto instructionAlexei Starovoitov3-30/+138
2024-03-05cpumap: Zero-initialise xdp_rxq_info struct before running XDP programToke Høiland-Jørgensen1-1/+1
2024-03-05bpf: check bpf_func_state->callback_depth when pruning statesEduard Zingerman1-0/+3
2024-03-04bpf: struct_ops supports more than one page for trampolines.Kui-Feng Lee1-41/+89
2024-03-04bpf, net: validate struct_ops when updating value.Kui-Feng Lee1-5/+6
2024-03-04net: adopt skb_network_offset() and similar helpersEric Dumazet1-1/+1
2024-03-02Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski13-241/+681
2024-02-29bpf: Replace bpf_lpm_trie_key 0-length array with flexible arrayKees Cook1-10/+10
2024-02-22bpf: add is_async_callback_calling_insn() helperBenjamin Tissoires1-4/+7
2024-02-22bpf: introduce in_sleepable() helperBenjamin Tissoires1-6/+11
2024-02-22bpf: allow more maps in sleepable bpf programsBenjamin Tissoires1-0/+2
2024-02-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski3-1/+8
2024-02-22bpf: Check cfi_stubs before registering a struct_ops type.Kui-Feng Lee1-0/+5
2024-02-19bpf: Fix an issue due to uninitialized bpf_iter_taskYafang Shao1-0/+2
2024-02-19bpf: Fix racing between bpf_timer_cancel_and_free and bpf_timer_cancelMartin KaFai Lau1-1/+4
2024-02-15bpf: Fix test verif_scale_strobemeta_subprogs failure due to llvm19Yonghong Song1-5/+13
2024-02-15bpf: improve duplicate source code line detectionAndrii Nakryiko1-2/+15
2024-02-14bpf: Use O(log(N)) binary search to find line info recordAndrii Nakryiko1-5/+25
2024-02-13bpf: emit source code file name and line number in verifier logAndrii Nakryiko1-3/+12
2024-02-13bpf: don't infer PTR_TO_CTX for programs with unnamed context typeAndrii Nakryiko1-0/+3
2024-02-13bpf: handle bpf_user_pt_regs_t typedef explicitly for PTR_TO_CTX global argAndrii Nakryiko1-0/+15
2024-02-13bpf: simplify btf_get_prog_ctx_type() into btf_is_prog_ctx_type()Andrii Nakryiko2-15/+14
2024-02-13bpf: remove check in __cgroup_bpf_run_filter_skbOliver Crumrine1-3/+0
2024-02-13bpf: Create argument information for nullable arguments.Kui-Feng Lee3-12/+234
2024-02-13bpf: Move __kfunc_param_match_suffix() to btf.c.Kui-Feng Lee2-28/+28
2024-02-13bpf: add btf pointer to struct bpf_ctx_arg_aux.Kui-Feng Lee1-1/+1
2024-02-13bpf: Fix warning for bpf_cpumask in verifierHari Bathini1-0/+2
2024-02-13bpf: Mark bpf_spin_{lock,unlock}() helpers with notrace correctlyYonghong Song1-2/+2
2024-02-13bpf: Have bpf_rdonly_cast() take a const pointerDaniel Xu1-2/+2
2024-02-11bpf: Allow compiler to inline most of bpf_local_storage_lookup()Marco Elver1-39/+13
2024-02-08bpf, btf: Check btf for register_bpf_struct_opsGeliang Tang1-1/+3
2024-02-08bpf, btf: Add check_btf_kconfigs helperGeliang Tang1-18/+15
2024-02-08bpf, btf: Fix return value of register_btf_id_dtor_kfuncsGeliang Tang1-4/+2
2024-02-07bpf: Merge two CONFIG_BPF entriesMasahiro Yamada1-0/+1
2024-02-05bpf: Transfer RCU lock state between subprog callsKumar Kartikeya Dwivedi1-2/+1
2024-02-05bpf: Allow calling static subprogs while holding a bpf_spin_lockKumar Kartikeya Dwivedi1-3/+8
2024-02-05bpf: Remove an unnecessary check.Kui-Feng Lee1-12/+9
2024-02-02bpf: don't emit warnings intended for global subprogs for static subprogsAndrii Nakryiko1-0/+6
2024-02-02bpf: handle trusted PTR_TO_BTF_ID_OR_NULL in argument check logicAndrii Nakryiko1-0/+1
2024-02-02bpf: Handle scalar spill vs all MISC in stacksafe()Eduard Zingerman1-3/+69
2024-02-02bpf: Preserve boundaries and track scalars on narrowing fillMaxim Mikityanskiy1-4/+11
2024-02-02bpf: Track spilled unbounded scalarsMaxim Mikityanskiy1-15/+1
2024-02-01bpf: Minor clean-up to sleepable_lsm_hooks BTF setMatt Bobrowski1-4/+2
2024-01-31bpf: treewide: Annotate BPF kfuncs in BTFDaniel Xu4-8/+16
2024-01-30bpf: add arg:nullable tag to be combined with trusted pointersAndrii Nakryiko1-0/+10
2024-01-30bpf: add __arg_trusted global func arg tagAndrii Nakryiko2-13/+110
2024-01-29bpf,token: Use BIT_ULL() to convert the bit maskHaiyue Wang1-8/+8
2024-01-29bpf: move arg:ctx type enforcement check inside the main logic loopAndrii Nakryiko1-17/+4
2024-01-25bpf: Fix error checks against bpf_get_btf_vmlinux().Kui-Feng Lee2-1/+6
2024-01-24bpf: Support symbolic BPF FS delegation mount optionsAndrii Nakryiko1-38/+211
2024-01-24bpf: Fail BPF_TOKEN_CREATE if no delegation option was set on BPF FSAndrii Nakryiko1-1/+9
2024-01-24bpf,lsm: Add BPF token LSM hooksAndrii Nakryiko2-1/+15
2024-01-24bpf,lsm: Refactor bpf_map_alloc/bpf_map_free LSM hooksAndrii Nakryiko2-5/+5
2024-01-24bpf,lsm: Refactor bpf_prog_alloc/bpf_prog_free LSM hooksAndrii Nakryiko2-14/+16
2024-01-24bpf: Consistently use BPF token throughout BPF verifier logicAndrii Nakryiko3-9/+8
2024-01-24bpf: Take into account BPF token when fetching helper protosAndrii Nakryiko3-8/+9
2024-01-24bpf: Add BPF token support to BPF_PROG_LOAD commandAndrii Nakryiko4-27/+97
2024-01-24bpf: Add BPF token support to BPF_BTF_LOAD commandAndrii Nakryiko1-2/+21
2024-01-24bpf: Add BPF token support to BPF_MAP_CREATE commandAndrii Nakryiko3-15/+63
2024-01-24bpf: Introduce BPF token objectAndrii Nakryiko4-6/+242
2024-01-24bpf: Add BPF token delegation mount options to BPF FSAndrii Nakryiko1-12/+78
2024-01-24bpf: Align CAP_NET_ADMIN checks with bpf_capable() approachAndrii Nakryiko1-4/+9
2024-01-23bpf: export btf_ctx_access to modules.Kui-Feng Lee1-0/+1
2024-01-23bpf, net: switch to dynamic registrationKui-Feng Lee3-103/+95
2024-01-23bpf: validate value_typeKui-Feng Lee1-33/+60
2024-01-23bpf: hold module refcnt in bpf_struct_ops map creation and prog verification.Kui-Feng Lee2-6/+34
2024-01-23bpf: pass attached BTF to the bpf_struct_ops subsystemKui-Feng Lee3-22/+54
2024-01-23bpf: lookup struct_ops types from a given module BTF.Kui-Feng Lee2-6/+7
2024-01-23bpf: pass btf object id in bpf_map_info.Kui-Feng Lee2-0/+9
2024-01-23bpf: make struct_ops_map support btfs other than btf_vmlinux.Kui-Feng Lee1-9/+15
2024-01-23bpf: add struct_ops_tab to btf.Kui-Feng Lee1-0/+55
2024-01-23bpf, net: introduce bpf_struct_ops_desc.Kui-Feng Lee2-42/+46
2024-01-23bpf: get type information with BTF_ID_LISTKui-Feng Lee1-9/+8
2024-01-23bpf: refactory struct_ops type initialization to a function.Kui-Feng Lee2-74/+88
2024-01-23bpf: Add cookie to perf_event bpf_link_info recordsJiri Olsa1-0/+4
2024-01-23bpf: Refactor ptr alu checking rules to allow alu explicitlyHao Sun1-7/+14
2024-01-23bpf: Track aligned st store as imprecise spilled registersYonghong Song1-2/+15
2024-01-23bpf: Assign ID to scalars on spillMaxim Mikityanskiy1-1/+7
2024-01-23bpf: Add the get_reg_width functionMaxim Mikityanskiy1-2/+7
2024-01-23bpf: Add the assign_scalar_id_before_mov functionMaxim Mikityanskiy1-14/+19
2024-01-23bpf: make infinite loop detection in is_state_visited() exactEduard Zingerman1-1/+1
2024-01-23bpf: support multiple tags per argumentAndrii Nakryiko1-23/+41
2024-01-23bpf: prepare btf_prepare_func_args() for multiple tags per argumentAndrii Nakryiko2-17/+37
2024-01-23bpf: make sure scalar args don't accept __arg_nonnull tagAndrii Nakryiko1-4/+4
2024-01-23bpf: Support inlining bpf_kptr_xchg() helperHou Tao3-0/+28
2024-01-17bpf: enforce types for __arg_ctx-tagged arguments in global subprogsAndrii Nakryiko1-0/+160
2024-01-17bpf: extract bpf_ctx_convert_map logic and make it more reusableAndrii Nakryiko1-26/+45
2024-01-16bpf: Reject variable offset alu on PTR_TO_FLOW_KEYSHao Sun1-0/+4
2024-01-11Merge tag 'net-next-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds22-1775/+2411
2024-01-04bpf: Fix re-attachment branch in bpf_tracing_prog_attachJiri Olsa1-0/+9
2024-01-04bpf: Relax tracing prog recursive attach rulesDmitrii Dolgov2-15/+47
2024-01-04bpf: Remove unnecessary cpu == 0 check in memallocYonghong Song1-1/+1
2024-01-03bpf: Limit up to 512 bytes for bpf_global_percpu_ma allocationYonghong Song1-0/+8
2024-01-03bpf: Use smaller low/high marks for percpu allocationYonghong Song1-1/+7
2024-01-03bpf: Refill only one percpu element in memallocYonghong Song1-4/+9
2024-01-03bpf: Allow per unit prefill for non-fix-size percpu memory allocatorYonghong Song2-15/+79
2024-01-03bpf: Add objcg to bpf_mem_allocYonghong Song1-5/+6
2024-01-03bpf: Avoid unnecessary extra percpu memory allocationYonghong Song1-1/+3
2024-01-03bpf: Simplify checking size of helper accessesAndrei Matei1-6/+4
2023-12-27Kill sched.h dependency on rcupdate.hKent Overstreet1-0/+1
2023-12-21bpf: Avoid unnecessary use of comma operator in verifierSimon Horman1-1/+1
2023-12-21bpf: Re-support uid and gid when mounting bpffsDaniel Borkmann1-2/+51
2023-12-20bpf: Use c->unit_size to select target cache during freeHou Tao1-94/+11
2023-12-19bpf: add support for passing dynptr pointer to global subprogAndrii Nakryiko2-0/+30
2023-12-19bpf: support 'arg:xxx' btf_decl_tag-based hints for global subprog argsAndrii Nakryiko2-7/+42
2023-12-19bpf: reuse subprog argument parsing logic for subprog call checksAndrii Nakryiko1-80/+30
2023-12-19bpf: move subprog call logic back to verifier.cAndrii Nakryiko2-146/+146
2023-12-19bpf: prepare btf_prepare_func_args() for handling static subprogsAndrii Nakryiko2-14/+9
2023-12-19bpf: reuse btf_prepare_func_args() check for main program BTF validationAndrii Nakryiko2-60/+15
2023-12-19bpf: abstract away global subprog arg preparation logic from reg state setupAndrii Nakryiko2-34/+47
2023-12-19bpf: make the verifier tracks the "not equal" for regsMenglong Dong1-1/+37
2023-12-19Revert BPF token-related functionalityAndrii Nakryiko10-766/+93
2023-12-18Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski21-455/+1416
2023-12-18bpf: Ensure precise is reset to false in __mark_reg_const_zero()Andrii Nakryiko1-18/+11
2023-12-15x86/cfi,bpf: Fix bpf_exception_cb() signatureAlexei Starovoitov1-1/+1
2023-12-15bpf: Fix dtor CFIPeter Zijlstra2-3/+21
2023-12-15x86/cfi,bpf: Fix bpf_struct_ops CFIPeter Zijlstra1-8/+8
2023-12-15x86/cfi,bpf: Fix BPF JIT callPeter Zijlstra1-0/+25
2023-12-14bpf: xdp: Register generic_kfunc_set with XDP programsDaniel Xu1-0/+1
2023-12-14bpf: support symbolic BPF FS delegation mount optionsAndrii Nakryiko1-38/+211
2023-12-14bpf: Fix a race condition between btf_put() and map_free()Yonghong Song1-1/+5
2023-12-13bpf: Use GFP_KERNEL in bpf_event_entry_gen()Hou Tao1-1/+1
2023-12-13bpf: Reduce the scope of rcu_read_lock when updating fd mapHou Tao2-4/+6
2023-12-13bpf: Update the comments in maybe_wait_bpf_programs()Hou Tao1-3/+7
2023-12-13bpf: add small subset of SECURITY_PATH hooks to BPF sleepable_lsm_hooks listMatt Bobrowski1-0/+12
2023-12-13bpf: fail BPF_TOKEN_CREATE if no delegation option was set on BPF FSAndrii Nakryiko1-1/+9
2023-12-13bpf: Support uid and gid when mounting bpffsJie Jiang1-1/+49
2023-12-12bpf: Comment on check_mem_size_regAndrei Matei1-0/+6
2023-12-12bpf: Remove unused backtrack_state helper functionsYang Li1-15/+0
2023-12-11bpf: tidy up exception callback management a bitAndrii Nakryiko2-22/+41
2023-12-11bpf: emit more dynptr information in verifier logAndrii Nakryiko1-9/+16
2023-12-11bpf: log PTR_TO_MEM memory size in verifier logAndrii Nakryiko1-0/+4
2023-12-09bpf: Add bpf_cpumask_weight() kfuncDavid Vernet1-0/+12
2023-12-09bpf: handle fake register spill to stack with BPF_ST_MEM instructionAndrii Nakryiko1-1/+0
2023-12-09bpf: Set uattr->batch.count as zero before batched update or deletionHou Tao1-0/+6
2023-12-09bpf: Only call maybe_wait_bpf_programs() when map operation succeedsHou Tao1-2/+4
2023-12-09bpf: Add missed maybe_wait_bpf_programs() for htab of mapsHou Tao1-3/+3
2023-12-09bpf: Call maybe_wait_bpf_programs() only once for generic_map_update_batch()Hou Tao1-1/+3
2023-12-09bpf: Remove unnecessary wait from bpf_map_copy_value()Hou Tao1-1/+0
2023-12-08bpf: Enable bpf_cgrp_storage for cgroup1 non-attach caseYafang Shao1-3/+3
2023-12-08bpf: Minor cleanup around stack boundsAndrei Matei1-2/+9
2023-12-08bpf: Fix accesses to uninit stack slotsAndrei Matei1-39/+26
2023-12-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski2-52/+18
2023-12-07bpf: Guard stack limits against 32bit overflowAndrei Matei1-3/+3
2023-12-07bpf: Fix verification of indirect var-off stack accessAndrei Matei1-10/+4
2023-12-06bpf: Use arch_bpf_trampoline_sizeSong Liu3-22/+42
2023-12-06bpf: Add arch_bpf_trampoline_size()Song Liu1-0/+6
2023-12-06bpf: Add helpers for trampoline image managementSong Liu2-14/+44
2023-12-06bpf: Adjust argument names of arch_prepare_bpf_trampoline()Song Liu1-2/+2
2023-12-06bpf: Let bpf_prog_pack_free handle any pointerSong Liu2-15/+11
2023-12-06bpf: Fix prog_array_map_poke_run map poke updateJiri Olsa1-48/+10
2023-12-06bpf,lsm: add BPF token LSM hooksAndrii Nakryiko2-6/+16
2023-12-06bpf,lsm: refactor bpf_map_alloc/bpf_map_free LSM hooksAndrii Nakryiko2-5/+5
2023-12-06bpf,lsm: refactor bpf_prog_alloc/bpf_prog_free LSM hooksAndrii Nakryiko2-14/+16
2023-12-06bpf: consistently use BPF token throughout BPF verifier logicAndrii Nakryiko3-9/+8
2023-12-06bpf: take into account BPF token when fetching helper protosAndrii Nakryiko3-8/+9
2023-12-06bpf: add BPF token support to BPF_PROG_LOAD commandAndrii Nakryiko4-26/+95
2023-12-06bpf: add BPF token support to BPF_BTF_LOAD commandAndrii Nakryiko1-2/+18
2023-12-06bpf: add BPF token support to BPF_MAP_CREATE commandAndrii Nakryiko3-15/+56
2023-12-06bpf: introduce BPF token objectAndrii Nakryiko4-6/+239
2023-12-06bpf: add BPF token delegation mount options to BPF FSAndrii Nakryiko1-10/+78
2023-12-06bpf: align CAP_NET_ADMIN checks with bpf_capable() approachAndrii Nakryiko1-4/+9
2023-12-05bpf: track aligned STACK_ZERO cases as imprecise spilled registersAndrii Nakryiko1-3/+7
2023-12-05bpf: preserve constant zero when doing partial register restoreAndrii Nakryiko1-4/+21
2023-12-05bpf: preserve STACK_ZERO slots on partial reg spillsAndrii Nakryiko1-5/+23