CVSROOT:        /cvs
Module name:    src
Changes by:     dera...@cvs.openbsd.org 2020/07/14 08:33:06

Modified files:
        sys/kern       : tty.c tty_pty.c 
        sys/sys        : tty.h 

Log message:
A pty write containing VDISCARD, VREPRINT, or various retyping cases of
VERASE would perform (sometimes irrelevant) compute in the kernel which
can be heavy (especially with our insufficient tty subsystem locking).  Use
tsleep_nsec for 1 tick in such circumstances to yield cpu, and also bring
interruptability to ptcwrite()
https://syzkaller.appspot.com/bug?extid=462539bc18fef8fc26cc
ok kettenis millert, discussions with greg and anton

Reply via email to