WSL2-Linux-Kernel/net/smc
Ursula Braun 143c017108 smc: ETH_ALEN as memcpy length for mac addresses
When creating an SMC connection, there is a CLC (connection layer control)
handshake to prepare for RDMA traffic. The corresponding code is part of
commit 0cfdd8f92c ("smc: connection and link group creation").
Mac addresses to be exchanged in the handshake are copied with a wrong
length of 12 instead of 6 bytes. Following code overwrites the wrongly
copied code, but nevertheless the correct length should already be used for
the preceding mac address copying. Use ETH_ALEN for the memcpy length with
mac addresses.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Fixes: 0cfdd8f92c ("smc: connection and link group creation")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-12 09:47:01 -05:00
..
Kconfig smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
Makefile smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
af_smc.c smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc.h smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc_cdc.c smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_cdc.h smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_clc.c smc: ETH_ALEN as memcpy length for mac addresses 2017-01-12 09:47:01 -05:00
smc_clc.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_close.c smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc_close.h smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_core.c smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_core.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_diag.c smc: netlink interface for SMC sockets 2017-01-09 16:07:41 -05:00
smc_ib.c smc: initialize IB transport incl. PD, MR, QP, CQ, event, WR 2017-01-09 16:07:39 -05:00
smc_ib.h smc: ETH_ALEN as memcpy length for mac addresses 2017-01-12 09:47:01 -05:00
smc_llc.c smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_llc.h smc: link layer control (LLC) 2017-01-09 16:07:40 -05:00
smc_pnet.c smc: establish pnet table management 2017-01-09 16:07:38 -05:00
smc_pnet.h smc: establish pnet table management 2017-01-09 16:07:38 -05:00
smc_rx.c smc: receive data from RMBE 2017-01-09 16:07:40 -05:00
smc_rx.h smc: receive data from RMBE 2017-01-09 16:07:40 -05:00
smc_tx.c smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_tx.h smc: receive data from RMBE 2017-01-09 16:07:40 -05:00
smc_wr.c smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00
smc_wr.h smc: socket closing and linkgroup cleanup 2017-01-09 16:07:40 -05:00