diff options
author | Kees Cook <keescook@chromium.org> | 2022-09-20 02:33:33 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-09-26 21:01:32 +0300 |
commit | fa35198f39571bbdae53c5b321020021eaad6bd2 (patch) | |
tree | 93875fff4a34cec43dfa48cea3ac90fca53ac0d3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3e1730842f142add55dc658929221521a9ea62b6 (diff) | |
download | linux-fa35198f39571bbdae53c5b321020021eaad6bd2.tar.xz |
fortify: Explicitly check bounds are compile-time constants
In preparation for replacing __builtin_object_size() with
__builtin_dynamic_object_size(), all the compile-time size checks
need to check that the bounds comparisons are, in fact, known at
compile-time. Enforce what was guaranteed with __bos(). In other words,
since all uses of __bos() were constant expressions, it was not required
to test for this. When these change to __bdos(), they _may_ be constant
expressions, and the checks are only valid when the prior condition
holds. This results in no binary differences.
Cc: linux-hardening@vger.kernel.org
Link: https://lore.kernel.org/lkml/20220920192202.190793-3-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions