From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id C462F4696C3 for ; Mon, 20 Apr 2020 10:09:29 +0300 (MSK) Date: Mon, 20 Apr 2020 10:09:28 +0300 From: Kirill Yukhin Message-ID: <20200420070928.3agvwliutgv7npuh@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH v2 luajit 0/3] Trace abort on FFI sandwich or mode change List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org, Vladislav Shpilevoy Hello, On 15 апр 03:34, Igor Munkin wrote: > This series closes two issues related to the JIT machinery behaviour: > * "FFI sandwich"(*) detection is introduced. If sandwich is detected > while trace recording the recording is aborted. The sandwich detected > while mcode execution leads to the platform panic. > * luaJIT_setmode call is prohibited while mcode execution and leads to > the platform panic. > > (*) The following stack mix is called FFI sandwich. > | Lua-FFI -> C routine -> Lua-C API -> Lua VM > This sort of re-entrancy is explicitly not supported by LuaJIT > compiler. For more info see [1]. > > Furthermore, this series also provides an aixillary module for LuaJIT > testing machinery. I've checked your patchset into tarantool/luajit repo and bumped new version in 1.10, 2.2, 2.3 and master. -- Regards, Kirill Yukhin