Skip to contentSkip to conversation

nfs root problem in linux-next

DISCUSSION Mark Salter 5 participants 6 messages Jun 25, 2012 – Jun 29, 2012 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

As of Friday's linux-next I've been unable to successfully boot using an nfs root with a c6x board. I bisected it to this patch:

commit cc3b296fd9a01c9e654bcb9373af70dd6e32fb24
Author: Trond Myklebust <[email protected]>
Date: Thu Jun 21 14:53:10 2012 -0400

SUNRPC: Clean up xdr_read_pages and xdr_enter_page

I placed "good-boot" and "bad-boot" packet capture files at:

http://people.redhat.com/~msalter/linux-next/

The only difference in the kernels used is the above patch. The bad-boot mounted the nfs root but was unable to find the init file which caused a panic. The nfsroot= parameter uses v3,tcp flags and the server side is running rhel6.

I'm not at all familiar with the nfs code, but can help with testing or providing any addtional info needed.

--Mark

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1340656006.20557.30.camel-PDpCo7skNiwAicBL8TP8PQ@public.gmane.org

#2 lore raw

T24gTW9uLCAyMDEyLTA2LTI1IGF0IDE2OjI2IC0wNDAwLCBNYXJrIFNhbHRlciB3cm90ZToNCj4g QXMgb2YgRnJpZGF5J3MgbGludXgtbmV4dCBJJ3ZlIGJlZW4gdW5hYmxlIHRvIHN1Y2Nlc3NmdWxs eSBib290IHVzaW5nIGFuDQo+IG5mcyByb290IHdpdGggYSBjNnggYm9hcmQuIEkgYmlzZWN0ZWQg aXQgdG8gdGhpcyBwYXRjaDoNCj4gDQo+ICAgY29tbWl0IGNjM2IyOTZmZDlhMDFjOWU2NTRiY2I5 MzczYWY3MGRkNmUzMmZiMjQNCj4gICBBdXRob3I6IFRyb25kIE15a2xlYnVzdCA8VHJvbmQuTXlr bGVidXN0QG5ldGFwcC5jb20+DQo+ICAgRGF0ZTogICBUaHUgSnVuIDIxIDE0OjUzOjEwIDIwMTIg LTA0MDANCj4gDQo+ICAgIC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gZ2V0IG1lcmdlZA0KdXBzdHJlYW0uDQoNCkknbGwgaGF2ZSBhIGxvb2sgdG8gc2VlIGlm IEkgY2FuIGZpbmQgb3V0IHdoYXQgaXMgdGhlIHByb2JsZW0uIFRoZSBvbmx5DQpzaWduaWZpY2Fu dCBjaGFuZ2UgdGhhdCBwYXRjaCBzaG91bGQgYmUgaW50cm9kdWNpbmcgd291bGQgYmUgdGhlIHVz ZSBvZg0KeGRyX3N0cmVhbV9wb3MoKS4NCg0KLS0gDQpUcm9uZCBNeWtsZWJ1c3QNCkxpbnV4IE5G UyBjbGllbnQgbWFpbnRhaW5lcg0KDQpOZXRBcHANClRyb25kLk15a2xlYnVzdEBuZXRhcHAuY29t DQp3d3cubmV0YXBwLmNvbQ0KDQo=
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1340666049.4362.9.camel-SyLVLa/[email protected]

#4 lore raw
Quoted 19 lines · Trond
Quoted 18 lines · Mark Salter

As of Friday's linux-next I've been unable to successfully boot using an nfs root with a c6x board. I bisected it to this patch:

commit cc3b296fd9a01c9e654bcb9373af70dd6e32fb24
Author: Trond Myklebust <[email protected]>
Date: Thu Jun 21 14:53:10 2012 -0400

SUNRPC: Clean up xdr_read_pages and xdr_enter_page

I placed "good-boot" and "bad-boot" packet capture files at:

http://people.redhat.com/~msalter/linux-next/

The only difference in the kernels used is the above patch. The bad-boot mounted the nfs root but was unable to find the init file which caused a panic. The nfsroot= parameter uses v3,tcp flags and the server side is running rhel6.

Quoted 7 lines
Quoted 2 lines

I'm not at all familiar with the nfs code, but can help with testing or providing any addtional info needed.

Hi Mark,

So you are saying that reverting that patch alone suffices to fix the problem that you are seeing?

Yes. If I check out a tree at commit cc3b296fd9a, the resulting kernel does not boot (it panics that it cannot find init). If I check out a tree at cc3b296fd9a~1, it boots the nfs root successfully.

...

Quoted 3 lines

I'll have a look to see if I can find out what is the problem. The only significant change that patch should be introducing would be the use of xdr_stream_pos().

Okay. I am happy to help with any testing if needed to help characterize the problem better.

--Mark

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 32 lines · Mark Salter
Quoted 19 lines · Trond
Quoted 18 lines · Mark Salter

As of Friday's linux-next I've been unable to successfully boot using an nfs root with a c6x board. I bisected it to this patch:

commit cc3b296fd9a01c9e654bcb9373af70dd6e32fb24
Author: Trond Myklebust <[email protected]>
Date: Thu Jun 21 14:53:10 2012 -0400

SUNRPC: Clean up xdr_read_pages and xdr_enter_page

I placed "good-boot" and "bad-boot" packet capture files at:

http://people.redhat.com/~msalter/linux-next/

The only difference in the kernels used is the above patch. The bad-boot mounted the nfs root but was unable to find the init file which caused a panic. The nfsroot= parameter uses v3,tcp flags and the server side is running rhel6.

Quoted 7 lines
Quoted 2 lines

I'm not at all familiar with the nfs code, but can help with testing or providing any addtional info needed.

Hi Mark,

So you are saying that reverting that patch alone suffices to fix the problem that you are seeing?

Yes. If I check out a tree at commit cc3b296fd9a, the resulting kernel does not boot (it panics that it cannot find init). If I check out a tree at cc3b296fd9a~1, it boots the nfs root successfully.

Quoted 7 lines

...

Quoted 3 lines

I'll have a look to see if I can find out what is the problem. The only significant change that patch should be introducing would be the use of xdr_stream_pos().

Okay. I am happy to help with any testing if needed to help characterize the problem better.

Hi Mark and Fengguang,

I believe that I've found the bug that was being triggered in the above patch. It was a mistake in the earlier patch "SUNRPC: Don't decode beyond the end of the RPC reply message", which was failing to correctly initialise the xdr->nwords field.

I've now fixed it and updated the linux-next branch.

Cheers
Trond

Signature · 6 lines
Trond Myklebust
Linux NFS client maintainer

NetApp
[email protected]
www.netapp.com
#6 lore raw
Quoted 10 lines · Trond

Hi Mark and Fengguang,

I believe that I've found the bug that was being triggered in the above
patch. It was a mistake in the earlier patch "SUNRPC: Don't decode beyond the end of the RPC reply message", which was failing to correctly
initialise the xdr->nwords field.

I've now fixed it and updated the linux-next branch.

Yes, I can confirm that today's linux-next is booting correctly for me on an nfsroot.

Thanks!

#7 lore raw
Quoted 10 lines · Mark Salter
Quoted 9 lines · Trond

Hi Mark and Fengguang,

I believe that I've found the bug that was being triggered in the above
patch. It was a mistake in the earlier patch "SUNRPC: Don't decode beyond the end of the RPC reply message", which was failing to correctly
initialise the xdr->nwords field.

Quoted 6 lines
Quoted 1 line

I've now fixed it and updated the linux-next branch.

Yes, I can confirm that today's linux-next is booting correctly for me on an nfsroot.

Thanks!

I can confirm it, too. Thanks!