CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2011/10/06 03:14:35
Modified files:
sys/kern : tty_tty.c
sys/sys : conf.h
Log message:
Introduce a kqfilter wrapper for the controlling tty device entry
which allows a correct registration of kqueue(2) notifications on
the /dev/tty instead of calling a function via a null pointer in
the ttkqfilter leading to a local DoS.
Surprisingly the same code is present in NetBSD since the kqueue
merge, but didn't make it to the OpenBSD for 10 years.
Thanks to Anton Yabchinskiy <arn-at-bestmx-dot-ru> for a GHCi crash
report and his willingness to test multiple diffs for over a week.
With input from nicm, ok miod, derraadt.