From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4763C433F5 for ; Tue, 10 May 2022 08:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238074AbiEJIly (ORCPT ); Tue, 10 May 2022 04:41:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238149AbiEJIl0 (ORCPT ); Tue, 10 May 2022 04:41:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A27262370E9 for ; Tue, 10 May 2022 01:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652171848; 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=j+bf0vsHdIZwwE9q6c75T7kOPMxvneKaFOveGY+sLTY=; b=ExL7ZMkaHmvZJqL4tczacj2GNE2kJc/5zCP3nMUQekB+hB5SFzXreQNOc0tIndRQ8lkXTM 3c5l3+mYFC7yfkoBQCUo0uJ76b7CyZtDMujDlmoVA9EVTxgwOgmr734Mey+gyIXOT0Cnrk A6r/Brw9ZTrMUf5BBzlfvzZZLj+7wDI= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-410-UlFdzVALP1CV3S5kNVZGUg-1; Tue, 10 May 2022 04:37:27 -0400 X-MC-Unique: UlFdzVALP1CV3S5kNVZGUg-1 Received: by mail-wr1-f69.google.com with SMTP id t17-20020adfa2d1000000b0020ac519c222so6719282wra.4 for ; Tue, 10 May 2022 01:37:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=j+bf0vsHdIZwwE9q6c75T7kOPMxvneKaFOveGY+sLTY=; b=wQOZazJrDYIh5uHwmbkxHiCFOpqcsgULHYE4fL22p30U89QGgs1UO5C1ozMfTnUJyI Q/DYXHFe0VUo67yl9ztGEYBMmNP2jRKaJvU985XAPW6hCvthLAE45WNtKWYq2YibbcPh 4XoFJMvHeqc1FuOdbFdKJAkhx8jBnutUOC15tgAO18ajD6se4bGXeY5PkI4N63R8lPnR 5AhO5i1W+N31I2ImSN+fAcMTAE7MW2PDXa4/1RtXafvQWEp838YGgZZ0hFgn7zOMSobN b1VLlk8TdlVyw9dSyNmzmDRpoKGBR1InTkssX/y3IVi70RWHBBlsHhtxZyNWUmQai5W5 smUw== X-Gm-Message-State: AOAM532iE0k61iDrVEguQgugstLEqt0XA7TL2th5jHlug75vZr2OTrnK 4srZVdYCo2Hl1PXYhNks3a2heZI14bWSWZW5yXLW0hv6TSkav74VtkKPzU8uMeLcXQtiIMM1RYH nRMr/g2C9h8I8SFva X-Received: by 2002:a5d:630d:0:b0:20a:e1a3:8018 with SMTP id i13-20020a5d630d000000b0020ae1a38018mr17590614wru.489.1652171845936; Tue, 10 May 2022 01:37:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGL3y7pRTXcLytDFuw+KuLGDAOLIN9orN+ms074kBoO0zDNQxsf08xbRCBU2oDTE8Z+kx8xA== X-Received: by 2002:a5d:630d:0:b0:20a:e1a3:8018 with SMTP id i13-20020a5d630d000000b0020ae1a38018mr17590583wru.489.1652171845547; Tue, 10 May 2022 01:37:25 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-113-89.dyn.eolo.it. [146.241.113.89]) by smtp.gmail.com with ESMTPSA id az20-20020adfe194000000b0020c5253d8basm13146661wrb.6.2022.05.10.01.37.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 01:37:25 -0700 (PDT) Message-ID: Subject: Re: [PATCH v6] net: atlantic: always deep reset on pm op, fixing up my null deref regression From: Paolo Abeni 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, edumazet@google.com, Jordan Leppert , Holger Hoffstaette , koo5 Date: Tue, 10 May 2022 10:37:24 +0200 In-Reply-To: <87bkw8dfmp.fsf@posteo.de> References: <87bkw8dfmp.fsf@posteo.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, 2022-05-08 at 00:36 +0000, Manuel Ullmann wrote: > From 18dc080d8d4a30d0fcb45f24fd15279cc87c47d5 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. > > 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. 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. > > Suspend and hibernation were successfully tested by the reporters. > > 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 Hoffstaette > Tested-by: Jordan Leppert > Tested-by: Holger Hoffstaette > CC: # 5.10+ > Signed-off-by: Manuel Ullmann > --- > I'm very sorry for this regression. It would be nice, if this could > reach mainline before 5.18 release, if applicable. This restores the > original suspend behaviour, while keeping the fix for hibernation. The > fix for hibernation might not be the root cause, but still is the most > simple fix for backporting to stable while the root cause is unknown > to the maintainers. > > 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. > > Changes in v4: > ~ Moved patch changelog to comment section > ~ Use unicode ndash for patch changelog list to avoid confusion with > diff in editors > ~ Expanded comment > ~ Targeting net-next by subject > > Changes in v5: > ~ Changed my MTA transfer encoding to 8 bit instead of > quoted-printable. Git should like this a bit more. > > Changes in v6: > ~ Reducing content to 7 bit chars, because nipa did not apply v4 and v5, while > git does against a fresh net-next HEAD. Maybe it chokes on the > additional bit. > ~ Omitting target tree to resemble the last passing patch version the most. For future submission, please always specify the target tree (which is -net in this case). No need to resubmit: I'm applying it. Thanks, Paolo