]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: poller: drop FD's tgid when masks don't match
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Jul 2022 13:39:21 +0000 (15:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Jul 2022 13:47:15 +0000 (15:47 +0200)
commit698342635491a30b219bebeb1bbe7877efdbe3b6
tree711328e4ad44224c1a909cdf31e0ba48232d4590
parent53bfac8c632dd77a199194f70062bfd86270d400
BUG/MAJOR: poller: drop FD's tgid when masks don't match

A bug was introduced in 2.7-dev2 by commit 1f947cb39 ("MAJOR: poller:
only touch/inspect the update_mask under tgid protection"): once the
FD's tgid is held, we would forget to drop it in case the update mask
doesn't match, resulting in random watchdog panics of older processes
on successive reloads.

This should fix issue #1798. Thanks to Christian for the report and
to Christopher for the reproducer.

No backport is needed.
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c