From owner-freebsd-bugs Tue Jan 2 17:10: 5 2001 From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 2 17:10:01 2001 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8437C37B402 for ; Tue, 2 Jan 2001 17:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f031A1O40184; Tue, 2 Jan 2001 17:10:01 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 2 Jan 2001 17:10:01 -0800 (PST) Resent-Message-Id: <200101030110.f031A1O40184@freefall.freebsd.org> Resent-From: gnats-admin@FreeBSD.org (GNATS Management) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: gnats-admin@FreeBSD.org, marka@nominum.com Received: from drugs.dv.isc.org (drugs.dv.isc.org [130.155.191.236]) by hub.freebsd.org (Postfix) with ESMTP id 3AD2D37B400 for ; Tue, 2 Jan 2001 17:04:38 -0800 (PST) Received: (from marka@localhost) by drugs.dv.isc.org (8.11.1/8.11.1) id f0314IN77226; Wed, 3 Jan 2001 12:04:18 +1100 (EST) (envelope-from marka) Message-Id: <200101030104.f0314IN77226@drugs.dv.isc.org> Date: Wed, 3 Jan 2001 12:04:18 +1100 (EST) From: marka@nominum.com Reply-To: marka@nominum.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/24032: pccard & rndcontrol Resent-Sender: gnats@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24032 >Category: kern >Synopsis: rndcontrol and pccardd use of interupt handler incompatable >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 02 17:10:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Mark Andrews >Release: FreeBSD 4.2-RELEASE i386 >Organization: Nominum >Environment: FreeBSD drugs.dv.isc.org 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Fri Nov 24 00:33:35 EST 2000 marka@drugs.dv.isc.org:/usr/obj/usr/src/sys/DRUGS i386 >Description: rndcontrol and pccard use of the interupt handler is incompatable with each other. It is possible to remove the interupt handler of a installed card via rndcontrol -c irq. Inserting a card clears the interupt handler installed via rndcontrol without clearing the associated bit in the mask. >How-To-Repeat: rndcontrol -s insert card that wil use rndcontrol -c >Fix: Minimum fix, rndcontrol -c should ensure that it is still the installed handler before trying to restore the handler saved via rndcontrol -s. A full fix would require two interupt handling tables one for rndcontrol to manipulate and for the devices to manipulate The handlers in the later called from the handlers in the former. There are other alternatives which require the code intalling the interupt handlers to know about add_interrupt_randomness and do the appopriate things. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message