From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 29 21:30:03 2013 Return-Path: Delivered-To: freebsd-wireless@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6D6B3BD9 for ; Fri, 29 Mar 2013 21:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB97B8D for ; Fri, 29 Mar 2013 21:30:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2TLU3BQ045534 for ; Fri, 29 Mar 2013 21:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2TLU3Hx045533; Fri, 29 Mar 2013 21:30:03 GMT (envelope-from gnats) Date: Fri, 29 Mar 2013 21:30:03 GMT Message-Id: <201303292130.r2TLU3Hx045533@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org Cc: From: PseudoCylon Subject: Re: kern/177451: [ieee80211] page fault in ieee80211_tx_mgt_timeout X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: PseudoCylon List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Mar 2013 21:30:03 -0000 The following reply was made to PR kern/177451; it has been noted by GNATS. From: PseudoCylon To: bug-followup@FreeBSD.org, davide@FreeBSD.org Cc: Subject: Re: kern/177451: [ieee80211] page fault in ieee80211_tx_mgt_timeout Date: Fri, 29 Mar 2013 15:21:58 -0600 http://fxr.watson.org/fxr/source/net80211/ieee80211_output.c?v=FREEBSD91#L2506 enum ieee80211_state ostate = (enum ieee80211_state) arg; casting a pointer to an enum http://fxr.watson.org/fxr/source/net80211/ieee80211_output.c?v=FREEBSD91#L2519 if (vap->iv_state == ostate) So that, this test is always false -> callout_reset() will never be called -> by the time the callout timer runs out, ni could be freed.