Patch "rtnl: RTM_GETNETCONF: fix wrong return value" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
rtnl: RTM_GETNETCONF: fix wrong return value
to the 4.4-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:
rtnl-rtm_getnetconf-fix-wrong-return-value.patch
and it can be found in the queue-4.4 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 foo@baz Mon Feb 29 14:33:50 PST 2016
From: Anton Protopopov <[email protected]>
Date: Tue, 16 Feb 2016 21:43:16 -0500
Subject: rtnl: RTM_GETNETCONF: fix wrong return value
From: Anton Protopopov <[email protected]>
[ Upstream commit a97eb33ff225f34a8124774b3373fd244f0e83ce ]
An error response from a RTM_GETNETCONF request can return the positive error value EINVAL in the struct nlmsgerr that can mislead userspace.
--- net/ipv4/devinet.c | 2 +- net/ipv6/addrconf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
net/ipv4/devinet.c +1 -1
@@ -1847,7 +1847,7 @@ static int inet_netconf_get_devconf(struif (err <0 ) goto errout; - err =EINVAL ; + err = -EINVAL ;if (!tb[NETCONFA_IFINDEX ]) goto errout;
net/ipv6/addrconf.c +1 -1
@@ -583,7 +583,7 @@ static int inet6_netconf_get_devconf(strif (err <0 ) goto errout; - err =EINVAL ; + err = -EINVAL ;if (!tb[NETCONFA_IFINDEX ]) goto errout;
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/rtnl-rtm_getnetconf-fix-wrong-return-value.patch