summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorLin Ma <linma@zju.edu.cn>2023-06-27 11:39:54 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-26 14:23:32 +0200
commitfed1cd2cd3aa95dedb75d12d430c90d6203d6c32 (patch)
tree869ab6a2cd5d884b697dd18276c4fe8d1e96e591 /net/unix/af_unix.c
parent1960f468078b3471d1ee9aafa0cf06c8c34a505f (diff)
net: af_key: fix sadb_x_filter validation
[ Upstream commit 75065a8929069bc93181848818e23f147a73f83a ] When running xfrm_state_walk_init(), the xfrm_address_filter being used is okay to have a splen/dplen that equals to sizeof(xfrm_address_t)<<3. This commit replaces >= to > to make sure the boundary checking is correct. Fixes: 37bd22420f85 ("af_key: pfkey_dump needs parameter validation") Signed-off-by: Lin Ma <linma@zju.edu.cn> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions