[Devel] Re: [PATCH] IA64,sparc: local DoS with corrupted ELFs

Linus Torvalds torvalds at osdl.org
Wed Sep 6 13:20:59 PDT 2006



On Mon, 4 Sep 2006, Kirill Korotaev wrote:
> 
> +#ifdef __KERNEL__
> +#define arch_mmap_check	ia64_mmap_check
> +#ifndef __ASSEMBLY__
> +int ia64_mmap_check(unsigned long addr, unsigned long len,
> +		unsigned long flags);
> +#endif
> +#endif

Btw, is there some reason for the __ASSEMBLY__ check?

I'm not seeing any kernel users that could care, a quick

	git grep 'mman\.h' -- '*.[sS]'

doesn't trigger anything, and the other header files that include this 
seem to all either be mman.h themselves, or have things like structure 
declarations etc that wouldn't work for any non-C source anyway.

But maybe I missed some.

I'd rather not have more of those '#ifndef __ASSEMBLY__' than necessary.

		Linus




More information about the Devel mailing list