Date: Mon, 1 Nov 2004 21:10:30 GMT From: "Keith Winter" <keith@sentex.net> To: freebsd-bugs@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: <200411012110.iA1LAUSC070155@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/72935; it has been noted by GNATS. 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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411012110.iA1LAUSC070155>