The dead_bpf_if is not subjected to be written. Make it const so that the kernel can panic on destructive writing to it instead of silently memory corruption.
No functional change intended.
MFC after: 1 week
Differential D42189 Authored by zlei on Oct 13 2023, 2:00 PM.
Details Summary The dead_bpf_if is not subjected to be written. Make it const so that the kernel can panic on destructive writing to it instead of silently memory corruption. No functional change intended. MFC after: 1 week
Diff Detail
Event TimelineHerald added subscribers: glebius, melifaro, imp. · View Herald TranscriptOct 13 2023, 2:00 PM2023-10-13 14:00:28 (UTC+0)
This revision is now accepted and ready to land.Oct 13 2023, 3:35 PM2023-10-13 15:35:59 (UTC+0)
Closed by commit rG7a974a649848: bpf: Make dead_bpf_if const (authored by zlei). · Explain WhyOct 21 2023, 4:55 AM2023-10-21 04:55:44 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 128728 sys/net/bpf.c
|
s/mincore_mapped/imply_prot_max/