diff options
author | 2022-09-23 11:07:09 +0200 | |
---|---|---|
committer | 2022-09-26 09:39:30 -0700 | |
commit | c52add61c27ea23501be82a34854edd98e10e061 (patch) | |
tree | f103cfdd204857093becccfc22a0755d24c9ff5b /net/core/xdp.c | |
parent | ipv6: tcp: send consistent autoflowlabel in RST packets (diff) | |
download | wireguard-linux-c52add61c27ea23501be82a34854edd98e10e061.tar.xz wireguard-linux-c52add61c27ea23501be82a34854edd98e10e061.zip |
macsec: don't free NULL metadata_dst
Commit 0a28bfd4971f added a metadata_dst to each tx_sc, but that's
only allocated when macsec_add_dev has run, which happens after device
registration. If the requested or computed SCI already exists, or if
linking to the lower device fails, we will panic because
metadata_dst_free can't handle NULL.
Reproducer:
ip link add link $lower type macsec
ip link add link $lower type macsec
Fixes: 0a28bfd4971f ("net/macsec: Add MACsec skb_metadata_dst Tx Data path support")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Raed Salem <raeds@nvidia.com>
Link: https://lore.kernel.org/r/60f2a1965fe553e2cade9472407d0fafff8de8ce.1663923580.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/xdp.c')
0 files changed, 0 insertions, 0 deletions