Shang XiaoJing
b0822faebd
ocfs2: fix memory leak in ocfs2_stack_glue_init()
...
[ Upstream commit 13b6269dd022aaa69ca8d1df374ab327504121cf ]
ocfs2_table_header should be free in ocfs2_stack_glue_init() if
ocfs2_sysfs_init() failed, otherwise kmemleak will report memleak.
BUG: memory leak
unreferenced object 0xffff88810eeb5800 (size 128):
comm "modprobe", pid 4507, jiffies 4296182506 (age 55.888s)
hex dump (first 32 bytes):
c0 40 14 a0 ff ff ff ff 00 00 00 00 01 00 00 00 .@..............
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<000000001e59e1cd>] __register_sysctl_table+0xca/0xef0
[<00000000c04f70f7>] 0xffffffffa0050037
[<000000001bd12912>] do_one_initcall+0xdb/0x480
[<0000000064f766c9>] do_init_module+0x1cf/0x680
[<000000002ba52db0>] load_module+0x6441/0x6f20
[<000000009772580d>] __do_sys_finit_module+0x12f/0x1c0
[<00000000380c1f22>] do_syscall_64+0x3f/0x90
[<000000004cf473bc>] entry_SYSCALL_64_after_hwframe+0x63/0xcd
Link: https://lkml.kernel.org/r/41651ca1-432a-db34-eb97-d35744559de1@linux.alibaba.com
Fixes: 3878f110f71a ("ocfs2: Move the hb_ctl_path sysctl into the stack glue.")
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
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-01-18 11:30:05 +01:00
..
2021-03-04 09:39:50 +01:00
2019-12-01 09:17:02 +01:00
2022-06-14 16:59:28 +02:00
2020-01-04 19:13:16 +01:00
2021-10-27 09:53:13 +02:00
2018-01-31 17:18:35 -08:00
2021-04-14 08:22:32 +02:00
2018-04-05 21:36:21 -07:00
2019-12-01 09:17:15 +01:00
2017-11-15 18:21:01 -08:00
2019-06-19 08:18:00 +02:00
2018-11-21 09:19:18 +01:00
2021-10-06 15:31:09 +02:00
2018-06-07 17:34:33 -07:00
2019-05-22 07:37:40 +02:00
2018-01-31 17:18:35 -08:00
2018-01-31 17:18:35 -08:00
2021-11-26 11:35:57 +01:00
2018-06-07 17:34:33 -07:00
2021-07-20 16:15:49 +02:00
2018-04-05 21:36:22 -07:00
2018-08-17 16:20:27 -07:00
2019-11-06 13:05:58 +01:00
2020-01-17 19:47:17 +01:00
2020-02-24 08:34:52 +01:00
2019-10-29 09:19:38 +01:00
2019-02-12 19:47:18 +01:00
2018-06-07 17:34:34 -07:00
2019-12-01 09:17:15 +01:00
2022-11-03 23:52:24 +09:00
2020-06-30 23:17:17 -04:00
2018-01-31 17:18:35 -08:00
2018-04-05 21:36:21 -07:00
2020-08-21 11:05:33 +02:00
2019-12-17 20:35:17 +01:00
2018-08-17 16:20:27 -07:00
2019-04-03 06:26:23 +02:00
2018-03-26 11:13:09 +02:00
2023-01-18 11:30:05 +01:00
2019-12-01 09:17:36 +01:00
2020-08-21 11:05:33 +02:00
2022-03-23 09:10:44 +01:00
2018-06-12 16:19:22 -07:00
2018-04-05 21:36:22 -07:00
2019-12-01 09:16:10 +01:00