]> git.baikalelectronics.ru Git - kernel.git/commit
JFS: Check for NULL before calling posix_acl_equiv_mode()
authorWilliam Burrow <wbkernel@gmail.com>
Thu, 29 May 2014 02:05:55 +0000 (21:05 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 29 May 2014 02:19:02 +0000 (21:19 -0500)
commit7efe9bbd411a5c08c4c2d8e334d24bce10209bd1
treebd183efdd97319715b1054b03341f92cb61173c2
parent096a7d7327f8e49318032b2f5f81839d8ef8ebee
JFS: Check for NULL before calling posix_acl_equiv_mode()

Check for NULL before using the acl in the access type switch
statement. This seems to be consistent with what is done in the JFFS
and ext4 filesystems and with the behaviour of JFS in the 3.13 kernel.
The bug seemed to be introduced in commit 97915ff1.

The bug results in a kernel Oops, NULL dereference could not be handled
when accessing a JFS filesystem. The rdiff-backup process seemed to
trigger the bug. See also reported bug #75341:

   https://bugzilla.kernel.org/show_bug.cgi?id=75341

Signed-off-by: William Burrow <wbkernel@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/acl.c