[Bug 241954] netgraph: Fails on concurrent node rename

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 15 Jun 2021 12:40:45 UTC

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


commit 36c7408818c53ae0c1f1aee0250c5d3fe16b06e0
Author:     Lutz Donnerhacke <donner@FreeBSD.org>
AuthorDate: 2021-06-02 22:29:46 +0000
Commit:     Lutz Donnerhacke <donner@FreeBSD.org>
CommitDate: 2021-06-15 12:31:32 +0000

    tests/netgraph: Inital framework for testing libnetgraph

    Provide a framework of functions to test various netgraph modules.
    Tests contain:
     - creating, renaming, and destroying nodes
     - connecting and removing hooks
     - sending and receiving data
     - sending ASCII messages and receiving binary responses
     - errors can be passed for indiviual inspection or fail the test

    Reviewed by:    kp
    Differential Revision: https://reviews.freebsd.org/D30629
    Differential Revision: https://reviews.freebsd.org/D30657
    Differential Revision: https://reviews.freebsd.org/D30671
    Differential Revision: https://reviews.freebsd.org/D30699

    (cherry picked from commit 24ea1dbf257aa6757f469bcd859f90e9ad851e59)
    (cherry picked from commit 09307dbfb888a98232096c751a96ecb3344aa77c)
    (cherry picked from commit 9021c46603bf29b9700f24b8dce8796b434d7c8f)
    (cherry picked from commit 5554abd9cc9702af30af90925b33c5efff4e7d88)

    Also contains some fixups:
     - indent all files correctly
     - finish factoring out
     - remove debugging code
     - check for renaming issues reported in PR241954

    PR:     241954
    Differential Revision: https://reviews.freebsd.org/D30692
    Differential Revision: https://reviews.freebsd.org/D30714
    Differential Revision: https://reviews.freebsd.org/D30713

    (cherry picked from commit a664ade93972ce617f0888ff79e715dff9cf0f87)
    (cherry picked from commit 0afa9be03937d60cb5aeba64c81e3e2165bd3737)
    (cherry picked from commit 43e4821315c31db067e23564b9bfafb519e77b2b)

 tests/sys/netgraph/Makefile      |   6 +-
 tests/sys/netgraph/basic.c (new) | 191 +++++++++++++++++++++++++++
 tests/sys/netgraph/util.c (new)  | 277 +++++++++++++++++++++++++++++++++++++++
 tests/sys/netgraph/util.h (new)  | 114 ++++++++++++++++
 4 files changed, 587 insertions(+), 1 deletion(-)

You are receiving this mail because:
You are on the CC list for the bug.