]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: Limit "tune.maxpollevents" parameter to 1000000
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Nov 2025 14:51:27 +0000 (15:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Nov 2025 14:56:21 +0000 (15:56 +0100)
commitc6f68901ccaddddca760bd45e6869161f4f7f846
tree1fb4bf00de4031e51e60c7d34643171adfa227cf
parent80edbad4f9fba55ac319c1451b9594774bdbf9d0
BUG/MINOR: config: Limit "tune.maxpollevents" parameter to 1000000

"tune.maxpollevents" global parameter was not limited. It was possible to
set any integer value. But this value is used to allocate the array of
events used by epoll. With a huge value, it seems the allocation silently
fail, making haproxy totally unresponsive.

So let's to limit its value to 1 million. It is pretty high and it should
not be an issue to forbid greater values. The documentation was updated
accordingly.

This patch could be backported to all stable branches.
doc/configuration.txt
src/cfgparse-global.c