[Bug 574654] New: qemu fails with "mmap: permission denied"
http://bugzilla.novell.com/show_bug.cgi?id=574654 http://bugzilla.novell.com/show_bug.cgi?id=574654#c0 Summary: qemu fails with "mmap: permission denied" Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i686 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: wolfgang@rosenauer.org QAContact: qa@suse.de Found By: --- Blocker: --- (This is default openSUSE 11.2 with latest update kernel) I'm using a scratchbox environment with an ARM target using qemu. When I try to compile a bigger project (mozilla: it runs its own JS interpreter during build) it fails because of that qemu issue. Searching for issues on the net revealed that qemu should be run with mmap_min_addr set to 4096. openSUSE sets 65536 as CONFIG_DEFAULT_MMAP_MIN_ADDR. So one would expect that it can be fixed by setting the mmap_min_addr sysctl and apparently it also gets used (the value in sysctl changes as expected). The error just doesn't go away though. So I've recompiled the kernel with CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_LSM_MMAP_MIN_ADDR=4096 and with that kernel everything is working fine. Disclaimer: I don't have much experience in kernel hacking but I've tried to follow the code but fail to see why that happens. I found: dac_mmap_min_addr - is the default value and this can be changed by sysctl mmap_min_addr - is the maximum of dac_mmap_min_addr and CONFIG_LSM_MMAP_MIN_ADDR cap_file_mmap() is comparing against dac_mmap_min_addr and therefore shouldn't be the issue as setting sysctl didn't work. apparmor_file_mmap() checks against mmap_min_addr but I don't run apparmor actively on these processes. selinux_file_mmap() checks against CONFIG_LSM_MMAP_MIN_ADDR but I don't do anything with selinux -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=574654 http://bugzilla.novell.com/show_bug.cgi?id=574654#c1 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jeffm@novell.com Resolution| |FIXED --- Comment #1 from Jeff Mahoney <jeffm@novell.com> 2010-02-16 20:18:24 UTC --- Thanks for the report. I've changed CONFIG_LSM_MMAP_MIN_ADDR to be 4096. The default will remain at 64k though. It will be in the next update or you can download an updated kernel from http://download.opensuse.org/repositories/Kernel:/openSUSE-11.2/openSUSE_11.... in the next few hours once the fix has been pushed to the OBS project and built. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=574654 http://bugzilla.novell.com/show_bug.cgi?id=574654#c2 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rcoo@free.fr --- Comment #2 from Jeff Mahoney <jeffm@novell.com> 2010-03-17 17:18:48 UTC --- *** Bug 551799 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=551799 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=574654 http://bugzilla.novell.com/show_bug.cgi?id=574654#c3 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.2:32013 --- Comment #3 from Swamp Workflow Management <swamp@suse.com> 2010-03-22 13:52:56 UTC --- Update released for: kernel-debug, kernel-debug-base, kernel-debug-base-debuginfo, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-devel, kernel-debug-devel-debuginfo, kernel-default, kernel-default-base, kernel-default-base-debuginfo, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-devel, kernel-default-devel-debuginfo, kernel-desktop, kernel-desktop-base, kernel-desktop-base-debuginfo, kernel-desktop-debuginfo, kernel-desktop-debugsource, kernel-desktop-devel, kernel-desktop-devel-debuginfo, kernel-pae, kernel-pae-base, kernel-pae-base-debuginfo, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-devel, kernel-pae-devel-debuginfo, kernel-source, kernel-source-vanilla, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-base-debuginfo, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-devel, kernel-trace-devel-debuginfo, kernel-vanilla, kernel-vanilla-base, kernel-vanilla-base-debuginfo, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-vanilla-devel, kernel-vanilla-devel-debuginfo, kernel-xen, kernel-xen-base, kernel-xen-base-debuginfo, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-devel, kernel-xen-devel-debuginfo, preload-kmp-default, preload-kmp-desktop Products: openSUSE 11.2 (debug, i586, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com