Page MenuHomeFreeBSD

pf: pool/kpool conversion code
ClosedPublic

Authored by kp on Mar 11 2021, 10:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 11, 7:59 PM
Unknown Object (File)
Tue, Apr 7, 4:47 AM
Unknown Object (File)
Sun, Apr 5, 1:26 PM
Unknown Object (File)
Fri, Apr 3, 3:36 PM
Unknown Object (File)
Mar 22 2026, 3:42 PM
Unknown Object (File)
Mar 20 2026, 12:20 PM
Unknown Object (File)
Mar 19 2026, 1:50 AM
Unknown Object (File)
Mar 17 2026, 2:24 PM

Details

Summary

stuct pf_pool and struct pf_kpool are different. We should not simply
bcopy() them.

Happily it turns out that their differences were all pointers, and the
userspace provided pointers were overwritten by the kernel, so this did
actually work correctly, but we should fix it anyway.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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