Steven Rostedt (VMware)
353da87921
ftrace: Fix memory leak caused by not freeing entry in unregister_ftrace_direct()
kmemleak reported the following:
unreferenced object 0xffff90d47127a920 (size 32):
comm "modprobe", pid 1766, jiffies 4294792031 (age 162.568s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 22 01 00 00 00 00 ad de ........".......
00 78 12 a7 ff ff ff ff 00 00 b6 c0 ff ff ff ff .x..............
backtrace:
[<00000000bb79e72e>] register_ftrace_direct+0xcb/0x3a0
[<00000000295e4f79>] do_one_initcall+0x72/0x340
[<00000000873ead18>] do_init_module+0x5a/0x220
[<00000000974d9de5>] load_module+0x2235/0x2550
[<0000000059c3d6ce>] __do_sys_finit_module+0xc0/0x120
[<000000005a8611b4>] do_syscall_64+0x60/0x230
[<00000000a0cdc49e>] entry_SYSCALL_64_after_hwframe+0x49/0xb3
The entry used to save the direct descriptor needs to be freed
when unregistering.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2020-04-22 22:04:27 -04:00
..
2020-03-05 13:42:40 -07:00
2020-03-30 19:52:37 -07:00
2020-01-02 21:56:44 -05:00
2019-08-01 14:16:21 -07:00
2020-04-22 22:04:27 -04:00
2020-02-25 19:07:58 -05:00
2020-01-30 09:46:28 -05:00
2020-01-30 09:46:28 -05:00
2017-11-02 11:10:55 +01:00
2019-11-13 09:37:28 -05:00
2020-01-13 13:19:38 -05:00
2020-03-27 16:39:01 -04:00
2017-11-02 11:10:55 +01:00
2020-02-20 17:43:41 -05:00
2019-10-18 15:01:57 +02:00
2018-08-16 19:08:06 -04:00
2020-01-31 12:59:26 -05:00
2020-01-13 13:19:38 -05:00
2018-08-16 19:08:06 -04:00
2020-02-01 13:10:15 -05:00
2020-02-01 13:09:23 -05:00
2020-03-03 17:33:43 -05:00
2019-10-28 12:38:26 +01:00
2018-08-16 19:08:06 -04:00
2019-12-19 18:24:17 -05:00
2020-04-22 21:24:00 -04:00
2020-01-02 19:04:57 -05:00
2020-04-14 22:02:10 -04:00
2020-03-27 16:39:02 -04:00
2019-12-10 10:11:00 +01:00
2020-03-19 19:11:19 -04:00
2020-01-13 13:19:38 -05:00
2020-03-03 17:33:43 -05:00
2020-01-13 13:19:38 -05:00
2020-01-13 13:19:38 -05:00
2018-07-30 18:41:04 -04:00
2018-08-16 19:08:06 -04:00
2020-03-27 16:39:02 -04:00
2020-01-13 13:19:38 -05:00
2017-11-02 11:10:55 +01:00
2020-03-19 17:48:36 -04:00
2018-08-16 19:08:06 -04:00
2019-02-13 08:16:40 +01:00
2019-10-12 20:48:06 -04:00
2019-05-25 23:04:42 -04:00
2020-01-27 10:56:02 -05:00
2020-01-22 07:09:20 -05:00
2020-01-30 09:46:10 -05:00
2020-01-13 13:19:38 -05:00
2018-01-23 15:57:29 -05:00
2020-01-13 13:19:38 -05:00
2020-01-21 18:39:54 -05:00
2020-01-02 22:04:07 -05:00
2020-01-24 18:06:48 -05:00
2019-11-14 13:15:11 -05:00
2020-02-06 07:12:11 +00:00
2020-02-24 16:17:14 -08:00
2020-04-03 11:30:50 -04:00
2020-03-27 16:39:02 -04:00
2019-12-19 18:26:00 -05:00
2018-08-16 19:08:06 -04:00