+ rtnetlink-fix-netdevice-name-corruption.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     rtnetlink: fix netdevice name corruption

has been added to the -mm tree.  Its filename is

     rtnetlink-fix-netdevice-name-corruption.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: rtnetlink: fix netdevice name corruption
From: Patrick McHardy <kaber@xxxxxxxxx>

When changing a device by ifindex without including a IFLA_IFNAME attribute,
the ifname variable contains random garbage and is used to change the device
name.

Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 net/core/rtnetlink.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN net/core/rtnetlink.c~rtnetlink-fix-netdevice-name-corruption net/core/rtnetlink.c
--- a/net/core/rtnetlink.c~rtnetlink-fix-netdevice-name-corruption
+++ a/net/core/rtnetlink.c
@@ -394,6 +394,8 @@ static int rtnl_setlink(struct sk_buff *
 
 	if (tb[IFLA_IFNAME])
 		nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ);
+	else
+		ifname[0] = '\0';
 
 	err = -EINVAL;
 	ifm = nlmsg_data(nlh);
_

Patches currently in -mm which might be from kaber@xxxxxxxxx are

git-net.patch
rtnetlink-fix-netdevice-name-corruption.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux