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