Re: [PATCH v2 1/9] btrfs: Introduce btrfs_is_namelen_valid to avoid reading beyond boundary

2017-06-01 Thread Su Yue
On 06/01/2017 05:44 PM, Nikolay Borisov wrote: On 1.06.2017 11:57, Su Yue wrote: Introduce function btrfs_is_namelen_valid. The function compares arg @namelen with item boundary then returns value represents namelen is valid or not. Signed-off-by: Su Yue --- fs/btrfs/ctree.h| 2 ++

Re: [PATCH v2 1/9] btrfs: Introduce btrfs_is_namelen_valid to avoid reading beyond boundary

2017-06-01 Thread Nikolay Borisov
On 1.06.2017 11:57, Su Yue wrote: > Introduce function btrfs_is_namelen_valid. > > The function compares arg @namelen with item boundary then returns value > represents namelen is valid or not. > > Signed-off-by: Su Yue > --- > fs/btrfs/ctree.h| 2 ++ > fs/btrfs/dir-item.c | 73 > +

[PATCH v2 1/9] btrfs: Introduce btrfs_is_namelen_valid to avoid reading beyond boundary

2017-06-01 Thread Su Yue
Introduce function btrfs_is_namelen_valid. The function compares arg @namelen with item boundary then returns value represents namelen is valid or not. Signed-off-by: Su Yue --- fs/btrfs/ctree.h| 2 ++ fs/btrfs/dir-item.c | 73 + 2 files