Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2022 16:37:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262829] epair: New panic when destroying epair interface of vnet jail
Message-ID:  <bug-262829-227-nYnzKX4lxN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262829-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262829-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262829

--- Comment #9 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D4dfd3ffc4488e5e2662cdc40deec17d82=
432da0b

commit 4dfd3ffc4488e5e2662cdc40deec17d82432da0b
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2022-03-27 18:23:25 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-05-27 16:25:10 +0000

    if: avoid interface destroy race

    When we destroy an interface while the jail containing it is being
    destroyed we risk seeing a race between if_vmove() and the destruction
    code, which results in us trying to move a destroyed interface.

    Protect against this by using the ifnet_detach_sxlock to also covert
    if_vmove() (and not just detach).

    PR:             262829
    MFC after:      3 weeks
    Differential Revision:  https://reviews.freebsd.org/D34704

    (cherry picked from commit 868bf82153e8ff22f09a8860c872149e0fb6bdef)

 sys/net/if.c                   | 22 ++++++++++++++++++++--
 tests/sys/net/if_clone_test.sh | 29 +++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 2 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262829-227-nYnzKX4lxN>