All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipv6: parameter p.name is empty
@ 2021-06-03  9:50 zhang kai
  2021-06-03 13:33 ` Nicolas Dichtel
  0 siblings, 1 reply; 5+ messages in thread
From: zhang kai @ 2021-06-03  9:50 UTC (permalink / raw)
  To: davem, yoshfuji, dsahern, kuba, netdev, linux-kernel; +Cc: zhang kai

so do not check it.

Signed-off-by: zhang kai <zhangkaiheb@126.com>
---
 net/ipv6/addrconf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index b0ef65eb9..4c6b3fc7e 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -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);
 }
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] ipv6: parameter p.name is empty
  2021-06-03  9:50 [PATCH] ipv6: parameter p.name is empty zhang kai
@ 2021-06-03 13:33 ` Nicolas Dichtel
  2021-06-03 15:15   ` David Ahern
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Dichtel @ 2021-06-03 13:33 UTC (permalink / raw)
  To: zhang kai, davem, yoshfuji, dsahern, kuba, netdev, linux-kernel

Le 03/06/2021 à 11:50, zhang kai a écrit :
> so do not check it.
> 
> Signed-off-by: zhang kai <zhangkaiheb@126.com>
> ---
>  net/ipv6/addrconf.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
> index b0ef65eb9..4c6b3fc7e 100644
> --- a/net/ipv6/addrconf.c
> +++ b/net/ipv6/addrconf.c
> @@ -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()

Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ipv6: parameter p.name is empty
  2021-06-03 13:33 ` Nicolas Dichtel
@ 2021-06-03 15:15   ` David Ahern
  2021-06-03 16:29     ` Nicolas Dichtel
  0 siblings, 1 reply; 5+ messages in thread
From: David Ahern @ 2021-06-03 15:15 UTC (permalink / raw)
  To: nicolas.dichtel, zhang kai, davem, yoshfuji, dsahern, kuba,
	netdev, linux-kernel

On 6/3/21 7:33 AM, Nicolas Dichtel wrote:
> Le 03/06/2021 à 11:50, zhang kai a écrit :
>> so do not check it.
>>
>> Signed-off-by: zhang kai <zhangkaiheb@126.com>
>> ---
>>  net/ipv6/addrconf.c | 3 ---
>>  1 file changed, 3 deletions(-)
>>
>> diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
>> index b0ef65eb9..4c6b3fc7e 100644
>> --- a/net/ipv6/addrconf.c
>> +++ b/net/ipv6/addrconf.c
>> @@ -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()
> 
> Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
> 

A patch was sent yesterday, "sit: set name of device back to struct
parms", to set the name field in params.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ipv6: parameter p.name is empty
  2021-06-03 15:15   ` David Ahern
@ 2021-06-03 16:29     ` Nicolas Dichtel
  2021-06-03 17:09       ` David Ahern
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Dichtel @ 2021-06-03 16:29 UTC (permalink / raw)
  To: David Ahern, zhang kai, davem, yoshfuji, dsahern, kuba, netdev,
	linux-kernel

Le 03/06/2021 à 17:15, David Ahern a écrit :
> On 6/3/21 7:33 AM, Nicolas Dichtel wrote:
>> Le 03/06/2021 à 11:50, zhang kai a écrit :
>>> so do not check it.
>>>
>>> Signed-off-by: zhang kai <zhangkaiheb@126.com>
>>> ---
>>>  net/ipv6/addrconf.c | 3 ---
>>>  1 file changed, 3 deletions(-)
>>>
>>> diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
>>> index b0ef65eb9..4c6b3fc7e 100644
>>> --- a/net/ipv6/addrconf.c
>>> +++ b/net/ipv6/addrconf.c
>>> @@ -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()
>>
>> Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
>>
> 
> 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 ...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ipv6: parameter p.name is empty
  2021-06-03 16:29     ` Nicolas Dichtel
@ 2021-06-03 17:09       ` David Ahern
  0 siblings, 0 replies; 5+ messages in thread
From: David Ahern @ 2021-06-03 17:09 UTC (permalink / raw)
  To: nicolas.dichtel, zhang kai, davem, yoshfuji, dsahern, kuba,
	netdev, linux-kernel

On 6/3/21 10:29 AM, Nicolas Dichtel wrote:
> Le 03/06/2021 à 17:15, David Ahern a écrit :
>> On 6/3/21 7:33 AM, Nicolas Dichtel wrote:
>>> Le 03/06/2021 à 11:50, zhang kai a écrit :
>>>> so do not check it.
>>>>
>>>> Signed-off-by: zhang kai <zhangkaiheb@126.com>
>>>> ---
>>>>  net/ipv6/addrconf.c | 3 ---
>>>>  1 file changed, 3 deletions(-)
>>>>
>>>> diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
>>>> index b0ef65eb9..4c6b3fc7e 100644
>>>> --- a/net/ipv6/addrconf.c
>>>> +++ b/net/ipv6/addrconf.c
>>>> @@ -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()
>>>
>>> Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
>>>
>>
>> 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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-03 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03  9:50 [PATCH] ipv6: parameter p.name is empty zhang kai
2021-06-03 13:33 ` Nicolas Dichtel
2021-06-03 15:15   ` David Ahern
2021-06-03 16:29     ` Nicolas Dichtel
2021-06-03 17:09       ` David Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.