Skip to content
Commit 5adb5bc6 authored by Zach Brown's avatar Zach Brown Committed by Andy Grover
Browse files

RDS: have sockets get transport module references



Right now there's nothing to stop the various paths that use
rs->rs_transport from racing with rmmod and executing freed transport
code.  The simple fix is to have binding to a transport also hold a
reference to the transport's module, removing this class of races.

We already had an unused t_owner field which was set for the modular
transports and which wasn't set for the built-in loop transport.

Signed-off-by: default avatarZach Brown <zach.brown@oracle.com>
parent 77510481
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment