Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4706758iob; Sun, 8 May 2022 22:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGNDoYA06T7rJF36IYQjni6WYsi//PM3RBczBg/O4hYe4OJKry8kloeKCoPMVpSBu5XyZs X-Received: by 2002:a62:cf44:0:b0:50d:6d18:17f9 with SMTP id b65-20020a62cf44000000b0050d6d1817f9mr14309969pfg.63.1652075047263; Sun, 08 May 2022 22:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652075047; cv=none; d=google.com; s=arc-20160816; b=NX0F3hQytNeJPpGpF2+r3aG/mGrGh3GSPRtW8osJlux/5wkBLOsc77F1wgZuaFW6Fs /BawhZcPdf/iY2onOQ1ieyEEmk5iodDQUJEwGG5P4P8I03OkOZWWProoaUorRIYjBNx0 LVjXg688CYo7dQHcO0cWK2cnUWHSjPPvu0vDE3kMMp4FuOaBzfVcDLaAWrA/ZDzJqRLC fQB/HnyKuLISXEwiQTCCrvfYCVfXZRGjla95P8zVcnsCu/KEf5uCl/FaDNBrbZlraewP 5pBznIaIDZDI1uUHLdaAplnRuNEvUlBgqliEotIan9PXuxtS87iovQdtEl7hTNadZvOM 8m9Q== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=RB/K5Da57wOJvP6BpGYXIM/Jn2pjrorYz8K3DD1MSUk=; b=DybsrsVggSDdkjhARYOg9pn+iK6ytiLT6Zab467USYZzC2gXT9BwGh67gCk6xNTu1A P4ol9kx2X0bgjAEULnV+tWx96ZdLucNn29Z2dkj8mP7/lm7bIM1wj5uO7LLzPWNHsAzS IkCwr6B+Bp1hbAGJXTnJ0RPaqgWmk3HTKQrxnyKZkonbH7iQ1rgqEqtha8hNKgcoX89t Gd6CIdEjI7LHnZeiYVaGKJavYLj3xgw51KUQDd2/UX1Rdvf2tV26OXHoy31SaQ9jKI/I diyQjavSaeFcMKTiBdhCFZyqXQDrSCYMrFa0lmW2Fdy9HG3X/1CkGJ7woF0iEjV6nbTV 3bNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u193-20020a6379ca000000b003a35bcf5d49si13302047pgc.763.2022.05.08.22.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA5D015BAD7; Sun, 8 May 2022 22:42:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391505AbiEFLws (ORCPT + 99 others); Fri, 6 May 2022 07:52:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390339AbiEFLwr (ORCPT ); Fri, 6 May 2022 07:52:47 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E865D58E40; Fri, 6 May 2022 04:49:03 -0700 (PDT) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1nmwSB-0005cn-TK; Fri, 06 May 2022 13:48:59 +0200 Message-ID: <833f2574-daf6-1357-d865-3528436ba393@leemhuis.info> Date: Fri, 6 May 2022 13:48:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Content-Language: en-US To: Manuel Ullmann , Igor Russkikh Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, regressions@lists.linux.dev, davem@davemloft.net, ndanilov@marvell.com, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, Jordan Leppert , =?UTF-8?Q?Holger_Hoffst=c3=a4tte?= , koo5 References: <8735hniqcm.fsf@posteo.de> From: Thorsten Leemhuis Subject: Re: [PATCH v3] net: atlantic: always deep reset on pm op, fixing null deref regression In-Reply-To: <8735hniqcm.fsf@posteo.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1651837744;143b143e; X-HE-SMSGID: 1nmwSB-0005cn-TK X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On 06.05.22 00:09, Manuel Ullmann wrote: >>From d24052938345d456946be0e9ccc337e24d771c79 Mon Sep 17 00:00:00 2001 > Date: Wed, 4 May 2022 21:30:44 +0200 > > The impact of this regression is the same for resume that I saw on > thaw: the kernel hangs and nothing except SysRq rebooting can be done. > > The null deref occurs at the same position as on thaw. > BUG: kernel NULL pointer dereference > RIP: aq_ring_rx_fill+0xcf/0x210 [atlantic] > > Fixes regression in commit cbe6c3a8f8f4 ("net: atlantic: invert deep > par in pm functions, preventing null derefs"), where I disabled deep > pm resets in suspend and resume, trying to make sense of the > atl_resume_common deep parameter in the first place. > > It turns out, that atlantic always has to deep reset on pm operations > and the parameter is useless. Even though I expected that and tested > resume, I screwed up by kexec-rebooting into an unpatched kernel, thus > missing the breakage. > > This fixup obsoletes the deep parameter of atl_resume_common, but I > leave the cleanup for the maintainers to post to mainline. FWIW, this section starting here and... > PS: I'm very sorry for this regression. > > Changes in v2: > Patch formatting fixes > - Fix Fixes tag > – Simplify stable Cc tag > – Fix Signed-off-by tag > > Changes in v3: > – Prefixed commit reference with "commit" aka I managed to use > checkpatch.pl. > - Added Tested-by tags for the testing reporters. > – People start to get annoyed by my patch revision spamming. Should be > the last one. ...ending here needs should be below the "---" line you already have below. For details see: https://www.kernel.org/doc/html/latest/process/submitting-patches.html BTW, same goes for any "#regzbot" commands (like you had in cbe6c3a8f8f4), as things otherwise get confused when a patch for example is posted as part of a stable/longterm -rc review. But don't worry, no big deal, I handled that :-D Many thx for actually directly getting regzbot involved and taking care of this regression! > Fixes: cbe6c3a8f8f4 ("net: atlantic: invert deep par in pm functions, preventing null derefs") > Link: https://lore.kernel.org/regressions/9-Ehc_xXSwdXcvZqKD5aSqsqeNj5Izco4MYEwnx5cySXVEc9-x_WC4C3kAoCqNTi-H38frroUK17iobNVnkLtW36V6VWGSQEOHXhmVMm5iQ=@protonmail.com/ > Reported-by: Jordan Leppert > Reported-by: Holger Hoffstätte > Tested-by: Jordan Leppert > Tested-by: Holger Hoffstätte > Cc: # 5.10+ > Signed-off-by: Manuel Ullmann > --- > drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Ciao, Thorsten