[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <532E0486.3010702@cogentembedded.com>
Date: Sun, 23 Mar 2014 00:45:42 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Kees Cook <keescook@...omium.org>,
Paul Gortmaker <paul.gortmaker@...driver.com>
CC: Ralf Baechle <ralf@...ux-mips.org>,
Sanjay Lal <sanjayl@...asys.com>,
John Crispin <blogic@...nwrt.org>, linux-mips@...ux-mips.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mips: export icache_flush_range
Hello.
On 03/22/2014 06:47 PM, Kees Cook wrote:
> The lkdtm module performs tests against executable memory ranges, so
> it needs to flush the icache for proper behaviors. Other architectures
> already export this, so do the same for MIPS.
> Signed-off-by: Kees Cook <keescook@...omium.org>
> ---
> This is currently untested! I'm building a MIPS cross-compiler now...
> If someone can validate this fixes the build when lkdtm is a module,
> that would be appreciated. :)
> ---
> arch/mips/mm/cache.c | 1 +
> 1 file changed, 1 insertion(+)
> diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c
> index fde7e56d13fe..b3f1df13d9f6 100644
> --- a/arch/mips/mm/cache.c
> +++ b/arch/mips/mm/cache.c
> @@ -38,6 +38,7 @@ void (*__flush_kernel_vmap_range)(unsigned long vaddr, int size);
> void (*__invalidate_kernel_vmap_range)(unsigned long vaddr, int size);
>
> EXPORT_SYMBOL_GPL(__flush_kernel_vmap_range);
> +EXPORT_SYMBOL_GPL(flush_icache_range);
Have you run this thru scripts/checkpatch.pl? It would have told you that
an export should immediately follow the corresponding function body, AFAIK.
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists