Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755166AbZKTUAx (ORCPT ); Fri, 20 Nov 2009 15:00:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754120AbZKTUAw (ORCPT ); Fri, 20 Nov 2009 15:00:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3358 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753967AbZKTUAv (ORCPT ); Fri, 20 Nov 2009 15:00:51 -0500 Subject: Re: [PATCH] mm/nommu.c: Fix improperly call of security API in mmap From: Eric Paris To: Andrew Morton Cc: David Howells , graff.yang@gmail.com, linux-kernel@vger.kernel.org, gyang@blackfin.uclinux.org, uclinux-dist-devel@blackfin.uclinux.org, Graff Yang , linux-security-module@vger.kernel.org, john.johansen@canonical.com In-Reply-To: <20091120115016.82d01eaa.akpm@linux-foundation.org> References: <20091120094217.b94d99bb.akpm@linux-foundation.org> <20091117141314.0238a49b.akpm@linux-foundation.org> <1255706463.15182.84.camel@dhcp231-106.rdu.redhat.com> <7e0fb38c0910160801o50346a5cm763d79cab98272a5@mail.gmail.com> <1255516134-4838-1-git-send-email-graff.yang@gmail.com> <18475.1255529305@redhat.com> <6207.1255706090@redhat.com> <23382.1255707790@redhat.com> <1255708529.15182.95.camel@dhcp231-106.rdu.redhat.com> <16299.1258729209@redhat.com> <18122.1258739664@redhat.com> <1258745522.2916.3.camel@dhcp231-106.rdu.redhat.com> <20091120115016.82d01eaa.akpm@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" Date: Fri, 20 Nov 2009 14:58:52 -0500 Message-Id: <1258747132.2916.15.camel@dhcp231-106.rdu.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1355 Lines: 31 On Fri, 2009-11-20 at 11:50 -0800, Andrew Morton wrote: > On Fri, 20 Nov 2009 14:32:02 -0500 > > security: do not check mmap_min_addr on nommu systems > > > > nommu systems can do anything with memory they please and so they already > > win. mmap_min_addr is the least of their worries. Currently the > > mmap_min_addr implementation is problamatic on such systems. This patch > > changes the addr_only argument to be a flags which can take the arguments > > for addr_only or not_addr. LSMs then need to properly implement these two > > flags. > > > > Signed-off-by: Eric Paris > > Patch doesn't apply to current mainline for some reason. I fixed that > up and checked that the affected files compile OK on superh. It was against my linux-next devel tree, probably something new in James' for-next tree. Are people hoping for this in stable or should we just queue for -next? This is a pretty old bug I guess people are just hitting for the first time... > The patch adds trailing whitespace. If only we had a tool for that ;) Fixed. -- 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/