Kefeng Wang
8f6e42e833
sections: provide internal __is_kernel() and __is_kernel_text() helper
...
An internal __is_kernel() helper which only check the kernel address
ranges, and an internal __is_kernel_text() helper which only check text
section ranges.
Link: https://lkml.kernel.org/r/20210930071143.63410-7-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Alexander Potapenko <glider@google.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-09 10:02:51 -08:00
..
2021-09-01 15:13:02 -07:00
2020-02-17 20:12:17 +01:00
2015-06-23 13:35:49 +09:00
2017-11-02 11:10:55 +01:00
2021-05-26 13:20:52 +02:00
2021-05-26 13:20:52 +02:00
2017-11-02 11:10:55 +01:00
2018-01-30 19:07:54 -08:00
2017-11-02 11:10:55 +01:00
2017-11-15 13:28:48 -08:00
2020-11-14 11:26:03 -08:00
2020-03-06 11:06:19 +01:00
2021-05-06 19:24:11 -07:00
2021-07-02 12:08:10 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-26 00:27:37 -07:00
2020-08-20 15:45:14 -04:00
2021-05-26 13:20:50 +02:00
2021-05-26 13:20:52 +02:00
2021-07-23 14:20:24 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:37:16 +02:00
2021-08-20 11:39:28 +01:00
2018-12-13 21:06:18 +01:00
2017-11-02 11:10:55 +01:00
2021-09-08 11:50:24 -07:00
2017-11-02 11:10:55 +01:00
2020-10-25 14:51:49 -07:00
2019-05-24 17:27:11 +02:00
2021-02-03 16:42:57 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-14 15:05:45 -08:00
2019-06-24 09:16:47 +10:00
2019-06-19 17:09:55 +02:00
2020-03-27 23:58:55 -04:00
2020-12-15 22:46:15 -08:00
2020-02-10 12:58:36 +01:00
2020-11-23 10:31:06 +01:00
2020-06-20 22:14:53 +10:00
2021-06-17 13:09:38 -04:00
2017-11-02 11:10:55 +01:00
2018-06-07 17:34:38 -07:00
2021-10-08 11:57:54 -07:00
2017-11-02 11:10:55 +01:00
2021-09-19 10:36:09 -07:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-02-24 16:32:23 -08:00
2017-11-02 11:10:55 +01:00
2020-11-24 14:42:08 +01:00
2020-10-25 14:51:49 -07:00
2018-03-06 18:40:44 +01:00
2020-07-09 13:29:42 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-06-17 21:44:51 +02:00
2021-06-29 10:53:55 -07:00
2020-01-23 10:41:16 -08:00
2019-04-08 11:59:39 +01:00
2020-07-17 10:02:03 +01:00
2020-10-26 16:45:03 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-09-25 00:36:41 +09:00
2021-09-15 17:18:56 -07:00
2020-12-15 15:03:31 -08:00
2020-10-26 16:45:03 +01:00
2021-01-14 15:08:55 -08:00
2021-01-20 09:30:45 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-09-19 10:36:09 -07:00
2018-05-07 07:15:41 +02:00
2020-10-26 23:54:48 +00:00
2020-08-14 19:56:55 -07:00
2020-04-07 10:43:39 -07:00
2021-07-08 11:48:22 -07:00
2021-07-08 11:48:22 -07:00
2021-07-08 11:48:22 -07:00
2021-05-12 13:01:45 +02:00
2018-02-06 10:28:58 +01:00
2021-02-11 07:59:54 -05:00
2020-07-29 16:14:19 +02:00
2020-10-26 20:19:48 +01:00
2017-11-02 11:10:55 +01:00
2020-07-21 10:50:36 +01:00
2020-07-10 16:01:52 -07:00
2021-11-09 10:02:51 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-14 19:52:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-02-10 23:34:16 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:27:11 +02:00
2020-11-16 21:53:16 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-29 20:02:29 +01:00
2017-11-02 11:10:55 +01:00
2021-06-29 10:53:55 -07:00
2017-11-02 11:10:55 +01:00
2021-07-27 23:01:13 +02:00
2021-05-17 13:30:29 +02:00
2020-04-23 10:50:26 +09:00
2017-11-02 11:10:55 +01:00
2021-09-13 10:18:29 -07:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:27:13 +02:00