Commit d2699bd
bpf: verifier: permit non-zero returns from async callbacks
The verifier currently enforces a zero return value for all async
callbacks—a constraint originally introduced for bpf_timer. That
restriction is too narrow for other async use cases.
Relax the rule by allowing non-zero return codes from async callbacks in
general, while preserving the zero-return requirement for bpf_timer to
maintain its existing semantics.
Signed-off-by: Mykyta Yatsenko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent acc3a0d commit d2699bd
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10789 | 10789 | | |
10790 | 10790 | | |
10791 | 10791 | | |
10792 | | - | |
| 10792 | + | |
10793 | 10793 | | |
10794 | 10794 | | |
10795 | 10795 | | |
| |||
17073 | 17073 | | |
17074 | 17074 | | |
17075 | 17075 | | |
17076 | | - | |
17077 | 17076 | | |
17078 | | - | |
| 17077 | + | |
17079 | 17078 | | |
17080 | 17079 | | |
17081 | 17080 | | |
| |||
0 commit comments