From: mandesero--- via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: tarantool-patches@dev.tarantool.org, skaplun@tarantool.org, m.kokryashkin@tarantool.org Cc: Maksim Tiushev <mandesero@gmail.com> Subject: [Tarantool-patches] [PATCH luajit 0/1] ASAN & LuaJIT allocator Date: Thu, 22 Aug 2024 18:15:41 +0000 [thread overview] Message-ID: <20240822181542.482869-1-mandesero@gmail.com> (raw) From: Maksim Tiushev <mandesero@gmail.com> This patch introduces ASAN instrumentation for the internal LuaJIT allocator. Each CI job testing with ASAN now includes two scenarios: testing with the internal LuaJIT allocator and testing with `sysmalloc`. Additionally, certain tests can be disabled using the `LJ_ASAN_HARDENING` environment variable which is useful in cases where a test fails due to time constraints. The ASAN instrumentation of the internal LuaJIT allocator enhances the ability to detect memory handling errors, particularly when utilizing FFI. Branch: https://github.com/tarantool/luajit/tree/mandesero/lj-10231-ASAN-and-LJ-allocator Issue: https://github.com/tarantool/tarantool/issues/10231 Testing the patch with Tarantool: PR: https://github.com/tarantool/tarantool/pull/10232 Maksim Tiushev (1): asan: instrumented LuaJIT memory allocator .github/workflows/sanitizers-testing.yml | 20 +- CMakeLists.txt | 29 +- src/lj_alloc.c | 267 +++++++++++++++++- .../asan-alloc-instrumentation.test.c | 141 +++++++++ .../asan-mmap-instrumentation.test.c | 128 +++++++++ .../ASAN-left-memory-miss.test.lua | 12 + .../ASAN-left-memory-miss/script.lua | 19 ++ .../ASAN-right-memory-miss.test.lua | 12 + .../ASAN-right-memory-miss/script.lua | 19 ++ .../ASAN-use-after-free.test.lua | 12 + .../ASAN-use-after-free/script.lua | 24 ++ test/tarantool-tests/CMakeLists.txt | 2 +- .../lj-1034-tabov-error-frame.test.lua | 2 + 13 files changed, 669 insertions(+), 18 deletions(-) create mode 100644 test/tarantool-c-tests/asan-alloc-instrumentation.test.c create mode 100644 test/tarantool-c-tests/asan-mmap-instrumentation.test.c create mode 100644 test/tarantool-tests/ASAN-left-memory-miss.test.lua create mode 100644 test/tarantool-tests/ASAN-left-memory-miss/script.lua create mode 100644 test/tarantool-tests/ASAN-right-memory-miss.test.lua create mode 100644 test/tarantool-tests/ASAN-right-memory-miss/script.lua create mode 100644 test/tarantool-tests/ASAN-use-after-free.test.lua create mode 100644 test/tarantool-tests/ASAN-use-after-free/script.lua -- 2.34.1
next reply other threads:[~2024-08-22 18:15 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-08-22 18:15 mandesero--- via Tarantool-patches [this message] 2024-08-22 18:15 ` [Tarantool-patches] [PATCH luajit 1/1] asan: instrumented LuaJIT memory allocator mandesero--- via Tarantool-patches
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=20240822181542.482869-1-mandesero@gmail.com \ --to=tarantool-patches@dev.tarantool.org \ --cc=m.kokryashkin@tarantool.org \ --cc=mandesero@gmail.com \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit 0/1] ASAN & LuaJIT allocator' \ /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