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 BD4134F62B8; Tue, 4 Jul 2023 20:20:08 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org BD4134F62B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1688491208; bh=yxcqmo/p/vS/9C1qblx/K+H+kKT4KMfpLftXrPCelVc=; 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=UeKtLlUxyDngd5OSo/AzucTZre29InnZDIgkti5IQAAtnVb+ySziWpCgyHWkUVWFx FaoWng8XiAfegiXqydXYVcnO0rtMFpy3PW0840JqveSVrNB8WG45YB5N5d2Yx/mZp5 MUfMqRonibFWtSl63T7AmHMQtCE3I2n/AAV6eBtI= Received: from smtp31.i.mail.ru (smtp31.i.mail.ru [95.163.41.72]) (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 A0E674F62AF for ; Tue, 4 Jul 2023 20:19:09 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A0E674F62AF Received: by smtp31.i.mail.ru with esmtpa (envelope-from ) id 1qGjgC-00B9AX-Pd; Tue, 04 Jul 2023 20:19:09 +0300 Date: Tue, 4 Jul 2023 17:10:17 +0000 To: Maxim Kokryashkin Message-ID: References: <20230531132806.216178-1-m.kokryashkin@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230531132806.216178-1-m.kokryashkin@tarantool.org> X-Clacks-Overhead: GNU Terry Pratchett X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD90EBD74C6BAAC9DBA29678F3DC8D2D13A8289E44A8D682525182A05F538085040469BCEAA2304D066593B5113F831647B77FA1FAEC08D368F7F6D90DF62891D55 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE716FAD50E497B9C14EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637CE17C7754E00FC028638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8823AFCCCECA31E2D5870910EA95DA9B6117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF1175FABE1C0F9B6A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520C65AC60A1F0286FEF04B652EEC242312D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A127C277FBC8AE2E8B6A41CCFFBAEDDFE13AA81AA40904B5D99C9F4D5AE37F343AD1F44FA8B9022EA23BBE47FD9DD3FB595F5C1EE8F4F765FC72CEEB2601E22B093A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E7358CCB3ED2A1DE2304C4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A5E59E8EE2926C351FC0D3FB1483093387DD7012D6D567E2ADF87CCE6106E1FC07E67D4AC08A07B9B0DB8A315C1FF4794DBDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF4C179F0B5325E10E911E357E4BE3DC022A73BFD8947F552AE0B518DEEF6E11AACCDF2CE9FE05F2E709C04BAA40F94CC3FDE2A482DB9A24D8195166C0B346C170A74DFFEFA5DC0E7F02C26D483E81D6BEECAEF3E2CCC1ED8C383653B6C8D9AE0FD16FCAA6493B703A X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojtu6fghEd2rUJF4aMB0P+9Q== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531EDAB15FE90EAF9982C3439076FBE6EE7AAADADC64FEF07D72326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] Fix memory probing allocator to check for valid end address, too. 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, release/2.11 and release/2.10. On 31.05.23, Maxim Kokryashkin via Tarantool-patches wrote: > From: Mike Pall > > (cherry-picked from commit 646148e747759f0af3b47f9bd287cedd7e174631) > > Before the patch `mmap_probe` only checked if the allocated chunk > start was within the 2^LJ_ALLOC_MBITS bytes region. However, if the > chunk is big enough, its end can reach outside of that region. This > patch adds the corresponding check, to avoid such situations. > > Maxim Kokryashkin: > * added the description and the test for the problem > > Part of tarantool/tarantool#8516 > --- > Branch: https://github.com/tarantool/luajit/tree/fckxorg/lj-445-fix-memory-probing-allocator > PR: https://github.com/tarantool/tarantool/pull/8720 > LuaJIT issue: https://github.com/LuaJIT/LuaJIT/issues/445 > > src/lj_alloc.c | 3 +- > ...-445-fix-memory-probing-allocator.test.lua | 32 +++++++++++++++++++ > 2 files changed, 34 insertions(+), 1 deletion(-) > create mode 100644 test/tarantool-tests/lj-445-fix-memory-probing-allocator.test.lua > > -- > 2.40.1 > -- Best regards, IM