]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: validate rtsym accesses fall within the symbol
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 4 Sep 2018 14:37:33 +0000 (07:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 05:17:07 +0000 (22:17 -0700)
commit3f8dd9cf04af1872a5c102ba4bb59c1a02012979
tree2ddb815e9b5b5b4dcc7ec0d94fd2f3e96e258837
parent13a69fc222d3b80f9cbe550b518df6df2320f5b2
nfp: validate rtsym accesses fall within the symbol

With the accesses to rtsyms now all going via special helpers
we can easily make sure the driver is not reading past the
end of the symbol.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Francois H. Theron <francois.theron@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c