* [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
@ 2006-07-31 13:55 Haavard Skinnemoen
2006-07-31 15:46 ` Haavard Skinnemoen
0 siblings, 1 reply; 12+ messages in thread
From: Haavard Skinnemoen @ 2006-07-31 13:55 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
Hi Andrew,
I'm back from vacation, so I figured I should try to compile the latest
-mm for AVR32. It failed immediately, so here's a set of patches to fix
the breakage. I guess I should have tried a clean build before
submitting the last update, as I would have noticed that
include/config/MARKER doesn't exist anymore.
Anyway, 2.6.18-rc2-mm1 boots successfully on my target with these
patches, but there's something strange going on with NFS and a few
other things that I didn't notice on 2.6.18-rc1. I'll investigate
some more and see if I can figure out what's going on.
Do you want me to keep sending incremental patches, by the way? I can
fold everything (or at least the trivial stuff) into avr32-arch.patch
if you want.
Here's a shortlog of the patches coming up:
AVR32: Use auto.conf instead of MARKER
AVR32: Don't assume anything about MAX_NR_ZONES
AVR32: Add nsproxy definition
AVR32: Add I/O port access primitives
AVR32: Use linux/pfn.h
AVR32: Kill CONFIG_DISCONTIGMEM support completely
Haavard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-07-31 13:55 [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1 Haavard Skinnemoen
@ 2006-07-31 15:46 ` Haavard Skinnemoen
2006-07-31 18:40 ` Trond Myklebust
0 siblings, 1 reply; 12+ messages in thread
From: Haavard Skinnemoen @ 2006-07-31 15:46 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, Trond Myklebust
On Mon, 31 Jul 2006 15:55:15 +0200
Haavard Skinnemoen <hskinnemoen@atmel.com> wrote:
> Anyway, 2.6.18-rc2-mm1 boots successfully on my target with these
> patches, but there's something strange going on with NFS and a few
> other things that I didn't notice on 2.6.18-rc1. I'll investigate
> some more and see if I can figure out what's going on.
All forms of write access to the NFS root file system seem to return
-EACCESS. If I leave out git-nfs.patch, the problem goes away, so I'll
try bisecting the NFS git tree tomorrow.
Is there anyway to access it via http?
Haavard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-07-31 15:46 ` Haavard Skinnemoen
@ 2006-07-31 18:40 ` Trond Myklebust
2006-08-01 8:12 ` Haavard Skinnemoen
0 siblings, 1 reply; 12+ messages in thread
From: Trond Myklebust @ 2006-07-31 18:40 UTC (permalink / raw)
To: Haavard Skinnemoen; +Cc: akpm, linux-kernel
On Mon, 2006-07-31 at 17:46 +0200, Haavard Skinnemoen wrote:
> On Mon, 31 Jul 2006 15:55:15 +0200
> Haavard Skinnemoen <hskinnemoen@atmel.com> wrote:
>
> > Anyway, 2.6.18-rc2-mm1 boots successfully on my target with these
> > patches, but there's something strange going on with NFS and a few
> > other things that I didn't notice on 2.6.18-rc1. I'll investigate
> > some more and see if I can figure out what's going on.
>
> All forms of write access to the NFS root file system seem to return
> -EACCESS. If I leave out git-nfs.patch, the problem goes away, so I'll
> try bisecting the NFS git tree tomorrow.
can you check in /proc/self/mountstats what mount options are set on the
root file system?
> Is there anyway to access it via http?
The individual patches are archived in
http://client.linux-nfs.org/Linux-2.6.x/2.6.18-rc3/
There is also gitweb access via
http://linux-nfs.org/cgi-bin/gitweb.cgi
Cheers,
Trond
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-07-31 18:40 ` Trond Myklebust
@ 2006-08-01 8:12 ` Haavard Skinnemoen
2006-08-01 16:47 ` Trond Myklebust
0 siblings, 1 reply; 12+ messages in thread
From: Haavard Skinnemoen @ 2006-08-01 8:12 UTC (permalink / raw)
To: Trond Myklebust; +Cc: akpm, linux-kernel, David Howells
On Mon, 31 Jul 2006 11:40:58 -0700
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> On Mon, 2006-07-31 at 17:46 +0200, Haavard Skinnemoen wrote:
> > On Mon, 31 Jul 2006 15:55:15 +0200
> > Haavard Skinnemoen <hskinnemoen@atmel.com> wrote:
> >
> > > Anyway, 2.6.18-rc2-mm1 boots successfully on my target with these
> > > patches, but there's something strange going on with NFS and a few
> > > other things that I didn't notice on 2.6.18-rc1. I'll investigate
> > > some more and see if I can figure out what's going on.
> >
> > All forms of write access to the NFS root file system seem to return
> > -EACCESS. If I leave out git-nfs.patch, the problem goes away, so
> > I'll try bisecting the NFS git tree tomorrow.
>
> can you check in /proc/self/mountstats what mount options are set on
> the root file system?
rw,vers=2,rsize=4096,wsize=4096,acregmin=3,acregmax=60,acdirmin=30,
acdirmax=60,hard,nolock,proto=udp,timeo=11,retrans=2,sec=null
> > Is there anyway to access it via http?
>
> The individual patches are archived in
Thanks, I cloned the git repository via my home PC so I could do a real
bisect, which ended up blaming this patch:
NFS: Share NFS superblocks per-protocol per-server per-FSID
from David Howells. The patch is quite large, so I'm not able to spot
anything obvious. Please let me know if you want me to test something.
Haavard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-01 8:12 ` Haavard Skinnemoen
@ 2006-08-01 16:47 ` Trond Myklebust
2006-08-01 17:39 ` David Howells
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Trond Myklebust @ 2006-08-01 16:47 UTC (permalink / raw)
To: Haavard Skinnemoen; +Cc: akpm, linux-kernel, David Howells
[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]
On Tue, 2006-08-01 at 10:12 +0200, Haavard Skinnemoen wrote:
> On Mon, 31 Jul 2006 11:40:58 -0700
> Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
>
> > On Mon, 2006-07-31 at 17:46 +0200, Haavard Skinnemoen wrote:
> > > On Mon, 31 Jul 2006 15:55:15 +0200
> > > Haavard Skinnemoen <hskinnemoen@atmel.com> wrote:
> > >
> > > > Anyway, 2.6.18-rc2-mm1 boots successfully on my target with these
> > > > patches, but there's something strange going on with NFS and a few
> > > > other things that I didn't notice on 2.6.18-rc1. I'll investigate
> > > > some more and see if I can figure out what's going on.
> > >
> > > All forms of write access to the NFS root file system seem to return
> > > -EACCESS. If I leave out git-nfs.patch, the problem goes away, so
> > > I'll try bisecting the NFS git tree tomorrow.
> >
> > can you check in /proc/self/mountstats what mount options are set on
> > the root file system?
>
> rw,vers=2,rsize=4096,wsize=4096,acregmin=3,acregmax=60,acdirmin=30,
> acdirmax=60,hard,nolock,proto=udp,timeo=11,retrans=2,sec=null
That 'sec=null' would explain why you are seeing a problem, and the
attached patch ought to fix it.
Cheers,
Trond
[-- Attachment #2: linux-2.6.18-036-nfs-fix_auth_mount.dif --]
[-- Type: message/rfc822, Size: 931 bytes --]
From: Trond Myklebust <Trond.Myklebust@netapp.com>
Subject: No Subject
Date: Tue, 01 Aug 2006 09:47:17 -0700
Message-ID: <1154450837.5605.20.camel@localhost>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---
fs/nfs/super.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 867b5dc..d744f63 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -471,9 +471,10 @@ static int nfs_validate_mount_data(struc
data->version);
return -EINVAL;
}
- /* Fill in pseudoflavor for mount version < 5 */
- data->pseudoflavor = RPC_AUTH_UNIX;
case 5:
+ /* Set the pseudoflavor */
+ if (!(data->flags & NFS_MOUNT_SECFLAVOUR))
+ data->pseudoflavor = RPC_AUTH_UNIX;
memset(data->context, 0, sizeof(data->context));
}
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-01 16:47 ` Trond Myklebust
@ 2006-08-01 17:39 ` David Howells
2006-08-01 18:08 ` Trond Myklebust
2006-08-01 18:22 ` David Howells
2006-08-02 7:45 ` Haavard Skinnemoen
2 siblings, 1 reply; 12+ messages in thread
From: David Howells @ 2006-08-01 17:39 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Haavard Skinnemoen, akpm, linux-kernel, David Howells
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> + /* Set the pseudoflavor */
> + if (!(data->flags & NFS_MOUNT_SECFLAVOUR))
> + data->pseudoflavor = RPC_AUTH_UNIX;
> memset(data->context, 0, sizeof(data->context));
Should the memset() conditional also?
David
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-01 17:39 ` David Howells
@ 2006-08-01 18:08 ` Trond Myklebust
0 siblings, 0 replies; 12+ messages in thread
From: Trond Myklebust @ 2006-08-01 18:08 UTC (permalink / raw)
To: David Howells; +Cc: Haavard Skinnemoen, akpm, linux-kernel
On Tue, 2006-08-01 at 18:39 +0100, David Howells wrote:
> Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
>
> > + /* Set the pseudoflavor */
> > + if (!(data->flags & NFS_MOUNT_SECFLAVOUR))
> > + data->pseudoflavor = RPC_AUTH_UNIX;
> > memset(data->context, 0, sizeof(data->context));
>
> Should the memset() conditional also?
No. That should be unconditional...
Cheers,
Trond
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-01 16:47 ` Trond Myklebust
2006-08-01 17:39 ` David Howells
@ 2006-08-01 18:22 ` David Howells
2006-08-02 7:45 ` Haavard Skinnemoen
2 siblings, 0 replies; 12+ messages in thread
From: David Howells @ 2006-08-01 18:22 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Haavard Skinnemoen, akpm, linux-kernel, David Howells
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> That 'sec=null' would explain why you are seeing a problem, and the
> attached patch ought to fix it.
I've inserted this patch into my patchset (now version #9) at position 32
after my security fix, and posted the new patchset in the usual place. Your
git tree carries patches 1-29 currently.
David
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-01 16:47 ` Trond Myklebust
2006-08-01 17:39 ` David Howells
2006-08-01 18:22 ` David Howells
@ 2006-08-02 7:45 ` Haavard Skinnemoen
2006-08-03 14:34 ` Trond Myklebust
2 siblings, 1 reply; 12+ messages in thread
From: Haavard Skinnemoen @ 2006-08-02 7:45 UTC (permalink / raw)
To: Trond Myklebust; +Cc: akpm, linux-kernel, David Howells
On Tue, 01 Aug 2006 09:47:27 -0700
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> That 'sec=null' would explain why you are seeing a problem, and the
> attached patch ought to fix it.
That does explain it, but unfortunately the patch doesn't fix it
because data->version is 6. I added "case 6:" on the line after "case
5:", and it solved the problem.
I don't know what the difference between version 5 and 6 is, but I
suspect it has something to do with data->context?
Haavard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-02 7:45 ` Haavard Skinnemoen
@ 2006-08-03 14:34 ` Trond Myklebust
2006-08-03 15:33 ` Haavard Skinnemoen
2006-08-03 15:46 ` David Howells
0 siblings, 2 replies; 12+ messages in thread
From: Trond Myklebust @ 2006-08-03 14:34 UTC (permalink / raw)
To: Haavard Skinnemoen, Andi Kleen; +Cc: akpm, linux-kernel, David Howells
[-- Attachment #1: Type: text/plain, Size: 752 bytes --]
On Wed, 2006-08-02 at 09:45 +0200, Haavard Skinnemoen wrote:
> On Tue, 01 Aug 2006 09:47:27 -0700
> Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
>
> > That 'sec=null' would explain why you are seeing a problem, and the
> > attached patch ought to fix it.
>
> That does explain it, but unfortunately the patch doesn't fix it
> because data->version is 6. I added "case 6:" on the line after "case
> 5:", and it solved the problem.
>
> I don't know what the difference between version 5 and 6 is, but I
> suspect it has something to do with data->context?
Argh... You are quite right. We ought to have fixed the pseudoflavour
thingy in version 6, and made it mandatory, but we missed the chance...
Revised patch is attached.
Cheers,
Trond
[-- Attachment #2: linux-2.6.18-036-nfs-fix_auth_mount.dif --]
[-- Type: message/rfc822, Size: 1051 bytes --]
From: Trond Myklebust <Trond.Myklebust@netapp.com>
Subject: No Subject
Date: Thu, 03 Aug 2006 10:33:52 -0400
Message-ID: <1154615632.5774.31.camel@localhost>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---
fs/nfs/super.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 867b5dc..97cfb14 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -471,12 +471,14 @@ static int nfs_validate_mount_data(struc
data->version);
return -EINVAL;
}
- /* Fill in pseudoflavor for mount version < 5 */
- data->pseudoflavor = RPC_AUTH_UNIX;
case 5:
memset(data->context, 0, sizeof(data->context));
}
+ /* Set the pseudoflavor */
+ if (!(data->flags & NFS_MOUNT_SECFLAVOUR))
+ data->pseudoflavor = RPC_AUTH_UNIX;
+
#ifndef CONFIG_NFS_V3
/* If NFSv3 is not compiled in, return -EPROTONOSUPPORT */
if (data->flags & NFS_MOUNT_VER3) {
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-03 14:34 ` Trond Myklebust
@ 2006-08-03 15:33 ` Haavard Skinnemoen
2006-08-03 15:46 ` David Howells
1 sibling, 0 replies; 12+ messages in thread
From: Haavard Skinnemoen @ 2006-08-03 15:33 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Andi Kleen, akpm, linux-kernel, David Howells
On Thu, 03 Aug 2006 10:34:21 -0400
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> Revised patch is attached.
Fixes the problem. Thanks.
Håvard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
2006-08-03 14:34 ` Trond Myklebust
2006-08-03 15:33 ` Haavard Skinnemoen
@ 2006-08-03 15:46 ` David Howells
1 sibling, 0 replies; 12+ messages in thread
From: David Howells @ 2006-08-03 15:46 UTC (permalink / raw)
To: Trond Myklebust
Cc: Haavard Skinnemoen, Andi Kleen, akpm, linux-kernel, David Howells
Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
> Argh... You are quite right. We ought to have fixed the pseudoflavour
> thingy in version 6, and made it mandatory, but we missed the chance...
>
> Revised patch is attached.
That looks reasonable.
Acked-By: David Howells <dhowells@redhat.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-08-03 15:46 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-31 13:55 [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1 Haavard Skinnemoen
2006-07-31 15:46 ` Haavard Skinnemoen
2006-07-31 18:40 ` Trond Myklebust
2006-08-01 8:12 ` Haavard Skinnemoen
2006-08-01 16:47 ` Trond Myklebust
2006-08-01 17:39 ` David Howells
2006-08-01 18:08 ` Trond Myklebust
2006-08-01 18:22 ` David Howells
2006-08-02 7:45 ` Haavard Skinnemoen
2006-08-03 14:34 ` Trond Myklebust
2006-08-03 15:33 ` Haavard Skinnemoen
2006-08-03 15:46 ` David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox