kern/72935: sio tty and uhid tty (perhaps others) stomp on each other leading to kernel data corruption and a panic

Keith Winter keith at sentex.net
Mon Nov 1 13:10:31 PST 2004


The following reply was made to PR kern/72935; it has been noted by GNATS.

From: "Keith Winter" <keith at sentex.net>
To: <freebsd-gnats-submit at FreeBSD.org>, <freebsd-dev at sentex.net>
Cc: <freebsd-usb at FreeBSD.org>
Subject: Re: kern/72935: sio tty and uhid tty (perhaps others) stomp on each other leading to kernel data corruption and a panic
Date: Mon, 1 Nov 2004 16:04:59 -0500

 We are trying to generalize the fix for this.  It was pointed out by Julian Elischer that this prevents bio devices from trampling
 on tty devices, but not vice versa.
 
 Would the following be a more general solution for uhid devices?
 
         {
                 int s = splhigh();
                 tty_imask |= bio_imask;
                 bio_imask |= tty_imask;
                 update_intr_masks();
                 splx( s );
         }
 
 The approach is similar to what was done for ppp/slip.
 
 -- KDW
 
 


More information about the freebsd-bugs mailing list