summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-12-17 19:51:39 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-12-17 19:51:39 +0000
commit551e205f6dfa469f4f32a166ee3fb691201d27a7 (patch)
tree5d17034dc32d257c8c89e7adbe6e9f7ba2f65fef /tools
parent0ebcbcc0efdd733b11311c840c47cc22f83c7408 (diff)
downloadsrc-test-551e205f6dfa469f4f32a166ee3fb691201d27a7.tar.gz
src-test-551e205f6dfa469f4f32a166ee3fb691201d27a7.zip
Fix a race in tty_signal_sessleader() with unlocked read of s_leader.
Since we do not own the session lock, a parallel killjobc() might reset s_leader to NULL after we checked it. Read s_leader only once and ensure that compiler is not allowed to reload. While there, make access to t_session somewhat more pretty by using local variable. PR: 251915 Submitted by: Jakub Piecuch <j.piecuch96@gmail.com> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=368735
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions