Re: [PATCH] befs: return BEFS_ERR if validation of ag_shift fails

2016-08-16 Thread Salah Triki
On Fri, Aug 12, 2016 at 12:00:34PM +0100, Luis de Bethencourt wrote: > On 12/08/16 11:12, Salah Triki wrote: > > ag_shift is used by blockno2iaddr() to get allocation group number > > from block. If ag_shift is inconsistent with block_per_ag, an out of > > bounds allocation group may occur [1]. So

Re: [PATCH] befs: return BEFS_ERR if validation of ag_shift fails

2016-08-16 Thread Salah Triki
On Fri, Aug 12, 2016 at 12:00:34PM +0100, Luis de Bethencourt wrote: > On 12/08/16 11:12, Salah Triki wrote: > > ag_shift is used by blockno2iaddr() to get allocation group number > > from block. If ag_shift is inconsistent with block_per_ag, an out of > > bounds allocation group may occur [1]. So

Re: [PATCH] befs: return BEFS_ERR if validation of ag_shift fails

2016-08-12 Thread Luis de Bethencourt
On 12/08/16 11:12, Salah Triki wrote: > ag_shift is used by blockno2iaddr() to get allocation group number > from block. If ag_shift is inconsistent with block_per_ag, an out of > bounds allocation group may occur [1]. So add return BEFS_ERR and update > comment and error message to reflect this

Re: [PATCH] befs: return BEFS_ERR if validation of ag_shift fails

2016-08-12 Thread Luis de Bethencourt
On 12/08/16 11:12, Salah Triki wrote: > ag_shift is used by blockno2iaddr() to get allocation group number > from block. If ag_shift is inconsistent with block_per_ag, an out of > bounds allocation group may occur [1]. So add return BEFS_ERR and update > comment and error message to reflect this

[PATCH] befs: return BEFS_ERR if validation of ag_shift fails

2016-08-12 Thread Salah Triki
ag_shift is used by blockno2iaddr() to get allocation group number from block. If ag_shift is inconsistent with block_per_ag, an out of bounds allocation group may occur [1]. So add return BEFS_ERR and update comment and error message to reflect this change. [1] https://lkml.org/lkml/2016/8/12/42

[PATCH] befs: return BEFS_ERR if validation of ag_shift fails

2016-08-12 Thread Salah Triki
ag_shift is used by blockno2iaddr() to get allocation group number from block. If ag_shift is inconsistent with block_per_ag, an out of bounds allocation group may occur [1]. So add return BEFS_ERR and update comment and error message to reflect this change. [1] https://lkml.org/lkml/2016/8/12/42