From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756109AbYCGIiY (ORCPT ); Fri, 7 Mar 2008 03:38:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751155AbYCGIiP (ORCPT ); Fri, 7 Mar 2008 03:38:15 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:47060 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbYCGIiP (ORCPT ); Fri, 7 Mar 2008 03:38:15 -0500 Date: Fri, 7 Mar 2008 09:37:54 +0100 From: Ingo Molnar To: Venki Pallipadi Cc: "H. Peter Anvin" , Thomas Gleixner , arjan@linux.intel.com, linux-kernel Subject: Re: [PATCH] Add range_is_allowed() check to mmap of /dev/mem Message-ID: <20080307083754.GD12150@elte.hu> References: <20080307070147.GA9888@linux-os.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080307070147.GA9888@linux-os.sc.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.1 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.1 required=5.9 tests=BAYES_05 autolearn=no SpamAssassin version=3.2.3 -1.1 BAYES_05 BODY: Bayesian spam probability is 1 to 5% [score: 0.0111] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Venki Pallipadi wrote: > Earlier patch that introduced CONFIG_NONPROMISC_DEVMEM, did the > range_is_allowed() check only for read and write. Add > range_is_allowed() check to mmap of /dev/mem as well. > > Changes the paramaters of range_is_allowed() to pfn and size to handle > more than 32 bits of physical address on 32 bit arch cleanly. thanks, applied. Ingo