]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pools: detect() when munmap() fails in UAF mode
authorWilly Tarreau <w@1wt.eu>
Mon, 13 Oct 2025 17:22:31 +0000 (19:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 Oct 2025 17:22:31 +0000 (19:22 +0200)
commit17930edeccf016832dcaa95659f87a0ab56a940e
tree6633d680d3fe9f5691a709a03264ab66a5242234
parent0e6a2332178037612f4ec579bb2f2ce019fa6fd2
MEDIUM: pools: detect() when munmap() fails in UAF mode

Better check that munmap() always works, otherwise it means we might
have miscalculated an address, and if it fails silently, it will eat
all the memory extremely quickly. Let's add a BUG_ON() on munmap's
return.
include/haproxy/pool-os.h