aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/arraymap.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-30bpf: Do not walk twice the map on freeBenjamin Tissoires1-7/+8
2024-04-23bpf: allow struct bpf_wq to be embedded in arraymaps and hashmapsBenjamin Tissoires1-7/+11
2024-04-03bpf: inline bpf_map_lookup_elem() for PERCPU_ARRAY mapsAndrii Nakryiko1-0/+33
2024-01-24bpf: Consistently use BPF token throughout BPF verifier logicAndrii Nakryiko1-1/+1
2023-12-19Revert BPF token-related functionalityAndrii Nakryiko1-1/+1
2023-12-18Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski1-15/+22
2023-12-13bpf: Use GFP_KERNEL in bpf_event_entry_gen()Hou Tao1-1/+1
2023-12-06bpf: Fix prog_array_map_poke_run map poke updateJiri Olsa1-48/+10
2023-12-06bpf: consistently use BPF token throughout BPF verifier logicAndrii Nakryiko1-1/+1
2023-12-04bpf: Set need_defer as false when clearing fd array during map freeHou Tao1-9/+14
2023-12-04bpf: Add map and need_defer parameters to .map_fd_put_ptr()Hou Tao1-5/+7
2023-03-22bpf: return long from bpf_map_ops funcsJP Kobryn1-6/+6
2023-03-07bpf: arraymap memory usageYafang Shao1-0/+28
2022-11-17bpf: Do btf_record_free outside map_free callbackKumar Kartikeya Dwivedi1-1/+0
2022-11-03bpf: Consolidate spin_lock, timer management into btf_recordKumar Kartikeya Dwivedi1-13/+6
2022-11-03bpf: Refactor kptr_off_tab into btf_recordKumar Kartikeya Dwivedi1-7/+6
2022-09-07bpf: Support kptrs in percpu arraymapKumar Kartikeya Dwivedi1-9/+24
2022-08-10bpf: Acquire map uref in .init_seq_private for array map iteratorHou Tao1-0/+6
2022-07-19bpf: remove obsolete KMALLOC_MAX_SIZE restriction on array map value sizeAndrii Nakryiko1-4/+2
2022-07-19bpf: make uniform use of array->elem_size everywhere in arraymap.cAndrii Nakryiko1-6/+8
2022-07-19bpf: fix potential 32-bit overflow when accessing ARRAY map elementAndrii Nakryiko1-8/+12
2022-05-11bpf: add bpf_map_lookup_percpu_elem for percpu mapFeng Zhou1-0/+15
2022-05-10bpf: Extend batch operations for map-in-map bpf-mapsTakshak Chahande1-0/+2
2022-04-26bpf: Compute map_btf_id during build timeMenglong Dong1-18/+8
2022-04-25bpf: Wire up freeing of referenced kptrKumar Kartikeya Dwivedi1-4/+14
2022-01-21bpf: generalise tail call map compatibility checkToke Hoiland-Jorgensen1-3/+1
2021-10-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-0/+1
2021-10-26bpf: Fix potential race in tail call compatibility checkToke Høiland-Jørgensen1-0/+1
2021-09-28bpf: Replace callers of BPF_CAST_CALL with proper function typedefKees Cook1-4/+3
2021-07-15bpf: Add map side support for bpf timers.Alexei Starovoitov1-0/+21
2021-04-28bpf: Add batched ops support for percpu arrayPedro Tammela1-0/+2
2021-02-26bpf: Add arraymap support for bpf_for_each_map_elem() helperYonghong Song1-0/+40
2020-12-02bpf: Eliminate rlimit-based memory accounting for arraymap mapsRoman Gushchin1-20/+4
2020-12-02bpf: Refine memcg-based memory accounting for arraymap mapsRoman Gushchin1-3/+3
2020-10-11bpf: Allow for map-in-map with dynamic inner array map entriesDaniel Borkmann1-6/+11
2020-09-30bpf: Introduce BPF_F_PRESERVE_ELEMS for perf event arraySong Liu1-2/+17
2020-09-17bpf, x64: rework pro/epilogue and tailcall handling in JITMaciej Fijalkowski1-6/+34
2020-09-17bpf: rename poke descriptor's 'ip' member to 'tailcall_target'Maciej Fijalkowski1-8/+9
2020-08-28bpf: Introduce sleepable BPF programsAlexei Starovoitov1-0/+1
2020-08-28bpf: Relax max_entries check for most of the inner map typesMartin KaFai Lau1-1/+8
2020-08-28bpf: Add map_meta_equal map opsMartin KaFai Lau1-0/+9
2020-07-25bpf: Implement bpf iterator for array mapsYonghong Song1-0/+138
2020-07-01bpf: Remove redundant synchronize_rcu.Alexei Starovoitov1-9/+0
2020-06-22bpf: Set map_btf_{name, id} for all map typesAndrey Ignatov1-0/+15
2020-06-22bpf: Support access to bpf map fieldsAndrey Ignatov1-0/+3
2020-05-15Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller1-1/+6
2020-05-15bpf: Implement CAP_BPFAlexei Starovoitov1-5/+5
2020-05-14bpf: Fix bug in mmap() implementation for BPF array mapAndrii Nakryiko1-1/+6
2020-01-15bpf: Add lookup and update batch ops to arraymapBrian Vazquez1-0/+2
2019-11-24bpf: Simplify __bpf_arch_text_poke poke type handlingDaniel Borkmann1-11/+1
2019-11-24bpf: Add poke dependency tracking for prog array mapsDaniel Borkmann1-4/+179
2019-11-24bpf: Move owner type, jited info into array auxiliary dataDaniel Borkmann1-2/+30
2019-11-19bpf: Make array_map_mmap staticYueHaibing1-1/+1
2019-11-18bpf: Add mmap() support for BPF_MAP_TYPE_ARRAYAndrii Nakryiko1-6/+52
2019-06-17Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-9/+1
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295Thomas Gleixner1-9/+1
2019-05-31bpf: move memory size checks to bpf_map_charge_init()Roman Gushchin1-7/+1
2019-05-31bpf: rework memlock-based memory accounting for mapsRoman Gushchin1-3/+7
2019-05-31bpf: group memory related fields in struct bpf_map_memoryRoman Gushchin1-1/+1
2019-04-09bpf: allow for key-less BTF in array mapDaniel Borkmann1-1/+14
2019-04-09bpf: add program side {rd, wr}only support for mapsDaniel Borkmann1-1/+5
2019-04-09bpf: implement lookup-free direct value access for mapsDaniel Borkmann1-0/+32
2019-02-01bpf: introduce BPF_F_LOCK flagAlexei Starovoitov1-8/+16
2019-02-01bpf: introduce bpf_spin_lockAlexei Starovoitov1-3/+4
2018-12-12bpf: pass struct btf pointer to the map_check_btf() callbackRoman Gushchin1-0/+1
2018-10-09bpf: return EOPNOTSUPP when map lookup isn't supportedPrashant Bhole1-1/+1
2018-09-11bpf: add bpffs pretty print for program array mapYonghong Song1-1/+24
2018-08-30bpf: add bpffs pretty print for percpu arraymap/hash/lru_hashYonghong Song1-0/+24
2018-08-13bpf: decouple btf from seq bpf fs dump and enable more mapsDaniel Borkmann1-14/+12
2018-08-11bpf: Introduce BPF_MAP_TYPE_REUSEPORT_SOCKARRAYMartin KaFai Lau1-1/+1
2018-07-27bpf: btf: Use exact btf value_size match in map_check_btf()Martin KaFai Lau1-1/+1
2018-05-23bpf: btf: Rename btf_key_id and btf_value_id in bpf_map_infoMartin KaFai Lau1-1/+1
2018-04-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+2
2018-04-24bpf: sockmap, map_release does not hold refcnt for pinned mapsJohn Fastabend1-1/+2
2018-04-19bpf: btf: Add pretty print support to the basic arraymapMartin KaFai Lau1-0/+50
2018-02-22bpf: add schedule points in percpu arrays managementEric Dumazet1-1/+4
2018-02-15bpf: fix mlock precharge on arraymapsDaniel Borkmann1-12/+16
2018-01-18bpf: arraymap: use bpf_map_init_from_attr()Jakub Kicinski1-6/+1
2018-01-18bpf: arraymap: move checks out of alloc functionJakub Kicinski1-14/+28
2018-01-10bpf, array: fix overflow in max_entries and undefined behavior in index_maskDaniel Borkmann1-3/+15
2018-01-09bpf: prevent out-of-bounds speculationAlexei Starovoitov1-11/+36
2017-10-22Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+1
2017-10-20bpf: Add file mode configuration into bpf mapsChenbo Feng1-1/+5
2017-10-19bpf: do not test for PCPU_MIN_UNIT_SIZE before percpu allocationsDaniel Borkmann1-1/+1
2017-10-07bpf: perf event change needed for subsequent bpf helpersYonghong Song1-1/+1
2017-08-19bpf: inline map in map lookup functions for array and htabDaniel Borkmann1-0/+26
2017-08-19bpf: Allow selecting numa node during map creationMartin KaFai Lau1-2/+5
2017-06-29bpf: Add syscall lookup support for fd array and htabMartin KaFai Lau1-0/+27
2017-06-04perf, bpf: Add BPF support to all perf_event typesAlexei Starovoitov1-21/+7
2017-05-25bpf: fix wrong exposure of map_flags into fdinfo for lpmDaniel Borkmann1-0/+1
2017-04-25bpf: map_get_next_key to return first key on NULLTeng Qin1-1/+1
2017-04-11bpf: remove struct bpf_map_type_listJohannes Berg1-72/+6
2017-03-22bpf: Add array of maps supportMartin KaFai Lau1-0/+63
2017-03-22bpf: Fix and simplifications on inline map lookupMartin KaFai Lau1-7/+4
2017-03-16bpf: add helper inlining infra and optimize map_array lookupAlexei Starovoitov1-0/+29
2017-02-17bpf: mark all registered map/prog types as __ro_after_initDaniel Borkmann1-5/+5
2017-01-18bpf: don't trigger OOM killer under pressure with map allocDaniel Borkmann1-11/+7
2017-01-10bpf: do not use KMALLOC_SHIFT_MAXMichal Hocko1-1/+1
2016-08-12bpf: Add bpf_current_task_under_cgroup helperSargun Dhillon1-1/+1
2016-07-16bpf: bpf_event_entry_gen's alloc needs to be in atomic contextDaniel Borkmann1-1/+1
2016-07-01cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAYMartin KaFai Lau1-0/+43
2016-07-01bpf: generally move prog destruction to RCU deferralDaniel Borkmann1-3/+1
2016-06-15bpf, maps: flush own entries on perf map releaseDaniel Borkmann1-28/+74
2016-06-15bpf, maps: extend map_fd_get_ptr argumentsDaniel Borkmann1-7/+9
2016-03-08bpf: check for reserved flag bits in array and stack mapsAlexei Starovoitov1-1/+1
2016-02-06bpf: add lookup/update support for per-cpu hash and array mapsAlexei Starovoitov1-0/+64
2016-02-06bpf: introduce BPF_MAP_TYPE_PERCPU_ARRAY mapAlexei Starovoitov1-11/+91
2016-01-29perf/bpf: Convert perf_event_array to use struct fileAlexei Starovoitov1-10/+11
2015-12-02bpf: fix allocation warnings in bpf maps and integer overflowAlexei Starovoitov1-1/+7
2015-12-01bpf, array: fix heap out-of-bounds access when updating elementsDaniel Borkmann1-1/+1
2015-10-26bpf: fix bpf_perf_event_read() helperAlexei Starovoitov1-9/+16
2015-10-22bpf: introduce bpf_perf_event_output() helperAlexei Starovoitov1-0/+2
2015-10-12bpf: charge user for creation of BPF maps and programsAlexei Starovoitov1-1/+1
2015-10-05ebpf: include perf_event only where really neededDaniel Borkmann1-0/+1
2015-08-09bpf: Add new bpf map type to store the pointer to struct perf_eventKaixu Xia1-0/+57
2015-08-09bpf: Make the bpf_prog_array_map more genericWang Nan1-31/+49
2015-05-31bpf: add missing rcu protection when releasing programs from prog_arrayAlexei Starovoitov1-2/+2
2015-05-21bpf: allow bpf programs to tail-call other bpf programsAlexei Starovoitov1-6/+107
2015-03-01ebpf: constify various function pointer structsDaniel Borkmann1-3/+3
2014-11-19bpf: fix arraymap NULL deref and missing overflow and zero size checksAlexei Starovoitov1-6/+11
2014-11-18bpf: add array type of eBPF mapsAlexei Starovoitov1-0/+151