git: psm - Fix panic in ps/2 mouse driver

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 11 21:14:38 PDT 2019


commit 1ea2893e99482291345e6c798d20cfef84d6ed07
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 11 21:10:12 2019 -0700

    psm - Fix panic in ps/2 mouse driver
    
    * Fix a race in the ps/2 driver where a callout could be interrupted
      by psmintr() and corrupt the ps/2 packet buffer, causing a panic.
    
    * Use a lockmgr lock instead of (archaic) critical sections for interrupt
      protection.  Also use the locked callout API.  This will hopefully
      prevent any further corruption.
    
    Reported-by: drill-use at irc

Summary of changes:
 sys/dev/misc/psm/psm.c | 97 +++++++++++++++++++++++++-------------------------
 1 file changed, 49 insertions(+), 48 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ea2893e99482291345e6c798d20cfef84d6ed07


-- 
DragonFly BSD source repository



More information about the Commits mailing list