Bug 484193 - Accessing DFS mount results in kernel panic
Summary: Accessing DFS mount results in kernel panic
Keywords:
Status: CLOSED DUPLICATE of bug 465143
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.3
Hardware: All
OS: Linux
low
high
Target Milestone: ---
: ---
Assignee: Jeff Layton
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-05 10:42 UTC by Sandro Mathys
Modified: 2014-06-18 07:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-17 18:08:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sandro Mathys 2009-02-05 10:42:50 UTC
Description of problem:
See Summary

Version-Release number of selected component (if applicable):
kernel-2.6.18-128.el5

How reproducible:
Always

Steps to Reproduce:
1. Mount a DFS share (mount -t cifs -o "user=foobar" <dfs-share> <local>)
2. ls <local>
  
Actual results:
Kernel Panic

Expected results:
List of files and directories within <local>, i.e. on the dfs-share

Additional info:
Also tried kernel-2.6.18-129.el5.jtltest.60 with the same result.

I know this is only a tech preview :)

Comment 1 Jeff Layton 2009-02-05 11:59:00 UTC
I think this is probably a known bug. Most likely you're trying to mount the DFS junction point itself. Unfortunately, that currently trips a BUG_ON. If so, the workaround for now is to mount the target of that junction rather than the junction itself.

Could you post or attach the oops message here so we can be sure?

Comment 2 Sandro Mathys 2009-02-05 12:25:09 UTC
Okay, that's what I guesses too, that it's that bug - but I can't tell how the infrastructure is set up, none of my business - I only get the share's adress.

How could I get the oops message? It's a real machine not a virtual one or whatever so I figure it's no easy copy-paste.

Comment 3 Jeff Layton 2009-02-05 12:36:51 UTC
Ok, getting the oops may be tricky then, let's not worry about that for the moment.

Does the share you're mounting have more than one path component? i.e., are you mounting:

//servername/share/path/to/directory

...or does it look more like:

//servername/share

...if it's more like the former, you may want to try mounting the parent of the dir:

//servername/share/path/to

...and then seeing if you can walk into "directory".

Comment 4 Sandro Mathys 2009-02-05 13:13:30 UTC
//servername/share/path/to/directory -> ls gives kernel panic
//servername/share/path/to -> ls gives kernel panic
//servername/share/path -> ls gives kernel panic
//servername/share -> ls works

But when I then cd into a subdir (path/) and do a ls right there, the result's a kernel panic again. When I ls the subdir without cd into it, it says the object is remote.

Comment 5 Jeff Layton 2009-02-16 02:17:38 UTC
My test kernels now have Igor's upstream patch that should fix the oops. Could you give it a test when you get a chance?

http://people.redhat.com/jlayton/

Comment 6 Sandro Mathys 2009-02-16 07:47:01 UTC
True, there's no more oops. with 'mount -t cifs ...' I now get "mount error 66 = Object is remote" and with mount.cifs I get:
"Mounting the DFS root for domain not implemented yet
No ip address specified and hostname not found"

A patch to actually enable access to this kind of DFS shares would have been more in my taste, though ;) But no oops is a good start I guess.

Comment 7 Jeff Layton 2009-02-16 11:03:03 UTC
Eventually we want to allow that, but it's fairly complicated to mount a DFS share directly. It's going to involve implementing proper caching for DFS referrals (which we don't currently do), being able to re-chase referrals when we have to reconnect, and overhauling the cifs_mount code to handle this properly.

So, we're going to have to do this a step at a time. For now, the important thing is to not crash the box when this occurs...

Comment 8 Jeff Layton 2009-02-17 18:08:58 UTC
I'm going to go ahead and close this as a duplicate of the bug I have open to update CIFS for 5.4. Unfortunately we probably won't be able to get DFS referral chasing into the mount code for that, but possibly for 5.5 or 5.6.

*** This bug has been marked as a duplicate of bug 465143 ***


Note You need to log in before you can comment on or make changes to this bug.