diff options
| author | Michael Brown | 2017-09-04 15:00:32 +0200 |
|---|---|---|
| committer | Michael Brown | 2017-09-04 15:09:17 +0200 |
| commit | 42eedb04c1ad71548043c33ef1996dfe8e524996 (patch) | |
| tree | fa116cf39c744219ce2690deb830fcb1721ec5c3 /src/drivers/net/efi | |
| parent | [romprefix] Avoid unaligned accesses within ROM headers (diff) | |
| download | ipxe-42eedb04c1ad71548043c33ef1996dfe8e524996.tar.gz ipxe-42eedb04c1ad71548043c33ef1996dfe8e524996.tar.xz ipxe-42eedb04c1ad71548043c33ef1996dfe8e524996.zip | |
[malloc] Avoid false positive warnings from valgrind
Calling discard_cache() is likely to result in a call to
free_memblock(), which will call valgrind_make_blocks_noaccess()
before returning. This causes valgrind to report an invalid read on
the next iteration through the loop in alloc_memblock().
Fix by explicitly calling valgrind_make_blocks_defined() after
discard_cache() returns. Also call valgrind_make_blocks_noaccess()
before calling discard_cache(), to guard against free list corruption
while executing cache discarders.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/efi')
0 files changed, 0 insertions, 0 deletions
