From owner-cvs-src@FreeBSD.ORG Wed Oct 6 04:25:37 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA75616A4CE; Wed, 6 Oct 2004 04:25:37 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAEF343D45; Wed, 6 Oct 2004 04:25:37 +0000 (GMT) (envelope-from green@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i964PbNO002853; Wed, 6 Oct 2004 04:25:37 GMT (envelope-from green@repoman.freebsd.org) Received: (from green@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i964PbnT002852; Wed, 6 Oct 2004 04:25:37 GMT (envelope-from green) Message-Id: <200410060425.i964PbnT002852@repoman.freebsd.org> From: Brian Feldman Date: Wed, 6 Oct 2004 04:25:37 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net bpf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 04:25:38 -0000 green 2004-10-06 04:25:37 UTC FreeBSD src repository Modified files: sys/net bpf.c Log: Don't recurse the BPF descriptor lock during the BIOCSDLT operation (and panic). To try to finish making BPF safe, at the very least, the BPF descriptor lock really needs to change into a reader/writer lock that controls access to "settings," and a mutex that controls access to the selinfo/knote/callout. Also, use of callout_drain() instead of callout_stop() (which is really a much more widespread issue). Revision Changes Path 1.137 +1 -1 src/sys/net/bpf.c