Skip to contentSkip to conversation

relayfs question related to removing parent directory.

DISCUSSION Ben Greear 2 participants 3 messages May 8, 2013

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

I'm seeing a crash when unloading the ath9k module.

It seems relay_close() is being passed bad memory.

The relay_open call uses an ath9k debugfs directory, so that may be removed before the call to relay_close() is called.

Does relayfs automatically close files when the parent directory is removed?

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#1 lore raw
Quoted 10 lines · Ben Greear

I'm seeing a crash when unloading the ath9k module.

It seems relay_close() is being passed bad memory.

The relay_open call uses an ath9k debugfs directory, so that may be removed before the call to relay_close() is called.

Does relayfs automatically close files when the parent directory is removed?

Why and how the hell would it possibly manage such a miracle?

author
#2 lore raw
Quoted 5 lines · Al Viro
Quoted 4 lines · Ben Greear

I'm seeing a crash when unloading the ath9k module.

It seems relay_close() is being passed bad memory.

Quoted 9 lines
Quoted 6 lines

The relay_open call uses an ath9k debugfs directory, so that may be removed before the call to relay_close() is called.

Does relayfs automatically close files when the parent directory is removed?

Why and how the hell would it possibly manage such a miracle?

No idea..I'm just trying to figure out why it is crashing ....don't see anything obvious in ath9k itself, but still looking.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com