]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: fix oops while creating privroot with selinux enabled
authorJeff Mahoney <jeffm@suse.com>
Tue, 23 Mar 2010 20:35:38 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:21 +0000 (16:31 -0700)
commit71eb641c6e89836d02ad516b46690b4a5d188c5b
tree9049d01ae8eee4ce948d5a63005c1baf0ceac5a4
parent34f24149886cf3ef8110e2345ec444f010fd6203
reiserfs: fix oops while creating privroot with selinux enabled

Commit c898ba4e ("reiserfs: add atomic addition of selinux attributes
during inode creation") contains a bug that will cause it to oops when
mounting a file system that didn't previously contain extended attributes
on a system using security.* xattrs.

The issue is that while creating the privroot during mount
reiserfs_security_init calls reiserfs_xattr_jcreate_nblocks which
dereferences the xattr root.  The xattr root doesn't exist, so we get an
oops.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=15309

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/xattr_security.c
include/linux/reiserfs_xattr.h