git: kernel - Refactor kern_kevent(), fix timeout overflow (ppoll() bug) (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 6 11:12:02 PDT 2020


commit 95121ed29684b5174d05f7d4a3305c64cbad0949
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 6 11:05:53 2020 -0700

    kernel - Refactor kern_kevent(), fix timeout overflow (ppoll() bug) (2)
    
    * Certain unsupported EV_ERROR events can cause kern_kevent() to
      live-lock, which hits a 'checkloop failed' panic.  Silently
      deregister such events.
    
    * Complain and deregister any kqueue event on behalf of *poll()
      which does not set any poll return flags.
    
    Reported-by: swildner

Summary of changes:
 sys/kern/sys_generic.c | 53 +++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 40 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/95121ed29684b5174d05f7d4a3305c64cbad0949


-- 
DragonFly BSD source repository



More information about the Commits mailing list