[Tarantool-patches] [PATCH luajit] Fix memory probing allocator to check for valid end address, too.
Igor Munkin
imun at tarantool.org
Tue Jul 4 20:10:17 MSK 2023
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
More information about the Tarantool-patches
mailing list