All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] noexec /tmp & uml
@ 2004-03-12 22:54 Cristian CONSTANTIN
  2004-03-15 19:44 ` Jeff Dike
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian CONSTANTIN @ 2004-03-12 22:54 UTC (permalink / raw)
  To: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

hi!

don't know if anyone else saw it / knew it before, but I found it out
the hard way...
so, my /tmp is mounted with noexec option. when I start uml (2.4.23) it
stops booting, barking like:

Kernel panic: map_memory(0xa2800000, 3, 0x8dc000, 4096, 1, 1, 1) failed,
err = -1

strace on the uml executable image (linux) reveals:

mmap2(0xa2800000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_FIXED, 3,
 0x8dc) = -1 EPERM (Operation not permitted)

it seems fd 3 points to a file somewhere in /tmp.
mounting /tmp with exec option solves the problem.

bye now!
cristian
-- 
 _          | There are many people who use UNIX or Linux  
(_'_        | who IMHO do not understand UNIX.
  (_'rist   |              --David Korn  
GPG public key at wwwkeys.de.pgp.net

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-15 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 22:54 [uml-devel] noexec /tmp & uml Cristian CONSTANTIN
2004-03-15 19:44 ` Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.