kernel_optimize_test/fs/gfs2
Andreas Gruenbacher f794c839df gfs2: Fix error handling in init_statfs
commit 5d49d3508b3c67201bd3e1bf7f4ef049111b7051 upstream.

On an error path, init_statfs calls iput(pn) after pn has already been put.
Fix that by setting pn to NULL after the initial iput.

Fixes: 97fd734ba1 ("gfs2: lookup local statfs inodes prior to journal recovery")
Cc: stable@vger.kernel.org # v5.10+
Reported-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-14 16:55:38 +02:00
..
acl.c
acl.h
aops.c
aops.h
bmap.c gfs2: Recursive gfs2_quota_hold in gfs2_iomap_end 2021-03-04 11:38:44 +01:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c gfs2: Fix underflow in gfs2_page_mkwrite 2021-07-14 16:55:38 +02:00
gfs2.h
glock.c gfs2: Fix use-after-free in gfs2_glock_shrink_scan 2021-06-18 10:00:04 +02:00
glock.h
glops.c
glops.h
incore.h
inode.c
inode.h
Kconfig
lock_dlm.c
log.c gfs2: fix use-after-free in trans_drain 2021-03-30 14:31:49 +02:00
log.h
lops.c
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c gfs2: Fix error handling in init_statfs 2021-07-14 16:55:38 +02:00
quota.c
quota.h
recovery.c gfs2: Add common helper for holding and releasing the freeze glock 2021-03-25 09:04:14 +01:00
recovery.h
rgrp.c
rgrp.h
super.c gfs2: report "already frozen/thawed" errors 2021-04-16 11:43:20 +02:00
super.h
sys.c
sys.h
trace_gfs2.h
trans.c gfs2: fix use-after-free in trans_drain 2021-03-30 14:31:49 +02:00
trans.h
util.c gfs2: bypass signal_our_withdraw if no journal 2021-03-25 09:04:14 +01:00
util.h gfs2: Add common helper for holding and releasing the freeze glock 2021-03-25 09:04:14 +01:00
xattr.c
xattr.h