unable to mmap zero-page, even when mmap_min_addr is 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Stefan Bader |
Bug Description
I'd rather not report this bug, but it is a regression compared to jaunty and will break dosemu and 16-bit Wine.
$ bzr branch lp:~ubuntu-bugcontrol/qa-regression-testing/master qa-regression-
$ cd qa-regression-
$ sudo apt-get install build-essential python-unit sudo libcap2-bin lsb-release
$ ./test-
Build helper tools (via sudo) ... (9.10) ok
/proc/$pid/maps is correctly protected ... ok
ASLR of stack ... ok
ASLR of libs ... ok
ASLR of mmap ... ok
ASLR of text ... ok
ASLR of vdso ... ok
ASLR of brk ... ok
lower memory is not allocatable ... FAIL
AppArmor loaded ... ok
PR_SET_SECCOMP works ... ok
/dev/kmem not available ... ok
SYN cookies is enabled ... ok
init's CAPABILITY list is clean (via sudo) ... ok
init missing READ_IMPLIES_EXEC (via sudo) ... (/proc/
NX bit is working ... ok
CONFIG_COMPAT_BRK disabled ... ok
CONFIG_DEVKMEM disabled ... ok
CONFIG_SECURITY enabled ... ok
CONFIG_
CONFIG_SYN_COOKIES enabled ... ok
CONFIG_SECCOMP enabled ... ok
CONFIG_COMPAT_VDSO disabled ... ok
CONFIG_DEBUG_RODATA enabled ... ok
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
Kernel stack guard ... ok
=======
FAIL: lower memory is not allocatable
-------
Traceback (most recent call last):
File "./test-
self.
File "/scratch/
self.
AssertionError: Unable to allocate zero-page when mmap_min_addr set to 0!
Got exit code 0, expected 1
Command: './zero-possible', '65536'
Output:
0
Testing lower 65536 bytes in 4096 byte chunks: pass
Testing 4096 byte chunk above 65535: pass
65536
-------
Ran 31 tests in 0.880s
FAILED (failures=1)
The "zero-possible" is not expected to return 0. mmap of 0 is not working.
ProblemType: Bug
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xe0420000 irq 22'
Mixer name : 'Realtek ALC268'
Components : 'HDA:10ec0268,
Controls : 18
Simple ctrls : 12
Date: Wed Sep 2 21:16:48 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=/dev/md1
Package: linux-image-
PccardctlIdent:
PccardctlStatus:
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
RelatedPackageV
linux-
linux-firmware 1.16
RfKill:
SourcePackage: linux
Uname: Linux 2.6.31-9-generic x86_64
WpaSupplicantLog:
dmi.bios.date: 09/22/2008
dmi.bios.vendor: Intel Corp.
dmi.bios.version: JOQ3510J.
dmi.board.
dmi.board.name: DQ35JO
dmi.board.vendor: Intel Corporation
dmi.board.version: AAD82085-800
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCor
Related branches
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Committed |
Seems the new CONFIG_ LSM_MMAP_ MIN_ADDR has to be set to 0, in order to allow the procfs interface to change the value of mmap_min_addr to 0. A patch has been sent to the mailing list.