Page MenuHomeFreeBSD

pf tests: provoke tag hashing panic
ClosedPublic

Authored by kp on Nov 24 2020, 10:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 14, 2:06 PM
Unknown Object (File)
Sat, Jun 7, 3:27 AM
Unknown Object (File)
Fri, Jun 6, 1:15 PM
Unknown Object (File)
Thu, Jun 5, 2:37 PM
Unknown Object (File)
Tue, Jun 3, 7:56 AM
Unknown Object (File)
May 19 2025, 4:53 PM
Unknown Object (File)
Apr 26 2025, 11:46 AM
Unknown Object (File)
Apr 21 2025, 12:58 PM

Details

Summary

Attempt to provoke the panic fixed in rXXXXX.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Nov 24 2020, 10:04 AM
markj added inline comments.
tests/sys/netpfil/pf/ioctl/validation.c
819 ↗(On Diff #79925)

To provoke the panic you'd need a long tag name, so I'm not sure how this can accomplish that.

markj added inline comments.
tests/sys/netpfil/pf/ioctl/validation.c
819 ↗(On Diff #79925)

I see, match_tagname is full of garbage, rather than tagname.

This revision is now accepted and ready to land.Nov 24 2020, 2:35 PM
tests/sys/netpfil/pf/ioctl/validation.c
819 ↗(On Diff #79925)

Yeah, there are a couple of fields that are passed through to tagname2hashindex().
Arguably this test should try all of them.

This revision was automatically updated to reflect the committed changes.