On 22/11/28 03:44PM, Theodore Ts'o wrote: > On Thu, Aug 18, 2022 at 08:13:53PM +0530, Ritesh Harjani (IBM) wrote: > > Folding a small patch to implement the simple bound check. Is this the right > > approach? > > > > From: "Ritesh Harjani (IBM)" <ritesh.list@xxxxxxxxx> > > Date: Thu, 18 Aug 2022 07:53:58 -0500 > > Subject: [RFC] ext4: Add ext4_sb_getblk() wrapper for block bounds checking > > > > We might need more bounds checking on the block before calling sb_getblk(). > > This helper does that and if it is not valid then returns ERR_PTR(-EFSCORRUPTED) > > Later we will need to carefully convert the callers to use ext4_sb_getblk() > > instead of sb_getblk(). > > Hey Ritesh, > > I was going through some old patches and came across this RFC patch. > Have you had a chance to polish this up? I don't think I've seen a > newer version of this patch, but maybe I missed it. Hello Ted, Sorry, I guess I completely forgot about this, since around those dates I was travelling. I will definitely try and get back to this once I finish few ongoing things on my plate. Thanks for bringing it up! -ritesh