From owner-cvs-all Wed Mar 14 7:19: 3 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9C7D337B718; Wed, 14 Mar 2001 07:18:58 -0800 (PST) (envelope-from cg@FreeBSD.org) Received: (from cg@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2EFIw910673; Wed, 14 Mar 2001 07:18:58 -0800 (PST) (envelope-from cg) Message-Id: <200103141518.f2EFIw910673@freefall.freebsd.org> From: Cameron Grant Date: Wed, 14 Mar 2001 07:18:58 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm datatypes.h dsp.c sound.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG cg 2001/03/14 07:18:58 PST Modified files: (Branch: RELENG_4) sys/dev/sound/pcm datatypes.h dsp.c sound.c Log: MFC: fix a panic triggerable by anyone with read/write access to the audio devices. opening /dev/{dsp,dspW,audio}0 and then opening a different device from that list and closing it resulted in a panic when any operation is performed on the first fd. we prevent this happening by denying the second open unless it uses the same minor device as the first. PR: kern/25519 Approved by: jkh Revision Changes Path 1.8.2.7 +2 -2 src/sys/dev/sound/pcm/datatypes.h 1.15.2.7 +5 -1 src/sys/dev/sound/pcm/dsp.c 1.17.2.7 +7 -1 src/sys/dev/sound/pcm/sound.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message