From nobody Sun Dec 10 15:56:33 2023 X-Original-To: wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sp8cx492tz541mH for ; Sun, 10 Dec 2023 15:56:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sp8cx32Dxz3N43 for ; Sun, 10 Dec 2023 15:56:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702223793; a=rsa-sha256; cv=none; b=YIWsUHNwYnjKnHBFDtO22AxTvyn56fnAnDxOsTW6m/vuslsL2ZlBLSbZNzuZ2U4uO5PxRZ L8ohFjT/qsqeH0rDDZf53FCMoO561tL6GI63WBdJU6IompbX3ZsHWzuE+JVcQrDxEvSN0s SvFCzXtmYeUCJBoaIok282idtLCYQLxIOMyrhfU9Tq2ypMX/iX1BS0+qFMrHGA//A+qoId R9mjoGIPo34VJhKKhaax5068yhMpvamBAdeFHDVqYQFCAWIZwVcgdqAhL7Y7s26lMhwOj8 O5UMVNX+MGfk/35P1lEd4GQcVl3USaJkPXKaTUh73nfX/EeF45hiPGVnXQftDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702223793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HEf2gjws/Tc6zffzz39obZGxPEf/X6mXookrr1OhJ8I=; b=UBHeVb+rn1vYeOAI1pGj5fIRjIUVhzNZR9DKmSkkvAUYg7x3lU/YRNX43E3+w1xm1RBGWZ mZjzJanPgq/HlqhfBlEJQOOSO0HLshud4Uj2ux6OGenmXn4bwOBk4TdDK8GT2iAZMn3AqH QIT5TFi1Mrf1DsFh3lBDAG4vRcU12foKfnGfBmjHCtIlCPjYg6dCQSTikZg9Ba5Pb0zcff WL32O3Gv0lOU2MIBGegwW1MYl1hycPOGwqsyezIBYJLM9046/AXgAzpDlcfQQ5O3hX6KgD TuibPT9y1hOlCNI+x+Bll9Zw7Q/543KsXhju9Jkv+TbNNt/FRGlxyX8yVcDiOQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Sp8cx21NqztwM for ; Sun, 10 Dec 2023 15:56:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3BAFuXpW001747 for ; Sun, 10 Dec 2023 15:56:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BAFuXpv001746 for wireless@FreeBSD.org; Sun, 10 Dec 2023 15:56:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 275616] bwn driver causes kernel panic after connect Date: Sun, 10 Dec 2023 15:56:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275616 --- Comment #14 from Mark Johnston --- Hmm, for bwn vap->iv_ic->ic_headroom is pretty big, it's equal to sizeof(st= ruct bwn_txhdr), which is 118 bytes. So, ieee80211_mbuf_adjust() is going to set needed_space =3D 118 + 24 + 8 f= or CCMP. If ieee80211_mbuf_adjust() needs to allocate a new mbuf header, the header will have MHLEN - 150 =3D 10 bytes of space. The assertion "needed_space <=3D MHLEN" should actually be "needed_space + sizeof(struct ether_header) <=3D MHLEN", and I suspect that that assertion = would fail for bwn. I'm not sure what changed in 14.0 to break - maybe struct mb= uf layout changes that made MHLEN smaller? --=20 You are receiving this mail because: You are the assignee for the bug.=