Bug#754420: NULL pointer dereference in set_nfsv4_acl_one()
Control: tag -1 patch
> See my report of the same bug(*) in Ubuntu at
> https://bugs.launchpad.net/debian/+source/linux/+bug/1348670
>
> (*) identification based on a comparison of the stack traces and on the
> fact that it is a regression introduced in 3.2.60.
After applying the patch proposed by Sergio Gelato at
https://bugs.launchpad.net/debian/+source/linux/+bug/1348670/comments/5 , I do
not see this bug any more.
--- a/fs/nfsd/vfs.c 2014-06-09 14:29:18.000000000 +0200
+++ b/fs/nfsd/vfs.c 2014-08-14 13:33:46.693311101 +0200
@@ -508,6 +508,8 @@
char *buf = NULL;
int error = 0;
+ if (!pacl)
+ return vfs_setxattr(dentry, key, NULL, 0, 0);
buflen = posix_acl_xattr_size(pacl->a_count);
buf = kmalloc(buflen, GFP_KERNEL);
error = -ENOMEM;
Reply to: