]> git.ipfire.org Git - thirdparty/valgrind.git/commit
epoll_ctl warns for uninitialized padding on non-amd64 64bit arches
authorMark Wielaard <mark@klomp.org>
Sun, 26 Jul 2020 20:40:22 +0000 (22:40 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 1 Aug 2020 14:15:02 +0000 (16:15 +0200)
commitecf5ba1197c3833759b40712c401f0bdc768589f
treed6fd128986c31790ca2cadccd35b2fb3c552b2f5
parent6323fd5bfd94c3f80e2ff44f16488e0172bd9a96
epoll_ctl warns for uninitialized padding on non-amd64 64bit arches

struct vki_epoll_event is packed on x86_64, but not on other 64bit
arches. This means that on 64bit arches there can be padding in the
epoll_event struct. Seperately the data field is only used by user
space (which might not set the data field if it doesn't need to).

Only check the events field on epoll_ctl. But assume both events
and data are both written to by epoll_[p]wait (exclude padding).

https://bugs.kde.org/show_bug.cgi?id=422623
NEWS
coregrind/m_syswrap/syswrap-linux.c