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-next>] [day] [month] [year] [list]
Message-ID: <524f69650807231839g399f57a8ied548d81eefdbebd@mail.gmail.com>
Date:	Wed, 23 Jul 2008 20:39:37 -0500
From:	"Steve French" <smfrench@...il.com>
To:	"Harvey Harrison" <harvey.harrison@...il.com>,
	"Shirish Pargaonkar" <shirishpargaonkar@...il.com>
Cc:	"Jeff Layton" <jlayton@...hat.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: cifs: suggestions for a few more sparse warnings

On Wed, Jul 23, 2008 at 7:55 PM, Harvey Harrison
<harvey.harrison@...il.com> wrote:
> Here's a patch for some of the other warnings, but the cifsacl.c bit
> needs a comment I think.
>
> Harvey
>
> diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c
> index 34902cf..70f0ef5 100644
> --- a/fs/cifs/cifsacl.c
> +++ b/fs/cifs/cifsacl.c
> @@ -169,8 +169,7 @@ static void copy_sec_desc(const struct cifs_ntsd *pntsd,
>        for (i = 0; i < 6; i++)
>                ngroup_sid_ptr->authority[i] = group_sid_ptr->authority[i];
>        for (i = 0; i < 5; i++)
> -               ngroup_sid_ptr->sub_auth[i] =
> -                               cpu_to_le32(group_sid_ptr->sub_auth[i]);
> +               cpu_to_le32s(&group_sid_ptr->sub_auth[i]);
>
>        return;
>  }

No - the cifsacl one looks like just a bug - there should not be an
endian conversion here.

Shirish,
Would you verify?

-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ