public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters
       [not found]   ` <44F5D66D.8030500@redhat.com>
@ 2006-08-30 22:25     ` Theodore Tso
  2006-09-12  2:30     ` Comments on respun 16T patches: group_desc_loops Theodore Tso
  2006-09-12 19:28     ` [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters Theodore Tso
  2 siblings, 0 replies; 4+ messages in thread
From: Theodore Tso @ 2006-08-30 22:25 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: linux-ext4

First post!  (Note new mailing list)

On Wed, Aug 30, 2006 at 01:18:21PM -0500, Eric Sandeen wrote:
> I've respun & refactored the remaining patches against the mercurial 
> repo, and put changelog entries in...

Thanks, I appreciate it!  

					- Ted

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Comments on respun 16T patches: group_desc_loops
       [not found]   ` <44F5D66D.8030500@redhat.com>
  2006-08-30 22:25     ` [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters Theodore Tso
@ 2006-09-12  2:30     ` Theodore Tso
  2006-09-12 19:28     ` [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters Theodore Tso
  2 siblings, 0 replies; 4+ messages in thread
From: Theodore Tso @ 2006-09-12  2:30 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: linux-ext4

On Wed, Aug 30, 2006 at 01:18:21PM -0500, Eric Sandeen wrote:
> http://people.redhat.com/esandeen/ext3/e2fsprogs-1.39-16T/e2fsprogs-hg-20060830-16T-patches.tar.gz

In the group_desc_loops patches in the above tarball:

>For loops iterating over all group descriptors, consistently define
>first_block and last_block in a way that they are inclusive of the
>range, and do not overflow.
>
>Previously on the last block group we did a test of <= first + dec_blocks;
>this would actually wrap back to 0 for a total block count of 2^32-1

As far as I can tell this is not a problem.  sb->s_last_block can be
at most 2**32-1 --- which means that the last valid block number is
actually 2**32-2, since block numbers are zero based.

So as long as the handling of the last block group is correct, I don't
think we actually need to make the <= to < change.  It's not wrong to
make the change, just not necessary as far as I can see.  
Also, there are some files for which the only change was variable
names.  That's fine, but the changelogs should state that.

So there is a last block group handling bug in ext2fs_check_desc(),
but I didn't see any other bugs that this patch would actually affect.
Am I missing anything?

Regards,

						- Ted


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters
       [not found]   ` <44F5D66D.8030500@redhat.com>
  2006-08-30 22:25     ` [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters Theodore Tso
  2006-09-12  2:30     ` Comments on respun 16T patches: group_desc_loops Theodore Tso
@ 2006-09-12 19:28     ` Theodore Tso
  2006-09-12 19:38       ` Eric Sandeen
  2 siblings, 1 reply; 4+ messages in thread
From: Theodore Tso @ 2006-09-12 19:28 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: linux-ext4

On Wed, Aug 30, 2006 at 01:18:21PM -0500, Eric Sandeen wrote:
> new patchset & series is at
> 
> http://people.redhat.com/esandeen/ext3/e2fsprogs-1.39-16T/e2fsprogs-hg-20060830-16T-patches.tar.gz

I've applied your patches (with a few minor changes in the
ChangeLogs), and committed them into Mercurial.

Regards,

						- Ted


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters
  2006-09-12 19:28     ` [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters Theodore Tso
@ 2006-09-12 19:38       ` Eric Sandeen
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Sandeen @ 2006-09-12 19:38 UTC (permalink / raw)
  To: Theodore Tso; +Cc: linux-ext4

Theodore Tso wrote:
> On Wed, Aug 30, 2006 at 01:18:21PM -0500, Eric Sandeen wrote:
>> new patchset & series is at
>>
>> http://people.redhat.com/esandeen/ext3/e2fsprogs-1.39-16T/e2fsprogs-hg-20060830-16T-patches.tar.gz
> 
> I've applied your patches (with a few minor changes in the
> ChangeLogs), and committed them into Mercurial.
> 
> Regards,
> 
> 						- Ted

Thanks Ted!

There's one more lurking out there that I somehow neglected to put in 
the above patchset, sent 08/16/2006, [Ext2-devel] [PATCH] fix size 
calculation when mkfs is pointed at a regular file

http://article.gmane.org/gmane.comp.file-systems.ext2.devel/4703

Thanks,

-Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-12 19:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <44E3855D.5040303@redhat.com>
     [not found] ` <20060830061825.GB8046@thunk.org>
     [not found]   ` <44F5D66D.8030500@redhat.com>
2006-08-30 22:25     ` [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters Theodore Tso
2006-09-12  2:30     ` Comments on respun 16T patches: group_desc_loops Theodore Tso
2006-09-12 19:28     ` [Ext2-devel] [PATCH] 2/6 Detect overflows in loop counters Theodore Tso
2006-09-12 19:38       ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox