Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3911484rwb; Sat, 17 Dec 2022 01:34:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tZjaAwe3HmP7eH5NYe6ULWCexJtGy41Mv2OGrwGz6ZDbUM6AqD4o4zNvyoJIzCqKhycmF X-Received: by 2002:aa7:cad7:0:b0:461:b693:3d61 with SMTP id l23-20020aa7cad7000000b00461b6933d61mr30774782edt.6.1671269678397; Sat, 17 Dec 2022 01:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671269678; cv=none; d=google.com; s=arc-20160816; b=zLU+U1z3oI2aAb7UWDlbTdqvWMcjYqRGjAooJmoFV617ZRc+Q/9kz3Jsm7UeoAUn00 3q2T6D2pFxaLmT058l4XAuckWlkbU3PUlLSxdECTnoqanuoufzWmIL0CRxtrK5R1ZyS7 y+YGf3sm9Q+sgI4BWhoXb2Zxfyyvt5dXJoxtglX3TcaNpF1eHXZQpW3lH/6A/ryMY38v oGbx2J4+lx9jVKAR6HayAlA4T4zYA3h1sp6gfhXLkKaBDX/XTpfi6V515a12fz7tCCxW 7Sz9s525R/S1GLuzqk/3EHLMdYlM0V5PErzipp+wNlQvyQUgDVpjsIIJHpDFh1mwdb/L UJiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vK0TZW6SYzMO8GJcX0vIR6Bw0LJNQhztjdVIUby5uwE=; b=C3Ry6N5aBDj+bTcL44xQq+zlQBmr7F8XLtIgw4UsPm5IHrxkpCmCjEOBM/iJmEU0K7 ehnU8qMNiEDDiE0ZiQ/OIQ6f6GCRsT2k2oAIGUBMUG3GOXbLgsdWLHlYch+5tGAm4pTU M3RxnadrYqv0YSK4Xur+fcHA5VVGZqlin5yyh+Kp3+gIouuYpWMxM+RNaqADY1eVXYUm NvYnYX0RdJNuhJABKExI3CGT4i9/7RPfy7b5AqyseeGkH5Kq0AdsZZmKkTUaXtWFDUn3 L8Vy5IqsMxhlR3GQ6pvy2X5qUqtPVV+VOIIiqpmo0qixEZBLjXU7SqhU4kuTJ66Tu3pF Kz2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aRaARTQB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a0564020e8100b0046d9ad1b3e3si4642373eda.295.2022.12.17.01.33.59; Sat, 17 Dec 2022 01:34:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@amarulasolutions.com header.s=google header.b=aRaARTQB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbiLQJBl (ORCPT + 99 others); Sat, 17 Dec 2022 04:01:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiLQJBj (ORCPT ); Sat, 17 Dec 2022 04:01:39 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64BFC1B7B7 for ; Sat, 17 Dec 2022 01:01:37 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id vv4so11302769ejc.2 for ; Sat, 17 Dec 2022 01:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vK0TZW6SYzMO8GJcX0vIR6Bw0LJNQhztjdVIUby5uwE=; b=aRaARTQBZZZuk/VU/VusJZClWP8dWJEDi2BZR+u7kcvHQ2/ZMwU9eccWdiOuI/YuG+ HbNez89BIhShn6BnL2PELxiELE8GxiaadQNdweXW06UtO0T+EigIitWp+GDnWl4eG5lQ H6ERgsa5vQcQ4DRgZTuW5VYr9lwRd4E6WnMxc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vK0TZW6SYzMO8GJcX0vIR6Bw0LJNQhztjdVIUby5uwE=; b=6e/EtcNbCPoJJmZldoSXJdGvZqg+YcaokW931V5xG80Gq/GHB57qpsph0A8lR0YTnQ ZSMGf5p/PTLIwkS/pibw0YxHkW456hlhYSzSSzNXmPGMIRFPCMvBuixpopHF2c0zXPhv 68xpy6px73GqG7GjQRGd44BPXCRuccLaTA1uR7p8N0mNmr5BRi5Hadoio3BKaRd6o8co 9rXmzNmmsxQWVD8v/+L6J9o1I6FfqIGofLdtGfef0Vxpbor7qlLW/DaN/KkQc1DunLhy fQWoVBXBAFLm6XyuRSBfqvBlbA5Qn9D4Xe+QyeZUlAHXwJ6VBQs0UcCnB6ANNLRmrn/O 4VrQ== X-Gm-Message-State: ANoB5pn4PRfR/W1VBBccLzwL6DgFrD3voLFDcVYQLeOnAT6ZXQqKi1vf +so4ijsHfh0K4Ec5Md0ZhUwNONRrLuzCaFT2UntpUA== X-Received: by 2002:a17:906:8383:b0:7c1:19ea:dda with SMTP id p3-20020a170906838300b007c119ea0ddamr8603728ejx.31.1671267695782; Sat, 17 Dec 2022 01:01:35 -0800 (PST) MIME-Version: 1.0 References: <20220414110838.883074566@linuxfoundation.org> <165094019509.1648.12340115187043043420@noble.neil.brown.name> <332A0C50-D53E-4C86-9795-6238C961C869@hammerspace.com> In-Reply-To: <332A0C50-D53E-4C86-9795-6238C961C869@hammerspace.com> From: Michael Nazzareno Trimarchi Date: Sat, 17 Dec 2022 10:01:24 +0100 Message-ID: Subject: Re: [PATCH 4.19 000/338] 4.19.238-rc1 review To: Trond Myklebust Cc: Neil Brown , Naresh Kamboju , Greg Kroah-Hartman , Linux Kernel Mailing List , "stable@vger.kernel.org" , Linus Torvalds , Andrew Morton , "linux@roeck-us.net" , "shuah@kernel.org" , "patches@kernelci.org" , "lkft-triage@lists.linaro.org" , "pavel@denx.de" , "jonathanh@nvidia.com" , "f.fainelli@gmail.com" , "sudipm.mukherjee@gmail.com" , "slade@sladewatkins.com" , Netdev , "David S. Miller" , Jakub Kicinski , Paolo Abeni , "linux-nfs@vger.kernel.org" , Anna Schumaker 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org Hi On Fri, Dec 16, 2022 at 10:25 PM Trond Myklebust wrote: > > > > > On Dec 16, 2022, at 13:31, Michael Trimarchi wrote: > > > > [You don't often get email from michael@amarulasolutions.com. Learn why= this is important at https://aka.ms/LearnAboutSenderIdentification ] > > > > Hi Neil > > > > On Tue, Apr 26, 2022 at 12:29:55PM +1000, NeilBrown wrote: > >> On Thu, 21 Apr 2022, Naresh Kamboju wrote: > >>> On Mon, 18 Apr 2022 at 14:09, Naresh Kamboju wrote: > >>>> > >>>> On Thu, 14 Apr 2022 at 18:45, Greg Kroah-Hartman > >>>> wrote: > >>>>> > >>>>> This is the start of the stable review cycle for the 4.19.238 relea= se. > >>>>> There are 338 patches in this series, all will be posted as a respo= nse > >>>>> to this one. If anyone has any issues with these being applied, pl= ease > >>>>> let me know. > >>>>> > >>>>> Responses should be made by Sat, 16 Apr 2022 11:07:54 +0000. > >>>>> Anything received after that time might be too late. > >>>>> > >>>>> The whole patch series can be found in one patch at: > >>>>> https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/p= atch-4.19.238-rc1.gz > >>>>> or in the git tree and branch at: > >>>>> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-s= table-rc.git linux-4.19.y > >>>>> and the diffstat can be found below. > >>>>> > >>>>> thanks, > >>>>> > >>>>> greg k-h > >>>> > >>>> > >>>> Following kernel warning noticed on arm64 Juno-r2 while booting > >>>> stable-rc 4.19.238. Here is the full test log link [1]. > >>>> > >>>> [ 0.000000] Booting Linux on physical CPU 0x0000000100 [0x410fd03= 3] > >>>> [ 0.000000] Linux version 4.19.238 (tuxmake@tuxmake) (gcc version > >>>> 11.2.0 (Debian 11.2.0-18)) #1 SMP PREEMPT @1650206156 > >>>> [ 0.000000] Machine model: ARM Juno development board (r2) > >>>> > >>>> [ 18.499895] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>>> [ 18.504172] WARNING: inconsistent lock state > >>>> [ 18.508451] 4.19.238 #1 Not tainted > >>>> [ 18.511944] -------------------------------- > >>>> [ 18.516222] inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. > >>>> [ 18.522242] kworker/u12:3/60 [HC0[0]:SC0[0]:HE1:SE1] takes: > >>>> [ 18.527826] (____ptrval____) > >>>> (&(&xprt->transport_lock)->rlock){+.?.}, at: xprt_destroy+0x70/0xe0 > >>>> [ 18.536648] {IN-SOFTIRQ-W} state was registered at: > >>>> [ 18.541543] lock_acquire+0xc8/0x23c > >> > >> Prior to Linux 5.3, ->transport_lock needs spin_lock_bh() and > >> spin_unlock_bh(). > >> > > > > We get the same deadlock or similar one and we think that > > can be connected to this thread on 4.19.243. For us is a bit > > difficult to hit but we are going to apply this change > > > > net: sunrpc: Fix deadlock in xprt_destroy > > > > Prior to Linux 5.3, ->transport_lock needs spin_lock_bh() and > > spin_unlock_bh(). > > > > Signed-off-by: Michael Trimarchi > > --- > > net/sunrpc/xprt.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c > > index d05fa7c36d00..b1abf4848bbc 100644 > > --- a/net/sunrpc/xprt.c > > +++ b/net/sunrpc/xprt.c > > @@ -1550,9 +1550,9 @@ static void xprt_destroy(struct rpc_xprt *xprt) > > * is cleared. We use ->transport_lock to ensure the mod_timer(= ) > > * can only run *before* del_time_sync(), never after. > > */ > > - spin_lock(&xprt->transport_lock); > > + spin_lock_bh(&xprt->transport_lock); > > del_timer_sync(&xprt->timer); > > - spin_unlock(&xprt->transport_lock); > > + spin_unlock_bh(&xprt->transport_lock); > > > > /* > > * Destroy sockets etc from the system workqueue so they can > > =E2=80=94 > > Agreed. When backporting to kernels that are older than 5.3.x, the transp= ort lock needs to be taken using the bh-safe spin lock variants. > > Reviewed-by: Trond Myklebust > > Seems already applied, but for some reason I miss it. I will re-align to stable again Michael > _________________________________ > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.myklebust@hammerspace.com > --=20 Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 michael@amarulasolutions.com __________________________________ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 info@amarulasolutions.com www.amarulasolutions.com