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

(cherry picked from commit 7a974a649848e1222a49d0d49726d06bd5c1dbd9)
(cherry picked from commit 5d031613affa14b3de64f8cf9fed15604fb826d3)
(cherry picked from commit 1e147980497b38d65cd72162c000c88507a7fa76)

Details

Provenance
zleiAuthored on Oct 21 2023, 4:52 AM
Reviewer
markj
Differential Revision
D42189: bpf: Make dead_bpf_if const
Parents
rG6a0891c6ebb7: fflush: Add test for buffer handling in __sflush
Branches
Unknown
Tags
Unknown