]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: check for NUL characters in extended attribute's name
authorTheodore Ts'o <tytso@mit.edu>
Wed, 1 Aug 2018 16:36:52 +0000 (12:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Aug 2018 16:36:52 +0000 (12:36 -0400)
commitf651c3a993c18be365d31c2b2b7c25caa2c1db25
treee5e343d20f0e2ba6efb9eaf970683c4ebc1c68df
parent385cf1455791fb6a7df88b063fbc80a8c837b0b6
ext4: check for NUL characters in extended attribute's name

Extended attribute names are defined to be NUL-terminated, so the name
must not contain a NUL character.  This is important because there are
places when remove extended attribute, the code uses strlen to
determine the length of the entry.  That should probably be fixed at
some point, but code is currently really messy, so the simplest fix
for now is to simply validate that the extended attributes are sane.

https://bugzilla.kernel.org/show_bug.cgi?id=200401

Reported-by: Wen Xu <wen.xu@gatech.edu>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/xattr.c