HomeFreeBSD

Defer funsetown() calls for a TTY to tty_rel_free().

Description

Defer funsetown() calls for a TTY to tty_rel_free().

We were otherwise failing to call funsetown() for some descriptors
associated with a tty, such as pts descriptors. Then, if the
descriptor is closed before the owner exits, we may get memory
corruption.

Reported by: syzbot+c9b6206303bf47bac87e@syzkaller.appspotmail.com
Reviewed by: ed
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on
Parents
rS349732: Fix transfers that don't use busdma or bounce buffer (e.g. software dmas).
Branches
Unknown
Tags
Unknown