OSDN Git Service

mctp: add address validity checking for packet receive
authorJeremy Kerr <jk@codeconstruct.com.au>
Fri, 18 Feb 2022 04:25:54 +0000 (12:25 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 19 Feb 2022 05:24:29 +0000 (21:24 -0800)
commit86cdfd63f25dc1c8f241ee70c58da3c10472b76e
tree1e158db45b1ed7454f438c240ae3924b36a49b03
parentcb196b725936f6b776ad1d073f66fbe92aa798fa
mctp: add address validity checking for packet receive

This change adds some basic sanity checks for the source and dest
headers of packets on initial receive.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mctp/route.c