Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH luajit 0/3] Fix descriptor leak in loadfile
@ 2025-06-05  5:44 Sergey Kaplun via Tarantool-patches
  2025-06-05  5:44 ` [Tarantool-patches] [PATCH luajit 1/3] ci: add track-fds Valgrind scenario Sergey Kaplun via Tarantool-patches
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2025-06-05  5:44 UTC (permalink / raw)
  To: Sergey Bronnikov; +Cc: tarantool-patches

This patch set fixes the possible descriptor leak in the `loadfile()`
in case of the error.
The first patch adds the Valgrind configuration to the corresponding CI
workflow to test the descriptor leakage.
The last two fix two similar scenarios of the leak.

Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1249-loadfile-fd-leak
Related issues:
* https://github.com/LuaJIT/LuaJIT/issues/1249
* https://github.com/tarantool/tarantool/issues/11278

Mike Pall (2):
  Fix potential file descriptor leak in luaL_loadfile*().
  Fix another potential file descriptor leak in luaL_loadfile*().

Sergey Kaplun (1):
  ci: add track-fds Valgrind scenario

 .github/workflows/valgrind-testing.yaml       |  9 ++-
 src/lj_load.c                                 | 19 +++---
 .../lj-1249-loadfile-fd-leak.test.lua         | 59 +++++++++++++++++++
 test/tarantool-tests/utils/CMakeLists.txt     |  1 +
 4 files changed, 78 insertions(+), 10 deletions(-)
 create mode 100644 test/tarantool-tests/lj-1249-loadfile-fd-leak.test.lua

-- 
2.49.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-06-06 15:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-05  5:44 [Tarantool-patches] [PATCH luajit 0/3] Fix descriptor leak in loadfile Sergey Kaplun via Tarantool-patches
2025-06-05  5:44 ` [Tarantool-patches] [PATCH luajit 1/3] ci: add track-fds Valgrind scenario Sergey Kaplun via Tarantool-patches
2025-06-06 13:56   ` Sergey Bronnikov via Tarantool-patches
2025-06-06 14:03     ` Sergey Kaplun via Tarantool-patches
2025-06-06 14:54       ` Sergey Bronnikov via Tarantool-patches
2025-06-06 15:31         ` Sergey Kaplun via Tarantool-patches
2025-06-05  5:44 ` [Tarantool-patches] [PATCH luajit 2/3] Fix potential file descriptor leak in luaL_loadfile*() Sergey Kaplun via Tarantool-patches
2025-06-06 14:47   ` Sergey Bronnikov via Tarantool-patches
2025-06-06 15:14     ` Sergey Kaplun via Tarantool-patches
2025-06-06 15:49       ` Sergey Bronnikov via Tarantool-patches
2025-06-05  5:44 ` [Tarantool-patches] [PATCH luajit 3/3] Fix another " Sergey Kaplun via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox