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

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jun 10 14:03:19 PDT 2020


commit caa33d06fe7e2c6b75fa11ca2f8fd6dc23d53cfb
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/caa33d06fe7e2c6b75fa11ca2f8fd6dc23d53cfb


-- 
DragonFly BSD source repository


More information about the Commits mailing list