]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: move f2fs_xattr_handlers and f2fs_xattr_handler_map to .rodata
authorWedson Almeida Filho <walmeida@microsoft.com>
Sat, 30 Sep 2023 05:00:14 +0000 (02:00 -0300)
committerChristian Brauner <brauner@kernel.org>
Mon, 9 Oct 2023 14:24:18 +0000 (16:24 +0200)
commita1c0752c33d25db28a9846ce82866a7f486f83e0
treeb5ac0ec402b62e10a7b5334950c74f713de1ae55
parentce78a1ec1c3b58992112c80ccb0831b91b7b313a
f2fs: move f2fs_xattr_handlers and f2fs_xattr_handler_map to .rodata

This makes it harder for accidental or malicious changes to
f2fs_xattr_handlers or f2fs_xattr_handler_map at runtime.

Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Chao Yu <chao@kernel.org>
Cc: linux-f2fs-devel@lists.sourceforge.net
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-11-wedsonaf@gmail.com
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/f2fs/xattr.c
fs/f2fs/xattr.h