Patch "IB/core: Namespace is mandatory input for address resolution" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
IB/core: Namespace is mandatory input for address resolution
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ib-core-namespace-is-mandatory-input-for-address-resolution.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
bebb2a473a43c8f84a8210687d1cbdde503046d7Mon Sep 17 00:00:00 2001
From: Moni Shoua <[email protected]>
Date: Tue, 23 May 2017 10:48:44 +0300
Subject: IB/core: Namespace is mandatory input for address resolution
From: Moni Shoua <[email protected]>
commit bebb2a473a43c8f84a8210687d1cbdde503046d7 upstream.
In function addr_resolve() the namespace is a required input parameter and not an output. It is passed later for searching the routing table and device addresses. Also, it shouldn't be copied back to the caller.
--- drivers/infiniband/core/addr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/infiniband/core/addr.c +5 -1
@@ -518,6 +518,11 @@ static int addr_resolve(struct sockaddrstruct dst_entry *dst;int ret; +if (!addr->net) { +pr_warn_ratelimited ("%s: missing namespace\n" , __func__); +return -EINVAL ; + } +if (src_in->sa_family ==AF_INET ) {struct rtable *rt =NULL ; const struct sockaddr_in *dst_in4 =
@@ -555,7 +560,6 @@ static int addr_resolve(struct sockaddr } addr->bound_dev_if = ndev->ifindex; - addr->net =dev_net (ndev);dev_put (ndev);return ret;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/ib-core-namespace-is-mandatory-input-for-address-resolution.patch