From owner-freebsd-wireless@freebsd.org Sat Dec 19 17:44:23 2015 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4F10A4CB56 for ; Sat, 19 Dec 2015 17:44:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5F6E1493; Sat, 19 Dec 2015 17:44:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x233.google.com with SMTP id e126so119934556ioa.1; Sat, 19 Dec 2015 09:44:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=cdXmPNn43pdB+nEelXOc1Un8OZAOYTuxnd9KMnHy7UY=; b=G8826lCp3ekLDcXCSRDZpalVrRYHkbjq2vdy5VAY+k6lPpT4OCo/SA6t8gew4+TG+O qt11554OFS/ZM1dK3f9YPN0F+vCZi11JEdulPOnZZhUnAk0g6DpEYtkvpKUCSxvvG0RQ wlyL3+Zz/7wtc6jOkw9jPYy44iKaxJjQmnivVisKB4v0wd70uLR8YeUQlzZ882ZbGdc9 rQYcR9mOUoKgoksl8GTlm/sO4wOH3VT/dWlnT8GtftzPCPYhE/JuXTD+mFkOSRlcanjv baArBG0tuXdiLNwm3inOqqPmUgc+BND73KxDYbh72J2qBHENN2RiVbkjh3NvOPfh9TOj ymXQ== MIME-Version: 1.0 X-Received: by 10.107.10.217 with SMTP id 86mr1775335iok.75.1450547063055; Sat, 19 Dec 2015 09:44:23 -0800 (PST) Received: by 10.36.121.202 with HTTP; Sat, 19 Dec 2015 09:44:22 -0800 (PST) In-Reply-To: <56759737.6050108@FreeBSD.org> References: <5659ED1D.70003@FreeBSD.org> <565A271C.6070107@FreeBSD.org> <565A5BB2.3020908@FreeBSD.org> <565A8883.7040100@FreeBSD.org> <565B2E60.8010302@FreeBSD.org> <56759737.6050108@FreeBSD.org> Date: Sat, 19 Dec 2015 09:44:22 -0800 Message-ID: Subject: Re: urtwn broken at r291262 From: Adrian Chadd To: Steve Wills Cc: Andriy Voskoboinyk , "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list 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: Sat, 19 Dec 2015 17:44:24 -0000 Looks like use-after-free. Any idea what line of code it wa at? -a On 19 December 2015 at 09:43, Steve Wills wrote: > On 11/29/2015 17:23, Andriy Voskoboinyk wrote: >> Sun, 29 Nov 2015 18:57:04 +0200 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Steve Wills >> : >> >> Hi, >> >> I split previous patch into smaller pieces. If you wish, you can test >> them and say, which helps (if any). >> >> To speed up the process, you can use the following procedure >> (will work only if urtwn(4) is not compiled into the kernel): >> 1) before patching: >> mv /boot/kernel/if_urtwn.ko /boot/kernel/if_urtwn.ko.bak && cd /usr/s= rc >> 2) svn patch --reverse-diff >> 3) svn patch >> 4) make buildkernel KERNFAST=3Dyes >> 5) ifconfig wlan0 down >> 6) ifconfig wlan0 destroy >> 7) kldunload if_urtwn >> 8) kldload `find /usr/obj/usr/src/sys -name if_urtwn.ko` >> 9) >> 10) at the end: >> mv /boot/kernel/if_urtwn.ko.bak /boot/kernel/if_urtwn.ko > > Sorry, it took me a while, but I finally got these patches tested. I > tested against r290630. I had to apply both patch-urtwn-ridx.diff and > patch-urtwn-hwseq.diff before it started working. > > I see other changes have been made in the mean time, but thought I'd > report anyway. I'll test the latest version too, but wanted to go ahead > and send this info. > > Also, with patch-urtwn-eapol.diff applied, I got this panic while unloadi= ng: > > http://pastebin.com/KGN66u9t > > Not sure if this matters or not, but thought I'd pass it along. > > Thanks, > Steve > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g"