Commit 6dae957
bpf: fix possible file descriptor leaks in verifier
The resolve_pseudo_ldimm64() function might have leaked file
descriptors when BPF_MAP_TYPE_ARENA was used in a program (some
error paths missed a corresponding fdput). Add missing fdputs.
v2:
remove unrelated changes from the fix
Fixes: 6082b6c ("bpf: Recognize addr_space_cast instruction in the verifier.")
Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Link: https://lore.kernel.org/r/20240329071106.67968-1-aspsk@isovalent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent 62248b2 commit 6dae957
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18379 | 18379 | | |
18380 | 18380 | | |
18381 | 18381 | | |
| 18382 | + | |
18382 | 18383 | | |
18383 | 18384 | | |
18384 | 18385 | | |
18385 | 18386 | | |
| 18387 | + | |
18386 | 18388 | | |
18387 | 18389 | | |
18388 | 18390 | | |
18389 | 18391 | | |
18390 | 18392 | | |
| 18393 | + | |
18391 | 18394 | | |
18392 | 18395 | | |
18393 | 18396 | | |
| |||
0 commit comments