* Re: LuaJIT Panic on IPFire
[not found] <mailman.1.1406628001.22194.development@lists.ipfire.org>
@ 2014-07-30 7:37 ` Ghislain Hachey
0 siblings, 0 replies; 3+ messages in thread
From: Ghislain Hachey @ 2014-07-30 7:37 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 2001 bytes --]
On 7/29/14, 18:00, development-request(a)lists.ipfire.org wrote:
>> I am trying to achieve something here I don't know if this is
>> >supported. I've built a custom addon for ntopng, a traffic monitoring
>> >tool which makes use of LuaJIT for its web UI scripting language
>> >(which is great for embedded devices). When starting the service on my
>> >home IPFire I quickly get the following error message.
>> >
>> >PANIC: unprotected error in call to Lua API (runtime code generation
>> >failed, restricted kernel?)
>> >
>> >Which leads me to think that a JIT is not supported in the kernel
>> >configuration of IPFire, or am I way off? This is a tool I'd really
>> >like to get working on my IPFire, any ideas?
> Check the kernel log. If PaX mprotect has stopped the execution it will
> be logged
> and in most cases the protection can disabled for single binaries with
> paxctl.
>
> Arne
Thanks Arne,
That seem to have fixed the problem. I found the following in logs:
# grep -nir "pax" messages
311236:Jul 27 16:17:00 shockwave kernel: PAX: From 192.168.3.116:
execution attempt in: <anonymous mapping>, 4eb62000-4ec2a000 4eb62000
311237:Jul 27 16:17:00 shockwave kernel: PAX: terminating task:
/usr/local/bin/ntopng(ntopng):23772, uid/euid: 1001/1001, PC: 4eb69f89,
SP: 4ac2af70
311238:Jul 27 16:17:00 shockwave kernel: PAX: bytes at PC: c7 05 bc a2
c0 4e 01 00 00 00 8b 7a f8 8b 7f 08 81 7f 1c ff
311239:Jul 27 16:17:00 shockwave kernel: PAX: bytes at SP-4: 080f92b1
4ec0a1c0 4ebcce00 4ebcce08 4ec0b328 4ebfcbf0 00000001 4ebfcbe0 4ec0a1f0
00000000 081a0e8c 0815d816 080e7ccd 4ec0a1c0 00000000 00000000 00000000
0819f2e4 0b076cd8 081a0e8c 080800b0
and I disabled mprotect with:
# paxctl -m /usr/local/bin/ntopng
Also, while I was familiarizing myself with grsecurity I noticed that other utilities such as pspax, execstack, scanelf and dumpelf are not available in IPFire. Is there a particular reason for this?
Regards,
--
GH
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LuaJIT Panic on IPFire
2014-07-29 8:13 ` LuaJIT Panic on IPFire Ghislain Hachey
@ 2014-07-29 8:27 ` Arne Fitzenreiter
0 siblings, 0 replies; 3+ messages in thread
From: Arne Fitzenreiter @ 2014-07-29 8:27 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]
On 2014-07-29 10:13, Ghislain Hachey wrote:
> Hi,
>
> I am trying to achieve something here I don't know if this is
> supported. I've built a custom addon for ntopng, a traffic monitoring
> tool which makes use of LuaJIT for its web UI scripting language
> (which is great for embedded devices). When starting the service on my
> home IPFire I quickly get the following error message.
>
> PANIC: unprotected error in call to Lua API (runtime code generation
> failed, restricted kernel?)
>
> Which leads me to think that a JIT is not supported in the kernel
> configuration of IPFire, or am I way off? This is a tool I'd really
> like to get working on my IPFire, any ideas?
Check the kernel log. If PaX mprotect has stopped the execution it will
be logged
and in most cases the protection can disabled for single binaries with
paxctl.
Arne
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LuaJIT Panic on IPFire
2014-07-07 9:18 IPFire Building Packages Michael Tremer
@ 2014-07-29 8:13 ` Ghislain Hachey
2014-07-29 8:27 ` Arne Fitzenreiter
0 siblings, 1 reply; 3+ messages in thread
From: Ghislain Hachey @ 2014-07-29 8:13 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 631 bytes --]
Hi,
I am trying to achieve something here I don't know if this is supported.
I've built a custom addon for ntopng, a traffic monitoring tool which
makes use of LuaJIT for its web UI scripting language (which is great
for embedded devices). When starting the service on my home IPFire I
quickly get the following error message.
PANIC: unprotected error in call to Lua API (runtime code generation
failed, restricted kernel?)
Which leads me to think that a JIT is not supported in the kernel
configuration of IPFire, or am I way off? This is a tool I'd really like
to get working on my IPFire, any ideas?
Regards,
--
GH
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-30 7:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1.1406628001.22194.development@lists.ipfire.org>
2014-07-30 7:37 ` LuaJIT Panic on IPFire Ghislain Hachey
2014-07-07 9:18 IPFire Building Packages Michael Tremer
2014-07-29 8:13 ` LuaJIT Panic on IPFire Ghislain Hachey
2014-07-29 8:27 ` Arne Fitzenreiter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox