Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1145714lqb; Thu, 30 May 2024 01:18:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcMJzre32B/kJpedME5FnJe4YuPeOaZQ+VGWxcHGh09h+sWSPeGqoJjpMhVw+pRERipynUiDAvCugnuTgAWHoh5lf5QXGdE2JBjPT3Tw== X-Google-Smtp-Source: AGHT+IEIYbla/M13NSyuweqLHvtTJGBL2+v290Era7wYSiDsTIBv1AqX/2K4/5ltoXqQxU+doABr X-Received: by 2002:a05:6808:bca:b0:3c9:7f1e:76cf with SMTP id 5614622812f47-3d1dccb5958mr1673037b6e.31.1717057103134; Thu, 30 May 2024 01:18:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717057103; cv=pass; d=google.com; s=arc-20160816; b=jZ7kaaRRJNc8bWkhPrFFgNOgw3pGKEqaZOifwcgMGCyrsUXkBUXRWb9Yryy/CcUSMl PSPUgkgV8LmxnMeoRd12ECLzzSGPvzYNjq5AVcbWKkzyWiElZXVj3tW0EGl+xVzK7Gxr a0eqYuHmGUuHsm1VDFkdGgVJpU1WYiTp6AM2VHJC1F7/Oi3tKLYK/c3XBb2NK6uQtrHf fX52TpKIEhyjMkSyPIf+gPoflmA0gxf2XT5u9LkHube0DiI8z+AU59q3mmZM49hwbujw icC98br6Trr8LPHsluPDwwqQ/egJ3t4hLeUpGCTNo0ddCc0ZR2dkEBK0PILCFF9RRcW0 lYqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=QzYBUKJt1hOcj80lTpHxb7jGsZGn+nOtgPYDuFEkB28=; fh=DzITIWRkjhHgtn5daZSgb1SV3z+rnFuFb9OWmgRS/Js=; b=mOV+SQiocgn+dUYsn5uWOpgFreYDeVqZaUfZ1tlpmeW1yggHT0du2UU7RDr76dzoRD bkwLGiR9PA9+rf411t0kVNfN8CpepDVklJQ5hp3v5dMroOr3hkAv8ZiOjbW/2Y2LI2hz DtnBm0DplZVDwKWbkh+t4pLoTmc98TyFPqNUB/c8uerEW+lR1MFaACtVLJbqETp7WgWT bnmwyh1YxYy/VQGS0yKQrUu2Zj7k8wiysoNUPt/l9dkGZYnSOFSM2OzzPtFlKzu36rcQ sVN0Tl9hiK4qssPibhObbnQmiYbRaEJ3zUpZ6mzYcB/L4jVPs1EL7de3vU6t7rcBu/66 rEOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfU1jynA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8306-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18c91ffsi151074491cf.658.2024.05.30.01.18.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:18:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8306-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfU1jynA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8306-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CAB441C22054 for ; Thu, 30 May 2024 08:18:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEDEC14C584; Thu, 30 May 2024 08:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BfU1jynA" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CBB914A615; Thu, 30 May 2024 08:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717057096; cv=none; b=S2PZgwuRRbbnWirqlW1l26BSdrVTk/tkjs/CjpKuM8WXMMzMuQxuc6fNpMXLu90Y53mhOkzyrgrV8AjZx0dN0qD403GGbYJfRLItlexTxkLaXrsyG/gnyf3PcuwulT64TOMr/s/nzSNWQRmsQDOSfN4o2BdUUVosi36bUBldoD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717057096; c=relaxed/simple; bh=LLoCHtazLklqSTo51kZD1rOstdZdBmD8nkBBghMcTi4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=CJU5yYlQjHoDGEQxR8gl2py1CD9d3aVI95StekMcd84uE73nL0wbcb5csfN7iLrjUQbCUAjLDHLAWdxqKshh5t1ZB8yBnXv2J00Pz4E7D/h5eVXJpgpDX/TihdNx5vZSBeHgAgUUcAkdVJ6vT9Erh9ra2FuoyrUHLR2cnTpVEBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BfU1jynA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF1FEC2BBFC; Thu, 30 May 2024 08:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717057096; bh=LLoCHtazLklqSTo51kZD1rOstdZdBmD8nkBBghMcTi4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BfU1jynABdejcfPhHA29dQ+oPfGqOdMCRhwsYiCuOTSAI57JG6/7ULl25M79r3U2I E8P7k8piRx5OYN2BMivUHzX80VgYR4fASP2JFI7GYBPbZkmQnXA/OFrCtS4lZpfCTa oGV/SOVfbmyZe6Rgdm/ZfhW78oSeWxEEvUSEB9KadvOEMMsTH9xrt82Nu4MZl+/aEQ VLJCqrdKRyx+ZZGP7oLhuIBGlQVAj4jINQ/ghGJwTgwD7y9KNL48MMANpHyV6pOpom BfjikRWj9tXRbCykmUSeEQMIyhsAAsFeOEzozOdzgB8d3qPxCvStsIxt0TmdWaqihx 60pJTNBqYkwlw== From: Kalle Valo To: Dan Williams Cc: Dave Jiang , Bjorn Helgaas , , , , Jeff Johnson , , , Subject: Re: [regression] BUG: KASAN: use-after-free in lockdep_register_key+0x755/0x8f0 References: <87v82y6wvi.fsf@kernel.org> <87wmncwqxf.fsf@kernel.org> <87sexzx02f.fsf@kernel.org> <66582bee45da8_6ec329496@dwillia2-mobl3.amr.corp.intel.com.notmuch> <87jzjbwxin.fsf@kernel.org> Date: Thu, 30 May 2024 11:18:12 +0300 In-Reply-To: <87jzjbwxin.fsf@kernel.org> (Kalle Valo's message of "Thu, 30 May 2024 10:48:32 +0300") Message-ID: <87frtzww57.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Kalle Valo writes: > Dan Williams writes: > >> Kalle Valo wrote: >> >>> Kalle Valo writes: >>> >>> > Kalle Valo writes: >>> > >>> >> Yesterday I run our ath11k regression tests with v6.10-rc1 and our >>> >> simple ath11k module reload stress started failing reliably with various >>> >> KASAN errors. The test removes and inserts ath11k and other wireless >>> >> modules in a loop. Usually I run it at least 100 times, some times even >>> >> more, and no issues until yesterday. >>> >> >>> >> I have verified that the last wireless-next pull request (tag >>> >> wireless-next-2024-05-08) works without issues and v6.10-rc1 fails >>> >> always, usually within 50 module reload loops. From this I'm _guessing_ >>> >> that we have a regression outside wireless, most probably introduced >>> >> between v6.9 and v6.10-rc1. But of course I cannot be sure of anything >>> >> yet. >>> >> >>> >> I see different KASAN warnings and lockdep seems to be always visible in >>> >> the stack traces. I think I can reproduce the issue within 15 minutes or >>> >> so. Before I start bisecting has anyone else seen anything similar? Or >>> >> any suggestions how to debug this further? >>> >> >>> >> I have included some crash logs below, they are retrieved using >>> >> netconsole. Here's a summary of the errors: >>> >> >>> >> [ 159.970765] KASAN: maybe wild-memory-access in range >>> >> [0xbbbbbbbbbbbbbbb8-0xbbbbbbbbbbbbbbbf] >>> >> [ 700.017632] BUG: KASAN: use-after-free in lockdep_register_key+0x755/0x8f0 >>> >> [ 224.695821] BUG: KASAN: slab-out-of-bounds in >>> >> lockdep_register_key+0x755/0x8f0 >>> >> [ 259.666542] BUG: KASAN: slab-use-after-free in >>> >> lockdep_register_key+0x755/0x8f0 >> >> The proposed fix for that is here: >> >> http://lore.kernel.org/r/66560aa9dbedb_195e294b0@dwillia2-mobl3.amr.corp.intel.com.notmuch > > I get "Not Found" from that link, is there a typo? I found this fix from for-linus branch: # PCI: Fix missing lockdep annotation for pci_cfg_access_trylock()for-linus https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=for-linus&id=f941b9182c54a885a9d5d4cfd97af66873c98560 But at least that doesn't fix my crash. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches