]> git.hungrycats.org Git - linux/commit
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>
Tue, 11 Jul 2023 17:39:49 +0000 (19:39 +0200)
commitcade370efe2f9e2a79ea8587506ffe2b51ac6d2b
treeffcbb1ebba28c97f8567cf3e40be9dfb7fed052f
parent1942b2eff5f949f5b992f0a50d1e0197d9941324
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