diff options
author | Huanhuan Wang <[email protected]> | 2023-04-20 16:01:25 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-04-21 20:23:49 -0700 |
commit | 63cfd210034c772fad047afa13dd5a4664b0a72e (patch) | |
tree | 49a090883da95e42a982e03e6fa23a4e25f44786 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 461bb5b97049a149278f2c27a3aa12af16da6a2e (diff) |
nfp: fix incorrect pointer deference when offloading IPsec with bonding
There are two pointers in struct xfrm_dev_offload, *dev, *real_dev.
The *dev points whether bonding interface or real interface, if
bonding IPsec offload is used, it points bonding interface; if not,
it points real interface. And *real_dev always points real interface.
So nfp should always use real_dev instead of dev.
Prior to this change the system becomes unresponsive when offloading
IPsec for a device which is a lower device to a bonding device.
Fixes: 859a497fe80c ("nfp: implement xfrm callbacks and expose ipsec offload feature to upper layer")
CC: [email protected]
Signed-off-by: Huanhuan Wang <[email protected]>
Acked-by: Simon Horman <[email protected]>
Signed-off-by: Louis Peens <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions