From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Bart Oldeman" Subject: Re: LOWRAM mmap: Invalid argument Date: Sat, 12 Apr 2008 13:51:54 -0400 Message-ID: References: <20080412160908.GC16562@mola> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=f0CoSRoLd+FiseCAG11Y7Tk2JB/Jzhbow201xs6KZmA=; b=WeMnI5WiCCrBTX0mCaXPvgFs9EZ6q54Jq+f9h6hJjYGDgo0lfQT0hTZJL52+H7QttMHV+993GydQcxn6J6e6pKu6SroUF5tqf5Nqs7JEsMKMAtJNwmrOWtumLKbFCu2UUStBuC0IC/zUOGKCSQOW2xtcSlndkUdEZx9EtMAo+oM= In-Reply-To: <20080412160908.GC16562@mola> Content-Disposition: inline Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org, ivan Hi, you can check the value of /proc/sys/vm/mmap_min_addr and if it is non-zero, use echo 0 > /proc/sys/vm/mmap_min_addr I am not sure what Ubuntu has been up to exactly: this is something that only works with SELinux enabled in enforcing mode. This is the help: +config SECURITY_DEFAULT_MMAP_MIN_ADDR + int "Low address space to protect from user allocation" + depends on SECURITY + default 0 + help + This is the portion of low virtual memory which should be protected + from userspace allocation. Keeping a user from writing to low pages + can help reduce the impact of kernel NULL pointer bugs. + + For most users with lots of address space a value of 65536 is + reasonable and should cause no problems. Programs which use vm86 + functionality would either need additional permissions from either + the LSM or the capabilities module or have this protection disabled. + + This value can be changed after boot using the + /proc/sys/vm/mmap_min_addr tunable. + + I am not sure how to give DOSEMU special permission -- maybe you could ask Ubuntu kernel maintainers about why they changed mmap_min_addr? (o and this is speculation on my part, perhaps there is a different problem in which case I don't know). Bart