ipv6: parameter p.name is empty
Subsystems (3)
PATCH 1/1 ipv6: parameter p.name is empty
so do not check it.
--- net/ipv6/addrconf.c | 3 --- 1 file changed, 3 deletions(-)
net/ipv6/addrconf.c +0 -3
@@ -2833,9 +2833,6 @@ static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev,if (err)return err; - dev =__dev_get_by_name (net, p.name); -if (!dev) -return -ENOBUFS ;return dev_open (dev,NULL ); }
Signature · 1 line
2.17.1
Le 03/06/2021 à 11:50, zhang kai a écrit :
Quoted 13 lines
so do not check it.
Signed-off-by zhang kai <[email protected]>--- net/ipv6/addrconf.c | 3 --- 1 file changed, 3 deletions(-)net/ipv6/addrconf.c +0
-0
net/ipv6/addrconf.c static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev, · line 2838
Quoted 9 lines
net/ipv6/addrconf.c +0
-3@@ -2833,9 +2833,6 @@ static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev,if (err)return err; - dev =__dev_get_by_name (net, p.name); -if (!dev) -return -ENOBUFS ;return dev_open (dev,NULL ); }
This bug seems to exist since the beginning of the SIT driver (24 years!):
https://git.kernel.org/pub/scm/linux/kernel/git/davem/netdev-vger-cvs.git/commit/?id=e5afd356a411a
Search addrconf_set_dstaddr()
Quoted 27 lines · Nicolas Dichtel
Le 03/06/2021 à 11:50, zhang kai a écrit :
Quoted 13 lines
so do not check it.
Signed-off-by zhang kai <[email protected]>--- net/ipv6/addrconf.c | 3 --- 1 file changed, 3 deletions(-)net/ipv6/addrconf.c +0
-0net/ipv6/addrconf.c static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev, · line 2838
Quoted 9 lines
net/ipv6/addrconf.c +0
-3@@ -2833,9 +2833,6 @@ static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev,if (err)return err; - dev =__dev_get_by_name (net, p.name); -if (!dev) -return -ENOBUFS ;return dev_open (dev,NULL ); }This bug seems to exist since the beginning of the SIT driver (24 years!):
https://git.kernel.org/pub/scm/linux/kernel/git/davem/netdev-vger-cvs.git/commit/?id=e5afd356a411a
Searchaddrconf_set_dstaddr()
Quoted 2 lines
Acked-by Nicolas Dichtel <[email protected]>
A patch was sent yesterday, "sit: set name of device back to struct parms", to set the name field in params.
Le 03/06/2021 à 17:15, David Ahern a écrit :
Quoted 28 lines · Nicolas Dichtel
Quoted 27 lines
Le 03/06/2021 à 11:50, zhang kai a écrit :
Quoted 13 lines
so do not check it.
Signed-off-by zhang kai <[email protected]>--- net/ipv6/addrconf.c | 3 --- 1 file changed, 3 deletions(-)net/ipv6/addrconf.c +0
-0net/ipv6/addrconf.c static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev, · line 2838
Quoted 9 lines
net/ipv6/addrconf.c +0
-3@@ -2833,9 +2833,6 @@ static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev,if (err)return err; - dev =__dev_get_by_name (net, p.name); -if (!dev) -return -ENOBUFS ;return dev_open (dev,NULL ); }This bug seems to exist since the beginning of the SIT driver (24 years!):
https://git.kernel.org/pub/scm/linux/kernel/git/davem/netdev-vger-cvs.git/commit/?id=e5afd356a411a
Searchaddrconf_set_dstaddr()
Quoted 6 lines
Quoted 2 lines
Acked-by Nicolas Dichtel <[email protected]>A patch was sent yesterday, "sit: set name of device back to struct parms", to set the name field in params.
Oh yes, it was in my spam folder ...
Quoted 29 lines · Nicolas Dichtel
Le 03/06/2021 à 17:15, David Ahern a écrit :
Quoted 28 lines · Nicolas Dichtel
Quoted 27 lines
Le 03/06/2021 à 11:50, zhang kai a écrit :
Quoted 13 lines
so do not check it.
Signed-off-by zhang kai <[email protected]>--- net/ipv6/addrconf.c | 3 --- 1 file changed, 3 deletions(-)net/ipv6/addrconf.c +0
-0net/ipv6/addrconf.c static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev, · line 2838
Quoted 9 lines
net/ipv6/addrconf.c +0
-3@@ -2833,9 +2833,6 @@ static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev,if (err)return err; - dev =__dev_get_by_name (net, p.name); -if (!dev) -return -ENOBUFS ;return dev_open (dev,NULL ); }This bug seems to exist since the beginning of the SIT driver (24 years!):
https://git.kernel.org/pub/scm/linux/kernel/git/davem/netdev-vger-cvs.git/commit/?id=e5afd356a411a
Searchaddrconf_set_dstaddr()
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Acked-by Nicolas Dichtel <[email protected]>A patch was sent yesterday, "sit: set name of device back to struct parms", to set the name field in params.
Oh yes, it was in my spam folder ...
Really a question for zhang kai about the patches - why both of these.
And from there how did this ever work? addrconf_set_sit_dstaddr should have been failing for the last 24 years so why fix it vs just ripping it out.