From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 71D6293B4C3; Wed, 10 Jan 2024 11:59:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 71D6293B4C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1704877179; bh=cgXnKVN2Al16jqvI1lGNM9AvqlHf51xLRAtcjB2EPgM=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=U2Cq8fDUvWh3GIeD28fSnihcRnvDZN8XYzZg4Gj4TdfiD49dOVPTn98ytuhmY0spn 80pBgeeRFCD38IwKCV4JByyXGWcGy5j3kMrjfcEa3D/MZNDjQxKIA83+F9QIbga0Zv ETwkD4pB/DedCKLIfW/m7WCfKQ63ZVyS8dl0egMY= Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [95.163.41.87]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 82B7193B4C3 for ; Wed, 10 Jan 2024 11:59:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 82B7193B4C3 Received: by smtp51.i.mail.ru with esmtpa (envelope-from ) id 1rNUQa-000dp3-1F; Wed, 10 Jan 2024 11:59:12 +0300 Date: Wed, 10 Jan 2024 08:53:06 +0000 To: Sergey Kaplun Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9F008C97756F746CAE2B75521B1C23978BC5B3227EFB96EBE182A05F538085040A6BFBB0F5AF29F1DDDAC2CA2708B1571DC64C10E2F4DBD3AC14CF8D3EB623998 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7B114C2C2C20B7E62EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006378D64EDD178B2A1008638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D879990120812D9A739E94DFB6FCD87391117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC3A703B70628EAD7BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD18F04B652EEC242312D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEB28585415E75ADA9CEDA8D6C8C3B0531D8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE367F1C1C3ABB44F3A6E0066C2D8992A16C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947C2FFDA4F57982C5F42E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F616AD31D0D18CD5CC6EABA9B74D0DA47B5C8C57E37DE458BEDA766A37F9254B7 X-C1DE0DAB: 0D63561A33F958A505C08D76E8458414CCADDDB14F17F426A53761BE426F3EFAF87CCE6106E1FC07E67D4AC08A07B9B04B3849D6E5CCBAFDBDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742424CF958EAFF5D571004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D34EC58E35A639A24719C0BC278036B3B800358169CDCE48AB18C9154759768AD9F544ADAFD8561FB451D7E09C32AA3244CC1AFF0CB818EE8CFAA8F7C7A96BE6B5835DA7DC5AF9B58C0BAD658CF5C8AB4025DA084F8E80FEBD376A4ED3E9341DC2FCD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojou3Ii6fsdvUVYxhG/HiMVQ== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531AC577D618DF968EC8AFD9A6A790BAA2A4D5FDCF18ECEB4902326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 0/6] FFI fixes X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Sergey, I've checked the patchset into all long-term branches in tarantool/luajit and bumped a new version in master, release/2.11 and release/2.10. On 23.10.23, Sergey Kaplun via Tarantool-patches wrote: > This patchset is an umbrella for all FFI fixes and refactoring to be > done in #9145. > > The first patch is a refactoring, and it will be useful for us when we > do #4738. The next two patches are just some FFI bugs to be fixed. The > last three patches are minor fixes use-after-free references of the > `cts->tab` objects. > > Branch: https://github.com/tarantool/luajit/tree/skaplun/ffi-fixes > Tarantool PR: https://github.com/tarantool/tarantool/pull/9285 > Related issues: > * https://github.com/LuaJIT/LuaJIT/issues/745 > * https://github.com/LuaJIT/LuaJIT/issues/920 > * https://github.com/LuaJIT/LuaJIT/issues/1108 > * https://github.com/tarantool/tarantool/issues/9145 > * https://github.com/tarantool/tarantool/issues/4738 > > Mike Pall (6): > Abstract out on-demand loading of FFI library. > FFI: Fix missing cts->L initialization in argv2ctype(). > FFI: Ensure returned string is alive in ffi.typeinfo(). > FFI: Fix dangling reference to CType. > FFI: Fix dangling reference to CType. Improve checks. > FFI: Fix dangling reference to CType in carith_checkarg(). > > src/lib_ffi.c | 1 + > src/lib_jit.c | 6 +- > src/lj_bcread.c | 6 +- > src/lj_carith.c | 4 + > src/lj_cconv.c | 2 + > src/lj_crecord.c | 6 +- > src/lj_ctype.c | 12 +++ > src/lj_ctype.h | 10 +++ > src/lj_lex.c | 6 +- > .../fix-argv2ctype-cts-L-init.test.lua | 15 ++++ > .../fix-argv2ctype-cts-L-init/script.lua | 14 ++++ > .../fix-dangling-reference-to-ctype.test.lua | 59 ++++++++++++++ > ...8-fix-dangling-reference-to-ctype.test.lua | 67 ++++++++++++++++ > .../lj-745-ffi-typeinfo-dead-names.test.lua | 28 +++++++ > ...0-fix-dangling-reference-to-ctype.test.lua | 77 +++++++++++++++++++ > 15 files changed, 297 insertions(+), 16 deletions(-) > create mode 100644 test/tarantool-tests/fix-argv2ctype-cts-L-init.test.lua > create mode 100644 test/tarantool-tests/fix-argv2ctype-cts-L-init/script.lua > create mode 100644 test/tarantool-tests/fix-dangling-reference-to-ctype.test.lua > create mode 100644 test/tarantool-tests/lj-1108-fix-dangling-reference-to-ctype.test.lua > create mode 100644 test/tarantool-tests/lj-745-ffi-typeinfo-dead-names.test.lua > create mode 100644 test/tarantool-tests/lj-920-fix-dangling-reference-to-ctype.test.lua > > -- > 2.42.0 > -- Best regards, IM