BSOD when connected to Linux Samba share

pete

New member
Local time
9:11 PM
Messages
4
I just built a new system and installed Windows 7. Everything went fine until I connected to a network share hosted by a Debian Linux box running Samba 3.4.2. I can see the share and it's contents but within 10 minutes Windows 7 will go down with a BSOD complaining about rdbss.sys.

Has anyone else seen this? Any recommendations?

I am running the most recently Windows 7 updates as of this morning (October 19th, 2009).

Easy way to bring down Windows 7.
 

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7
CPU
Intel Core i7 950 (3.07Ghz quad core)
Motherboard
ASUS Rampage II Extreme
Memory
Corsair Dominator 6G (2x3G)
Graphics Card(s)
GeForce GTX295
Sound Card
Motherboard
Monitor(s) Displays
ASUS VK246H
Hard Drives
Western Digital SATA 1.5Tb (2 drives in RAID 1 configuration)
PSU
Corsair 750W
Case
Master Cooler HAF 932
Cooling
ZALMAN CNPS10X QUIET 120mm
I just built a new system and installed Windows 7. Everything went fine until I connected to a network share hosted by a Debian Linux box running Samba 3.4.2. I can see the share and it's contents but within 10 minutes Windows 7 will go down with a BSOD complaining about rdbss.sys.

Has anyone else seen this? Any recommendations?

I am running the most recently Windows 7 updates as of this morning (October 19th, 2009).

Easy way to bring down Windows 7.

Pete cant help you yet but can give you info on the problem if you are interested you can go here The Redirected Drive Buffering SubSystem

Ken
 

My Computer

Computer Manufacturer/Model Number
HP Pavillion dv-7 1005 Tx
OS
Win 8 Release candidate 8400
CPU
[email protected]
Memory
4 gigs
Graphics Card(s)
Nvidia 9600M
Sound Card
HD built-in
Monitor(s) Displays
17" Wxga
Screen Resolution
1440x900
Cooling
none
Internet Speed
45Mb down 5Mb up
I just built a new system and installed Windows 7. Everything went fine until I connected to a network share hosted by a Debian Linux box running Samba 3.4.2. I can see the share and it's contents but within 10 minutes Windows 7 will go down with a BSOD complaining about rdbss.sys.

Has anyone else seen this? Any recommendations?

I am running the most recently Windows 7 updates as of this morning (October 19th, 2009).

Easy way to bring down Windows 7.

RDBSS is what hooks up the SMB redirector to the cache manager component of the OS, and hence to the memory manager.

If you attach some minidumps it may be possible to tell you why the machine is crashing. By far the most likely cause is a 3rd-party "security" driver which is interfering with the network stack in a nasty way - a firewall or anti-virus would be the usual culprits.
 

My Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
More information on BSOD (Linux Network Share)

I am new to the Windbg program so let me know if more info is appropriate.

I am able to access the share and move files to/from the share. Only after several minutes of being connected do I get the exception. I get the same exception with or without Kaspersky Internet Security installed. If this is an authentication issue, why would it let me read/write files prior to throwing the exception? I believe this to be a bug in the SMB driver in Windows 7.

A picture of the BSOD in attached.

I have a stack trace that shows the frame when the exception occurs:

# ChildEBP RetAddr
00 afc17214 8adc5da1 nt!KeBugCheckEx+0x1e
01 afc1723c 8adbc141 rdbss!RxExceptionFilter+0xba (FPO: [2,0,4])
02 afc17248 8adbadb8 rdbss!RxFsdCommonDispatch+0x7d6 (FPO: [SEH])
03 afc1725c 8adc6ee3 rdbss!_EH4_CallFilterFunc+0x12 (FPO: [Uses EBP] [0,0,4])
04 afc17284 82873822 rdbss!_except_handler4+0x8e (FPO: [4,5,4])
05 afc172a8 828737f4 nt!ExecuteHandler2+0x26
06 afc17360 828c8342 nt!ExecuteHandler+0x24
07 afc17778 8284f016 nt!KiDispatchException+0x17c
08 afc177e0 8284efca nt!CommonDispatchException+0x4a (FPO: [0,20,0])
09 afc17800 8add0e23 nt!Kei386EoiHelper+0x192
0a afc1787c 8adbbfb1 rdbss!RxCanonicalizeNameAndObtainNetRoot+0x2cb (FPO: [4,6,0])
0b afc17904 8add6e2b rdbss!RxFsdCommonDispatch+0x646 (FPO: [SEH])
0c afc17934 982cc298 rdbss!RxFsdDispatch+0x1ab (FPO: [2,3,0])
0d afc17950 828474bc mrxsmb!MRxSmbFsdDispatch+0x9a (FPO: [2,0,4])
0e afc17968 8b5e5bb0 nt!IofCallDriver+0x63
0f afc17984 8b5e4b52 mup!MupiCallUncProvider+0x10f (FPO: [1,2,4])
10 afc1799c 8b5e4f5b mup!MupStateMachine+0x9b (FPO: [1,1,0])
11 afc179e8 828474bc mup!MupCreate+0x109 (FPO: [SEH])
12 afc17a00 8af7f20c nt!IofCallDriver+0x63
13 afc17a24 8af928c9 fltmgr!FltpLegacyProcessingAfterPreCallbacksCompleted+0x2aa (FPO: [3,4,4])


Here is the disassembly at the point the exception occurs:

8add0de1 0300 add eax,dword ptr [eax]
8add0de3 0001 add byte ptr [ecx],al
8add0de5 a100c0dc8a mov eax,dword ptr [rdbss!WPP_GLOBAL_Control (8adcc000)]
8add0dea 3d00c0dc8a cmp eax,offset rdbss!WPP_GLOBAL_Control (8adcc000)
8add0def 7418 je rdbss!RxCanonicalizeNameAndObtainNetRoot+0x2b1 (8add0e09)
8add0df1 f6402004 test byte ptr [eax+20h],4
8add0df5 7412 je rdbss!RxCanonicalizeNameAndObtainNetRoot+0x2b1 (8add0e09)
8add0df7 8d4de8 lea ecx,[ebp-18h]
8add0dfa 51 push ecx
8add0dfb 53 push ebx
8add0dfc 6a15 push 15h
8add0dfe ff7014 push dword ptr [eax+14h]
8add0e01 ff7010 push dword ptr [eax+10h]
8add0e04 e8ee3bffff call rdbss!WPP_SF_Z (8adc49f7)
8add0e09 8b7508 mov esi,dword ptr [ebp+8]
8add0e0c 8b5d14 mov ebx,dword ptr [ebp+14h]
8add0e0f 53 push ebx
8add0e10 33ff xor edi,edi
8add0e12 57 push edi
8add0e13 ff75f4 push dword ptr [ebp-0Ch]
8add0e16 8d45e8 lea eax,[ebp-18h]
8add0e19 50 push eax
8add0e1a ff750c push dword ptr [ebp+0Ch]
8add0e1d 56 push esi
8add0e1e e80a100000 call rdbss!RxFindOrConstructVirtualNetRoot (8add1e2d)
8add0e23 8945fc mov dword ptr [ebp-4],eax
8add0e26 3dd00000c0 cmp eax,0C00000D0h
8add0e2b 751d jne rdbss!RxCanonicalizeNameAndObtainNetRoot+0x2f2 (8add0e4a)
8add0e2d ff763c push dword ptr [esi+3Ch]
8add0e30 e8df580100 call rdbss!RxScavengeVNetRoots (8ade6714)
8add0e35 53 push ebx
8add0e36 57 push edi
8add0e37 ff75f4 push dword ptr [ebp-0Ch]
8add0e3a 8d45e8 lea eax,[ebp-18h]
8add0e3d 50 push eax
8add0e3e ff750c push dword ptr [ebp+0Ch]
8add0e41 56 push esi
8add0e42 e8e60f0000 call rdbss!RxFindOrConstructVirtualNetRoot (8add1e2d)
8add0e47 8945fc mov dword ptr [ebp-4],eax
8add0e4a 53 push ebx
8add0e4b ff1500a0dc8a call dword ptr [rdbss!_imp__FsRtlDoesNameContainWildCards (8adca000)]
8add0e51 84c0 test al,al
8add0e53 743d je rdbss!RxCanonicalizeNameAndObtainNetRoot+0x33a (8add0e92)
8add0e55 a100c0dc8a mov eax,dword ptr [rdbss!WPP_GLOBAL_Control (8adcc000)]
8add0e5a 3d00c0dc8a cmp eax,offset rdbss!WPP_GLOBAL_Control (8adcc000)
8add0e5f 741e je rdbss!RxCanonicalizeNameAndObtainNetRoot+0x327 (8add0e7f)
8add0e61 f6402002 test byte ptr [eax+20h],2
8add0e65 7418 je rdbss!RxCanonicalizeNameAndObtainNetRoot+0x327 (8add0e7f)
8add0e67 53 push ebx
8add0e68 6898a4dc8a push offset rdbss!WPP_ThisDir_CTLGUID_RFSMon+0x40 (8adca498)
8add0e6d 6a16 push 16h

Any thoughts? suggestions on how to proceed from here?
 

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7
CPU
Intel Core i7 950 (3.07Ghz quad core)
Motherboard
ASUS Rampage II Extreme
Memory
Corsair Dominator 6G (2x3G)
Graphics Card(s)
GeForce GTX295
Sound Card
Motherboard
Monitor(s) Displays
ASUS VK246H
Hard Drives
Western Digital SATA 1.5Tb (2 drives in RAID 1 configuration)
PSU
Corsair 750W
Case
Master Cooler HAF 932
Cooling
ZALMAN CNPS10X QUIET 120mm
I am new to the Windbg program so let me know if more info is appropriate.

You may be "new to WinDBG" but you clearly have skill and knowledge. Welcome to the forum, and please consider helping yourself to some of the "why the BSODz??!?" questions ;)

If this is an authentication issue, why would it let me read/write files prior to throwing the exception?

Where's the link to authentication? If you're referring to my suggestion that "security" utilities may be interfering, that interference does not necessarily limit itself to the authentication phase.

I believe this to be a bug in the SMB driver in Windows 7.

Entirely possible. It would be a blast to troubleshoot too! You'd want to first verify that it happens on a completely clean install, before getting too deeply embroilled in kernel debugging.

Here is the disassembly at the point the exception occurs:

...
8add0e19 50 push eax // push the third function arg
8add0e1a ff750c push dword ptr [ebp+0Ch] // push the second arg
8add0e1d 56 push esi // push the first arg
8add0e1e e80a100000 call rdbss!RxFindOrConstructVirtualNetRoot (8add1e2d)
8add0e23 8945fc mov dword ptr [ebp-4],eax // EBP presumably bad ???
8add0e26 3dd00000c0 cmp eax,0C00000D0h // return = STATUS_REQUEST_NOT_ACCEPTED ?
8add0e2b 751d jne rdbss!RxCanonicalizeNameAndObtainNetRoot+0x2f2 (8add0e4a) // otherwise, branch elsewhere
...

If your analysis of the exception-generating instruction is correct, the return value from rdbss!RxFindOrConstructVirtualNetRoot is being fed into the first space for a "local" in that function - [EBP-4]. Presumably the EBP pointer has gone haywire, though there's not enough info in your output to be sure. (Deterministic) Troubleshooting would involve hooking up the machine to run under a kernel debugger (you'd need another box close by to act as the "controller", setting breakpoints on rdbss!RxFindOrConstructVirtualNetRoot, and stepping through to watch what happens when the return value is being fed into [EBP-4].

I can help, but it's far from a trivial ex3rcise, though I suspect you already know that. You'd really want to nuke+clean_reinstall_from_scratch first, to rule out as many environmental issues as possible.

Otherwise, just let the machine upload the minidump to MS and they'll presumably track it. Their reporting telemetry allows them to work out which issues are likely to be bugs in their code.

Any thoughts? suggestions on how to proceed from here?

Can you upload the minidump? It is very unlikely to contain anything to identify you. They're designed to offer depersonalised triage info.
 

My Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
Same problem here

Same problem here. Just installed Windows 7 Pro 64 bits (fresh install) and as I hook up my samba share and start accessing files I got the same STOP 0x00000027, RDR_FILE_SYSTEM, rdbss.sys BSOD. Sometimes I can be using the share for a couple of hours and sometimes it crashes just as I login. Weird.

Googling it I've found some people who have fixed it updating networking drivers or uninstalling the antivirus. I was using the free MS Security Essentials. I've uninstalled it. Upgraded the networking drivers in my Asus P7P55D. No luck.
 

My Computer

OS
Windows 7
Same problem here. Just installed Windows 7 Pro 64 bits (fresh install) and as I hook up my samba share and start accessing files I got the same STOP 0x00000027, RDR_FILE_SYSTEM, rdbss.sys BSOD. Sometimes I can be using the share for a couple of hours and sometimes it crashes just as I login. Weird.

Googling it I've found some people who have fixed it updating networking drivers or uninstalling the antivirus. I was using the free MS Security Essentials. I've uninstalled it. Upgraded the networking drivers in my Asus P7P55D. No luck.

Either you and the OP both happen to have the same interfering driver, or there's a bug in the win7 net stack which is exposed by something that samba's doing. Whether samba is following the SMB spec in all respects doesn't even matter. Whatever it's doing shouldn't cause win7 to crash.

You might want to check whether it still happens with a completely "vanilla" install - nothing at all that's not part of the OS disc image. If you manage to repro - bug.
 

My Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
It really happens with the "vanilla" install. Well, this is how actually I installed:

- Vanilla Windows 7 Pro x64 install.
- First boot. I check I have networking (and most drivers installed ok). Just the graphics driver wasn't enough to drive my Dell 30" screen. Download and install. Reboot again.
- Next thing: apply windows updates.
- And finally: hook my network share.

The problem is that the BSOD is not exactly reproducible. I've managed to use a whole morning without glitches (with some access for docs and constantly playing music stored on the samba server). Then you can have a BSOD, the system reboots and as soon as I login again it lasts perhaps 10 or 15 seconds. I've chained as long as 10 reboots this ways (the network share was on "connect on startup" of course). I had to disconnect it in "safe mode" to be able to boot again.

Anyway, do you think the installation can be considered "vanilla" enough? BTW, how I report a bug? The KB from Microsoft seem to be quite read only, I can get to a submit page.
 

My Computer

OS
Windows 7
Anyway, do you think the installation can be
considered "vanilla" enough?

No. Vanilla means absolutely nothing that's not on the Windows disc. It doesn't mean that they won't troubleshoot it, but it does mean you can't be sure at this point whether the problem is "in Windows", or in one of those other drivers or updates.

BTW, how I report a bug? The KB from Microsoft seem to be quite read only, I can get to a submit page.

Either let Windows submit the memory dump to MS, or call up their support and tell them what's going on. They're undoubtedly already getting minidumps submitted along these lines. If it's a bug, it should stand out.

For what it's worth, none of my Win7 machines do anything like this, despite accessing multiple samba-mounted shares in various ways. It may be environmental after all.
 

My Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
Either let Windows submit the memory dump to MS, or call up their support and tell them what's going on. They're undoubtedly already getting minidumps submitted along these lines. If it's a bug, it should stand out.

For what it's worth, none of my Win7 machines do anything like this, despite accessing multiple samba-mounted shares in various ways. It may be environmental after all.

Thanks for the input. With every crash I've submitted the dump to MS. They probably have several right now (about 30 and counting...).

What worries me is that few people seem to have this problem which is quite severe (BSOD!). And you say any of your Win7 have it. It's probably environmental as you say, but then... how can I know? Where to start? I suppose I can only wait to see a fix...
 

My Computer

OS
Windows 7
What worries me is that few people seem to have this problem which is quite severe (BSOD!). And you say any of your Win7 have it. It's probably environmental as you say, but then... how can I know? Where to start? I suppose I can only wait to see a fix...

Personally, I would test what happens with a "vanilla" install, probably by installing an unactivated copy of Windows in a virtual machine and using that to test. The point of the exercise would be to rule out as many environmental factors as possible.

Should such a VM exhibit the same crash, I'd be tempted to call up MS and say "hey, I think I've found a way to crash your OS, so you'll probably want to take a look."

It's not a privilege elevation vulnerability, and it presumably doesn't happen when working with "real" Windows SMB servers, so I doubt they'll lose any sleep over it. However, if you manage to get through to the right person, you may just be able to get something accomplished sooner rather than later.

Hint: the "right person" will be the one who asks for a memory dump within the first few questions. All the others beforehand are merely running interference.
 

My Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
No. Vanilla means absolutely nothing that's not on the Windows disc. It doesn't mean that they won't troubleshoot it, but it does mean you can't be sure at this point whether the problem is "in Windows", or in one of those other drivers or updates.

Done it. Really vanilla install. During installation I even say "no" to windows update. As I got to the desktop I connect my network share and access it to install the graphics driver. Bum! BSOD.

What it seems, well, interesting is if I just copy files between local disk and share it seems hard to hang the system. But just trying to execute the installer blows it up. Weird.

I will try to reach Microsoft but I doubt about it usefulness. At least here in Spain.
 

My Computer

OS
Windows 7
No. Vanilla means absolutely nothing that's not on the Windows disc. It doesn't mean that they won't troubleshoot it, but it does mean you can't be sure at this point whether the problem is "in Windows", or in one of those other drivers or updates.

Done it. Really vanilla install. During installation I even say "no" to windows update. As I got to the desktop I connect my network share and access it to install the graphics driver. Bum! BSOD.

What it seems, well, interesting is if I just copy files between local disk and share it seems hard to hang the system. But just trying to execute the installer blows it up. Weird.

I will try to reach Microsoft but I doubt about it usefulness. At least here in Spain.

Congratulations! Given the vanilla install, it is very likely that you and the OP have found a legit "bug" in the win7 SMB redirector, especially if your crash happens in the exact same location as the one highlighted by the OP.

My only advice regarding interaction with support is to keep it as simple as possible until you get through to somebody who asks you for a dump in their first few questions.

"It happens on a 'vanilla' install" - as in "I don't have anything non-MS which you could ask me to deactivate".

"It has persisted across multiple OS reinstallations" - as in "don't bother asking me to reinstall bacause I've already done it multiple times."

"I think this will require 'debugging'" - as in "let me speak to an adult please."

It's entirely possible that their reporting telemetry has already flagged the presence of a likely bug, and that they'll have additional problem reports along the same lines. Perhaps there's already a solution in the form of a hotfix, although a cursory search of the MS KB doesn't find any rdbss-containing Win7 hotfixes yet.

Out of personal curiosity, could you please upload a minidump? I'd love to take a look.
 

My Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
Well I think I have good news. And is not thanks to Microsoft.

I've been asking in a few forums incluing Microsoft Answers. A reply there directed me to a page (I don't have it right now) with talk about an authentication issue. I checked my samba logs which had quite some entries like this one:

[2009/11/02 20:31:46, 1] smbd/service.c:1047(make_connection_snum)
192.168.1.2 (192.168.1.2) connect to service sargue initially as user sargue (uid=1000, gid=1000) (pid 5687)
[2009/11/02 20:31:56, 1] smbd/service.c:676(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD

The first line is the connection. The second... the BSOD.

So I thought: "hey, perhaps I can try different authentication mechanisms". So I checked my samba config and the man page. I had "security = share" which seems to be a rather old way to work. The preferred one (and the current default in Samba 3) is "security = user". So I changed that.

And it works.

That would explain, more or less, why few people have found it. There should be few samba servers still with "security = share". Anyway, time will tell. I'm writing this from my Win7 while transferring 18 GB of files... fingers crossed!

I attach the minidump anyway for possible investigation.

And I hope this helps other people! I will tell any forum I've posted to link here for the solution. Let's spread it. And I hope Microsoft releases a patch anyway.

Thanks!
 

My Computer

OS
Windows 7
Well I think I have good news. And is not thanks to Microsoft.

It's only "good news" for you. Think about the poor Microsoft kernel developer who now has to live with the stigma of having created code which can be crashed with a particular setting in samba.conf ;)

In all seriousness, I'm glad that you appear to have found a workaround which works for you, even though the problem in the Win7 net stack remains. I'd still urge you to contact MS with those dumps. They may end up being very grateful, especially if nobody else has highlighted the problem and this workaround.
 

My Computer

Computer Manufacturer/Model Number
Multiple machines in various stages of decomposition.
OS
Win7x64
In all seriousness, I'm glad that you appear to have found a workaround which works for you, even though the problem in the Win7 net stack remains. I'd still urge you to contact MS with those dumps. They may end up being very grateful, especially if nobody else has highlighted the problem and this workaround.

I tried. I mean, I always send the minidumps. But I tried to contact MS. No luck. Seems we don't have here (Spain) tech phone support. I've been redirected to a website form which I sent several days ago... with no answer.

Why did that not surprise me? :huh:
 

My Computer

OS
Windows 7
Thanks! I've been having the exact same problems. Tried a clean vanilla install, but still BSOD when executing files directly from a samba share. Changed the samba configuration, and no more BSOD!

So, thanks again. I'm impressed by these online communities, where we can help each other.

-Michael.
 

My Computer

Computer Manufacturer/Model Number
Dell Dimension 9150 (DXP051)
OS
Windows 7
CPU
Intel Pentium D, 3.2 GHz
Motherboard
chipset i945P/G
Memory
2 GB (DDR530)
Graphics Card(s)
NVIDIA GeForce 7300 LE
Sound Card
Integreated
Monitor(s) Displays
Samsung SyncMaster 2443BW
Hard Drives
Samsung HD501LJ (500 GB)
Seagate ST3250824AS (250 GB)
Cooling
Air
MAny devices out there with security=share

Windows 7 64 bit is quite impossible to use if you have a NAS, a media center, a router with samba sharing capabilities and so on.
Many of them use no password and you cannot access their settings.
So BSOD a go go!
 

My Computer

Computer Manufacturer/Model Number
don't know
OS
Windows 7 64 bit
CPU
Q6600 (intel 4 core)
Motherboard
Asus P5KC
Memory
8Gb ddr2
Graphics Card(s)
HD 5750
Sound Card
don't know
Monitor(s) Displays
2 Benq (dual monitor)
Hard Drives
2 x sata 2
Hey guys, just wondering if there's been any movement on this issue. At the company I work for I'm part of a pilot project for a Win7 rollout and we make heavy use (heavy meaning tens of TBs of seismic data) of Samba for data sharing between Linux (RHEL4) and Windows. At the moment I'm seeing the BSOD problem on my machine and if it's widespread it could be a big problem. My smb.conf is set to security = ads, since we use active directory for our Linux authentication and it's all hooked up together.

Would appreciate any ideas you might have.

Thanks,

-Nathan
 

My Computer

Computer Manufacturer/Model Number
Dell D630
OS
Win7 Enterprise x64
CPU
Core 2 Duo
Memory
2gb
Graphics Card(s)
Nvidia NVS
Sound Card
onboard
Monitor(s) Displays
2x Dell 19"
Hard Drives
160gb SATA

My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7
CPU
Intel Core i7 950 (3.07Ghz quad core)
Motherboard
ASUS Rampage II Extreme
Memory
Corsair Dominator 6G (2x3G)
Graphics Card(s)
GeForce GTX295
Sound Card
Motherboard
Monitor(s) Displays
ASUS VK246H
Hard Drives
Western Digital SATA 1.5Tb (2 drives in RAID 1 configuration)
PSU
Corsair 750W
Case
Master Cooler HAF 932
Cooling
ZALMAN CNPS10X QUIET 120mm
Back
Top