~maria-captains/maria/5.3

Viewing all changes in revision 3381.2.1.

  • Committer: knielsen at knielsen-hq
  • Date: 2012-02-10 20:19:12 UTC
  • mto: (3412.1.1 tmp2)
  • mto: This revision was merged to the branch mainline in revision 3414.
  • Revision ID: knielsen@knielsen-hq.org-20120210201912-fxa1xs1hmx9ybn2y
lp:910817: Race condition in kill_threads_for_user()

The code was accessing a pointer in a mem_root that might be freed by
another concurrent thread. Fix by moving the access to be done while the
LOCK_thd_data is held, preventing the memory from being freed too early.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: