Page MenuHomeFreeBSD

ipfw tests: cover layer-2 filtering of unmapped mbufs
ClosedPublic

Authored by netchild on Fri, Sep 4, 1:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 1, 8:47 AM
Unknown Object (File)
Wed, Sep 30, 3:47 PM
Unknown Object (File)
Wed, Sep 30, 3:47 PM
Unknown Object (File)
Wed, Sep 30, 10:50 AM
Unknown Object (File)
Tue, Sep 29, 11:27 PM
Unknown Object (File)
Tue, Sep 29, 11:26 PM
Unknown Object (File)
Tue, Sep 29, 3:59 AM
Unknown Object (File)
Mon, Sep 28, 4:34 PM

Details

Summary

Test that ipfw's layer-2 hook copes with unmapped mbufs, on the pass
and on the deny path.

This test covers 5f81426831a6 / D59426.

Assisted-by: Claude Code (Fable 5, Opus 5)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

netchild held this revision as a draft.
netchild published this revision for review.Fri, Sep 4, 1:51 PM

Unit test for the issue in D59389.

glebius requested changes to this revision.Fri, Sep 4, 9:22 PM
glebius added inline comments.
tests/sys/netpfil/ipfw/unmapped.sh
84

No, such a long execution time is unacceptable for the test suite. Imagine every test was like that.

unmapped:unmapped_block  ->  passed  [71.714s]

This needs to be refactored. Maybe use reset instead of deny in the rule?

This revision now requires changes to proceed.Fri, Sep 4, 9:22 PM

unmapped_block now denies the data segments instead of the handshake (tcpdatalen 1000-65535): 71 s -> 1.5 s, and an unfixed kernel panics on it

netchild marked an inline comment as done.
This revision is now accepted and ready to land.Tue, Sep 22, 7:24 PM