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-next>] [day] [month] [year] [list]
Message-Id: <1192691425.27435.159.camel@twins>
Date:	Thu, 18 Oct 2007 09:10:25 +0200
From:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
To:	akpm@...ux-foundation.org
Cc:	jeffm@...e.com, hch@....de, mason@...e.com, vs@...esys.com,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: + reiserfs-fix-up-lockdep-warnings.patch added to -mm tree

On Wed, 2007-10-17 at 15:11 -0700, akpm@...ux-foundation.org wrote:

> Subject: reiserfs: fix up lockdep warnings
> From: Jeff Mahoney <jeffm@...e.com>
> 
> Add I_MUTEX_XATTR annotations to the inode locking in the reiserfs xattr code.
> 
> Signed-off-by: Jeff Mahoney <jeffm@...e.com>
> Cc: Christoph Hellwig <hch@....de>
> Cc: Chris Mason <mason@...e.com>
> Cc: "Vladimir V. Saveliev" <vs@...esys.com>
> Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>

Yep looks good,

want me to push this through the lockdep tree, or will you forward it?

In which case:

Acked-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>

> Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
> ---
> 
>  fs/reiserfs/xattr.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff -puN fs/reiserfs/xattr.c~reiserfs-fix-up-lockdep-warnings fs/reiserfs/xattr.c
> --- a/fs/reiserfs/xattr.c~reiserfs-fix-up-lockdep-warnings
> +++ a/fs/reiserfs/xattr.c
> @@ -484,7 +484,7 @@ reiserfs_xattr_set(struct inode *inode, 
>  	/* Resize it so we're ok to write there */
>  	newattrs.ia_size = buffer_size;
>  	newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
> -	mutex_lock(&xinode->i_mutex);
> +	mutex_lock_nested(&xinode->i_mutex, I_MUTEX_XATTR);
>  	err = notify_change(fp->f_path.dentry, &newattrs);
>  	if (err)
>  		goto out_filp;
> @@ -1223,7 +1223,8 @@ int reiserfs_xattr_init(struct super_blo
>  		if (!IS_ERR(dentry)) {
>  			if (!(mount_flags & MS_RDONLY) && !dentry->d_inode) {
>  				struct inode *inode = dentry->d_parent->d_inode;
> -				mutex_lock(&inode->i_mutex);
> +				mutex_lock_nested(&inode->i_mutex,
> +				                  I_MUTEX_XATTR);
>  				err = inode->i_op->mkdir(inode, dentry, 0700);
>  				mutex_unlock(&inode->i_mutex);
>  				if (err) {


Download attachment "signature.asc" of type "application/pgp-signature" (190 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ