-
- Downloads
fs: unicode: Add utf8 module and a unicode layer
utf8data.h_shipped has a large database table which is an auto-generated
decodification trie for the unicode normalization functions.
It is not necessary to load this large table in the kernel if no
file system is using it, hence make UTF-8 encoding loadable by converting
it into a module.
Modify the file called unicode-core which will act as a layer for
unicode subsystem. It will load the UTF-8 module and access it's functions
whenever any filesystem that needs unicode is mounted.
Also, indirect calls using function pointers are easily exploitable by
speculative execution attacks, hence use static_call() in unicode.h and
unicode-core.c files inorder to prevent these attacks by making direct
calls and also to improve the performance of function pointers.
Signed-off-by:
Shreeya Patel <shreeya.patel@collabora.com>
Showing
- fs/unicode/Kconfig 10 additions, 1 deletionfs/unicode/Kconfig
- fs/unicode/Makefile 4 additions, 1 deletionfs/unicode/Makefile
- fs/unicode/unicode-core.c 88 additions, 182 deletionsfs/unicode/unicode-core.c
- fs/unicode/unicode-utf8.c 255 additions, 0 deletionsfs/unicode/unicode-utf8.c
- include/linux/unicode.h 85 additions, 14 deletionsinclude/linux/unicode.h
Loading
Please register or sign in to comment