HomeFreeBSD

tty: Avoid a kernel memory discloure via kern.ttys

Description

tty: Avoid a kernel memory discloure via kern.ttys

Four pad bytes at the end of each xtty structure were not being cleared
before being copied out. Fix this by clearing the whole structure
before populating fields.

MFC after: 3 days
Reported by: KMSAN

Details

Provenance
markjAuthored on Dec 11 2023, 2:19 PM
Parents
rGce2f34ade8b7: arm: Disable the VFP during boot
Branches
Unknown
Tags
Unknown