Yifeng Zhao
151ca068c0
fs: inline_crypt: add parameter check
force_page_cache_ra did not perform parameter checking when calling
fscryptnode_uses_fs_layer_crypto, resulting in illegal memory access.
Bug:
Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000011
pc : __fscrypt_inode_uses_inline_crypto+0x4/0xc
lr : force_page_cache_ra+0x7c/0x128
sp : ffffffc00d593ad0
x29: ffffffc00d593ad0 x28: 00000000ffffffff x27: ffffffc00d593d40
x26: 0000000000000000 x25: 0000000000000153 x24: 0000000000000143
fscrypt_inode_uses_inline_crypto+0x4/0xc
page_cache_sync_ra+0x68/0x90
filemap_read+0x194/0xb14
generic_file_read_iter+0x44/0x134
vfs_read+0x1a8/0x27c
arm64_sys_pread64+0x84/0xc8
invoke_syscall+0x40/0x104
el0_svc_common+0xbc/0x168
do_el0_svc+0x1c/0x28
el0_svc+0x1c/0x68
el0t_64_sync_handler+0x68/0xb4
el0t_64_sync+0x164/0x168
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I5a69580f26e578e46110782d3d20c9f1df2acd50
2024-06-17 11:25:35 +08:00
..
2024-01-10 17:10:31 +01:00
2024-01-10 17:10:31 +01:00
2023-10-26 17:52:15 +00:00
2024-01-10 17:10:35 +01:00
2024-01-10 17:10:31 +01:00
2024-01-10 17:10:31 +01:00
2023-10-26 09:30:40 +00:00
2024-06-17 11:25:35 +08:00
2024-01-20 11:50:04 +01:00
2023-09-19 12:20:22 +02:00
2024-01-25 15:27:20 -08:00
2024-05-08 11:14:32 +08:00
2023-11-28 17:07:00 +00:00
2023-10-26 17:52:15 +00:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-01-01 12:39:08 +00:00
2024-01-25 15:27:22 -08:00
2023-06-27 08:23:11 +00:00
2023-12-08 08:51:20 +01:00
2024-01-20 11:50:07 +01:00
2023-08-03 11:23:27 +00:00
2023-11-28 17:06:59 +00:00
2023-08-03 11:23:27 +00:00
2023-09-19 12:20:15 +02:00
2023-10-06 14:56:32 +02:00
2024-01-25 15:27:23 -08:00
2024-01-15 18:54:50 +01:00
2023-12-13 18:39:19 +01:00
2023-09-30 15:48:01 +00:00
2023-08-03 11:23:27 +00:00
2023-11-08 14:10:59 +01:00
2023-09-19 11:32:32 +00:00
2023-11-28 17:07:12 +00:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2023-11-28 17:07:13 +00:00
2023-07-27 08:44:13 +02:00
2023-09-19 11:32:32 +00:00
2024-01-25 15:27:41 -08:00
2023-08-25 12:26:58 +00:00
2023-10-26 17:52:15 +00:00
2024-05-08 11:14:32 +08:00
2023-09-19 11:32:32 +00:00
2023-09-19 11:32:32 +00:00
2023-11-28 17:07:15 +00:00
2023-10-26 17:52:15 +00:00
2023-10-26 17:54:46 +00:00
2023-07-01 13:16:25 +02:00
2023-05-20 18:57:29 +08:00
2023-08-10 11:28:35 +00:00
2023-09-19 12:20:06 +02:00
2023-06-28 10:31:14 +00:00
2023-07-01 13:16:25 +02:00
2023-08-11 12:08:23 +02:00
2023-09-13 09:42:28 +02:00
2023-11-20 11:51:50 +01:00
2024-01-10 17:10:32 +01:00
2023-08-30 16:11:10 +02:00
2023-12-01 19:31:39 +08:00
2023-09-23 11:11:00 +02:00
2023-06-28 11:12:40 +02:00
2024-01-05 15:18:29 +01:00
2024-01-25 15:27:22 -08:00
2023-08-25 12:26:58 +00:00
2024-01-10 17:10:31 +01:00
2023-05-30 12:57:55 +01:00
2023-08-25 12:26:58 +00:00
2023-04-26 14:28:37 +02:00