HomeFreeBSD

bpf: Make dead_bpf_if const

Description

bpf: Make dead_bpf_if const

The dead_bpf_if is not subjected to be written. Make it const so that
on destructive writing to it the kernel will panic instead of silent
memory corruption.

No functional change intended.

Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42189

Details

Provenance
zleiAuthored on Oct 21 2023, 4:52 AM
Reviewer
markj
Differential Revision
D42189: bpf: Make dead_bpf_if const
Parents
rG12cce5994b92: x86: Prefer consistent naming for loader tunables
Branches
Unknown
Tags
Unknown