lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 15 Sep 2006 20:11:00 +0200
From:	Alexandre Ratchov <alexandre.ratchov@...l.net>
To:	Andreas Dilger <adilger@...sterfs.com>
Cc:	Alexandre Ratchov <alexandre.ratchov@...l.net>,
	linux-ext4@...r.kernel.org,
	Jean-Pierre Dion <jean-pierre.dion@...l.net>
Subject: Re: [patch] 48bit extents in e2fsprogs

On Fri, Sep 15, 2006 at 10:57:43AM -0600, Andreas Dilger wrote:
> On Sep 15, 2006  14:05 +0200, Alexandre Ratchov wrote:
> > here is a patch that fixes 48bit extents in e2fsprogs. Basically, it wraps
> > acces to 48bit filds of extent indexes and leaves in macros, so 32bit fields
> > are no more (mis)used, see EXT3_EE_START and EXT3_EI_LEAF macros definitions.
> 
> This looks mostly good...  Some minor comments.
> - please wrap lines at 80 columns
> - the check for ee_start_hi and ei_leaf_hi fields (PR_1_EXTENT_HI) needs to
>   be fixed (I don't see it changed here) so that it considers that an error
>   only if INCOMPAT_64BIT flag is set and the filesystem is > 2^32 blocks.
>   That is in e2fsck_ext_block_verify()
> - (FYI) In my definition of PR_1_EXTENT_HI I recently added the PR_PREEN_NOMSG
>   flag because users were confused about the "High 16 bits of extent/index
>   block set" message even though it is harmless for 32-bit filesystems.

just to be sure to get it right: we allow 32bit file-systems to have extents
with _hi bits set, right? (and *_hi are ignored)

so we can't simply assume that extents are always 48bit, in which case it
would be enough to just check that they are inside the block group (that
would detect extents with *_hi set as corrupt).

> - In my patch (due to Ted's upstream repository changes) I've renamed
>   everything to be ext4_* and EXT4_*.  Ted renamed EXT3_EXTENTS_FL to be
>   EXT4_EXTENTS_FL, and I'm guessing he'll do the same with the rest...
> 
> >  	if (ix) {
> > -		/* FIXME: 48-bit support */
> >  		if (ex->ee_block < ix->ei_block)
> 
> My bad...
> 
> > @@ -298,15 +294,16 @@ int block_iterate_extents(struct ext3_ex
> >  			}
> > -			ctx->errcode = ext2fs_read_ext_block(ctx->fs,
> > -							     ix->ei_leaf,
> > -							     block_buf);
> > +			ctx->errcode = ext2fs_read_ext_block(
> > +				ctx->fs, EXT3_EI_LEAF(ix), block_buf);
> 
> I think the original code is more consistent with the e2fsprogs coding style.
> 
> As always, many thanks for the good work.
> 
> Can you also please change your patch series NOT to add s_*_count_hi in
> the wrong place in 16-blk-64bit, and then change it back in 64bit-fixsb?
> That is very dangerous if the patch series is partially used and just
> adds confusion when reviewing the patches.
> 
> Also, the same 16-blk-64bit patch uses EXT2_FEATURE_RO_COMPAT_64BIT, but
> later this is changed in 20-blk-64bit-compat to be INCOMPAT_64BIT.  I
> suspect Ted will want to call this EXT4_FEATURE_INCOMPAT_64BIT in the end
> (maybe he can comment on what the preferred names are for all the new flags).
>
> Can you please fix this in the original patches instead of adding a later
> patch that fixes the previous patches?
> 

yes of course; i'll try take the latest e2fsprogs (-wip) and update all my
patches following your suggestions... clean-up, re-ording, coding style,
naming, etc.

thanks for your comments, they are very helpful for me

-- Alexandre
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ