[Tarantool-patches] [PATCH luajit 0/2][v2] Fix cdata finalizer table
Sergey Bronnikov
estetus at gmail.com
Thu Aug 15 11:15:55 MSK 2024
From: Sergey Bronnikov <sergeyb at tarantool.org>
Branch:
https://github.com/tarantool/luajit/tree/ligurio/lj-1168-heap-use-after-free-on-access-to-CTState-finalizer-nointegration
PR in Tarantool: https://github.com/tarantool/tarantool/pull/9796
NOTE: Jobs with Tarantool integration regression tests has failed
because patch "FFI: Turn FFI finalizer table into a proper GC root."
broke Tarantool build and fix (see below) must be applied before
a bump to LuaJIT version with proposed patches.
Mike Pall (2):
FFI: Treat cdata finalizer table as a GC root.
FFI: Turn FFI finalizer table into a proper GC root.
src/lib_ffi.c | 20 +--
src/lj_cdata.c | 2 +-
src/lj_ctype.c | 12 ++
src/lj_ctype.h | 2 +-
src/lj_gc.c | 38 +++---
src/lj_obj.h | 3 +
src/lj_state.c | 3 +
.../lj-1168-unmarked-finalizer-tab.test.c | 123 ++++++++++++++++++
.../lj-1168-unmarked-finalizer-tab.test.lua | 18 +++
9 files changed, 180 insertions(+), 41 deletions(-)
create mode 100644 test/tarantool-c-tests/lj-1168-unmarked-finalizer-tab.test.c
create mode 100644 test/tarantool-tests/lj-1168-unmarked-finalizer-tab.test.lua
--
2.34.1
More information about the Tarantool-patches
mailing list