Bug 856675 - ipvs: fix oops in ip_vs_dst_event on rmmod
Summary: ipvs: fix oops in ip_vs_dst_event on rmmod
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: realtime-kernel
Version: Development
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: John Kacur
QA Contact: David Sommerseth
URL:
Whiteboard:
Depends On:
Blocks: 856679
TreeView+ depends on / blocked
 
Reported: 2012-09-12 14:50 UTC by John Kacur
Modified: 2016-05-22 23:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 856679 (view as bug list)
Environment:
Last Closed: 2012-09-18 19:19:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Kacur 2012-09-12 14:50:23 UTC
The following commit is needed

commit 283283c4da91adc44b03519f434ee1e7e91d6fdb
Author: Julian Anastasov <ja>
Date:   Sat Jul 7 20:30:11 2012 +0300

    ipvs: fix oops in ip_vs_dst_event on rmmod
    
        After commit 39f618b4fd95ae243d940ec64c961009c74e3333 (3.4)
    "ipvs: reset ipvs pointer in netns" we can oops in
    ip_vs_dst_event on rmmod ip_vs because ip_vs_control_cleanup
    is called after the ipvs_core_ops subsys is unregistered and
    net->ipvs is NULL. Fix it by exiting early from ip_vs_dst_event
    if ipvs is NULL. It is safe because all services and dests
    for the net are already freed.

Comment 1 John Kacur 2012-09-12 14:55:00 UTC
Changed 2.2 to devel, as this is for the 3.4-rt kernel


Note You need to log in before you can comment on or make changes to this bug.