diff options
| author | Kees Cook <[email protected]> | 2024-01-29 18:21:58 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2024-02-29 21:38:01 +0000 |
| commit | 3e19086fb5a9079611de426e8cb2f4503e28757e (patch) | |
| tree | cd6e2d20f3e76522542aee1f9b8799362d30c27e /lib/overflow_kunit.c | |
| parent | kernel.h: Move upper_*_bits() and lower_*_bits() to wordpart.h (diff) | |
| download | kernel-3e19086fb5a9079611de426e8cb2f4503e28757e.tar.gz kernel-3e19086fb5a9079611de426e8cb2f4503e28757e.zip | |
overflow: Adjust check_*_overflow() kern-doc to reflect results
The check_*_overflow() helpers will return results with potentially
wrapped-around values. These values have always been checked by the
selftests, so avoid the confusing language in the kern-doc. The idea of
"safe for use" was relative to the expectation of whether or not the
caller wants a wrapped value -- the calculation itself will always follow
arithmetic wrapping rules.
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions
