Re: [PATCH] btrfs: fix validation of XATTR_ITEM dir items

2017-06-27 Thread Filipe Manana
On Wed, Jun 21, 2017 at 4:46 PM, David Sterba wrote: > The XATTR_ITEM is a type of a directory item so we use the common > validator helper. We have to adjust the limits because of potential > data_len (ie. the xattr value), which is otherwise 0 for other directory > items. Did you run fstests?

[PATCH] btrfs: fix validation of XATTR_ITEM dir items

2017-06-21 Thread David Sterba
The XATTR_ITEM is a type of a directory item so we use the common validator helper. We have to adjust the limits because of potential data_len (ie. the xattr value), which is otherwise 0 for other directory items. Signed-off-by: David Sterba --- fs/btrfs/dir-item.c | 12 +++- 1 file chan