modpost: fix off by one in is_executable_section()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 8 Jun 2023 08:23:40 +0000 (11:23 +0300)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 8 Jun 2023 13:50:04 +0000 (22:50 +0900)
commit3a3f1e573a105328a2cca45a7cfbebabbf5e3192
treef27e44532e553a8cebac8bb13618bdbb070a122c
parent98d7c7544a3a9f2713dc0f729bca4ab05fbc6e7f
modpost: fix off by one in is_executable_section()

The > comparison should be >= to prevent an out of bounds array
access.

Fixes: 52dc0595d540 ("modpost: handle relocations mismatch in __ex_table.")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c