]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: allocate extended attribute value in vmalloc area
authorYe Bin <yebin10@huawei.com>
Thu, 8 Dec 2022 02:32:31 +0000 (10:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:52 +0000 (11:41 +0100)
commitee36e441feb58e5a0e8276654aec0e391d5b2b81
treeb8c7dd1e182d8f09802fbf9f5e31bc4faa0e1a11
parent40020a55276eca99df079958bb149d9f78d3bf6c
ext4: allocate extended attribute value in vmalloc area

commit cc12a6f25e07ed05d5825a1664b67a970842b2ca upstream.

Now, extended attribute value maximum length is 64K. The memory
requested here does not need continuous physical addresses, so it is
appropriate to use kvmalloc to request memory. At the same time, it
can also cope with the situation that the extended attribute will
become longer in the future.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221208023233.1231330-3-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/xattr.c