Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3146567iob; Fri, 6 May 2022 20:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHiMJETkbo1aN5eG9O802dh+Rp+DhDIElwPh6U0P8sRT7B0kLG+s3sZ++CLDlP6b07UrSk X-Received: by 2002:a17:90a:5217:b0:1dc:9b82:272c with SMTP id v23-20020a17090a521700b001dc9b82272cmr15771624pjh.53.1651893824721; Fri, 06 May 2022 20:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651893824; cv=none; d=google.com; s=arc-20160816; b=0qthXxMKdrQan4mk/6fy6u+jncwRj2ECdQxR4RnKTZjSt9kmU36wAzR3PMhUogTltY orcVXO/jJn0qrwzWucRfii3k5lgLwjbT65uldOsw37/+bCTEic6Vj9qgO3DeOK3Cjaae uqYB+wXLSv4GbOLQPUO6TEEUg9yI3mfLzK2vb6JUZMa43p268RDRd+l0dzVCkVAueuYd c7i03kJu88tBNHu6HIUdDBa4lID5qQoL3hIHISETeG8f5HBpdnR7LYkmyNaIpLPk/2dT cUATDjtjrRrFRaSHK1ovNvc2/XYKv504r8zQBDqG+8ePkEzhsgFZPdgh7I5Uo4ZJ0WKw bKqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=7RMfSj95e4pJ8ss9Rx/xXv2TRJDKB1JaewUmNggExWc=; b=Zfuwvcru/l/0u8DtA5ilSxSdrmKJO5wwFva+gTUMD8CDCtzgrujAeP1L//H6ddgT+w G7HJCmPy97IhkVc47kHlrtCxYnwcs0PEbXy4T7FQ9DruFdVQwF2lUO8KkVx2dNaNUJwd h6Aa9yBf3+kcnDD+O8djS0cx45xHf1bGtX3r7yBI43LcMQtPs5QQYcg4Cy3Fp0gzoHaW 43azy6n9gjPrnRwHcQJ39nmappoWmviKnctVU+3DKtfoijozWgC/hIrlvc9NoUZr35AP /9mHr7B1mXx+qoXZCXkRcdbrwya9cR72m4sIQiUi/1MaK9RtNP9kRNAaS+g8qurVOiW8 2WcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail2 header.b=IrA1bVuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a170902d88f00b0015d0d05846dsi3702533plz.430.2022.05.06.20.23.29; Fri, 06 May 2022 20:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail2 header.b=IrA1bVuD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351560AbiEEK2h (ORCPT + 99 others); Thu, 5 May 2022 06:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237623AbiEEK2g (ORCPT ); Thu, 5 May 2022 06:28:36 -0400 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BA4951308 for ; Thu, 5 May 2022 03:24:57 -0700 (PDT) Date: Thu, 05 May 2022 10:24:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1651746295; bh=7RMfSj95e4pJ8ss9Rx/xXv2TRJDKB1JaewUmNggExWc=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=IrA1bVuDjD4T8Oj7QRbuT4MDPja3TX1B4XrO/UDQKYBy7W9EJaTph/8p3kZvpRf3O hHpwnHfyGqk7dt7PIH60BUY/jx+hNr1On98YOd1ylNGIQPOgW1yPXxzRZs8RIEn+SN l9PvX4oTuR1wd9xRuoD2anSvkPn2PCCfeGHIwM+pXAgkr9FFFD/yDzT+vA5AiRPtZw ehszACGUKvt+97ebgPZ3BB3KuBqdyMJ3yWKVO3j55QtkZu5iZTBiBX35JXImljJoDW N1RjRM9QXbB8caEbgTY7nx7nKyqo55ZL8HiK/KYTsqAszEkhdIZWzpE4/CCeZHDPm9 cXFrhWuUXsc6w== To: Igor Russkikh From: Jordan Leppert Cc: Manuel Ullmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, regressions@lists.linux.dev, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, =?utf-8?Q?Holger_Hoffst=C3=A4tte?= , koo5 , Dmitry Bezrukov Reply-To: Jordan Leppert Subject: Re: [EXT] [PATCH] net: atlantic: always deep reset on pm op, fixing null deref regression Message-ID: <99KGBavpdWUsYAzz1AIlqoFSVt9JXUAmj3Sbso-671ku1gnhokcfi3D9bbh_2xYS_wWYRQOhGxgUsZKsgqkyIivlelLor9zNvpOLC0I3nxA=@protonmail.com> In-Reply-To: <1f4b595a-1553-f015-c7a0-6d3075bdbcda@marvell.com> References: <87czgt2bsb.fsf@posteo.de> <1f4b595a-1553-f015-c7a0-6d3075bdbcda@marvell.com> Feedback-ID: 43610911:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 With the proposed patch (deep parameter is always true), I've managed to te= st: 1. Hibernate/restore (with device down/up) 2. Suspend/resume (with device down/up) I put the device down with the command: sudo ip link set down I hope that's correct, if not please let me know correct command. Regards, Jordan ------- Original Message ------- On Thursday, May 5th, 2022 at 08:04, Igor Russkikh = wrote: > > > > 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 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. > > > > PS: I'm very sorry for this regression. > > > Hi Manuel, > > Unfortunately I've missed to review and comment on previous patch - it wa= s too quickly accepted. > > I'm still in doubt on your fixes, even after rereading the original probl= em. > Is it possible for you to test this with all the possible combinations? > suspend/resume with device up/down, > hibernate/restore with device up/down? > > I'll try to do the same on our side, but we don't have much resources for= that now unfortunately.. > > > Fixes: cbe6c3a8f8f4315b96e46e1a1c70393c06d95a4c > > > That tag format is incorrect I think.. > > Igor