From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932747Ab1J1Qhl (ORCPT ); Fri, 28 Oct 2011 12:37:41 -0400 Received: from toast.topped-with-meat.com ([204.197.218.159]:53753 "EHLO topped-with-meat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755526Ab1J1Qhj (ORCPT ); Fri, 28 Oct 2011 12:37:39 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Gregory Sahanovitch X-Fcc: ~/Mail/lkml Cc: Linus Torvalds , Andrew Morton , James Morris , Eric Paris , Stephen Smalley , selinux@tycho.nsa.gov, John Johansen , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] LSM: Do not apply mmap_min_addr check to PROT_NONE In-Reply-To: Gregory Sahanovitch's message of Friday, 28 October 2011 15:18:24 +0200 References: X-Shopping-List: (1) Impudent money (2) Athletic lingering lozenge inhibitions (3) Zealous dexterous yies (4) Adolescent admonishers Message-Id: <20111028163736.AEF082C0EB@topped-with-meat.com> Date: Fri, 28 Oct 2011 09:37:36 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=fe7WOzsF c=1 sm=1 a=-v16n0QOxCQA:10 a=kj9zAlcOel0A:10 a=uGsnhWwkVnbUKbWK974A:9 a=CjuIK1q_8ugA:10 a=WkljmVdYkabdwxfqvArNOQ==:117 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Since mmap_min_addr is used to prevent a *malicious* process from maping the > zero page and then taking advantage of a user-pointer dereference in the > *kernel code*, I do not see what you gain by guaranteeing that the > application *that you control* would never exploit such a vulnerability? The application does sandboxing of untrusted code.