diff options
| author | Amery Hung <ameryhung@gmail.com> | 2026-06-05 23:20:52 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-06-06 00:18:19 +0300 |
| commit | a3863aa4f55e5c17f32e1fd64a0a64adf2af16d9 (patch) | |
| tree | d50a88fd910610050d9b2713300aec9ed06f98c7 /include | |
| parent | 231fc9bc27fd03db171cab4e75116923250af7a7 (diff) | |
| download | linux-a3863aa4f55e5c17f32e1fd64a0a64adf2af16d9.tar.xz | |
bpf: Fix dead error check on acquire_reference() in check_kfunc_call
acquire_reference() returns a signed int that may be a negative errno
but was converted to unsigned, which makes the subsequent error check
deadcode. Fix it by declaring 'id' as int so the error path is taken
correctly.
Fixes: 308c7a0ae885 ("bpf: Refactor object relationship tracking and fix dynptr UAF bug")
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Link: https://lore.kernel.org/r/20260605202056.1780352-2-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
