platform_system_core/rootdir
Martijn Coenen dd0440f4e5 Abort FUSE filesystem when Zygote restarts.
The FUSE filesystem is implemented by a Zygote child. If Zygote dies,
all of its children die along with it, including the FUSE daemon. The
FUSE filesystem is cleaned up automatically whenever the /dev/fuse file
descriptor of the FUSE daemon is closed. However, due to the way the
binder driver holds on to the 'struct files' of processes in the kernel,
the closing of FDs of all of Zygote's children is serialized.

That in turn means that, if a process has a file with dirty pages on
FUSE, and that FD is closed *before* the FUSE FD, the FUSE kernel driver
will happily issue a request to the FUSE daemon to serve that request.
But since the FUSE userspace daemon is already dead, it will never get
served. And because the closing of all FDs is serialized, we will never
close the FUSE fd to unblock this request.

Solve this particular case by manually aborting the FUSE filesystem when
Zygote restarts. Because we now explicitly close the FUSE fd, the FUSE
filesystem will be cleaned up, all outstanding requests to it will be
cancelled, and new ones will be skipped.

Bug: 153411204
Test: kill zygote manually
Change-Id: I2cb6c1a03cc1a932461ff33558894a428ff35180
2020-05-28 19:11:01 +02:00
..
avb Adding new GSI public keys 2020-02-19 08:50:26 +00:00
etc Use generated linker config only 2019-12-24 14:18:53 +09:00
adb_debug.prop Adding adb_debug.prop into debug ramdisk 2019-04-23 11:13:46 +08:00
Android.bp Move init and ueventd scripts from / to /system/etc 2019-11-08 10:15:49 -08:00
Android.mk Merge "Set Clang coverage environment variables." 2020-01-22 22:34:35 +00:00
asan.options Include asan options from data partition. 2017-08-09 15:32:23 -07:00
asan_extract.rc Asan_extract: Use sys.powerctl 2017-04-19 18:32:27 -07:00
asan_extract.sh Asan_extract: Use sys.powerctl 2017-04-19 18:32:27 -07:00
init-debug.rc init-debug.rc: don't mount debugfs 2017-03-14 21:56:24 -07:00
init.environ.rc.in Set Clang coverage environment variables. 2020-01-13 14:38:15 -08:00
init.rc Mount fusectl filesystem. 2020-05-28 16:25:45 +02:00
init.usb.configfs.rc Remove sys.usb.ffs.mtp.ready property 2018-03-22 11:35:20 -07:00
init.usb.rc Don't reset sys.usb.configfs during userspace reboot 2020-01-31 15:59:19 +00:00
init.zygote32.rc Abort FUSE filesystem when Zygote restarts. 2020-05-28 19:11:01 +02:00
init.zygote32_64.rc Abort FUSE filesystem when Zygote restarts. 2020-05-28 19:11:01 +02:00
init.zygote64.rc Abort FUSE filesystem when Zygote restarts. 2020-05-28 19:11:01 +02:00
init.zygote64_32.rc Abort FUSE filesystem when Zygote restarts. 2020-05-28 19:11:01 +02:00
OWNERS rootdir: add ccross to OWNERS. 2018-10-15 14:18:04 -07:00
ueventd.rc ueventd: duplicate /dev/ashmem 2019-09-25 12:49:38 -07:00