]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: Add boundary check in put_entry()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 14 Jun 2022 02:14:49 +0000 (10:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:17:32 +0000 (11:17 +0200)
commite190cdb42ebbb4e00ffabe4b33e960de911ae3e9
treebc1f628bdd8736272584348e16fdf89532fd317b
parentca54b10ebb0e4e3cb4f06734e8b5665ba7845480
selinux: Add boundary check in put_entry()

[ Upstream commit 3f2823a0293e5a5528bb2f2cfbed316ad521b2ff ]

Just like next_entry(), boundary check is necessary to prevent memory
out-of-bound access.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/selinux/ss/policydb.h