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 CF69D47D29B; Thu, 25 May 2023 09:20:16 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CF69D47D29B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1684995616; bh=ae+vOiMweJR7GXkrqIjYTzqjn8KLsCNQ34sDTksyFfY=; 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=ar3vXnnNNzyHX9RmdjniOk1VndOyvaf2sHScRvDfhXClZZ4ozbXg9Ntztcw86QAwl 7a0SExJdNS6Uv+/foll4rcSiuXrH9cZd1mCWZzG1/VOI5bfigXwJJ9vhaiRBGkruJL xAH1+t0/cL7fDmfIaepgsSb8K0Sf7r3UQqxMI6iw= Received: from smtp37.i.mail.ru (smtp37.i.mail.ru [95.163.41.78]) (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 8DD8F47D29B for ; Thu, 25 May 2023 09:19:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8DD8F47D29B Received: by smtp37.i.mail.ru with esmtpa (envelope-from ) id 1q24K0-002JrH-RS; Thu, 25 May 2023 09:19:37 +0300 Date: Thu, 25 May 2023 06:16:42 +0000 To: Maksim Kokryashkin Message-ID: References: <20230316161720.78669-1-max.kokryashkin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230316161720.78669-1-max.kokryashkin@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9318AAE2601AA39B8DEF021CB747FB23E1A5F203A18514D3500894C459B0CD1B9B746C1E3781355E6FBB107E9CC3BC2EFA30BC3CADC405826984125FF27271FD8 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE75644E22E05AA81AEB287FD4696A6DC2FA8DF7F3B2552694A4E2F5AFA99E116B42401471946AA11AF176DF2183F8FC7C0BAE5222749FC90208F08D7030A58E5AD1A62830130A00468AEEEE3FBA3A834EE7353EFBB5533756631689C8A41F2565E01FECE28ECC08DBC072B58F38960C8C7A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE78C9B9C945842D50B9FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C32739D626790C8313117882F4460429728AD0CFFFB425014E868A13BD56FB6657D81D268191BDAD3DC09775C1D3CA48CFFD2B9AD123F66D23BA3038C0950A5D36C8A9BA7A39EFB766EC990983EF5C0329BA3038C0950A5D36D5E8D9A59859A8B63C6898C3C2F22CEE76E601842F6C81A1F004C906525384303E02D724532EE2C3F43C7A68FF6260569E8FC8737B5C2249EC8D19AE6D49635B68655334FD4449CB9ECD01F8117BC8BEAAAE862A0553A39223F8577A6DFFEA7CB1724D34C644744043847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: 0D63561A33F958A58793C9A884497E23141A5E272619DD2FB18E84BB5C5CED74F87CCE6106E1FC07E67D4AC08A07B9B06A1CB4668A9CA5FACB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF241D9CEAED1935315D70FEEAEABFE446F8E71FA9299FDD6F0FA3BBFD33C8EC9B2DC0EA915DEF7D0C1D9AEFA979736CF1DC4329B28224F18A83A5D8FD93DD0DD306EEC8038AF5C160 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj7RK+RruQK1f3LJ1yTVAz5A== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531756A8589114E8EB318E70373D3947E293120E6DF4C9982C92326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] Limit path length passed to C library loader. 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" Max, I've checked the patchset into all long-term branches in tarantool/luajit and bumped a new version in master, 2.11 and 2.10. On 16.03.23, Maksim Kokryashkin via Tarantool-patches wrote: > From: Mike Pall > > (cherry-picked from commit 90e65514dda3994253c1e3007f63da7ace8f6b7b) > > C library loader uses `dlopen` under the hood, which fails, if > provided library path is longer than PATH_MAX. PATH_MAX is > 4096 bytes by default, so a corresponsing check is added to > `ll_loadfunc`. > > Maxim Kokryashkin: > * added the description and the test for the problem > > Part of tarantool/tarantool#8069 > --- > Side note: Still no adequate constants like PATH_MAX... > Side note: There is no test for successfull loadlib, since > there is one in the PUC-Rio suite. > > Branch: https://github.com/tarantool/luajit/tree/fckxorg/c-library-path-length > PR: https://github.com/tarantool/tarantool/pull/8449 > > src/lib_package.c | 7 ++++++- > test/tarantool-tests/c-library-path-length.test.lua | 13 +++++++++++++ > 2 files changed, 19 insertions(+), 1 deletion(-) > create mode 100644 test/tarantool-tests/c-library-path-length.test.lua > > -- > 2.37.1 (Apple Git-137.1) > -- Best regards, IM