Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4142030ybl; Mon, 9 Dec 2019 06:12:32 -0800 (PST) X-Google-Smtp-Source: APXvYqx8WLwa0DeNpNeOSzvdqVBZAapPMi/C2e9UPV4yTpoA25XMKm9RFP6UMAG4OA9WrGYoY59W X-Received: by 2002:aca:d7c6:: with SMTP id o189mr7936885oig.130.1575900752311; Mon, 09 Dec 2019 06:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575900752; cv=none; d=google.com; s=arc-20160816; b=0HycYSzGFW+8TORpKjoILyF4IF6OCUfQ81Gdv+3HSd9aiFYFPilwUL3uus9eI88k44 DvxF2u28V2IohUmv1QuNgRAn3EKAyaqG+4HiQ0KPJ6rK0VIkme9poGrvM4JNlS7A0kyS TJRlUxILI1eu59O9rwQ6s2m+CRoiPv5WOWPxlXCk1AtEI549h8cj/begzKRxxSRpjtDp 9SNAUtw+YOlcZ20wtuOOmbHjBen6KWiuAmkOVsFXKPn8gIsL3iOH6WQ5u5DDqVQFKxgv SU475HSTR3FSVCaxQVFBD8kbo4+MTD9WlkAbv1O+UKTk//Xz0BhJSoKburr75RXWv6Bx sVDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=E8MHeSmErGIjySHPAAzp+CJ/YCYvZDrefSPRZN4SlDA=; b=LvVIFALpnJVY4ofhU+djwmkNadM4TMW6Shaug7ofmga5c6lmIB1rrNbZZUBSM5qbh+ d78ZbEXlIZ76Xc/1alCgJsQrfBux0oFreh38txV93aPjMQlRkYF9kPpxiuWFwq1pra3x 2I0vkozISh+vrXlJ9FMIYbLPdk9xymGkQ76Dz+aSH7ANjozK2x96JAJWti0WaXQep1HL znyPm3SfTz84Js3/AKq4M9Fk7HibS3j1Yn5DMinf2E/YeY9pWCWRNWL4XnScFUVA+8G5 5Z1G+ZxJC7rHLVnaWA5Qqfg6SDsjHvlQPHRDDc5NKaGoDZ2WFegZsxsoakJn1C1fWaS7 4/lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FYl3vIC6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si8846138oih.217.2019.12.09.06.12.09; Mon, 09 Dec 2019 06:12:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FYl3vIC6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727851AbfLIOKU (ORCPT + 99 others); Mon, 9 Dec 2019 09:10:20 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:41390 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727720AbfLIOKU (ORCPT ); Mon, 9 Dec 2019 09:10:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575900618; 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=E8MHeSmErGIjySHPAAzp+CJ/YCYvZDrefSPRZN4SlDA=; b=FYl3vIC6599jLZlIpnUg+dhWdnf1Z7P8j/Dz/ye/WYTveD78wqVxe8Kh0mGNPKvSRNIsC/ BjhIblQVT5Casskfb36DLE1K8a8+4eBpTv/EVtlDQ+DaxUDTBKEuX3zL8z/K62ddIN54cx wWsxzIqF80h/Xb1U0ya/JgaXI+rnWUk= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-262-zrhEuhR6NPSIdynIysCarQ-1; Mon, 09 Dec 2019 09:10:15 -0500 Received: by mail-lf1-f70.google.com with SMTP id n24so2233142lfe.6 for ; Mon, 09 Dec 2019 06:10:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=E8MHeSmErGIjySHPAAzp+CJ/YCYvZDrefSPRZN4SlDA=; b=sM7qjLXdplQPECNuNaYXMxO+ANHa1KjcA9bqequEfLQvkardNTd/osrwCJ3U4gWpSU eDid10BDYuiZ4G/Ne0CTTTlvW65ZcsnlB6Co25n+dnMV4u645peO1S+bzy7xJc5U13Cj +1XD44lDcGCB5pS1c/LXh4C+u7Bc/zD7GEf2rrqHY9gV0tqt1N+dkkPuMQeuk487qqJb hL1iUyWbnkZEbiMiR/NsZ90l80pDb54BUNcQw/orjzzkAjxc3U9LB7lGHnH3i1DHy4vb BkRQIu97APoWvD5ia8+iRIB9tjrfhj7T9ixMlUB+XqBYD5KbyTNErPF0pQEp2olG+2xH ZI1A== X-Gm-Message-State: APjAAAWcC1Tg3j2ufjbL46Sig9gKKw2+LmW0QVf+yFsIU97UScfWES1l tZ5P71ZRjHpihZXE9ZJnquoRwMDGFqiMtVX0/iw8wgzF8TDqOFqSE9qsOfevwrpUsDXPXmTewUQ lbUux+CEAp6gIkzezTO0l7WYjjJY= X-Received: by 2002:a2e:5850:: with SMTP id x16mr17025786ljd.228.1575900613925; Mon, 09 Dec 2019 06:10:13 -0800 (PST) X-Received: by 2002:a2e:5850:: with SMTP id x16mr17025767ljd.228.1575900613666; Mon, 09 Dec 2019 06:10:13 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id r2sm10989213lfn.13.2019.12.09.06.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 06:10:12 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 2182D181938; Mon, 9 Dec 2019 15:10:12 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Kalle Valo , Steve French Cc: LKML , linux-wireless@vger.kernel.org Subject: Re: 5.5-rc1 oops on boot in 802.11 kernel driver In-Reply-To: <87h829lpob.fsf@toke.dk> References: <0101016eea3353da-835ca00e-d6c9-4e2c-aa0b-f6db8a4c518a-000000@us-west-2.amazonses.com> <87h829lpob.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 09 Dec 2019 15:10:12 +0100 Message-ID: <87muc1io8r.fsf@toke.dk> MIME-Version: 1.0 X-MC-Unique: zrhEuhR6NPSIdynIysCarQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Toke H=C3=B8iland-J=C3=B8rgensen writes: > Kalle Valo writes: > >> Hi Steve, >> >> Steve French writes: >> >>> Noticed this crash in the Linux kernel Wifi driver on boot a few >>> minutes ago immediately after updating to latest mainline kernel about >>> an hour ago. I didn't see it last week and certainly not in 5.4. >> >> please CC linux-wireless on all wireless related problems, we don't >> follow lkml very closely and I found your email just by chance. >> >> Full warning below. Steve is using iwlwifi. > > Right, we already got a similar report off-list, but with a different > stack trace. I was going to try to reproduce this on my own machine > today. However, the fact that this includes the iwl_mvm_tx_reclaim() > function may be a hint; that code seems to be reusing skbs without > freeing them? > > If I'm reading the code correctly, it seems the reuse leads to the same > skb being passed to ieee80211_tx_status() multiple times; the driver is > clearing info->status, but since we added the info->tx_time_est field, > that would lead to double-accounting of that SKB, which would explain > the warning? > > Can someone familiar with iwlwifi confirm that this is indeed what that > code is supposed to be doing? If it is, I think it needs the patch > below; however, if I'm wrong, then clearing the field could lead to the > opposite problem (that skbs fail to be accounted at all), which would > lead to the queue being throttled because the limit gets too high and is > never brought back down... Right, and now I did boot up my own laptop with the -next kernel, and tested the patch. It definitely breaks things, so that was not the issue. However, I don't get the WARN_ON either, so don't have any better ideas. I guess we'll have to wait for someone who actually knows the iwlwifi driver to take a look at this :) -Toke