]> git.ipfire.org Git - thirdparty/valgrind.git/commit
linux mseal PRE wrapper should First check for overflow
authorMark Wielaard <mark@klomp.org>
Fri, 11 Jul 2025 17:58:53 +0000 (19:58 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 11 Jul 2025 18:00:34 +0000 (20:00 +0200)
commitd7743540064c58d3dcb850804fb29f742757d853
treefb0247a837a5596542ddf96b5f419ce2df5d0d7f
parente113cde88cb0f588a76d8ceaef2ce2a630d3b9a9
linux mseal PRE wrapper should First check for overflow

According to https://docs.kernel.org/next/userspace-api/mseal.html
mseal returns -EINVAL when Address range (addr + len) overflow. The
LTP test mseal02 checks this. So do this check first before checking
for valid_client_addr (which returns -ENOMEM).
coregrind/m_syswrap/syswrap-linux.c