Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4692980iob; Sun, 8 May 2022 22:13:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwloNJJJhpx/fUDonW/+xlwFeX9uirEcjNK86XN2CmBRmsk51Rw0MRu1fpM8kpVwv6kv648 X-Received: by 2002:a17:90a:d584:b0:1bc:e520:91f2 with SMTP id v4-20020a17090ad58400b001bce52091f2mr25217172pju.192.1652073213096; Sun, 08 May 2022 22:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652073213; cv=none; d=google.com; s=arc-20160816; b=yuMUXhWhBUPy4/pAwvLX7ADo0YelJB25GusglFcFFPTklg+tstzZ4Tp4vVFh0dh2IQ k6Mpkw+jSTccYfl3rcBklkHfDgy7lKO6+jW1GZFXqW5wsii0nqq9cvR4sxglfJcaCQn5 UF6MFSqVb1CTU9vsCNxtOq1/dn8Q/hrZdTaDTVkTZvdlQZ1E1MDBOIcJTxREfjNK8Jz1 U+V4uK/96cve7NiVClo/ghBsYvBJIyjCPqn5+y1AaCv/9SEJskCEbqF6hZsgOFasSpgb vPzDbu4MCQDo0DI7gU2yh5bvVjS4Xf9+Sgi6Q6BBA7jgXO2OrWgDqzY3/yVatyVuYe+O 1lrQ== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=yl8JyOxe6Em/8OcJVE/c2llnKeP2x5RITq3LF7EL+aE=; b=bdRXoDJyMN7oTrRBJfAVr2ak4fFFP7UUz/VeA1QZKwZ04+PIjn8b2aPVzkc4G+7gGc eDg+91x5jd/88RwSh6ufJGODq6v2ABEeDbE5keZUVIpH8G43OtmDjSJWwVYhTfSLBXAx sT8ViZ4sSODCJbuyb27lv4XHcvXSHm5dpQF8Hh44Wx+6E/Uo0MfqzHYFTa6qN0pbxZFk YX42jNaoT81MxK0sv26KOjLUhADIHCCZ6BH8YzsCMeJxwRo+isTVOpao/YKOmCjeoXfr MSb/Mfqirpcv3lPLgiWTATq31a4L/e/ORGdLp5vqxyBE8uwrVPskou+UG5ieIZqjULrF 0ZXw== 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 l185-20020a6388c2000000b0039da5aa4ed6si14850150pgd.710.2022.05.08.22.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:13:33 -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 009A61EC62; Sun, 8 May 2022 22:08:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385182AbiEGN3t (ORCPT + 99 others); Sat, 7 May 2022 09:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385152AbiEGN3q (ORCPT ); Sat, 7 May 2022 09:29:46 -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 24D352AC65; Sat, 7 May 2022 06:25:59 -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 1nnKRU-0005NM-V7; Sat, 07 May 2022 15:25:53 +0200 Message-ID: <4b99fc01-5ab4-d803-4177-a1402ac98164@leemhuis.info> Date: Sat, 7 May 2022 15:25:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v3] net: atlantic: always deep reset on pm op, fixing null deref regression Content-Language: en-US To: Manuel Ullmann Cc: Igor Russkikh , 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> <833f2574-daf6-1357-d865-3528436ba393@leemhuis.info> <87bkw91ob6.fsf@posteo.de> From: Thorsten Leemhuis In-Reply-To: <87bkw91ob6.fsf@posteo.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1651929959;4f543069; X-HE-SMSGID: 1nnKRU-0005NM-V7 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 07.05.22 15:10, Manuel Ullmann wrote: > Thorsten Leemhuis writes: > >> 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 Sorry, I caused a misunderstanding. I didn't handle the above, I'm not one of the net subsystem developers. Either you submit a v4 fixing this or hope the net maintainer take care of that when they look at it -- but I guess they would highly prefer it if you'd address this. >> 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. > Good to know. Maybe I could patch the handling-regressions documentation > to include this. Yeah, I have already thought about it, but didn't get down to it yet. Only so much hours in a day. > submitting-patches could also link the subsystem > specific documentation, e.g. the netdev FAQ, since they handle patches > with their more bot tests. Would have helped me a bit. Might be a nice > exercise for properly formatted patching ;) I agree that the docs for submitting patches could need a few improvements and that is likely one of them. >> 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! > Thank you for the final cleanup and you’re welcome. :) Where did you > handle this? I can’t seem to find the fixup anywhere, i.e. net-next, > net, linux-next or lkml. See above, I only handled the regzbot issue, not the issue with this patch. Sorry for not being clear enough in my wording. > [...] Ciao, Thorsten