android_kernel_xiaomi_sm8450/fs/incfs
Paul Lawrence 08892fdf71 ANDROID: Incremental fs: Retry page faults on non-fatal errors
In order to not freeze on corrupt data, we need to turn off
FAULT_FLAG_ALLOW_RETRY. However, this means we no longer retry on EINTR,
so an interrupted read will lead to page faults.

The fault handler does not seem to allow dynamic decisions as to whether
to turn on or off this flag.

To resolve both issues, add a flag to indicate if there are corrupt
pages in a file, and only if there are turn off this flag.

Also fsanitize changed the behavior of mlock - mlock should fail if the
page reads fail, but with fsanitize it returns 0 then page faults on
access. This broke this test, and fsanitize offers little value on test
code, so disable it.

Test: incfs_test passes
Bug: 343532239
Change-Id: Id2ced4be3310109206d65dcc92dea05c05131182
Signed-off-by: Paul Lawrence <paullawrence@google.com>
2024-07-24 16:54:57 +00:00
..
data_mgmt.c ANDROID: incremental fs: Move throttling to outside page lock 2023-02-22 17:37:54 +00:00
data_mgmt.h ANDROID: incremental fs: Move throttling to outside page lock 2023-02-22 17:37:54 +00:00
format.c ANDROID: Incremental fs: fix minor printk format warning 2021-04-15 15:22:01 +00:00
format.h ANDROID: Incremental fs: Retry page faults on non-fatal errors 2024-07-24 16:54:57 +00:00
integrity.c ANDROID: Incremental fs: Remove dependency on PKCS7_MESSAGE_PARSER 2020-06-08 17:03:32 +00:00
integrity.h ANDROID: Incremental fs: Remove signature checks from kernel 2020-03-18 16:22:17 +00:00
internal.h ANDROID: Incremental fs: Add FS_IOC_ENABLE_VERITY 2021-03-01 16:15:32 +00:00
Kconfig ANDROID: Incremental fs: Add zstd compression support 2020-11-05 23:00:32 +00:00
main.c ANDROID: GKI: set vfs-only exports into their own namespace 2022-01-11 09:30:47 +01:00
Makefile ANDROID: Incremental fs: Add status to sysfs 2021-04-23 15:16:25 +00:00
pseudo_files.c ANDROID: Incremental fs: Allocate data buffer based on input request size 2023-07-17 14:53:51 +01:00
pseudo_files.h ANDROID: Incremental fs: fix .blocks_written 2021-01-14 16:02:38 +00:00
sysfs.c ANDROID: Incremental fs: Retry page faults on non-fatal errors 2024-07-24 16:54:57 +00:00
sysfs.h ANDROID: Incremental fs: Make sysfs_name changeable on remount 2021-05-17 20:08:37 +00:00
verity.c ANDROID: incremental fs: Move throttling to outside page lock 2023-02-22 17:37:54 +00:00
verity.h ANDROID: Incremental fs: Add FS_IOC_READ_VERITY_METADATA 2021-04-23 15:16:03 +00:00
vfs.c ANDROID: Incremental fs: Retry page faults on non-fatal errors 2024-07-24 16:54:57 +00:00
vfs.h Revert "ANDROID: incremental-fs: fix mount_fs issue" 2022-02-23 06:35:37 +00:00