• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 14384818421

10 Apr 2025 03:50PM UTC coverage: 87.482% (-0.01%) from 87.495%
14384818421

push

github

sergepetrenko
box: fix session use-after-free

If session is created on demand in fiber we delete it when fiber is
stopped. But we do not clear session and credentials in fiber storage.
It is not an issue for standalone fiber (outside of fiber pool) as fiber
will be destroyed or recycled and will not have chance to execute any
code before that. In case of fiber pool it become dangerous as fiber is
reused. Fortunately we never hit this because we either reset session
and credentials at start in code executed in fiber (like in iproto) or
execute code that does not check access (like in vinyl).

Recently we add `tnt_tx_push()` to execute callback in TX. This time
the issue is revealed.

Let's just clear session and credentials in fiber storage when fiber
is stopped.

Closes #11267

NO_DOC=bugfix

70295 of 123997 branches covered (56.69%)

2 of 2 new or added lines in 1 file covered. (100.0%)

49 existing lines in 18 files now uncovered.

103435 of 118236 relevant lines covered (87.48%)

2973617.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.22
/src/lua/fiber.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc