HomeFreeBSD

pf: Set the pfik_group for userspace

Description

pf: Set the pfik_group for userspace

Userspace relies on this pointer to work out if the kif is a group or
not. It can't use it for anything else, because it's a pointer to a
kernel address. Substitute 0xfeedc0de for 'true', so that we don't leak
kernel memory addresses to userspace.

PR: 255852
Reviewed by: donner
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30284

(cherry picked from commit d69cc040147284c414dfd1c9f498dcc7c8291a8b)

Details

Provenance
kpAuthored on May 16 2021, 6:50 AM
Reviewer
donner
Differential Revision
D30284: pf: Set the pfik_group for userspace
Parents
rG22d8055aa216: mpr/mps(4): Make device mapping some more robust.
Branches
Unknown
Tags
Unknown