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>] [day] [month] [year] [list]
Message-ID: <20080420145300.GC32520@martell.zuzino.mipt.ru>
Date:	Sun, 20 Apr 2008 18:53:00 +0400
From:	Alexey Dobriyan <adobriyan@...il.com>
To:	akpm@...ux-foundation.org
Cc:	linux-kernel@...r.kernel.org, den@...nvz.org, dhowells@...hat.com,
	ebiederm@...ssion.com
Subject: Re: + afs-use-non-racy-method-for-proc-entries-creation.patch
	added to -mm tree

On Tue, Apr 15, 2008 at 04:56:01PM -0700, akpm@...ux-foundation.org wrote:
> --- a/fs/afs/proc.c~afs-use-non-racy-method-for-proc-entries-creation
> +++ a/fs/afs/proc.c
> @@ -395,26 +396,20 @@ int afs_proc_cell_setup(struct afs_cell 
>  	if (!cell->proc_dir)
>  		goto error_dir;
>  
> -	p = create_proc_entry("servers", 0, cell->proc_dir);
> +	p = proc_create_data("servers", 0, cell->proc_dir,
> +			     &afs_proc_cell_servers_fops, cell);
>  	if (!p)
>  		goto error_servers;
> -	p->proc_fops = &afs_proc_cell_servers_fops;
> -	p->owner = THIS_MODULE;
> -	p->data = cell;
>  
> -	p = create_proc_entry("vlservers", 0, cell->proc_dir);
> +	p = proc_create_data("vlservers", 0, cell->proc_dir,
> +			     &afs_proc_cell_vlservers_fops, cell);
>  	if (!p)
>  		goto error_vlservers;
> -	p->proc_fops = &afs_proc_cell_vlservers_fops;
> -	p->owner = THIS_MODULE;
> -	p->data = cell;
>  
> -	p = create_proc_entry("volumes", 0, cell->proc_dir);
> +	p = proc_create_data("volumes", 0, cell->proc_dir,
> +			     &afs_proc_cell_volumes_fops, cell);
>  	if (!p)
>  		goto error_volumes;
> -	p->proc_fops = &afs_proc_cell_volumes_fops;
> -	p->owner = THIS_MODULE;
> -	p->data = cell;

Checks for NULL "cell" are still in place, however.
In afs_proc_cell_servers_open(), afs_proc_cell_vlservers_open(), and
afs_proc_cell_volumes_fops().

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ