Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2004 16:04:59 -0500
From:      "Keith Winter" <keith@sentex.net>
To:        <freebsd-gnats-submit@FreeBSD.org>, <freebsd-dev@sentex.net>
Cc:        freebsd-usb@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
Message-ID:  <008401c4c056$7294a080$cd2ba8c0@lapisjr>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008401c4c056$7294a080$cd2ba8c0>