Unlock KERN_MSGBUFSIZE and KERN_CONSBUFSIZE.
authormvs <mvs@openbsd.org>
Thu, 8 Aug 2024 10:25:00 +0000 (10:25 +0000)
committermvs <mvs@openbsd.org>
Thu, 8 Aug 2024 10:25:00 +0000 (10:25 +0000)
commitd6054cd7feb9efd1218d54e03c14096628f86813
treeafca30c88ac24ab42fe05fbe65f7f6fb9937178a
parent905bc6f9e9764ebb5e0975566f211864595991b0
Unlock KERN_MSGBUFSIZE and KERN_CONSBUFSIZE.

`msgbufp' and `consbufp' are immutable, such as `msg_magic' and
`msg_bufs'. initmsgbuf() and initconsbuf() which initialize this buffers
are called during kernel bootstrap, when concurrent sysctl(2) is
impossible, so they don't need to be reordered or use barriers.

ok bluhm
sys/kern/kern_sysctl.c