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]
Message-ID: <1512042402.34281.1.camel@primarydata.com>
Date:   Thu, 30 Nov 2017 11:46:44 +0000
From:   Trond Myklebust <trondmy@...marydata.com>
To:     "torvalds@...ux-foundation.org" <torvalds@...ux-foundation.org>,
        "rostedt@...dmis.org" <rostedt@...dmis.org>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "Anna.Schumaker@...app.com" <Anna.Schumaker@...app.com>,
        "akpm@...ux-foundation.org" <akpm@...ux-foundation.org>
Subject: Re: [BUILD FAILURE] nfs4state.c fails to compile with gcc 4.5.4

On Wed, 2017-11-29 at 23:05 -0500, Steven Rostedt wrote:
> On Wed, 29 Nov 2017 19:44:33 -0800
> Linus Torvalds <torvalds@...ux-foundation.org> wrote:
> 
> I keep older compilers around to test ftrace before -mfentry was
> introduced.
> 
> I wonder if I should just add a config to force the use without
> -mfentry even if the compiler supports it.
> 
> >  fs/nfs/nfs4state.c   | 3 +--
> >  include/linux/nfs4.h | 2 +-
> >  2 files changed, 2 insertions(+), 3 deletions(-)
> > 
> > diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
> > index 54fd56d715a8..9db5d0d57fcb 100644
> > --- a/fs/nfs/nfs4state.c
> > +++ b/fs/nfs/nfs4state.c
> > @@ -71,8 +71,7 @@ const nfs4_stateid zero_stateid = {
> >  };
> >  const nfs4_stateid invalid_stateid = {
> >  	{
> > -		.seqid = cpu_to_be32(0xffffffffU),
> > -		.other = { 0 },
> > +		{ .seqid = cpu_to_be32(0xffffffffU), .other = { 0
> > }, },
> 
> I tried this and it failed.
> 
> >  	},
> >  	.type = NFS4_INVALID_STATEID_TYPE,
> >  };
> > diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
> > index 47adac640191..e394ba0cd6c5 100644
> > --- a/include/linux/nfs4.h
> > +++ b/include/linux/nfs4.h
> > @@ -53,11 +53,11 @@ typedef struct { char data[NFS4_VERIFIER_SIZE];
> > } nfs4_verifier;
> >  
> >  struct nfs4_stateid_struct {
> >  	union {
> > -		char data[NFS4_STATEID_SIZE];
> >  		struct {
> >  			__be32 seqid;
> >  			char other[NFS4_STATEID_OTHER_SIZE];
> >  		} __attribute__ ((packed));
> > +		char data[NFS4_STATEID_SIZE];
> 
> But I didn't try this. This looks to be the key.
> 
> This works for me.
> 
> Tested-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
> 
> -- Steve
> 
> >  	};
> >  
> >  	enum {
> 
> 

We already have a fix queued up for this issue. It was reported and the
patch hit linux-nfs+linux-kernel almost 2 weeks ago. Anna?

-- 
Trond Myklebust
Linux NFS client maintainer, PrimaryData
trond.myklebust@...marydata.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ