Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2292750rwl; Thu, 6 Apr 2023 08:16:58 -0700 (PDT) X-Google-Smtp-Source: AKy350bbUlUhstcjlXJ00qQgCrZ90wuTR0AZu1gV1rlYMqkHO/tMZQr1jqM097DYE9fKnoKx0m8I X-Received: by 2002:a17:906:c2c6:b0:931:95a1:a05a with SMTP id ch6-20020a170906c2c600b0093195a1a05amr7240705ejb.62.1680794218659; Thu, 06 Apr 2023 08:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680794218; cv=none; d=google.com; s=arc-20160816; b=0r8u56qKmk1IYjh8h30/3h59EKiLcavLe4GffZQAWoQcO9QjyJ/JXRtYgl0YSOA2LF Pcys4x78iIFNqHwSoj/wceKRVtgXkr97TEJGVBzmwK2bU5h/PAe/XKf9mCwnH2elZ8iN vsovHOa3WM/tnwqreP0KprMKkkptn4XalbT3+wMK3UDT8CUfDttU3qAlusHSJUHxp62e vLLpjKxIDam62Jm16v1IaJ1+Qs1egOuNsDyiVvlPsvxR3ELx5uh0LMv56BmV7/7YJQ6d ZEEQ1LnRqlSN0c9y11+vsykRlklf2/q4vmbdRGTLZfUw2ToLOe+q0mIDCWdm0KtmEqVH W5Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version:date :dkim-signature:dkim-signature:message-id; bh=taoE3YV12z4keWkzaBb9BXJPAf8iIKmU2a+QjtCQIZI=; b=wEdRW3TX11FMTWkst9KIqnn0G0iCxy/C1defHvvlVpVOoiq7dgKtcauFEE0qt2C3iX BVHVj3d5g/6zeyOUbBH5P+CxqYXxXfeMOPSAiWrXINe3yXuVWnpsazB11VxHDbWyU0N4 wOI8USLrV9Q/J8AEfcmdL8/uSpMFNinML1m3g2zrmQGzO0LbBX6VRsr2oHh+RebT6Npx lxO89KO82y2KnNVoakQllO32yuRLBMCDoFkiHghsTpPSy+Iu/NjUMr0LA7LLaWQWc6Kg mSn8JcH/LV/N7UFfY8L3BmNK+0ARjQBUf0LE5zQ88rnHwMqpnECWXZtdvgUNBfKt6wPJ m10w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zlu9ogO9; dkim=neutral (no key) header.i=@linutronix.de header.b="DRj/UaWn"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020aa7d584000000b0050202fad39dsi1345964edq.635.2023.04.06.08.16.40; Thu, 06 Apr 2023 08:16:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zlu9ogO9; dkim=neutral (no key) header.i=@linutronix.de header.b="DRj/UaWn"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239671AbjDFPKo (ORCPT + 61 others); Thu, 6 Apr 2023 11:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239699AbjDFPKJ (ORCPT ); Thu, 6 Apr 2023 11:10:09 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 389AD9ECD for ; Thu, 6 Apr 2023 08:10:00 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1680793797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=taoE3YV12z4keWkzaBb9BXJPAf8iIKmU2a+QjtCQIZI=; b=Zlu9ogO9KpqfMmDE1IKuNJ9vyTlLV8x5y4x3xlZxTCxkQHwKgiW8Svu+y2JZE6OaHkWf3C tBul/HQ0Pywiq+HlxO4/XW812m6p/AiN41gsJko4gK1SPsGxZ7Zsj3GAPPsHyBVAL6uzQd 1OzEE0M8YXF/E0P05Uo/Ge3AvepbtfLt7wn4YdPpyt8y3C2k5IqG45cAFg5PlU6f4B6+hq gctObMqemDbTC1cBuYEzLVaJDcvB74goTLt/IponKx1FpxT0P4/qhLWaCC5FFQDjC+LYmM 1vXAdBBrWsfTnPh7PQPOfSTrPOa4dhzNe1vJ2XevFN6mVsZ7x9dUFe5EUIQ3rw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1680793797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=taoE3YV12z4keWkzaBb9BXJPAf8iIKmU2a+QjtCQIZI=; b=DRj/UaWnUxRTi9e6GzLkTpvJSMtAjV7DM07cbvGN6QBaRdQ2O21yIJIhERXUTzDd3Nnc/1 jve11k8IXUJJq7BA== Date: Thu, 6 Apr 2023 17:09:57 +0200 MIME-Version: 1.0 Subject: Re: [RFC PATCH 00/14] wifi: rtl8xxxu: Add AP mode support for 8188f To: Ping-Ke Shih , Bitterblue Smith Cc: Jes Sorensen , Kalle Valo , Sebastian Andrzej Siewior , "linux-wireless@vger.kernel.org" References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <26840cf1-9403-3d09-a4d2-352bc198efff@linutronix.de> Content-Language: de-DE From: Martin Kaistra In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Am 06.04.23 um 02:42 schrieb Ping-Ke Shih: > > >> -----Original Message----- >> From: Martin Kaistra >> Sent: Wednesday, April 5, 2023 11:31 PM >> To: Bitterblue Smith >> Cc: Jes Sorensen ; Kalle Valo ; Ping-Ke Shih >> ; Sebastian Andrzej Siewior ; linux-wireless@vger.kernel.org >> Subject: Re: [RFC PATCH 00/14] wifi: rtl8xxxu: Add AP mode support for 8188f >> >> Am 23.03.23 um 18:12 schrieb Bitterblue Smith: >>> On 22/03/2023 19:18, Martin Kaistra wrote: >>> Then I was able to turn on the AP and connect my phone to it. However, >>> the system froze after a few seconds. I had `journalctl --follow` >>> running. The last thing printed before the system froze was the DHCP >>> stuff (discover, offer, request, ack). The phone said it was connected, >>> but speedtest.net didn't have time to load before the freeze. >> >> Hi >> >> I could reproduce a frozen system with my hostapd setup, though it >> doesn't happen reliably and I don't have an error message when it happens. >> > > Using netcat would help to capture useful messages when system gets frozen. > > Ping-Ke > Thanks. I got a trace by using netconsole and netcat. It is a NULL pointer dereference in rtl8xxxu_fill_txdesc_v2(): if (rate_flags & IEEE80211_TX_RC_MCS && !ieee80211_is_mgmt(hdr->frame_control)) rate = tx_info->control.rates[0].idx + DESC_RATE_MCS0; else rate = tx_rate->hw_value; <-- error happens here if (rtl8xxxu_debug & RTL8XXXU_DEBUG_TX) dev_info(dev, "%s: TX rate: %d, pkt size %u\n", This happens when ieee80211_get_tx_rate() hits the WARN_ON_ONCE and maybe also when c->control.rates[0].idx has another invalid value. See my previous comments about HAS_RATE_CONTROL.