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, 10 Oct 2008 14:26:20 -0400
From:	Theodore Tso <tytso@....edu>
To:	Kalpak Shah <Kalpak.Shah@....COM>
Cc:	linux-ext4 <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH][5/15] e2fsprogs-uninit-fixes.patch

On Mon, Oct 06, 2008 at 04:01:10PM +0530, Kalpak Shah wrote:
> Bug fixes for uninit_bg feature:
> - display correct inode number during BG_INO_UNINIT and INOREF_IN_USED
> errors
> - restart e2fsck only once in case of above errors
> - initialize bitmaps properly considering whether block group is uninit
> or not (needed for e2freefrag)
> 
> Signed-off-by: Kalpak Shah <kalpak.shah@....com>

> Bug fixes for uninit_bg feature:
> - display correct inode number during BG_INO_UNINIT and INOREF_IN_USED errors
> - restart e2fsck only once in case of above errors
> - initialize bitmaps properly considering uninit or not (needed for e2freefrag)
> 
> Index: e2fsprogs-1.41.1/debugfs/set_fields.c
> ===================================================================
> --- e2fsprogs-1.41.1.orig/debugfs/set_fields.c
> +++ e2fsprogs-1.41.1/debugfs/set_fields.c
> @@ -566,6 +566,7 @@ void do_set_block_group_descriptor(int a
>  	}
>  
>  	set_gd = current_fs->group_desc[set_bg];
> +	set_sb = *current_fs->super;
>  
>  	if (ss->func(ss, argv[3]) == 0) {
>  		current_fs->group_desc[set_bg] = set_gd;

Why is this needed?  None of the table entries used by
set_block_group_descriptor requires set_sb to be set?


> Index: e2fsprogs-1.41.1/e2fsck/problem.c
> ===================================================================
> --- e2fsprogs-1.41.1.orig/e2fsck/problem.c
> +++ e2fsprogs-1.41.1/e2fsck/problem.c
> @@ -1301,12 +1301,12 @@ static struct e2fsck_problem problem_tab
>  
>  	/* Inode found in group where _INODE_UNINIT is set */
>  	{ PR_2_INOREF_BG_INO_UNINIT,
> -	  N_("@i %i found in @g %g where _INODE_UNINIT is set.  "),
> +	  N_("@i %N found in @g %g where _INODE_UNINIT is set.  "),
>  	  PROMPT_FIX, PR_PREEN_OK },
>  
>  	/* Inode found in group unused inodes area */
>  	{ PR_2_INOREF_IN_UNUSED,
> -	  N_("@i %i found in @g %g unused inodes area.  "),
> +	  N_("@i %N found in @g %g unused inodes area.  "),
>  	  PROMPT_FIX, PR_PREEN_OK },
>  

This doesn't look right.  %N prints pctx.num, which is set to the
directory entry's offset.  It looks like %Di is the correct expansion,
and maybe something like this:

    @E references @i %Di in @g %g where _INODE_UNINIT is set.\n

and

    @E references @i %Di in @g %g unused inods area.\n

							- Ted
--
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