kernel_optimize_test/fs/gfs2
Andreas Gruenbacher 6ff9b09e00 gfs2: Get rid of potential double-freeing in gfs2_create_inode
In gfs2_create_inode, after setting and releasing the acl / default_acl, the
acl / default_acl pointers are not set to NULL as they should be.  In that
state, when the function reaches label fail_free_acls, gfs2_create_inode will
try to release the same acls again.

Fix that by setting the pointers to NULL after releasing the acls.  Slightly
simplify the logic.  Also, posix_acl_release checks for NULL already, so
there is no need to duplicate those checks here.

Fixes: e01580bf9e ("gfs2: use generic posix ACL infrastructure")
Reported-by: Pan Bian <bianpan2016@163.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # v4.9+
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
2018-12-11 21:44:29 +01:00
..
acl.c
acl.h
aops.c gfs2: Fix the gfs2_invalidatepage description 2018-12-11 17:50:35 +01:00
aops.h
bmap.c gfs2: add more timing info to journal recovery process 2018-12-11 17:50:36 +01:00
bmap.h
dentry.c
dir.c gfs2: Pass resource group to rgblk_free 2018-10-12 07:33:07 -05:00
dir.h
export.c
file.c gfs2: Move rs_{sizehint, rgd_gh} fields into the inode 2018-10-12 07:29:14 -05:00
gfs2.h
glock.c gfs2: Use fs_* functions instead of pr_* function where we can 2018-10-05 11:16:54 -05:00
glock.h
glops.c gfs2: read journal in large chunks to locate the head 2018-12-11 17:50:36 +01:00
glops.h
incore.h gfs2: Remove vestigial bd_ops 2018-12-11 21:43:58 +01:00
inode.c gfs2: Get rid of potential double-freeing in gfs2_create_inode 2018-12-11 21:44:29 +01:00
inode.h gfs2: Clean up gfs2_is_{ordered,writeback} 2018-12-11 17:50:35 +01:00
Kconfig
lock_dlm.c gfs2: Use fs_* functions instead of pr_* function where we can 2018-10-05 11:16:54 -05:00
log.c gfs2: Remove vestigial bd_ops 2018-12-11 21:43:58 +01:00
log.h gfs2: Clean up gfs2_is_{ordered,writeback} 2018-12-11 17:50:35 +01:00
lops.c gfs2: read journal in large chunks to locate the head 2018-12-11 17:50:36 +01:00
lops.h gfs2: read journal in large chunks to locate the head 2018-12-11 17:50:36 +01:00
main.c gfs2: Move rs_{sizehint, rgd_gh} fields into the inode 2018-10-12 07:29:14 -05:00
Makefile
meta_io.c
meta_io.h
ops_fstype.c gfs2: read journal in large chunks to locate the head 2018-12-11 17:50:36 +01:00
quota.c gfs2: Fix some minor typos 2018-10-12 07:31:21 -05:00
quota.h
recovery.c gfs2: read journal in large chunks to locate the head 2018-12-11 17:50:36 +01:00
recovery.h gfs2: read journal in large chunks to locate the head 2018-12-11 17:50:36 +01:00
rgrp.c gfs2: Put bitmap buffers in put_super 2018-11-09 10:55:27 +00:00
rgrp.h gfs2: Pass resource group to rgblk_free 2018-10-12 07:33:07 -05:00
super.c gfs2: read journal in large chunks to locate the head 2018-12-11 17:50:36 +01:00
super.h
sys.c
sys.h
trace_gfs2.h
trans.c gfs2: Remove vestigial bd_ops 2018-12-11 21:43:58 +01:00
trans.h
util.c gfs2: slow the deluge of io error messages 2018-10-05 10:51:11 -05:00
util.h gfs2: Use fs_* functions instead of pr_* function where we can 2018-10-05 11:16:54 -05:00
xattr.c gfs2: Pass resource group to rgblk_free 2018-10-12 07:33:07 -05:00
xattr.h