Commit 0325472
bpf: Avoid warning on unexpected map for tail call
Before handling the tail call in record_func_key(), we check that the
map is of the expected type and log a verifier error if it isn't. Such
an error however doesn't indicate anything wrong with the verifier. The
check for map<>func compatibility is done after record_func_key(), by
check_map_func_compatibility().
Therefore, this patch logs the error as a typical reject instead of a
verifier error.
Fixes: d2e4c1e ("bpf: Constant map key tracking for prog array pokes")
Fixes: 0df1a55 ("bpf: Warn on internal verifier errors")
Reported-by: [email protected]
Signed-off-by: Paul Chaignon <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/1f395b74e73022e47e04a31735f258babf305420.1751578055.git.paul.chaignon@gmail.com
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent 71b4a99 commit 0325472
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11082 | 11082 | | |
11083 | 11083 | | |
11084 | 11084 | | |
11085 | | - | |
11086 | | - | |
| 11085 | + | |
| 11086 | + | |
11087 | 11087 | | |
11088 | 11088 | | |
11089 | 11089 | | |
| |||
0 commit comments