Re: [PATCH 1/6] Btrfs: add a helper to retrive extent inline ref type

2017-05-26 Thread David Sterba
On Fri, May 26, 2017 at 08:13:05PM +0200, David Sterba wrote: > On Fri, May 26, 2017 at 10:09:54AM +0300, Nikolay Borisov wrote: > > > > > > On 26.05.2017 03:26, Liu Bo wrote: > > > An invalid value of extent inline ref type may be read from a > > > malicious image which may force btrfs to

Re: [PATCH 1/6] Btrfs: add a helper to retrive extent inline ref type

2017-05-26 Thread David Sterba
On Fri, May 26, 2017 at 10:09:54AM +0300, Nikolay Borisov wrote: > > > On 26.05.2017 03:26, Liu Bo wrote: > > An invalid value of extent inline ref type may be read from a > > malicious image which may force btrfs to crash. > > > > This adds a helper which does sanity check for the ref type, so

Re: [PATCH 1/6] Btrfs: add a helper to retrive extent inline ref type

2017-05-26 Thread Jeff Mahoney
On 5/26/17 3:09 AM, Nikolay Borisov wrote: > > > On 26.05.2017 03:26, Liu Bo wrote: >> An invalid value of extent inline ref type may be read from a >> malicious image which may force btrfs to crash. >> >> This adds a helper which does sanity check for the ref type, so we can >> know if it's

Re: [PATCH 1/6] Btrfs: add a helper to retrive extent inline ref type

2017-05-26 Thread Nikolay Borisov
On 26.05.2017 03:26, Liu Bo wrote: > An invalid value of extent inline ref type may be read from a > malicious image which may force btrfs to crash. > > This adds a helper which does sanity check for the ref type, so we can > know if it's sane, return type if so, otherwise return an error. > >

[PATCH 1/6] Btrfs: add a helper to retrive extent inline ref type

2017-05-25 Thread Liu Bo
An invalid value of extent inline ref type may be read from a malicious image which may force btrfs to crash. This adds a helper which does sanity check for the ref type, so we can know if it's sane, return type if so, otherwise return an error. Signed-off-by: Liu Bo ---