gvisor/pkg/sentry
Nicolas Lacasse a2ec391dfb fs: Allow overlays to revalidate files from the upper fs.
Previously, an overlay would panic if either the upper or lower fs required
revalidation for a given Dirent. Now, we allow revalidation from the upper
file, but not the lower.

If a cached overlay inode does need revalidation (because the upper needs
revalidation), then the entire overlay Inode will be discarded and a new
overlay Inode will be built with a fresh copy of the upper file.

As a side effect of this change, Revalidate must take an Inode instead of a
Dirent, since an overlay needs to revalidate individual Inodes.

PiperOrigin-RevId: 208293638
Change-Id: Ic8f8d1ffdc09114721745661a09522b54420c5f1
2018-08-10 17:16:38 -07:00
..
arch Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
context Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
control stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
device New conditional for adding key/value pairs to maps. 2018-08-01 09:44:57 -07:00
fs fs: Allow overlays to revalidate files from the upper fs. 2018-08-10 17:16:38 -07:00
hostcpu stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
inet Basic support for ip link/addr and ifconfig 2018-08-08 22:39:58 -07:00
kernel Fix missing O_LARGEFILE from O_CREAT files 2018-08-09 16:50:37 -07:00
limits Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
loader Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
memmap Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
memutil stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
mm Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
platform Protect PCIDs with a mutex. 2018-08-08 21:29:19 -07:00
safemem stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
sighandling stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
socket Enable checkpoint/restore in cases of UDS use. 2018-08-10 14:33:20 -07:00
state stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
strace stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
syscalls Implemented the splice(2) syscall. 2018-08-10 16:11:01 -07:00
time stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
uniqueid stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
usage Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
usermem Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
watchdog stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
BUILD Check in gVisor. 2018-04-28 01:44:26 -04:00