Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp109699lqo; Wed, 27 Mar 2024 08:11:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqnPw9CGUdF1KCnK52cpup/BZsGdhHH/JRhV0YpqyWLsVy5BAdZ5xpqrbWDLiLNsnIFE9tr+150tBo8ZTY5HUhJAMxW2VtXXLSDrhMDQ== X-Google-Smtp-Source: AGHT+IGz8AuIxfn7eq032zmfiNlPyARQP0Z1CM37wakHGhoAy69jjpYq0QqaArRA5dAC8D1ZEAMz X-Received: by 2002:a05:6a20:3d87:b0:1a3:64e8:eb8f with SMTP id s7-20020a056a203d8700b001a364e8eb8fmr318130pzi.11.1711552318561; Wed, 27 Mar 2024 08:11:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711552318; cv=pass; d=google.com; s=arc-20160816; b=rK5U1KsAVH6ewTk2YDWpoem5ycGRDPRTZYy5sYPvlJMZvbJTxT/rpkQ9hTihzO3fh7 lglI5beB4VoAiXY7e9Z9WXb38MDrpsvEi6ECmrbBSTO5xVMJHQ6mT6splyVdSS3NI5eH ixMP5KG+N678FiylTqXHa44aPG8tpXS/VhZO28NIJDdKmE+yqs+bRyh6o8VjNl8MN2VH GPwIbScAMXy4Csjndcdm/VyiFSZyoRUxQocRug7SAjt1EJPGebpy7a849KHqVHc+u7Hx za1Y0euOa6Lk6ub6awHNkxHx8GGMcyvkBgl25RI+JD2epIZqPZ9iZOLz9bkLpUp2vI1h sdFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=hVWGFMnT3NSh/Y5bcfvnFJ7BOfpWRpHZTt1+sFeRYK4=; fh=hGUxMq9uQ/b/DoJ7a6VZwrFl56j3TiXQ9DN6yoy7Ctk=; b=YWXh9LFQw0+gzzJG0e82RRky/jKKLyzuaZ39BctW4L5oO+wOCarUyg8SXG+rAszFnB TIgedhomrbZoOqui8gZCwpHkFEBuJkIBUZFj+XICOE9iZ+68ZPQByYgMBtCQzRosxhaN 99I2nvwwRXM22vuOf+jpsAzJrzdw31PWtNQEB2lHjzdZB0cXGxVHIZZCt+bE1Ug55rXe HEnFtwysC9ocTRM/AzfuB/F4ZKj7hbywSLiUZ+JLw4JbSXFf3LMWlpgkph/Uvf2FFZhb 4WBfUACGsZ01YUIDpe/601pTKbI+EHRk9lmkWBibRP+uJ3ywHbLEk8AlU9cfyNqI6KK6 qE6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WlC5zEpA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j18-20020a056a00175200b006e795688a84si9308618pfc.261.2024.03.27.08.11.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:11:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WlC5zEpA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121356-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E61F82C81D9 for ; Wed, 27 Mar 2024 14:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5165A1581E2; Wed, 27 Mar 2024 13:15:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WlC5zEpA" 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 4F8E112FB05; Wed, 27 Mar 2024 13:15:24 +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=1711545324; cv=none; b=MQslS2d2Kcq7bd4yKDRyRNlMZcOt0t4FP2SsMDtGlTCkQ6deC6RRgh4F5y5naiTMWWcxRrxqoxaVEmDK80EtoAcjt8Zbkgf36ray0hz08HgrjwTbVTfe57mG6sUAKT1fBF8BrM01r4izkc2Aka1922zhzUPaWoafUuBfNtVBC8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711545324; c=relaxed/simple; bh=hVWGFMnT3NSh/Y5bcfvnFJ7BOfpWRpHZTt1+sFeRYK4=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=aGvzmMwbQy1HSWRX6ovW9PwQgpqdb/iW6Yurb+Iq7lVjV1FZbQrD59MQr2QzKFggHXI+dCvFghIz0kRFcsLTr+auonKSlY82Jt+70bU6BXdi6Mj2LhjzuRKLy9kCKjDlhlqwEqAcrD1IZ/v3YiJzlkG0Mu5HhmhdccWLlFjpQRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WlC5zEpA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24B85C433F1; Wed, 27 Mar 2024 13:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711545323; bh=hVWGFMnT3NSh/Y5bcfvnFJ7BOfpWRpHZTt1+sFeRYK4=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=WlC5zEpALyHcMLL7crzKzm7z4rnrwW8uowh4E59sISP/prn0iAEbwxHXS7+uKc/Bw wqYGQilNWFJ+5kfznbP5jYfOcjMrK1brNMdB9bdD3SvgfimE43gkSodM2ShnLCFCEv dajJ3Yz10qJsLnDCfEhKopyfEJq0gvIwVYovDawkfcn6oHnklPZtey6rVEgLmyWPEW E4PyqpPn0WepobbP4ZCzTB0lH2Gu+IQbfjUU9TXdLpBKot4bTj6an5nQ1I4caHFct3 xEXFx6xrVEhsmAkJsShcH7vHCWmfF6SFD+e74pyrl9dxggHDC3ksSqQCHRrsdwas/m v4ecGkxzUp56A== Message-ID: Subject: Re: [PATCH v4 02/14] mm: Switch mm->get_unmapped_area() to a flag From: Jarkko Sakkinen To: "Edgecombe, Rick P" , "keescook@chromium.org" , "luto@kernel.org" , "dave.hansen@linux.intel.com" , "debug@rivosinc.com" , "akpm@linux-foundation.org" , "Liam.Howlett@oracle.com" , "kirill.shutemov@linux.intel.com" , "mingo@redhat.com" , "christophe.leroy@csgroup.eu" , "tglx@linutronix.de" , "hpa@zytor.com" , "peterz@infradead.org" , "bp@alien8.de" , "x86@kernel.org" , "broonie@kernel.org" Cc: "linux-sgx@vger.kernel.org" , "linux-s390@vger.kernel.org" , "linux-mm@kvack.org" , "linux-cxl@vger.kernel.org" , "sparclinux@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "io-uring@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "nvdimm@lists.linux.dev" , "bpf@vger.kernel.org" Date: Wed, 27 Mar 2024 15:15:17 +0200 In-Reply-To: <5b585bcced9b5fffbcfa093ea92a6403ee8ac462.camel@intel.com> References: <20240326021656.202649-1-rick.p.edgecombe@intel.com> <20240326021656.202649-3-rick.p.edgecombe@intel.com> <5b585bcced9b5fffbcfa093ea92a6403ee8ac462.camel@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2024-03-27 at 02:42 +0000, Edgecombe, Rick P wrote: > On Tue, 2024-03-26 at 13:57 +0200, Jarkko Sakkinen wrote: > > In which conditions which path is used during the initialization of > > mm > > and why is this the case? It is an open claim in the current form. >=20 > There is an arch_pick_mmap_layout() that arch's can have their own > rules for. There is also a > generic one. It gets called during exec. >=20 > >=20 > > That would be nice to have documented for the sake of being > > complete > > description. I have zero doubts of the claim being untrue. >=20 > ...being untrue? >=20 I mean I believe the change itself makes sense, it is just not fully documented in the commit message. BR, Jarkko