kernel - Fix probable callout race
commit9292bb14b817ebffd31bc3d2a994d1b409987e54
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 25 Nov 2018 07:39:15 +0000 (24 23:39 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 25 Nov 2018 07:39:15 +0000 (24 23:39 -0800)
tree95a6c20fb35e889c30421232d2efe26b34aadf24
parentda1def54365a953b5544c46ad26bf301ab59c9a3
kernel - Fix probable callout race

* Fix a probable callout race in kern/kern_event.c.  It is possible
  for the callout to be requeued during teardown and for the
  structure to subsequently become corrupted.

  Manifests as 'stuck' processes (still ^C'able if PCATCH is flagged),
  and sleeps which do not expire.  Can be triggered by synth bulk runs.

* Increase maximum number of kqueue timers from 4096 to 65536.  This
  limit will have to be moved to uidinfo (but not in this commit).
sys/kern/kern_event.c