diff options
author | Matthew Maurer <mmaurer@google.com> | 2024-10-15 23:16:45 +0000 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2024-10-19 14:35:07 -0700 |
commit | d979e3dffa93c9284f244ef64f7a68042c2f8b80 (patch) | |
tree | e264d3c6e50bd1d7dfca1495594ebd40947605e6 /kernel/module/internal.h | |
parent | 837031e052af32c747906238fb1feb87778e4fe0 (diff) | |
download | linux-d979e3dffa93c9284f244ef64f7a68042c2f8b80.tar.gz linux-d979e3dffa93c9284f244ef64f7a68042c2f8b80.tar.bz2 linux-d979e3dffa93c9284f244ef64f7a68042c2f8b80.zip |
module: Additional validation in elf_validity_cache_strtab
Validate properties of the strtab that are depended on elsewhere, but
were previously unchecked:
* String table nonempty (offset 0 is valid)
* String table has a leading NUL (offset 0 corresponds to "")
* String table is NUL terminated (strfoo functions won't run out of the
table while reading).
* All symbols names are inbounds of the string table.
Signed-off-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module/internal.h')
0 files changed, 0 insertions, 0 deletions