linux-stable/fs/ocfs2
Artem Chernyshev 5997278514 fs: ocfs2: namei: check return value of ocfs2_add_entry()
[ Upstream commit 6b72e5f9e7 ]

Process result of ocfs2_add_entry() in case we have an error
value.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Link: https://lkml.kernel.org/r/20230803145417.177649-1-artem.chernyshev@red-soft.ru
Fixes: ccd979bdbc ("[PATCH] OCFS2: The Second Oracle Cluster Filesystem")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Kurt Hackel <kurt.hackel@oracle.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 10:46:55 +02:00
..
cluster ocfs2: fix a use after free on error 2021-03-03 18:22:49 +01:00
dlm fs/ocfs2/dlm/dlmdebug.c: fix a sleep-in-atomic-context bug in dlm_print_one_mle() 2019-12-01 09:13:48 +01:00
dlmfs ocfs2: dlmfs: fix error handling of user_dlm_destroy_lock 2022-06-14 16:53:53 +02:00
Kconfig
Makefile ocfs2: improve ocfs2 Makefile 2019-02-12 19:46:09 +01:00
acl.c ocfs2: fix passing zero to 'PTR_ERR' warning 2020-01-04 13:59:56 +01:00
acl.h
alloc.c treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
alloc.h
aops.c ocfs2: fix data corruption after failed write 2023-04-05 11:14:19 +02:00
aops.h
blockcheck.c
blockcheck.h
buffer_head_io.c ocfs2: don't put and assigning null to bh allocated outside 2019-12-01 09:14:00 +01:00
buffer_head_io.h
dcache.c fs/ocfs2: fix race in ocfs2_dentry_attach_lock() 2019-06-19 08:20:54 +02:00
dcache.h
dir.c treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
dir.h
dlmglue.c ocfs2: drop acl cache for directories too 2021-10-06 15:05:04 +02:00
dlmglue.h
export.c ocfs2: fix ocfs2 read inode data panic in ocfs2_iget 2019-05-21 18:50:17 +02:00
export.h
extent_map.c treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
extent_map.h
file.c ocfs2: check new file size on fallocate call 2023-06-21 15:38:58 +02:00
file.h
filecheck.c ocfs2: fix snprintf() checking 2021-07-20 16:17:36 +02:00
filecheck.h
heartbeat.c
heartbeat.h
inode.c
inode.h
ioctl.c fs: ocfs2: fix a possible null-pointer dereference in ocfs2_info_scan_inode_alloc() 2019-11-06 12:43:15 +01:00
ioctl.h
journal.c ocfs2: call journal flush to mark journal as empty after journal recovery when mount 2020-01-17 19:45:55 +01:00
journal.h ocfs2: fix a NULL pointer dereference when call ocfs2_update_inode_fsync_trans() 2020-02-28 16:36:08 +01:00
localalloc.c ocfs2: fix panic due to ocfs2_wq is null 2019-10-29 09:17:00 +01:00
localalloc.h
locks.c
locks.h
mmap.c
mmap.h
move_extents.c ocfs2: fix non-auto defrag path not working issue 2023-03-11 16:26:44 +01:00
move_extents.h
namei.c fs: ocfs2: namei: check return value of ocfs2_add_entry() 2023-09-23 10:46:55 +02:00
namei.h
ocfs1_fs_compat.h
ocfs2.h ocfs2: change slot number type s16 to u16 2020-08-21 09:48:19 +02:00
ocfs2_fs.h ocfs2: fix value of OCFS2_INVALID_SLOT 2020-06-30 15:38:08 -04:00
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
ocfs2_trace.h
quota.h
quota_global.c quota: Check that quota is not dirty before release 2019-12-17 20:39:43 +01:00
quota_local.c
refcounttree.c treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
refcounttree.h
reservations.c
reservations.h
resize.c
resize.h
slot_map.c
slot_map.h
stack_o2cb.c
stack_user.c
stackglue.c ocfs2: fix memory leak in ocfs2_stack_glue_init() 2023-01-18 09:26:09 +01:00
stackglue.h ocfs2: remove ocfs2_is_o2cb_active() 2019-12-01 09:14:20 +01:00
suballoc.c ocfs2: change slot number type s16 to u16 2020-08-21 09:48:19 +02:00
suballoc.h
super.c ocfs2: fix use-after-free when unmounting read-only filesystem 2023-06-21 15:38:58 +02:00
super.h
symlink.c
symlink.h
sysfile.c
sysfile.h
uptodate.c
uptodate.h
xattr.c treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
xattr.h