[Tarantool-patches] [PATCH luajit] Fix memory probing allocator to check for valid end address, too.
Igor Munkin
imun at tarantool.org
Mon Jul 3 11:24:05 MSK 2023
Max,
Thanks for the patch! LGTM, after the fixes for the comments left by
Sergey.
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