Re: [PATCH bpf v5 0/7] bpf: Fix the release of inner map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Mon,  4 Dec 2023 22:04:18 +0800 you wrote:
> From: Hou Tao <houtao1@xxxxxxxxxx>
> 
> Hi,
> 
> The patchset aims to fix the release of inner map in map array or map
> htab. The release of inner map is different with normal map. For normal
> map, the map is released after the bpf program which uses the map is
> destroyed, because the bpf program tracks the used maps. However bpf
> program can not track the used inner map because these inner map may be
> updated or deleted dynamically, and for now the ref-counter of inner map
> is decreased after the inner map is remove from outer map, so the inner
> map may be freed before the bpf program, which is accessing the inner
> map, exits and there will be use-after-free problem as demonstrated by
> patch #6.
> 
> [...]

Here is the summary with links:
  - [bpf,v5,1/7] bpf: Check rcu_read_lock_trace_held() before calling bpf map helpers
    https://git.kernel.org/bpf/bpf-next/c/169410eba271
  - [bpf,v5,2/7] bpf: Add map and need_defer parameters to .map_fd_put_ptr()
    https://git.kernel.org/bpf/bpf-next/c/20c20bd11a07
  - [bpf,v5,3/7] bpf: Set need_defer as false when clearing fd array during map free
    https://git.kernel.org/bpf/bpf-next/c/79d93b3c6ffd
  - [bpf,v5,4/7] bpf: Defer the free of inner map when necessary
    https://git.kernel.org/bpf/bpf-next/c/876673364161
  - [bpf,v5,5/7] bpf: Optimize the free of inner map
    https://git.kernel.org/bpf/bpf-next/c/af66bfd3c853
  - [bpf,v5,6/7] selftests/bpf: Add test cases for inner map
    https://git.kernel.org/bpf/bpf-next/c/1624918be84a
  - [bpf,v5,7/7] selftests/bpf: Test outer map update operations in syscall program
    https://git.kernel.org/bpf/bpf-next/c/e3dd40828534

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux