Re: [PATCH 8/14] xfsprogs: fix issues with e0607266f23

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/8/13 4:53 PM, Ben Myers wrote:
> A couple of issues found in review.
> 
> Signed-off-by: Ben Myers <bpm@xxxxxxx>
> 
> ---
>  libxfs/xfs_alloc.c |    9 ++-------
>  repair/dinode.c    |    9 +++------
>  2 files changed, 5 insertions(+), 13 deletions(-)

...


> Index: b/repair/dinode.c
> ===================================================================
> --- a/repair/dinode.c	2013-08-06 14:43:09.910817602 -0500
> +++ b/repair/dinode.c	2013-08-06 14:44:49.660857353 -0500
> @@ -182,12 +182,9 @@ clear_dinode_core(struct xfs_mount *mp, 
>  		platform_uuid_copy(&dinoc->di_uuid, &mp->m_sb.sb_uuid);
>  	}
>  
> -	for (i = 0; i < 16; i++) {
> -		if (dinoc->di_pad[i] != 0) {
> -			__dirty_no_modify_ret(dirty);
> -			memset(dinoc->di_pad, 0, 16);
> -			break;
> -		}
> +	if (dinoc->di_pad2 != 0) {
> +		__dirty_no_modify_ret(dirty);
> +		dinoc->di_pad2 = 0;

this probably needs to be fixed pronto, it's a memory corruptor right?

w/ a proper commit log, 

Reviewed-by: Eric Sandeen <sandeen@xxxxxxxxxx>

Thanks,
-Eric

>  	}
>  
>  	if (be64_to_cpu(dinoc->di_flags2) != 0)  {
> 

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux