From: Igor Munkin via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Maxim Kokryashkin <max.kokryashkin@gmail.com> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit] Fix memory probing allocator to check for valid end address, too. Date: Tue, 4 Jul 2023 17:10:17 +0000 [thread overview] Message-ID: <ZKRSeXq+4sm+PURO@tarantool.org> (raw) In-Reply-To: <20230531132806.216178-1-m.kokryashkin@tarantool.org> 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 <mike> > > (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 > <snipped> > -- > 2.40.1 > -- Best regards, IM
prev parent reply other threads:[~2023-07-04 17:20 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-31 13:28 Maxim Kokryashkin via Tarantool-patches 2023-06-06 13:51 ` Sergey Kaplun via Tarantool-patches 2023-06-07 13:03 ` Maxim Kokryashkin via Tarantool-patches 2023-06-09 10:03 ` Sergey Kaplun via Tarantool-patches 2023-06-13 9:25 ` Maxim Kokryashkin via Tarantool-patches 2023-07-03 8:24 ` Igor Munkin via Tarantool-patches 2023-07-04 17:10 ` Igor Munkin via Tarantool-patches [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=ZKRSeXq+4sm+PURO@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=imun@tarantool.org \ --cc=max.kokryashkin@gmail.com \ --subject='Re: [Tarantool-patches] [PATCH luajit] Fix memory probing allocator to check for valid end address, too.' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox