acrn-kernel/ipc
Zhengchao Shao 28dad915ab ipc: fix memory leak in init_mqueue_fs()
[ Upstream commit 12b677f2c6 ]

When setup_mq_sysctls() failed in init_mqueue_fs(), mqueue_inode_cachep is
not released.  In order to fix this issue, the release path is reordered.

Link: https://lkml.kernel.org/r/20221209092929.1978875-1-shaozhengchao@huawei.com
Fixes: dc55e35f9e ("ipc: Store mqueue sysctls in the ipc namespace")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Cc: Alexey Gladkov <legion@kernel.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Jingyu Wang <jingyuwang_vip@163.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Waiman Long <longman@redhat.com>
Cc: Wei Yongjun <weiyongjun1@huawei.com>
Cc: YueHaibing <yuehaibing@huawei.com>
Cc: Yu Zhe <yuzhe@nfschina.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:01 +01:00
..
Makefile
compat.c
ipc_sysctl.c ipc: Remove extra braces 2022-05-03 17:25:58 -05:00
mq_sysctl.c
mqueue.c ipc: fix memory leak in init_mqueue_fs() 2022-12-31 13:32:01 +01:00
msg.c ipc/msg.c: fix percpu_counter use after free 2022-10-28 13:37:22 -07:00
msgutil.c
namespace.c ipc/msg: mitigate the lock contention with percpu counter 2022-10-03 14:21:44 -07:00
sem.c ipc/sem: Fix dangling sem_array access in semtimedop race 2022-12-05 10:54:44 -08:00
shm.c ipc/shm: call underlying open/close vm_ops 2022-11-22 18:50:42 -08:00
syscall.c
util.c ipc/util.c: cleanup and improve sysvipc_find_ipc() 2022-09-11 21:55:05 -07:00
util.h ipc/msg: mitigate the lock contention with percpu counter 2022-10-03 14:21:44 -07:00