Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #990

Re: Executing from dynamically allocated memory

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!news.iecc.com!.POSTED!nerds-end
From chakaram@auth.gr
Newsgroups comp.compilers
Subject Re: Executing from dynamically allocated memory
Date Sat, 12 Oct 2013 19:20:45 +0300
Organization Compilers Central
Lines 13
Sender johnl@iecc.com
Approved comp.compilers@iecc.com
Message-ID <13-10-007@comp.compilers> (permalink)
References <13-10-004@comp.compilers>
NNTP-Posting-Host news.iecc.com
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed; DelSp=Yes
X-Trace leila.iecc.com 1381604033 84044 64.57.183.58 (12 Oct 2013 18:53:53 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Sat, 12 Oct 2013 18:53:53 +0000 (UTC)
Keywords architecture, code
Posted-Date 12 Oct 2013 14:53:53 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref csiph.com comp.compilers:990

Show key headers only | View raw


As our moderator pointed out, sounds like NX. Use mmap() with
PROT_READ|PROT_WRITE|PROT_EXEC or just PROT_WRITE and then mprotect()
your region to PROT_READ|PROT_EXEC.

If you're on an i386, then it's probably some kernel hardening patch
that makes the heap non executable.
./ck
--
Chariton Karamitas
Electrical and Computer Engineering Department
Fuculty of Engineering
Aristotle University of Thessaloniki, Greece

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Executing from dynamically allocated memory "news" <news@fx32.iad.highwinds-media.com> - 2013-10-12 00:05 +0000
  Re: Executing from dynamically allocated memory "James Harris" <james.harris.1@gmail.com> - 2013-10-12 10:10 +0100
  Re: Executing from dynamically allocated memory Sébastien Fricker <sebastien.fricker@gmail.com> - 2013-10-12 11:52 +0200
  Re: Executing from dynamically allocated memory chakaram@auth.gr - 2013-10-12 19:20 +0300
  Re: Executing from dynamically allocated memory Alex McDonald <blog@rivadpm.com> - 2013-10-12 11:12 -0700
  Re: Executing from dynamically allocated memory sandmann@cs.au.dk (Søren Sandmann) - 2013-10-12 20:58 +0200
  Re: Executing from dynamically allocated memory Jens Kallup <jkallup@web.de> - 2013-10-13 10:44 +0200

csiph-web