Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp554568lqt; Fri, 19 Apr 2024 04:05:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX63miI/+gxzoc1huims57vg+s5TcN01ZZoFrB+nJXAUeOhF+GAmhuOouq9ej8BiNb88JaFtd8WTs3Liv8DfoC1R07hC1ZP0jvsFGP5vA== X-Google-Smtp-Source: AGHT+IFUJ6QZ+EeHR2jevEsg5jbgQIvVJ+SI+3UWfq3Fuuj+QlyCcGbNcPNWaoz9gAUiFLmHB5VZ X-Received: by 2002:a0c:ab1b:0:b0:6a0:5446:dbc1 with SMTP id h27-20020a0cab1b000000b006a05446dbc1mr1727536qvb.2.1713524729885; Fri, 19 Apr 2024 04:05:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713524729; cv=pass; d=google.com; s=arc-20160816; b=bosN5Bnvcu9BJtYxGOqvhPpCaRucp0nqXYPWikfmTs2IR4ADc9tLYjBsTt+k/UQUAs FkHGZ4HXONVenpq17PJCtsxVF27xu62wVSEHu0+eT+aLApyBq0uu9pwmiciIu5+sus+8 sIqJW6lmj06DMefTEUeKBd0HABl/agoInjelAPEfKBHH3mCpJhhk2W3+QuPj5ue/4WgS xFtalpF22N1WY8SALghIsSYtrRBGi+gcz/WHklb1Y8YB6wpb8HJ5rCgLmXLIB//IUyqU 8vDjl2WY8/n0xlpePTK50+oQjuBBf0BrK99SOgdXz+5r6bJi4R5ZOJtJdrSD4aJ1+xsU 3tPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O3s6z4qPlpeNb3x1xsUr3qT4hj17mQL9wqD772SxLOM=; fh=qczu705TdxK6U8bkJ2tDAj/95YpPLpWX5GVEvyjYNCU=; b=j53l+MIP5dAVGaggJzyEUP2IlwR1LUi43jWcGQV0zOFW/e1M3ITg8TVR/mGwliUhWj 2TPVYSijVaJ0FIET37uz82eXEwDjJitSR3wDxyeDDuCDxUeA26YsWFy793LZVjqDW4jT BQDrCK8uwcKSqBJD8i1ZQX3ic1Vj6MF4gT7LZCre+BfILBRJGLAR8uCg0pnHZGNuMP6W yiFPbQSKW0TUuwhAi703ywuP0lfuffs04t0a0FatWcQYHWTs24shHW/fD7DK0XCB8AQE 4NkGb0l3lH5MUl0viuDRwxB61S/FzWEgHyVN3bsWz+z+eZhz6PMlaBXX8uCX9oQE7Qpc uZBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tDY7u55w; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-151350-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a16-20020a0cefd0000000b006a05ad3ff09si2331553qvt.61.2024.04.19.04.05.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 04:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151350-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tDY7u55w; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-151350-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CD3E1C21080 for ; Fri, 19 Apr 2024 11:05:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7DED80BE7; Fri, 19 Apr 2024 11:05:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tDY7u55w" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F29537BAE5; Fri, 19 Apr 2024 11:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713524717; cv=none; b=k/oF9Nk+Tn/bqJxNQe+WZ/Baf7vfFbIDxQf2uEMbp4ejpKkwHxplatoAQMTK0H05eMpB3AzP3M0wZjscnO3rNOGrQVH3s4pbn10wlnZpIFyxAu/xOllYAnU3NhWLSYQBGH7P8R9vQNDGng47DJZ45mUVxf7+xo8TI17jmjV9i08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713524717; c=relaxed/simple; bh=wOUo2++bYvOhHtA/1yKJ+lIawhgs+4qJQ+CoecAxzKI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iWFaukRC+ZBRG7w8t2FUff+6vbkwG7rh1pg05gzJrM06JNXWFTOwpQrKejAI+bOL9XVuHVVqbc7bf+Gb9UgnTu0pp9FvlcIAqDBNJuXfxtegveJ+toIyS6vOajCB6WVptlLpYbMneILatOUzuSspzHT0CWua49VgIRn+ZROBQBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tDY7u55w; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09E2AC072AA; Fri, 19 Apr 2024 11:05:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713524716; bh=wOUo2++bYvOhHtA/1yKJ+lIawhgs+4qJQ+CoecAxzKI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tDY7u55wKa7tKq9U/6vZr38Np7ow1VOp99BWoLgocxm2uWiDfyEh9Dsk8vZXHzZkz Q0m24GX9jFlUdmh4oONI+68B20HmzlRA4Xsc0BlhOJxU1cjIRqXTin+etPgdMXKDMv K3GPdXbZApY6JvwNKf9mLSDW2aplgZgxJr5447fo= Date: Fri, 19 Apr 2024 13:05:03 +0200 From: Greg Kroah-Hartman To: Marc Zyngier Cc: Catalin Marinas , Naresh Kamboju , Mark Brown , stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, 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, srw@sladewatkins.net, rwarsow@gmx.de, conor@kernel.org, allen.lkml@gmail.com, Yihuang Yu , Gavin Shan , Ryan Roberts , Anshuman Khandual , Shaoqin Huang , Will Deacon , linux-arm-kernel@lists.infradead.org, Anders Roxell Subject: Re: [PATCH 6.6 000/122] 6.6.28-rc1 review Message-ID: <2024041954-replica-deflation-73b5@gregkh> References: <20240415141953.365222063@linuxfoundation.org> <86y19dqw74.wl-maz@kernel.org> <86sezjq688.wl-maz@kernel.org> <2024041921-drown-dizzy-7481@gregkh> <86r0f1r5i1.wl-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86r0f1r5i1.wl-maz@kernel.org> On Fri, Apr 19, 2024 at 11:50:14AM +0100, Marc Zyngier wrote: > On Fri, 19 Apr 2024 11:40:33 +0100, > Greg Kroah-Hartman wrote: > > > > On Thu, Apr 18, 2024 at 12:21:17PM +0100, Catalin Marinas wrote: > > > On Thu, Apr 18, 2024 at 12:07:35PM +0100, Marc Zyngier wrote: > > > > On Tue, 16 Apr 2024 18:28:10 +0100, > > > > Catalin Marinas wrote: > > > > > On Tue, Apr 16, 2024 at 02:22:07PM +0100, Marc Zyngier wrote: > > > > > > On Tue, 16 Apr 2024 14:07:30 +0100, > > > > > > Naresh Kamboju wrote: > > > > > > > On Tue, 16 Apr 2024 at 16:04, Mark Brown wrote: > > > > > > > > On Mon, Apr 15, 2024 at 04:19:25PM +0200, Greg Kroah-Hartman wrote: > > > > > > > > > This is the start of the stable review cycle for the 6.6.28 release. > > > > > > > > > There are 122 patches in this series, all will be posted as a response > > > > > > > > > to this one. If anyone has any issues with these being applied, please > > > > > > > > > let me know. > > > > > > > > > > > > > > > > The bisect of the boot issue that's affecting the FVP in v6.6 (only) > > > > > > > > landed on c9ad150ed8dd988 (arm64: tlb: Fix TLBI RANGE operand), > > > > > > > > e3ba51ab24fdd in mainline, as being the first bad commit - it's also in > > > > > > > > the -rc for v6.8 but that seems fine. I've done no investigation beyond > > > > > > > > the bisect and looking at the commit log to pull out people to CC and > > > > > > > > note that the fix was explicitly targeted at v6.6. > > > > > > > > > > > > > > Anders investigated this reported issues and bisected and also found > > > > > > > the missing commit for stable-rc 6.6 is > > > > > > > e2768b798a19 ("arm64/mm: Modify range-based tlbi to decrement scale") > > > > > > > > > > > > Which is definitely *not* stable candidate. We need to understand why > > > > > > the invalidation goes south when the scale go up instead of down. > > > > > > > > > > If you backport e3ba51ab24fd ("arm64: tlb: Fix TLBI RANGE operand") > > > > > which fixes 117940aa6e5f ("KVM: arm64: Define > > > > > kvm_tlb_flush_vmid_range()") but without the newer e2768b798a19 > > > > > ("arm64/mm: Modify range-based tlbi to decrement scale"), it looks like > > > > > "scale" in __flush_tlb_range_op() goes out of range to 4. Tested on my > > > > > CBMC model, not on the actual kernel. It may be worth adding some > > > > > WARN_ONs in __flush_tlb_range_op() if scale is outside the 0..3 range or > > > > > num greater than 31. > > > > > > > > > > I haven't investigated properly (and I'm off tomorrow, back on Thu) but > > > > > it's likely the original code was not very friendly to the maximum > > > > > range, never tested. Anyway, if one figures out why it goes out of > > > > > range, I think the solution is to also backport e2768b798a19 to stable. > > > > > > > > I looked into this, and I came to the conclusion that this patch is > > > > pretty much incompatible with the increasing scale (even if you cap > > > > num to 30). > > > > > > Thanks Marc for digging into this. > > > > > > > So despite my earlier comment, it looks like picking e2768b798a19 is > > > > the right thing to do *if* we're taking e3ba51ab24fd into 6.6-stable. > > > > > > > > Otherwise, we need a separate fix, which Ryan initially advocating for > > > > initially. > > > > > > My preference would be to cherry-pick the two upstream commits than > > > coming up with an alternative fix for 6.6. > > > > To be specific, which 2 commits, and what order? > > That'd be: > > e2768b798a19 ("arm64/mm: Modify range-based tlbi to decrement scale") > > followed by: > > e3ba51ab24fd ("arm64: tlb: Fix TLBI RANGE operand") Thanks, now queued up. greg k-h