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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:42 +0000 (16:21 +0200)
commitdd872d5576cc94528f427c7264c2c438928cc6d2
treee137e536a52786a6d45c47c0ec018b17cf5afe30
parent64c358c9abae443e9e8745884006668a8ad92c93
modpost: fix off by one in is_executable_section()

[ Upstream commit 3a3f1e573a105328a2cca45a7cfbebabbf5e3192 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/mod/modpost.c