summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorMathieu Xhonneux <m.xhonneux@gmail.com>2018-01-10 16:35:49 +0300
committerDavid S. Miller <davem@davemloft.net>2018-01-11 00:03:55 +0300
commitccc12b11c5332c84442ef120dcd631523be75089 (patch)
treeaecd1d2d0621e3fa203ccffaa71afe42893daa08 /drivers/iommu
parent862c03ee1deb7e19e0f9931682e0294ecd1fcaf9 (diff)
downloadlinux-ccc12b11c5332c84442ef120dcd631523be75089.tar.xz
ipv6: sr: fix TLVs not being copied using setsockopt
Function ipv6_push_rthdr4 allows to add an IPv6 Segment Routing Header to a socket through setsockopt, but the current implementation doesn't copy possible TLVs at the end of the SRH received from userspace. Therefore, the execution of the following branch if (sr_has_hmac(sr_phdr)) { ... } will never complete since the len and type fields of a possible HMAC TLV are not copied, hence seg6_get_tlv_hmac will return an error, and the HMAC will not be computed. This commit adds a memcpy in case TLVs have been appended to the SRH. Fixes: a149e7c7ce81 ("ipv6: sr: add support for SRH injection through setsockopt") Acked-by: David Lebrun <dlebrun@google.com> Signed-off-by: Mathieu Xhonneux <m.xhonneux@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions