Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp707180lqa; Sat, 27 Apr 2024 23:56:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsM6HYWVXI9mX2Ipidu09S/YzVT+wKnC3CBKJ13rOeYJ9bJtLNwTwuotOAEgnl0oCraa85ydMzv15s6Y9qQ99aeAc9pwauQfKSRKoRow== X-Google-Smtp-Source: AGHT+IFTMcXRBj2JoxlF2EQtwAiwZOzstzAgIcx8URuZNT75+urHEEgWuFlToaBnVuzuTsC0aLXH X-Received: by 2002:a17:906:a152:b0:a51:c88e:e95a with SMTP id bu18-20020a170906a15200b00a51c88ee95amr4776720ejb.23.1714287410297; Sat, 27 Apr 2024 23:56:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714287410; cv=pass; d=google.com; s=arc-20160816; b=et4m9OTp/RBR3u0fWRPu0fVYCMgeyviQSbFmttiibVnVuI6fYAophiaReBWjewSllf 8iD3lCBQIdupN8Y0/cXnLID3lKdOXbF/iEILOksCJMCxpLojTDXruHzsfA0T6T/d3DD6 JELVs0yC/3wJEd0GQYMjay2DdB9BSw0tCLGMYt1fSXdbOwIotQG6OeL9yrGuXWWJaREq z6SzJDWctlmPSAOxqK5AzR3ECX0KOBLXJslkNEs8bR8uRLfwwwcCkopkigirYMGfzUg/ Els5UkC3aFhkiH1Maev83czP8DDLhjqlgW8YdkG8KGR5u3s99avIXOiLRmYwiGfUjTRm xp2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iBPWhuGUvaukSLwxAUU6f+zE8CG30yAASLV47iB2US8=; fh=QmxNfBA0r05Fe/WNI8KnuO4bB9f4EheLVwtNI36RLx0=; b=d2N+F7fbhVQc9LFXK0/2CSvU+xLBNxTmz3BnHESb7NaDSrhbTay3AcZd8o/HfJWDvb 5F2IddUgEOKDHWuhl0Tj8YLPwNPbpDDPh3nKy2CMLNaanseFd4D5766f7aDK9sL8/j/9 DYf9zk6ob/RN+vOCh/zlztx16zyHIi3qAtJO/NbIblMwSXdSDlGNcYAvMYY9O7xIVLfg 9V8bxoTHuDI5HXOSOS1Z30IOi8DdiUhlsckvCYm16H53OaIciO56xEx67YANUjGCL3ye PyQkOXcuIyZWqrmhRv9jZLmX4msJsTGsth4/pkNG2rmyJOqnzhTWuSh/zfwVsDPcgwq5 Y0LQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTZs9sEm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ne2-20020a1709077b8200b00a55b4cfb72fsi9000223ejc.372.2024.04.27.23.56.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 23:56:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTZs9sEm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 407541F21B8D for ; Sun, 28 Apr 2024 06:56:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 678B35102F; Sun, 28 Apr 2024 06:56:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XTZs9sEm" 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 64DB6EED0; Sun, 28 Apr 2024 06:56:34 +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=1714287394; cv=none; b=ayp2SHFhmGd+wutBIzD6ayDbef85RnziqESmRg6c5gRUihh9nEzhXmNGTgUyFryj68TbWD3+ddD92gYmk0wesyaiAH28gSAxGUmNKMoSTESWOFVs2ebXHEgvsp8nx3l/yMXL6savh59lY49HDQkJSagBgnwuzDTl6K0KqWDqaIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714287394; c=relaxed/simple; bh=r0oXOuLVQhCBCby5vRLJpkXcTQDGNz/eiiiW5fCcIdI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a3imFH0UThs4DbUDvBr+5fkIgB6IpQo/fUZaBMk5DDIGuu6KfBltQKm3BV26tnRVo16uOcU4DKhJnJ2I59yYqHD82Xet+D1osjE743YGS1JtVIrC8jKFmmvgoNfrgzmFOo9N7WUs7LKNGlDt0jRy5A0N7f5uPFo9yZE7c9o/NZk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XTZs9sEm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 702DBC113CC; Sun, 28 Apr 2024 06:56:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714287393; bh=r0oXOuLVQhCBCby5vRLJpkXcTQDGNz/eiiiW5fCcIdI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XTZs9sEmm6/FaMuCbn9MAi43Dw5JaVHQ6Qo9kJKbgmQydz8t76xJqWvnLhWUbFuTg eamwTb265HrxR6LlvTN02ea5enG0DyL5UUA409iL+FIlWuV8f+cOfIaceW/tsQa49F k2+JGlrBeOuDTKAFlJG+dXckGS6E9qKllGv1lUiwvcOxOHi2PgVOFnk2K6JjT6mOLy 8wMBJhYy7rqcZ88dgAjki/503FzqraXQOZ8LtGXr77oJlvx8mQlCJ0bpcLxvSbj8II FNv6UFgUz6gnk7tZPPzx3XToNx6Luyxbilf/EWAJ9azbxmvqxQI0iy3aMf/86QxAUL 09CFFAwUkdXQQ== Date: Sun, 28 Apr 2024 09:55:02 +0300 From: Mike Rapoport To: Song Liu Cc: linux-kernel@vger.kernel.org, Alexandre Ghiti , Andrew Morton , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Donald Dutile , Eric Chanudet , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Michael Ellerman , Nadav Amit , Palmer Dabbelt , Peter Zijlstra , Rick Edgecombe , Russell King , Sam Ravnborg , Steven Rostedt , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v6 08/16] mm/execmem, arch: convert remaining overrides of module_alloc to execmem Message-ID: References: <20240426082854.7355-1-rppt@kernel.org> <20240426082854.7355-9-rppt@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Apr 26, 2024 at 12:01:34PM -0700, Song Liu wrote: > On Fri, Apr 26, 2024 at 1:30 AM Mike Rapoport wrote: > > > > From: "Mike Rapoport (IBM)" > > > > Extend execmem parameters to accommodate more complex overrides of > > module_alloc() by architectures. > > > > This includes specification of a fallback range required by arm, arm64 > > and powerpc, EXECMEM_MODULE_DATA type required by powerpc, support for > > allocation of KASAN shadow required by s390 and x86 and support for > > late initialization of execmem required by arm64. > > > > The core implementation of execmem_alloc() takes care of suppressing > > warnings when the initial allocation fails but there is a fallback range > > defined. > > > > Signed-off-by: Mike Rapoport (IBM) > > Acked-by: Will Deacon > > nit: We should probably move the logic for ARCH_WANTS_EXECMEM_LATE > to a separate patch. This would require to split arm64 and I prefer to keep all these changes together. > Otherwise, > > Acked-by: Song Liu Thanks! -- Sincerely yours, Mike.