Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751576AbWIFUW2 (ORCPT ); Wed, 6 Sep 2006 16:22:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751575AbWIFUW2 (ORCPT ); Wed, 6 Sep 2006 16:22:28 -0400 Received: from smtp.osdl.org ([65.172.181.4]:44236 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751572AbWIFUW1 (ORCPT ); Wed, 6 Sep 2006 16:22:27 -0400 Date: Wed, 6 Sep 2006 13:20:59 -0700 (PDT) From: Linus Torvalds To: Kirill Korotaev cc: Linux Kernel Mailing List , Fernando Vazquez , "David S. Miller" , tony.luck@intel.com, linux-ia64@vger.kernel.org, stable@kernel.org, xemul@openvz.org, devel@openvz.org Subject: Re: [PATCH] IA64,sparc: local DoS with corrupted ELFs In-Reply-To: <44FC193C.4080205@openvz.org> Message-ID: References: <44FC193C.4080205@openvz.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 954 Lines: 32 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/