Skip to content
  • Zach Brown's avatar
    RDS: have sockets get transport module references · 5adb5bc6
    Zach Brown authored
    
    
    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>
    5adb5bc6