From owner-freebsd-wireless@freebsd.org Tue Sep 8 03:52:10 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 098619C83F8 for ; Tue, 8 Sep 2015 03:52:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0B3B132C for ; Tue, 8 Sep 2015 03:52:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t883q935038775 for ; Tue, 8 Sep 2015 03:52:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-wireless@FreeBSD.org Subject: [Bug 202962] [iwn] ampdu tx panic Date: Tue, 08 Sep 2015 03:52:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: henry.hu.sh@gmail.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-wireless@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 08 Sep 2015 03:52:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202962 Bug ID: 202962 Summary: [iwn] ampdu tx panic Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: wireless Assignee: freebsd-wireless@FreeBSD.org Reporter: henry.hu.sh@gmail.com I've got panic twice, but I don't have a coredump. Both times the panics are related to iwn AMPDU TX code. I've got screenshots for the 2nd time, and I've attached them. 1st: https://goo.gl/photos/DfBKcERDHTdnYpda6 2nd: https://goo.gl/photos/FmuuH7viE2fATpsj8 https://goo.gl/photos/hFqNumEaapkpbHzr5 https://goo.gl/photos/3NHhUrbYH6ugkWM38 system: FreeBSD pepsi 11.0-CURRENT FreeBSD 11.0-CURRENT #11 r287028M: Sat Aug 22 20:22:32 EDT 2015 root@pepsi:/usr/obj/usr/src/sys/MYKERNEL amd64 For the first time, the crash happened in iwn_tx_data()+0x183, at line 4431 ring = &sc->txq[ac]; 4432 if ((seqno % 256) != ring->cur) { I don't have the register info that time, but I think that it's mostly the same cause as the 2nd time. Possibly 'ac' is invalid. The second crash happened in iwn_ampdu_tx_stop()+0x60, at line 7419 if (sc->txq[qid].queued != 0) Disassemble says: 0000000000004090 : ... 40e6: 4c 63 38 movslq (%rax),%r15 40e9: 49 69 c7 98 28 00 00 imul $0x2898,%r15,%rax 40f0: 41 83 bc 05 8c 2a 00 cmpl $0x0,0x2a8c(%r13,%rax,1) 40f7: 00 00 and 0x2898 = sizeof(iwn_tx_ring). %r15 should be qid, and %r15 = 0x42535f5c which is clearly invalid(This happened to be all ASCII chars. Maybe reused?). It seems like that someone overwrites tap->txa_private, and this caused both panics. Or it's possible that it's freed and reused. -- You are receiving this mail because: You are the assignee for the bug.