lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 2 Jan 2019 09:59:22 +0100 From: "Uladzislau Rezki (Sony)" <urezki@...il.com> To: Michal Hocko <mhocko@...e.com>, Kees Cook <keescook@...omium.org>, Shuah Khan <shuah@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org Cc: LKML <linux-kernel@...r.kernel.org>, Matthew Wilcox <willy@...radead.org>, Oleksiy Avramchenko <oleksiy.avramchenko@...ymobile.com>, Thomas Gleixner <tglx@...utronix.de>, "Uladzislau Rezki (Sony)" <urezki@...il.com> Subject: [RFC v3 1/3] vmalloc: export __vmalloc_node_range for CONFIG_TEST_VMALLOC_MODULE Export __vmaloc_node_range() function if CONFIG_TEST_VMALLOC_MODULE is enabled. Some test cases in vmalloc test suite module require and make use of that function. Please note, that it is not supposed to be used for other purposes. We need it only for performance analysis, stressing and stability check of vmalloc allocator. Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com> --- mm/vmalloc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index cfea25be7754..1f24aecd1d7e 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1764,6 +1764,15 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align, return NULL; } +/* + * This is only for performance analysis of vmalloc and stress purpose. + * It is required by vmalloc test module, therefore do not use it other + * than that. + */ +#ifdef CONFIG_TEST_VMALLOC_MODULE +EXPORT_SYMBOL_GPL(__vmalloc_node_range); +#endif + /** * __vmalloc_node - allocate virtually contiguous memory * @size: allocation size -- 2.11.0
Powered by blists - more mailing lists