• Philipp Reisner's avatar
    drbd: Fix module refcount leak in drbd_accept() · dd9b3604
    Philipp Reisner authored
    drbd_accept was modelled after kernel_accept
    with drbd commit 53eb779 in July 2008.
    
    Only, kernel_accept was then broken, and only fixed later
    with kernel commit 1b08534e in Dec 2008:
    net: Fix module refcount leak in kernel_accept()
    
    Impact: protocol families provided as modules, e.g. ipv6 or ib_sdp,
    would soon have their reference count become negative, preventing
    them from being unloaded (likely), or worse, hit zero without actually
    being unused, allowing them to be unloaded while still in use (unlikely,
    but if triggered, causing a kernel crash).
    Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
    Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
    dd9b3604
drbd_receiver.c 143 KB