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 B9F7DC761AF for ; Fri, 17 Mar 2023 08:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbjCQIXQ (ORCPT ); Fri, 17 Mar 2023 04:23:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjCQIXL (ORCPT ); Fri, 17 Mar 2023 04:23:11 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B3694F58 for ; Fri, 17 Mar 2023 01:22:46 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 1BCAB32008FB; Fri, 17 Mar 2023 04:22:22 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 17 Mar 2023 04:22:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1679041341; x=1679127741; bh=JhkiIgHcTq9SiwecolHK/zmFODgtw10aWo7 MMP1naFU=; b=UKcQCCo2mWl87bckAKY6/EEC8I9fshymrIjCEKVKwj7IO2mlp8i F3nIXjv4hQrGeaw22p59c8KQu/A+2NDqef6Hxt3BN3eUDCpgTYABX6XKy+uB6tZC QI31lyE6RCli5CtwGWsi3WB8DiFNrsjjlKAZ84IgA510a/YPTb4SjpwwJnIKp3IL 5XRBmPKmr7BLrDWb5gVklbOyE3JIl7dNlZWuImve+mKFOwzHfGtoLg1jcBDlBbgb 2NWtvwcH3XX70ptBfPdf7yPNPcO9a6yhaj3pfeRtxQfpU1x1Xdm7rFrbNeBKaROR fufGE+cECUi9De05BglAh2OPgqNko/PcBGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1679041341; x=1679127741; bh=JhkiIgHcTq9SiwecolHK/zmFODgtw10aWo7 MMP1naFU=; b=RsR1Rc1WrLuiUDlTOQAM3vQDBw671pWf9LMkLWiHAh1p2dGcEGJ bvTqek3V3HG7D2kMAGov2sgQ5r5bHOiA0Hm54+4XccNp0ZS+E4ZvVQnNgoErrGPd ZqrpEKJJ04J/a7coi0LHt7MYylmYC8v5yspWR1xaLLkW572YzkaiC3pvTUDqpK1z ja9KGRJBvvdA98htyK+wsYuIonzmMoaWeQ0tC2Qtd1xklB7QF1TE3hfaI432+gpV lmXU1lMQIg5wpkrQvX8St08PpzMU1YZGATI1b7j/8H93dS9olRvF8iUyDsXDkLE4 ZRWw/TQ/UBdd6xT/B4H4hPgIgYdSbdmDWsA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefuddguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf tehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrf grthhtvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudek tdfgjeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6401DB60086; Fri, 17 Mar 2023 04:22:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-221-gec32977366-fm-20230306.001-gec329773 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Fri, 17 Mar 2023 09:21:57 +0100 From: "Arnd Bergmann" To: "Wen Yang" , "Greg Kroah-Hartman" Cc: "Sasha Levin" , "Eric W. Biederman" , "Christoph Hellwig" , "Catalin Marinas" , "Will Deacon" , "Thomas Bogendoerfer" , "James E . J . Bottomley" , "Helge Deller" , "Michael Ellerman" , "Benjamin Herrenschmidt" , "Paul Mackerras" , "Heiko Carstens" , "Vasily Gorbik" , "Christian Borntraeger" , "David S . Miller" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "H. Peter Anvin" , "Alexander Viro" , "Feng Tang" , "Christoph Hellwig" , "Andrew Morton" , "Linus Torvalds" , stable@vger.kernel.org Subject: Re: [PATCH 1/3] kexec: move locking into do_kexec_load Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Mar 16, 2023, at 18:18, Wen Yang wrote: > =E5=9C=A8 2023/3/15 15:54, Greg Kroah-Hartman =E5=86=99=E9=81=93: >> On Thu, Mar 02, 2023 at 12:18:04AM +0800, wenyang.linux@foxmail.com w= rote: >>> From: Arnd Bergmann >>> >>> commit 4b692e861619353ce069e547a67c8d0e32d9ef3d upstream. >>> >>> Patch series "compat: remove compat_alloc_user_space", v5. >>> >>> Going through compat_alloc_user_space() to convert indirect system c= all >>> arguments tends to add complexity compared to handling the native and >>> compat logic in the same code. >>> >>> This patch (of 6): >> What about the other 6? > > Hi, > Both 4b692e861619 ("kexec: move locking into do_kexec_load") and=20 > 7bb5da0d490b > ("kexec: turn all kexec_mutex acquisitions into trylocks") are prerequ= isites > for 05c6257433b7 ("panic, kexec: make __crash_kexec() NMI safe"). > > In addition, although 4b692e861619 ("kexec: move locking into=20 > do_kexec_load") > is part of patch series "compat: remove compat_alloc_user_space", it i= s also > independent and a general optimization,=C2=A0 and here we just need is= it, as=20 > follows: Ok, this makes much more sense then, without the explanation I had no idea why you would backport my old patch. Arnd