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-04-14 21:40:06 +02:00
2020-04-03 11:30:20 -07:00
2020-04-07 10:43:42 -07:00
2020-04-03 13:12:26 -07:00
2020-04-08 21:46:57 +02:00
2020-04-08 11:33:46 +02:00
2020-04-10 15:36:22 -07:00
2020-04-14 10:08:50 +02:00
2020-04-08 12:05:07 +02:00
2020-04-06 21:42:36 +02:00
2020-04-10 13:18:57 -07:00
2020-04-14 08:36:41 +02:00
2020-04-15 11:06:50 +02:00
2020-04-16 12:10:54 +02:00
2020-04-22 22:04:27 -04:00
2020-03-25 11:50:48 +01:00
2020-03-23 18:19:06 +01:00
2020-04-06 08:58:42 -07:00
2020-03-31 15:04:17 -07:00
2020-03-12 10:42:51 -04:00
2020-02-22 20:36:47 -05:00
2020-03-12 10:42:51 -04:00
2020-02-21 11:22:15 -08:00
2020-02-04 03:05:26 +00:00
2020-02-14 16:05:04 +01:00
2020-03-30 18:06:39 -07:00
2020-03-25 10:04:01 -05:00
2020-04-02 11:22:17 -07:00
2020-04-07 10:43:42 -07:00
2020-04-15 09:56:32 +02:00
2020-03-30 16:17:15 -07:00
2020-03-21 16:00:24 +01:00
2020-04-07 10:43:44 -07:00
2020-03-25 10:04:01 -05:00
2020-04-10 15:36:22 -07:00
2020-03-20 13:06:20 +01:00
2020-02-04 03:05:26 +00:00
2020-01-31 10:30:41 -08:00
2020-04-09 12:52:34 -07:00
2020-03-21 18:56:06 -07:00
2020-03-06 12:28:24 +11:00
2020-02-28 16:29:12 -06:00
2020-04-10 12:59:56 -07:00
2020-02-04 03:05:26 +00:00
2020-03-31 17:29:33 -07:00
2020-04-12 22:46:34 +02:00
2020-03-25 12:59:37 +01:00
2020-03-21 16:03:54 +01:00
2020-03-03 19:34:32 +01:00
2020-04-02 09:35:31 -07:00
2020-03-02 14:06:33 -07:00
2020-03-30 18:06:39 -07:00
2020-04-07 21:51:27 +02:00
2020-02-07 15:34:12 +01:00
2020-04-08 11:35:20 +02:00