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-06-17 11:25:35 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-01-25 15:27:52 -08:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%