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)

Details

Provenance
zleiAuthored on Oct 21 2023, 4:52 AM
Reviewer
markj
Differential Revision
D42189: bpf: Make dead_bpf_if const
Parents
rGd3d779f64754: Delete snapshot after opening it when running fsck_ffs(9) in background.
Branches
Unknown
Tags
Unknown