summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNatalia Petrova <n.petrova@fintech.ru>2023-02-09 09:28:33 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-22 12:47:22 +0100
commit777a814f8eef73cfb98230da9fbf08715872fec0 (patch)
treeb1c0456c6d912050bf149d6f3bc24e2c3ba5d3b3 /include/linux
parent1c9df9775dd84ed765895035b00df4b9c0749ff6 (diff)
i40e: Add checking for null for nlmsg_find_attr()
[ Upstream commit 7fa0b526f865cb42aa33917fd02a92cb03746f4d ] The result of nlmsg_find_attr() 'br_spec' is dereferenced in nla_for_each_nested(), but it can take NULL value in nla_find() function, which will result in an error. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 51616018dd1b ("i40e: Add support for getlink, setlink ndo ops") Signed-off-by: Natalia Petrova <n.petrova@fintech.ru> Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Link: https://lore.kernel.org/r/20230209172833.3596034-1-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions