aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2023-03-31bpf: wip.HEADmasterAlexei Starovoitov1-0/+16
2023-03-31selftests/bpf: Add a test for walking task->mm->exe_file.Alexei Starovoitov1-0/+19
2023-03-31bpf: Refactor NULL-ness check in check_reg_type().Alexei Starovoitov2-5/+9
2023-03-31bpf: Teach verifier that certain helpers accept NULL pointer.Alexei Starovoitov5-11/+11
2023-03-31bpf: Refactor btf_nested_type_is_trusted().Alexei Starovoitov6-45/+37
2023-03-31Merge branch 'selftests/bpf: Add read_build_id function'Alexei Starovoitov8-51/+119
2023-03-31selftests/bpf: Replace extract_build_id with read_build_idJiri Olsa4-49/+13
2023-03-31selftests/bpf: Add read_build_id functionJiri Olsa2-0/+87
2023-03-31selftests/bpf: Add err.h headerJiri Olsa2-2/+19
2023-03-30selftests/bpf: Add testcases for ptr_*_or_null_ in bpf_kptr_xchgDavid Vernet2-0/+48
2023-03-30bpf: Handle PTR_MAYBE_NULL case in PTR_TO_BTF_ID helper call argDavid Vernet1-0/+4
2023-03-30veristat: change guess for __sk_buff from CGROUP_SKB to SCHED_CLSAndrii Nakryiko1-1/+1
2023-03-29selftests/bpf: Rewrite two infinite loops in bound check casesXu Kuohai1-8/+16
2023-03-29Merge branch 'veristat: add better support of freplace programs'Alexei Starovoitov3-6/+126
2023-03-29veristat: guess and substitue underlying program type for freplace (EXT) progsAndrii Nakryiko1-4/+117
2023-03-29veristat: add -d debug mode option to see debug libbpf logAndrii Nakryiko1-1/+7
2023-03-29libbpf: disassociate section handler on explicit bpf_program__set_type() callAndrii Nakryiko2-1/+2
2023-03-29Merge branch 'Allow BPF TCP CCs to write app_limited'Martin KaFai Lau2-1/+15
2023-03-29selftests/bpf: test a BPF CC writing app_limitedYixin Shen1-1/+12
2023-03-29bpf: allow a TCP CC to write app_limitedYixin Shen1-0/+3
2023-03-29tools: bpftool: json: Fix backslash escape typo in jsonw_putsManu Bretelle2-1/+2
2023-03-28Merge branch 'verifier/xdp_direct_packet_access.c converted to inline assembly'Andrii Nakryiko3-1468/+1724
2023-03-28selftests/bpf: Remove verifier/xdp_direct_packet_access.c, converted to progs...Eduard Zingerman1-1468/+0
2023-03-28selftests/bpf: Verifier/xdp_direct_packet_access.c converted to inline assemblyEduard Zingerman2-0/+1724
2023-03-27libbpf: Fix double-free when linker processes empty sectionsEduard Zingerman1-1/+13
2023-03-27selftests/bpf: Don't assume page size is 4096Hengqi Chen1-1/+1
2023-03-27libbpf: Ensure print callback usage is thread-safeJP Kobryn2-3/+8
2023-03-25xsk: allow remap of fill and/or completion ringsNuno Gonçalves1-3/+6
2023-03-25bpf, docs: Add extended call instructionsDave Thaler1-22/+37
2023-03-25Merge branch 'bpf: Use bpf_mem_cache_alloc/free in bpf_local_storage'Alexei Starovoitov13-68/+472
2023-03-25selftests/bpf: Add bench for task storage creationMartin KaFai Lau3-14/+164
2023-03-25selftests/bpf: Test task storage when local_storage->smap is NULLMartin KaFai Lau2-17/+46
2023-03-25bpf: Use bpf_mem_cache_alloc/free for bpf_local_storageMartin KaFai Lau2-15/+116
2023-03-25bpf: Use bpf_mem_cache_alloc/free in bpf_local_storage_elemMartin KaFai Lau6-14/+95
2023-03-25bpf: Add a few bpf mem allocator functionsMartin KaFai Lau2-9/+52
2023-03-25Merge branch 'First set of verifier/*.c migrated to inline assembly'Alexei Starovoitov82-7532/+10270
2023-03-25selftests/bpf: verifier/xdp.c converted to inline assemblyEduard Zingerman3-14/+26
2023-03-25selftests/bpf: verifier/xadd.c converted to inline assemblyEduard Zingerman3-97/+126
2023-03-25selftests/bpf: verifier/var_off.c converted to inline assemblyEduard Zingerman3-291/+351
2023-03-25selftests/bpf: verifier/value_or_null.c converted to inline assemblyEduard Zingerman3-220/+290
2023-03-25selftests/bpf: verifier/value.c converted to inline assemblyEduard Zingerman3-104/+160
2023-03-25selftests/bpf: verifier/value_adj_spill.c converted to inline assemblyEduard Zingerman3-43/+80
2023-03-25selftests/bpf: verifier/uninit.c converted to inline assemblyEduard Zingerman3-39/+63
2023-03-25selftests/bpf: verifier/stack_ptr.c converted to inline assemblyEduard Zingerman3-359/+486
2023-03-25selftests/bpf: verifier/spill_fill.c converted to inline assemblyEduard Zingerman3-345/+376
2023-03-25selftests/bpf: verifier/ringbuf.c converted to inline assemblyEduard Zingerman3-95/+133
2023-03-25selftests/bpf: verifier/raw_tp_writable.c converted to inline assemblyEduard Zingerman3-35/+52
2023-03-25selftests/bpf: verifier/raw_stack.c converted to inline assemblyEduard Zingerman3-305/+373
2023-03-25selftests/bpf: verifier/meta_access.c converted to inline assemblyEduard Zingerman3-235/+286
2023-03-25selftests/bpf: verifier/masking.c converted to inline assemblyEduard Zingerman3-322/+412
2023-03-25selftests/bpf: verifier/map_ret_val.c converted to inline assemblyEduard Zingerman3-65/+112
2023-03-25selftests/bpf: verifier/map_ptr.c converted to inline assemblyEduard Zingerman3-99/+161
2023-03-25selftests/bpf: verifier/leak_ptr.c converted to inline assemblyEduard Zingerman3-67/+94
2023-03-25selftests/bpf: verifier/ld_ind.c converted to inline assemblyEduard Zingerman3-72/+112
2023-03-25selftests/bpf: verifier/int_ptr.c converted to inline assemblyEduard Zingerman3-161/+159
2023-03-25selftests/bpf: verifier/helper_value_access.c converted to inline assemblyEduard Zingerman3-953/+1247
2023-03-25selftests/bpf: verifier/helper_restricted.c converted to inline assemblyEduard Zingerman3-196/+281
2023-03-25selftests/bpf: verifier/helper_packet_access.c converted to inline assemblyEduard Zingerman3-460/+552
2023-03-25selftests/bpf: verifier/helper_access_var_len.c converted to inline assemblyEduard Zingerman3-650/+827
2023-03-25selftests/bpf: verifier/div_overflow.c converted to inline assemblyEduard Zingerman3-110/+146
2023-03-25selftests/bpf: verifier/div0.c converted to inline assemblyEduard Zingerman3-184/+215
2023-03-25selftests/bpf: verifier/direct_stack_access_wraparound.c converted to inline ...Eduard Zingerman3-40/+58
2023-03-25selftests/bpf: verifier/ctx_sk_msg.c converted to inline assemblyEduard Zingerman3-181/+230
2023-03-25selftests/bpf: verifier/const_or.c converted to inline assemblyEduard Zingerman3-60/+84
2023-03-25selftests/bpf: verifier/cgroup_storage.c converted to inline assemblyEduard Zingerman3-220/+310
2023-03-25selftests/bpf: verifier/cgroup_skb.c converted to inline assemblyEduard Zingerman3-197/+229
2023-03-25selftests/bpf: verifier/cgroup_inv_retcode.c converted to inline assemblyEduard Zingerman3-72/+91
2023-03-25selftests/bpf: verifier/cfg.c converted to inline assemblyEduard Zingerman3-73/+102
2023-03-25selftests/bpf: verifier/bounds_mix_sign_unsign.c converted to inline assemblyEduard Zingerman3-411/+556
2023-03-25selftests/bpf: verifier/bounds_deduction.c converted to inline assemblyEduard Zingerman3-136/+173
2023-03-25selftests/bpf: verifier/basic_stack.c converted to inline assemblyEduard Zingerman3-64/+102
2023-03-25selftests/bpf: verifier/array_access.c converted to inline assemblyEduard Zingerman3-379/+531
2023-03-25selftests/bpf: verifier/and.c converted to inline assemblyEduard Zingerman3-68/+110
2023-03-25selftests/bpf: prog_tests entry point for migrated test_verifier testsEduard Zingerman1-0/+29
2023-03-25selftests/bpf: Tests execution support for test_loader.cEduard Zingerman2-14/+150
2023-03-25selftests/bpf: Unprivileged tests for test_loader.cEduard Zingerman7-101/+395
2023-03-25selftests/bpf: __imm_insn & __imm_const macro for bpf_misc.hEduard Zingerman1-0/+2
2023-03-25selftests/bpf: Report program name on parse_test_spec errorEduard Zingerman1-1/+4
2023-03-25Merge branch 'Don't invoke KPTR_REF destructor on NULL xchg'Alexei Starovoitov12-33/+30
2023-03-25bpf: Treat KF_RELEASE kfuncs as KF_TRUSTED_ARGSDavid Vernet8-16/+27
2023-03-25bpf: Remove now-unnecessary NULL checks for KF_RELEASE kfuncsDavid Vernet5-17/+0
2023-03-25bpf: Only invoke kptr dtor following non-NULL xchgDavid Vernet1-0/+3
2023-03-24bpf: Check IS_ERR for the bpf_map_get() return valueMartin KaFai Lau2-4/+4
2023-03-22Merge branch 'Transit between BPF TCP congestion controls.'Martin KaFai Lau15-103/+817
2023-03-22selftests/bpf: Test switching TCP Congestion Control algorithms.Kui-Feng Lee2-0/+240
2023-03-22libbpf: Use .struct_ops.link section to indicate a struct_ops with a link.Kui-Feng Lee1-16/+44
2023-03-22libbpf: Update a bpf_link with another struct_ops.Kui-Feng Lee5-2/+46
2023-03-22bpf: Update the struct_ops of a bpf_link.Kui-Feng Lee6-11/+122
2023-03-22libbpf: Create a bpf_link in bpf_map__attach_struct_ops().Kui-Feng Lee1-24/+71
2023-03-22bpf: Create links for BPF struct_ops maps.Kui-Feng Lee6-15/+190
2023-03-22net: Update an existing TCP congestion control algorithm.Kui-Feng Lee2-7/+62
2023-03-22bpf: Retire the struct_ops map kvalue->refcnt.Kui-Feng Lee3-35/+49
2023-03-22bpf: remember meta->iter info only for initialized itersAndrii Nakryiko1-7/+7
2023-03-22selftests/bpf: Check when bounds are not in the 32-bit rangeXu Kuohai1-0/+121
2023-03-22bpf: Fix __reg_bound_offset 64->32 var_off subreg propagationDaniel Borkmann2-5/+5
2023-03-22Merge branch 'error checking where helpers call bpf_map_ops'Alexei Starovoitov23-110/+410
2023-03-22bpf: return long from bpf_map_ops funcsJP Kobryn21-110/+110
2023-03-22bpf/selftests: coverage for bpf_map_ops errorsJP Kobryn2-0/+300
2023-03-22Merge branch 'bpf: Support ksym detection in light skeleton.'Andrii Nakryiko6-36/+61
2023-03-22selftests/bpf: Add light skeleton test for kfunc detection.Alexei Starovoitov2-0/+16
2023-03-22libbpf: Support kfunc detection in light skeleton.Alexei Starovoitov3-22/+27
2023-03-22bpf: Teach the verifier to recognize rdonly_mem as not null.Alexei Starovoitov1-5/+9
2023-03-22libbpf: Rename RELO_EXTERN_VAR/FUNC.Alexei Starovoitov1-9/+9
2023-03-22selftests/xsk: add xdp populate metadata testTushar Vyavahare4-1/+77
2023-03-20Merge branch 'net: skbuff: skb bitfield compaction - bpf'Martin KaFai Lau3-29/+29
2023-03-20net: skbuff: move the fields BPF cares about directly next to the offset markerJakub Kicinski2-13/+13
2023-03-20net: skbuff: reorder bytes 2 and 3 of the bitfieldJakub Kicinski1-10/+10
2023-03-20net: skbuff: rename __pkt_vlan_present_offset to __mono_tc_offsetJakub Kicinski3-9/+9
2023-03-20libbpf: Explicitly call write to append content to fileLiu Pan1-5/+9
2023-03-20selftest/bpf: Add a test case for ld_imm64 copy logic.Alexei Starovoitov1-1/+1
2023-03-20libbpf: Fix ld_imm64 copy logic for ksym in light skeleton.Alexei Starovoitov1-4/+6
2023-03-18bpf, docs: Libbpf overview documentationSreevani Sreejith2-8/+245
2023-03-17selftests/bpf: Add --json-summary option to test_progsManu Bretelle5-6/+84
2023-03-17Merge branch 'bpf: Add detection of kfuncs.'Andrii Nakryiko4-7/+41
2023-03-17selftests/bpf: Add test for bpf_ksym_exists().Alexei Starovoitov1-1/+19
2023-03-17libbpf: Introduce bpf_ksym_exists() macro.Alexei Starovoitov1-0/+5
2023-03-17libbpf: Fix relocation of kfunc ksym in ld_imm64 insn.Alexei Starovoitov1-0/+6
2023-03-17bpf: Allow ld_imm64 instruction to point to kfunc.Alexei Starovoitov1-6/+11
2023-03-17bpf, docs: Use internal linking for link to netdev subsystem docBagas Sanjaya1-8/+12
2023-03-17kallsyms, bpf: Move find_kallsyms_symbol_value out of internal headerViktor Malik3-7/+9
2023-03-16Merge branch 'double-fix bpf_test_run + XDP_PASS recycling'Alexei Starovoitov3-5/+16
2023-03-16selftests/bpf: fix "metadata marker" getting overwritten by the netstackAlexander Lobakin2-4/+5
2023-03-16bpf, test_run: fix crashes due to XDP frame overwriting/corruptionAlexander Lobakin1-1/+11
2023-03-16bpf: Remove misleading spec_v1 check on var-offset stack readLuis Gerhorst1-10/+6
2023-03-16Merge branch 'Make struct bpf_cpumask RCU safe'Alexei Starovoitov7-79/+96
2023-03-16bpf,docs: Remove bpf_cpumask_kptr_get() from documentationDavid Vernet1-20/+10
2023-03-16bpf: Remove bpf_cpumask_kptr_get() kfuncDavid Vernet5-85/+0
2023-03-16bpf/selftests: Test using global cpumask kptr with RCUDavid Vernet4-0/+102
2023-03-16bpf: Mark struct bpf_cpumask as rcu protectedDavid Vernet1-0/+1
2023-03-16bpf: Free struct bpf_cpumask in call_rcu handlerDavid Vernet1-5/+14
2023-03-16libbpf: Ignore warnings about "inefficient alignment"Daniel Müller1-0/+6
2023-03-16selftests/bpf: Fix a fd leak in an error path in network_helpers.cMartin KaFai Lau1-1/+1
2023-03-16selftests/bpf: Use ASSERT_EQ instead ASSERT_OK for testing memcmp resultMartin KaFai Lau1-2/+2
2023-03-15Merge branch 'Fix attaching fentry/fexit/fmod_ret/lsm to modules'Alexei Starovoitov9-29/+170
2023-03-15bpf/selftests: Test fentry attachment to shadowed functionsViktor Malik4-0/+140
2023-03-15bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modulesViktor Malik5-29/+30
2023-03-14cgroup: Make current_cgns_cgroup_dfl() safe to call after exit_task_namespace()Tejun Heo1-2/+12
2023-03-14selftests/bpf: Fix trace_virtqueue_add_sgs test issue with LLVM 17.Alexei Starovoitov1-0/+3
2023-03-14Merge branch 'xdp: recycle Page Pool backed skbs built from XDP frames'Alexei Starovoitov4-58/+30
2023-03-14xdp: remove unused {__,}xdp_release_frame()Alexander Lobakin2-44/+0
2023-03-14xdp: recycle Page Pool backed skbs built from XDP framesAlexander Lobakin1-2/+2
2023-03-14net: page_pool, skbuff: make skb_mark_for_recycle() always availableAlexander Lobakin1-2/+2
2023-03-14selftests/bpf: robustify test_xdp_do_redirect with more payload magicsAlexander Lobakin1-10/+26
2023-03-13Merge branch 'bpf: Allow helpers access ptr_to_btf_id.'Martin KaFai Lau4-1/+56
2023-03-13selftests/bpf: Add various tests to check helper access into ptr_to_btf_id.Alexei Starovoitov2-0/+40
2023-03-13bpf: Allow helpers access trusted PTR_TO_BTF_ID.Alexei Starovoitov1-0/+15
2023-03-13bpf: Fix bpf_strncmp proto.Alexei Starovoitov1-1/+1
2023-03-13bpf, docs: Add signed comparison exampleDave Thaler1-1/+10
2023-03-13selftests/bpf: use canonical ftrace pathRoss Zwisler11-22/+64
2023-03-13bpf: use canonical ftrace pathRoss Zwisler10-21/+21
2023-03-13bpf: Disable migration when freeing stashed local kptr using obj dropDave Marchevsky3-14/+12
2023-03-13tasks: Extract rcu_users out of unionDavid Vernet1-5/+2
2023-03-13bpf: fix precision propagation verbose loggingAndrii Nakryiko1-2/+2
2023-03-10Merge branch 'Support stashing local kptrs with bpf_kptr_xchg'Alexei Starovoitov8-17/+234
2023-03-10selftests/bpf: Add local kptr stashing testDave Marchevsky2-0/+168
2023-03-10bpf: Allow local kptrs to be exchanged via bpf_kptr_xchgDave Marchevsky1-1/+7
2023-03-10bpf: Support __kptr to local kptrsDave Marchevsky5-16/+59
2023-03-10bpf, docs: Explain helper functionsDave Thaler3-1/+22
2023-03-10bpf: Change btf_record_find enum parameter to field_maskDave Marchevsky2-4/+4
2023-03-10bpf: btf: Remove unused btf_field_info_type enumDave Marchevsky1-6/+0
2023-03-10bpf: verifier: Rename kernel_type_name helper to btf_type_nameDave Marchevsky1-8/+8
2023-03-10selftests/bpf: Add local-storage-create benchmarkMartin KaFai Lau4-0/+202
2023-03-10selftests/bpf: Check freeing sk->sk_local_storage with sk_local_storage->smap...Martin KaFai Lau1-9/+20
2023-03-10selftests/bpf: Replace CHECK with ASSERT in test_local_storageMartin KaFai Lau1-30/+17
2023-03-10bpf: Add bpf_local_storage_free()Martin KaFai Lau1-9/+14
2023-03-10bpf: Add bpf_local_storage_rcu callbackMartin KaFai Lau1-6/+11
2023-03-10bpf: Add bpf_selem_free()Martin KaFai Lau3-8/+19
2023-03-10bpf: Add bpf_selem_free_rcu callbackMartin KaFai Lau1-4/+9
2023-03-10bpf: Remove bpf_selem_free_fields*_rcuMartin KaFai Lau1-62/+5
2023-03-10bpf: Repurpose use_trace_rcu to reuse_now in bpf_local_storageMartin KaFai Lau6-17/+17
2023-03-10bpf: Remember smap in bpf_local_storageMartin KaFai Lau2-0/+5
2023-03-10bpf: Remove the preceding __ from __bpf_selem_unlink_storageMartin KaFai Lau1-3/+3
2023-03-10bpf: Remove __bpf_local_storage_map_allocMartin KaFai Lau1-37/+26
2023-03-10bpf: Refactor codes into bpf_local_storage_destroyMartin KaFai Lau6-33/+11
2023-03-10bpf: Move a few bpf_local_storage functions to static scopeMartin KaFai Lau2-5/+2
2023-03-10bpf/selftests: Fix send_signal tracepoint testsDavid Vernet1-1/+5
2023-03-10bpf: take into account liveness when propagating precisionAndrii Nakryiko1-2/+4
2023-03-10bpf: ensure state checkpointing at iter_next() call sitesAndrii Nakryiko2-4/+33
2023-03-10Merge branch 'selftests/bpf: make BPF_CFLAGS stricter with -Wall'Alexei Starovoitov83-192/+101
2023-03-10selftests/bpf: make BPF compiler flags stricterAndrii Nakryiko1-2/+2
2023-03-10selftests/bpf: fix lots of silly mistakes pointed out by compilerAndrii Nakryiko81-187/+90
2023-03-10selftests/bpf: add __sink() macro to fake variable consumptionAndrii Nakryiko1-0/+3
2023-03-10selftests/bpf: prevent unused variable warning in bpf_for()Andrii Nakryiko1-3/+6
2023-03-09selftests/bpf: Workaround verification failure for fexit_bpf2bpf/func_replace...Yonghong Song1-1/+1
2023-03-09selftests/bpf: Improve error logs in XDP compliance test toolLorenzo Bianconi1-7/+16
2023-03-09selftests/bpf: Use ifname instead of ifindex in XDP compliance test toolLorenzo Bianconi1-17/+27
2023-03-09bpf: Fix a typo for BPF_F_ANY_ALIGNMENT in bpf.hMichael Weiß2-2/+2
2023-03-09selftests/bpf: Fix flaky fib_lookup testMartin KaFai Lau1-2/+10
2023-03-08Merge branch 'BPF open-coded iterators'Alexei Starovoitov25-55/+2790
2023-03-08selftests/bpf: implement and test custom testmod_seq iteratorAndrii Nakryiko5-1/+169
2023-03-08selftests/bpf: add number iterator testsAndrii Nakryiko2-0/+291
2023-03-08selftests/bpf: add iterators testsAndrii Nakryiko5-0/+1325
2023-03-08selftests/bpf: add bpf_for_each(), bpf_for(), and bpf_repeat() macrosAndrii Nakryiko7-10/+124
2023-03-08bpf: implement numbers iteratorAndrii Nakryiko5-2/+95
2023-03-08bpf: add support for open-coded iterator loopsAndrii Nakryiko2-8/+610
2023-03-08bpf: add iterator kfuncs registration and validation logicAndrii Nakryiko3-1/+117
2023-03-08bpf: factor out fetching basic kfunc metadataAndrii Nakryiko1-33/+59
2023-03-08Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski28-104/+414
2023-03-08selftests/bpf: Fix IMA testRoberto Sassu1-8/+21
2023-03-08net: reclaim skb->scm_io_uring bitEric Dumazet5-5/+9