Page MenuHomeFreeBSD

debugnet: fix an errant assertion

Authored by mhorne on May 12 2022, 3:47 PM.
Referenced Files
Unknown Object (File)
Wed, Sep 13, 8:22 PM
Unknown Object (File)
Fri, Aug 25, 11:20 PM
Unknown Object (File)
Aug 15 2023, 8:39 PM
Unknown Object (File)
Aug 15 2023, 12:30 PM
Unknown Object (File)
Aug 8 2023, 9:29 AM
Unknown Object (File)
Aug 8 2023, 9:28 AM
Unknown Object (File)
Aug 8 2023, 9:26 AM
Unknown Object (File)
Aug 5 2023, 12:08 PM



We may call debugnet_free() before g_debugnet_pcb_inuse is true,
specifically in the cases where the interface is down or does not
support debugnet. pcb->dp_drv_input is used to hold the real driver
if_input callback while debugnet is in use, so we can check the status
of this field in the assertion.

This can be triggered trivially by trying to configure netdump on an
unsupported interface at the ddb prompt.

Initializing the dp_drv_input field to NULL explicitly is not necessary
but helps display the intent.

PR: 263929
Reported by: Martin Filla <>

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable