[Bug 241954] netgraph: Fails on concurrent node rename

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Jun 2021 11:46:10 +0000

--- Comment #10 from commit-hook_at_FreeBSD.org ---
A commit in branch stable/12 references this bug:


commit 2def8906341231cd6b3647756c182f60d114deee
Author:     Lutz Donnerhacke <donner_at_FreeBSD.org>
AuthorDate: 2021-06-02 22:29:46 +0000
Commit:     Lutz Donnerhacke <donner_at_FreeBSD.org>
CommitDate: 2021-06-16 11:44:15 +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, 588 insertions(+)

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wed Jun 16 2021 - 11:46:10 UTC

Original text of this message