[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 05/26: commit 0c27922e4933ceb86644f4a9b1af212ffe5aad75
From: |
Samuel Thibault |
Subject: |
[hurd] 05/26: commit 0c27922e4933ceb86644f4a9b1af212ffe5aad75 |
Date: |
Tue, 22 Sep 2015 21:51:47 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit d22caacba224d7c04eb586105e822b5ad3a1c9b8
Author: Eric Dumazet <address@hidden>
Date: Mon Jun 8 03:49:24 2009 +0000
commit 0c27922e4933ceb86644f4a9b1af212ffe5aad75
net: dev_addr_init() fix
commit f001fde5eadd915f4858d22ed70d7040f48767cf
(net: introduce a list of device addresses dev_addr_list (v6))
added one regression Vegard Nossum found in its testings.
With kmemcheck help, Vegard found some uninitialized memory
was read and reported to user, potentialy leaking kernel data.
( thread can be found on http://lkml.org/lkml/2009/5/30/177 )
dev_addr_init() incorrectly uses sizeof() operator. We were
initializing one byte instead of MAX_ADDR_LEN bytes.
Reported-by: Vegard Nossum <address@hidden>
Signed-off-by: Eric Dumazet <address@hidden>
Acked-by: Jiri Pirko <address@hidden>
Signed-off-by: David S. Miller <address@hidden>
---
libdde_linux26/lib/src/net/core/dev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libdde_linux26/lib/src/net/core/dev.c
b/libdde_linux26/lib/src/net/core/dev.c
index 958345b..f01d355 100644
--- a/libdde_linux26/lib/src/net/core/dev.c
+++ b/libdde_linux26/lib/src/net/core/dev.c
@@ -3577,8 +3577,8 @@ static int dev_addr_init(struct net_device *dev)
/* rtnl_mutex must be held here */
INIT_LIST_HEAD(&dev->dev_addr_list);
- memset(addr, 0, sizeof(*addr));
- err = __hw_addr_add(&dev->dev_addr_list, NULL, addr, sizeof(*addr),
+ memset(addr, 0, sizeof(addr));
+ err = __hw_addr_add(&dev->dev_addr_list, NULL, addr, sizeof(addr),
NETDEV_HW_ADDR_T_LAN);
if (!err) {
/*
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch dde updated (ebaa9e1 -> 8e94601), Samuel Thibault, 2015/09/22
- [hurd] 07/26: Fix build, Samuel Thibault, 2015/09/22
- [hurd] 02/26: commit 260d703adc5f275e3ba7ddff6e2e0217bc613b35, Samuel Thibault, 2015/09/22
- [hurd] 01/26: commit dc1f8bf68b311b1537cb65893430b6796118498a, Samuel Thibault, 2015/09/22
- [hurd] 10/26: Add ethoc.h, Samuel Thibault, 2015/09/22
- [hurd] 13/26: udpate ethtool.h, Samuel Thibault, 2015/09/22
- [hurd] 11/26: Cherry-pick phy.h updates, Samuel Thibault, 2015/09/22
- [hurd] 05/26: commit 0c27922e4933ceb86644f4a9b1af212ffe5aad75,
Samuel Thibault <=
- [hurd] 16/26: Add devres.c, Samuel Thibault, 2015/09/22
- [hurd] 18/26: commit d5a9e24afb4ab38110ebb777588ea0bd0eacbd0a, Samuel Thibault, 2015/09/22
- [hurd] 24/26: Merge remote-tracking branch 'incubator/dde' into dde-upstream, Samuel Thibault, 2015/09/22
- [hurd] 08/26: commit 042a53a9e437feaf2230dd2cadcecfae9c7bfe05, Samuel Thibault, 2015/09/22
- [hurd] 22/26: Install missing queue.h, Samuel Thibault, 2015/09/22
- [hurd] 12/26: update pci_ids, Samuel Thibault, 2015/09/22
- [hurd] 17/26: Add pr_cont, Samuel Thibault, 2015/09/22
- [hurd] 26/26: Move files, Samuel Thibault, 2015/09/22
- [hurd] 14/26: update workqueue.h, Samuel Thibault, 2015/09/22
- [hurd] 25/26: Merge branch 'dde-upstream' into dde, Samuel Thibault, 2015/09/22