[Bug 284457] periodic pf panic on busy jailhost

[email protected]
Newsgroups gmane.os.freebsd.devel.pf4freebsd
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284457

--- Comment #10 from Kristof Provost <[email protected]> ---
Try again with current stable/13.

This may be fixed by this:

commit e2bb5f213a724fd163be4262eb925def0fa8f9fc
Author: Kristof Provost <[email protected]>
Date:   Wed Dec 11 23:27:21 2024 +0100

    pf: fix double free in pf_state_key_attach()

    In 371bd29d4b we fixed a state key leak, but unintentionally introduced a
double free.
    We pass through the relevant code twice, first for PF_SK_WIRE, then for
    PF_SK_STACK. If we fail to attach on the second pass we have a more complex
    cleanup job, handled by pf_detach_state(). We must only free the state keys
    manually on the first pass, on the second one pf_detach_state() takes care
of
    everything.

    Tested by:      yds <[email protected]>
    Fixes:          371bd29d4b22257a7e92e1e711cca3d94cfbd00d
    MFC after:      2 weeks
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

    (cherry picked from commit 01eb1261443dddcb50a3a278f1278fffdfb0d36e)

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.