lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e3e6a453-6a73-3f88-e94b-fa39b38252d9@virtuozzo.com>
Date:   Fri, 23 Oct 2020 13:16:01 +0300
From:   Vasily Averin <vvs@...tuozzo.com>
To:     Zhang Qilong <zhangqilong3@...wei.com>, davem@...emloft.net,
        kuba@...nel.org
Cc:     lirongqing@...du.com, roopa@...ulusnetworks.com,
        netdev@...r.kernel.org
Subject: Re: [PATCH -next] neigh: remove the extra slash

On 10/23/20 1:01 PM, Zhang Qilong wrote:
> The normal path has only one slash.

it is not normal path
this string is used to calculate number of symbols in "net/%s/neigh/%s" used below

> Signed-off-by: Zhang Qilong <zhangqilong3@...wei.com>
> ---
>  net/core/neighbour.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/core/neighbour.c b/net/core/neighbour.c
> index 8e39e28b0a8d..503501842a7d 100644
> --- a/net/core/neighbour.c
> +++ b/net/core/neighbour.c
> @@ -3623,7 +3623,7 @@ int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p,
>  	int i;
>  	struct neigh_sysctl_table *t;
>  	const char *dev_name_source;
> -	char neigh_path[ sizeof("net//neigh/") + IFNAMSIZ + IFNAMSIZ ];
> +	char neigh_path[sizeof("net/neigh/") + IFNAMSIZ + IFNAMSIZ];
>  	char *p_name;
>  
>  	t = kmemdup(&neigh_sysctl_template, sizeof(*t), GFP_KERNEL);
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ