From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 9 04:52:00 2008 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A63691065675; Sun, 9 Mar 2008 04:52:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 508E58FC23; Sun, 9 Mar 2008 04:52:00 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m294oTee066415; Sat, 8 Mar 2008 21:50:29 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 08 Mar 2008 21:51:02 -0700 (MST) Message-Id: <20080308.215102.-432795252.imp@bsdimp.com> To: rwatson@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <200803082058.m28KwLTr064840@freefall.freebsd.org> References: <200803082058.m28KwLTr064840@freefall.freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/89362: Stale references to freed memory X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Mar 2008 04:52:00 -0000 Don't set interrupt handlers in the probe routine. That's not allowed as you cannot count on side effects in the probe routine. It might be called multiple times. softc is freed between probe and attach to keep people from doing this. The device_get_name*() calls definitely cannot be cached. Warner