aboutsummaryrefslogtreecommitdiffstats
path: root/net/bpf
AgeCommit message (Expand)AuthorFilesLines
2024-03-11Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-9/+5
2024-03-11bpf: move sleepable flag from bpf_prog_aux to bpf_progAndrii Nakryiko1-1/+1
2024-03-07net: move skbuff_cache(s) to net_hotdataEric Dumazet1-1/+3
2024-03-04bpf: struct_ops supports more than one page for trampolines.Kui-Feng Lee1-8/+4
2024-01-31bpf: treewide: Annotate BPF kfuncs in BTFDaniel Xu1-4/+4
2024-01-23bpf, net: switch to dynamic registrationKui-Feng Lee1-2/+9
2024-01-23bpf, net: introduce bpf_struct_ops_desc.Kui-Feng Lee1-1/+10
2023-12-15bpf: Fix dtor CFIPeter Zijlstra1-2/+13
2023-12-15x86/cfi,bpf: Fix bpf_struct_ops CFIPeter Zijlstra1-1/+30
2023-12-06bpf: Add helpers for trampoline image managementSong Liu1-4/+3
2023-11-27bpf: Fix a few selftest failures due to llvm18 changeYonghong Song1-1/+1
2023-11-01bpf: Add __bpf_kfunc_{start,end}_defs macrosDave Marchevsky1-4/+3
2023-08-30bpf: Prevent inlining of bpf_fentry_test7()Yonghong Song1-0/+1
2023-08-07page_pool: split types and declarations from page_pool.hYunsheng Lin1-1/+1
2023-08-03net: move struct netdev_rx_queue out of netdevice.hJakub Kicinski1-0/+1
2023-07-13selftests/bpf: add testcase for TRACING with 6+ argumentsMenglong Dong1-1/+13
2023-06-30selftests/bpf: Add test to exercise typedef walkingStanislav Fomichev1-0/+4
2023-05-16bpf: Move kernel test kfuncs to bpf_testmodJiri Olsa1-201/+0
2023-05-13net: introduce and use skb_frag_fill_page_desc()Yunsheng Lin1-2/+1
2023-04-21bpf: add test_run support for netfilter program typeFlorian Westphal1-0/+158
2023-04-16bpf: Remove bpf_kfunc_call_test_kptr_get() test kfuncDavid Vernet1-12/+0
2023-04-13Daniel Borkmann says:Jakub Kicinski2-13/+35
2023-04-11selftests/bpf: Add test to access u32 ptr argument in tracing programFeng Zhou1-1/+7
2023-04-04bpf: Remove unused arguments from btf_struct_access().Alexei Starovoitov1-7/+5
2023-04-04bpf: Invoke btf_struct_access() callback only for writes.Alexei Starovoitov1-1/+1
2023-03-25bpf: Treat KF_RELEASE kfuncs as KF_TRUSTED_ARGSDavid Vernet1-0/+6
2023-03-25bpf: Remove now-unnecessary NULL checks for KF_RELEASE kfuncsDavid Vernet1-3/+0
2023-03-16bpf, test_run: fix crashes due to XDP frame overwriting/corruptionAlexander Lobakin1-1/+11
2023-03-15bpf/selftests: Test fentry attachment to shadowed functionsViktor Malik1-0/+5
2023-03-09Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-6/+13
2023-03-06bpf, test_run: fix &xdp_frame misplacement for LIVE_FRAMESAlexander Lobakin1-6/+13
2023-03-03bpf: Introduce kptr_rcu.Alexei Starovoitov1-1/+2
2023-02-17Revert "bpf, test_run: fix &xdp_frame misplacement for LIVE_FRAMES"Martin KaFai Lau1-23/+6
2023-02-17bpf: Disable bh in bpf_test_run for xdp and tc progMartin KaFai Lau1-0/+2
2023-02-15bpf, test_run: fix &xdp_frame misplacement for LIVE_FRAMESAlexander Lobakin1-6/+23
2023-02-10Daniel Borkmann says:Jakub Kicinski1-26/+44
2023-02-10net: skbuff: drop the word head from skb cacheJakub Kicinski1-1/+1
2023-02-02selftests/bpf: Add testcase for static kfunc with unused argDavid Vernet1-0/+6
2023-02-02bpf: Add __bpf_kfunc tag to all kfuncsDavid Vernet1-26/+29
2023-01-28selftests/bpf: Add a sign-extension test for kfuncsIlya Leoshkevich1-0/+9
2023-01-25bpf/selftests: Verify struct_ops prog sleepable behaviorDavid Vernet1-0/+18
2023-01-23bpf: XDP metadata RX kfuncsStanislav Fomichev1-0/+3
2022-12-17Merge tag 'x86_mm_for_6.2_v2' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-2/+1
2022-12-15mm: Introduce set_memory_rox()Peter Zijlstra1-2/+1
2022-12-12Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-3/+11
2022-12-09skbuff: Introduce slab_build_skb()Kees Cook1-1/+1
2022-12-07Merge "do not rely on ALLOW_ERROR_INJECTION for fmod_ret" into bpf-nextAlexei Starovoitov1-3/+11
2022-12-07bpf: do not rely on ALLOW_ERROR_INJECTION for fmod_retBenjamin Tissoires1-3/+11
2022-11-28Daniel Borkmann says:Jakub Kicinski2-10/+7
2022-11-21bpf: Move skb->len == 0 checks into __bpf_redirectStanislav Fomichev1-3/+0
2022-11-14bpf: Refactor btf_struct_accessKumar Kartikeya Dwivedi1-7/+7
2022-11-04bpf, test_run: Fix alignment problem in bpf_prog_test_run_skb()Baisong Zhong1-0/+1
2022-09-07selftests/bpf: Add tests for kfunc returning a memory pointerBenjamin Tissoires1-0/+36
2022-09-07selftests/bpf: add test for accessing ctx from syscall program typeBenjamin Tissoires1-0/+1
2022-08-17Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-0/+5
2022-08-10selftests/bpf: add destructive kfunc testArtem Savkov1-0/+5
2022-08-09bpf: Allow calling bpf_prog_test kfuncs in tracing programsKumar Kartikeya Dwivedi1-0/+1
2022-07-21bpf: Add support for forcing kfunc args to be trustedKumar Kartikeya Dwivedi1-0/+5
2022-07-21bpf: Switch to new kfunc flags infrastructureKumar Kartikeya Dwivedi1-48/+22
2022-07-19bpf: Don't redirect packets with invalid pkt_lenZhengchao Shao1-0/+3
2022-06-03bpf, test_run: Remove unnecessary prog type checksDaniel Xu1-6/+0
2022-05-23Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski2-11/+36
2022-05-16net: allow gso_max_size to exceed 65536Alexander Duyck1-1/+1
2022-05-11bpf: Prepare prog_test_struct kfuncs for runtime testsKumar Kartikeya Dwivedi1-6/+17
2022-05-10bpf, x86: Generate trampolines from bpf_tramp_linksKui-Feng Lee1-5/+19
2022-04-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-2/+3
2022-04-25selftests/bpf: Add test for strict BTF type checkKumar Kartikeya Dwivedi1-1/+21
2022-04-25selftests/bpf: Add verifier tests for kptrKumar Kartikeya Dwivedi1-5/+40
2022-04-11bpf: Fix release of page_pool in BPF_PROG_RUN in test runnerToke Høiland-Jørgensen1-2/+3
2022-03-11bpf, test_run: Fix packet size check for live packet modeToke Høiland-Jørgensen1-3/+3
2022-03-10bpf, test_run: Use kvfree() for memory allocated with kvmalloc()Yihao Han1-2/+2
2022-03-10bpf: Initialise retval in bpf_prog_test_run_xdp()Toke Høiland-Jørgensen1-1/+1
2022-03-09bpf: Add "live packet" mode for XDP in BPF_PROG_RUNToke Høiland-Jørgensen1-14/+320
2022-03-05selftests/bpf: Add tests for kfunc register offset checksKumar Kartikeya Dwivedi1-0/+11
2022-03-05bpf: Replace __diag_ignore with unified __diag_ignore_allKumar Kartikeya Dwivedi1-2/+2
2022-03-02bpf, test_run: Fix overflow in XDP frags bpf_test_finishStanislav Fomichev1-0/+5
2022-02-09bpf: Make remote_port field in struct bpf_sk_lookup 16-bit wideJakub Sitnicki1-2/+2
2022-02-07bpf: test_run: Fix overflow in bpf_test_finish frags parsingStanislav Fomichev1-2/+3
2022-02-07bpf: test_run: Fix overflow in xdp frags parsingStanislav Fomichev1-2/+2
2022-02-03bpf: test_run: Fix OOB access in bpf_prog_test_run_xdpLorenzo Bianconi1-0/+5
2022-01-27bpf: reject program if a __user tagged memory accessed in kernel wayYonghong Song1-2/+4
2022-01-24bpf: Fix flexible_array.cocci warningskernel test robot1-1/+1
2022-01-21bpf: test_run: add xdp_shared_info pointer in bpf_test_finish signatureLorenzo Bianconi1-9/+39
2022-01-21bpf: introduce frags support to bpf_prog_test_run_xdp()Lorenzo Bianconi1-13/+45
2022-01-21bpf: move user_size out of bpf_test_initLorenzo Bianconi1-6/+7
2022-01-18selftests/bpf: Add test for race in btf_try_get_moduleKumar Kartikeya Dwivedi1-0/+2
2022-01-18selftests/bpf: Extend kfunc selftestsKumar Kartikeya Dwivedi1-2/+127
2022-01-18bpf: Remove check_kfunc_call callback and old kfunc BTF ID APIKumar Kartikeya Dwivedi1-9/+14
2021-11-01bpf: Add dummy BPF STRUCT_OPS for test purposeHou Tao2-0/+203
2021-10-20net: bpf: Switch over to memdup_user()Qing Wang1-15/+6
2021-10-05bpf: selftests: Add selftests for module kfunc supportKumar Kartikeya Dwivedi1-1/+4
2021-10-05bpf: Introduce BPF support for kernel module function callsKumar Kartikeya Dwivedi1-1/+1
2021-10-01Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-2/+4
2021-09-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-5/+9
2021-09-29bpf: Do not invoke the XDP dispatcher for PROG_RUN with single repeatLorenz Bauer1-2/+4
2021-09-28bpf, test, cgroup: Use sk_{alloc,free} for test casesDaniel Borkmann1-5/+9
2021-09-10selftests/bpf: Test new __sk_buff field hwtstampVadim Fedorenko1-0/+8
2021-09-07bpf: Permit ingress_ifindex in bpf_prog_test_run_xattrNeil Spring1-5/+3
2021-08-17bpf: Refactor BPF_PROG_RUN into a functionAndrii Nakryiko1-3/+3
2021-08-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+4
2021-08-10bpf: Add missing bpf_read_[un]lock_trace() for syscall programYonghong Song1-0/+4
2021-08-04bpf: Fix bpf_prog_test_run_xdp logic after incorrect merge resolutionAndrii Nakryiko1-2/+1
2021-07-31Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-12/+11
2021-07-23Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-0/+5
2021-07-16bpf: Add ambient BPF runtime context stored in currentAndrii Nakryiko1-12/+11
2021-07-12bpf, test: fix NULL pointer dereference on invalid expected_attach_typeXuan Zhuo1-0/+3
2021-07-07bpf: Support specifying ingress via xdp_md context in BPF_PROG_TEST_RUNZvi Effron1-7/+49
2021-07-07bpf: Support input xdp_md context in BPF_PROG_TEST_RUNZvi Effron1-8/+59
2021-05-19bpf: Prepare bpf syscall to be used from kernel and user space.Alexei Starovoitov1-1/+1
2021-05-19bpf: Introduce bpf_sys_bpf() helper and program type.Alexei Starovoitov1-0/+43
2021-03-26bpf: selftests: Add kfunc_call testMartin KaFai Lau1-0/+28
2021-03-25bpf: Fix NULL pointer dereference in bpf_get_local_storage() helperYonghong Song1-1/+5
2021-03-04bpf: Add PROG_TEST_RUN support for sk_lookup programsLorenz Bauer1-0/+105
2021-03-04bpf: Consolidate shared test timing codeLorenz Bauer1-63/+78
2021-01-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+2
2021-01-13bpf: Reject too big ctx_size_in for raw_tp test runSong Liu1-1/+2
2021-01-08net, xdp: Introduce xdp_prepare_buff utility routineLorenzo Bianconi1-5/+2
2021-01-08net, xdp: Introduce xdp_init_buff utility routineLorenzo Bianconi1-2/+2
2020-09-30bpf: fix raw_tp test run in preempt kernelSong Liu1-12/+9
2020-09-28bpf: Enable BPF_PROG_TEST_RUN for raw_tracepointSong Liu1-0/+91
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-08-03bpf: Allow to specify ifindex for skb in bpf_prog_test_run_skbDmitry Yakunin1-2/+20
2020-08-03bpf: Setup socket family and addresses in bpf_prog_test_run_skbDmitry Yakunin1-0/+21
2020-06-30bpf: Add tests for PTR_TO_BTF_ID vs. null comparisonYonghong Song1-1/+18
2020-05-19bpf: Fix too large copy from user in bpf_test_initJesper Dangaard Brouer1-3/+5
2020-05-14bpf: Add xdp.frame_sz in bpf_prog_test_run_xdp().Jesper Dangaard Brouer1-4/+12
2020-03-28bpf: Fix build warning regarding missing prototypesJean-Philippe Menil1-0/+4
2020-03-04bpf: Add selftests for BPF_MODIFY_RETURNKP Singh1-1/+21
2020-03-04bpf: Add test ops for BPF_PROG_TYPE_TRACINGKP Singh1-9/+28
2020-03-03bpf: Add gso_size to __sk_buffWillem de Bruijn1-0/+7
2020-02-24bpf/tests: Use migrate disable instead of preempt disableDavid Miller1-4/+4
2019-12-18bpf: Allow to change skb mark in test_runNikita V. Shirokov1-1/+9
2019-12-13bpf: Expose __sk_buff wire_len/gso_segs to BPF_PROG_TEST_RUNStanislav Fomichev1-1/+18
2019-12-13bpf: Start using the BPF dispatcher in BPF_TEST_RUNBjörn Töpel1-5/+10
2019-12-11bpf: Switch to offsetofend in BPF_PROG_TEST_RUNStanislav Fomichev1-8/+4
2019-11-18bpf: Fix memory leak on object 'data'Colin Ian King1-1/+3
2019-11-15bpf: Add kernel test functions for fentry testingAlexei Starovoitov1-0/+41
2019-10-15bpf: Allow __sk_buff tstamp in BPF_PROG_TEST_RUNStanislav Fomichev1-0/+9
2019-07-25bpf/flow_dissector: support flags in BPF_PROG_TEST_RUNStanislav Fomichev1-4/+35
2019-07-25bpf/flow_dissector: pass input flags to BPF flow dissector programStanislav Fomichev1-1/+1
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206Thomas Gleixner1-4/+1
2019-05-21treewide: Add SPDX license identifier - Makefile/KconfigThomas Gleixner1-0/+1
2019-04-27bpf: Introduce bpf sk local storageMartin KaFai Lau1-0/+2
2019-04-26selftests: bpf: test writable buffers in raw tpsMatt Mullins1-0/+4
2019-04-23bpf/flow_dissector: don't adjust nhoff by ETH_HLEN in BPF_PROG_TEST_RUNStanislav Fomichev1-3/+0
2019-04-23bpf: when doing BPF_PROG_TEST_RUN for flow dissector use no-skb modeStanislav Fomichev1-30/+17
2019-04-23flow_dissector: switch kernel context to struct bpf_flow_dissectorStanislav Fomichev1-4/+0
2019-04-12bpf: explicitly prohibit ctx_{in, out} in non-skb BPF_PROG_TEST_RUNStanislav Fomichev1-0/+6
2019-04-11bpf: fix missing bpf_check_uarg_tail_zero in BPF_PROG_TEST_RUNStanislav Fomichev1-1/+1
2019-04-11bpf: support input __sk_buff context in BPF_PROG_TEST_RUNStanislav Fomichev1-8/+135
2019-03-08bpf: fix warning about using plain integer as NULLBo YU1-1/+1
2019-03-04Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-6/+20
2019-02-25bpf/test_run: fix unkillable BPF_PROG_TEST_RUN for flow dissectorStanislav Fomichev1-6/+20
2019-02-24Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-21/+24
2019-02-19bpf/test_run: fix unkillable BPF_PROG_TEST_RUNStanislav Fomichev1-21/+24
2019-01-29bpf: add BPF_PROG_TEST_RUN support for flow dissectorStanislav Fomichev1-0/+82
2018-12-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextDavid S. Miller1-2/+13
2018-12-04bpf: respect size hint to BPF_PROG_TEST_RUN if presentLorenz Bauer1-2/+13
2018-12-01bpf: refactor bpf_test_run() to separate own failures and test program resultRoman Gushchin1-6/+15
2018-10-19bpf: add tests for direct packet access from CGROUP_SKBSong Liu1-0/+15
2018-10-01bpf: extend cgroup bpf core to allow multiple cgroup storage typesRoman Gushchin1-6/+14
2018-08-03bpf/test_run: support cgroup local storageRoman Gushchin1-2/+11
2018-07-11bpf: fix panic due to oob in bpf_prog_test_run_skbDaniel Borkmann1-3/+14
2018-04-18bpf: making bpf_prog_test run aware of possible data_end ptr changeNikita V. Shirokov1-1/+2
2018-02-01bpf: fix null pointer deref in bpf_prog_test_run_xdpDaniel Borkmann1-0/+4
2017-09-26bpf: add meta pointer for direct accessDaniel Borkmann1-0/+1
2017-09-26bpf: rename bpf_compute_data_end into bpf_compute_data_pointersDaniel Borkmann1-1/+1
2017-05-02bpf: Align packet data properly in program testing framework.David Miller1-5/+5
2017-05-02bpf: Do not dereference user pointer in bpf_test_finish().David Miller1-4/+5
2017-04-01bpf: introduce BPF_PROG_TEST_RUN commandAlexei Starovoitov2-0/+173