chiark / gitweb /
bus: fix memfd-cache regarding memfd offsets
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Dec 2014 09:44:41 +0000 (10:44 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Dec 2014 09:44:41 +0000 (10:44 +0100)
We must restore part->mmap_begin when poping memfds from the memfd-cache.
We rely on the memfds to be unsealed, so we can be sure that we own the
whole FD. Therefore, simply set part->mmap_begin to the same as
part->data.

This fixes test-bus-kernel-benchmark.


No differences found