Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32397010rwd; Fri, 7 Jul 2023 13:15:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGaY/jM1Rmiiq5ZUNe9SQbHopqht84E4usCo97YWPPgKfVYTuaiF6ifTS/7rr+FO5FutFq X-Received: by 2002:a05:6a20:3cab:b0:12f:46ef:ab59 with SMTP id b43-20020a056a203cab00b0012f46efab59mr5624751pzj.5.1688760909606; Fri, 07 Jul 2023 13:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688760909; cv=none; d=google.com; s=arc-20160816; b=Kn53CXGGk8xd+9BY8gbsqJYWbDXgqoJ7QPnCkenCn938wlhEGmtrjx1oS14yGw58Sp Yg2VegSyAgz0QUeKkOarlyfuQUHqkDB5a4sBPA3Z4gd5Jzrr2Ro3slW21m1FQN8QpauT xoevTZyhBmKMUFCWzEhSAJrKtcPB4UvcaN04K9T6/nmRu5f8r7w3swkAezTXBXnhn69j pNg6JifINYqLmlPUIH9uR01JiG16Nkpt1koL3FPRb8xytXDgY2RKSIi+MX8OnNKPwjy8 9gA+yQupRX5kLyO6hHmFl3rRtlYW0b6/2R8/M0dwoWR6EGSAFe7GpTihCLi+3OHoqoYF J6tA== 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=CmHd/859/Bit4qucqZpPNnDSCbdMa8IL8SYbSrObhB0=; fh=ySO281bLK6Xsyj2pBrUvdtll/S6ePnj+ATKFWwV9scQ=; b=01aebP1gRqGyqz2aWiWU3S50CkADK5Pz2VRm96LT0c6PQXaYmACMgLgrqSI8oaSr+p ZXPJU8QrMQkFwJc3S67Ts4alOsZoYNtK2iIB/MEpJHc8a37gWqQBSe+ov1WnzJSxCPKi I5/c1ShfXncTtubOofZ7rqXc9+m6B4fyrfskn7X/b1Q3K9n7l7YmhxqIb1JeWmKVfGi2 r1kzq3DEKpVLP6Cqs8zVFynJBuWoB1u0qDQPrnKPZTunN1aqo1/qMgqDqhhGVh33vAif sK3y8JyVAjNFQvZ5/hNmYibOpCkT8chFR7uTJ8JO0qZNrVHdSqpb/p1ZJpDmoOdsyr9S 88nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=4ZKOTCpj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020aa79244000000b00674689bacf2si4125557pfp.405.2023.07.07.13.14.57; Fri, 07 Jul 2023 13:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@google.com header.s=20221208 header.b=4ZKOTCpj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232592AbjGGUIo (ORCPT + 99 others); Fri, 7 Jul 2023 16:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231849AbjGGUIn (ORCPT ); Fri, 7 Jul 2023 16:08:43 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A686E3 for ; Fri, 7 Jul 2023 13:08:41 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-c5f98fc4237so2477855276.2 for ; Fri, 07 Jul 2023 13:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688760520; x=1691352520; 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=CmHd/859/Bit4qucqZpPNnDSCbdMa8IL8SYbSrObhB0=; b=4ZKOTCpj9xlgCXUEm8oB9fxPpMW4zNUE/1LcyAtNiug/QRRgWh4T+Iz1KBomOIRU/O M6flWXHwnMBjPzj/2Uhhz2BIwVcH4eJN4AS6rSurgWMTk6aqExtdp/Vwvw6lZUOSSKMd UWnwE/qXxMW3g1yX3ibp50dDsfQj47wFKl/hMbbgxSLKsQcdSld0N5W5ZOSmzKSrfaI8 lwYnzShPbga+2kujDZyJFveO/ePYfePz9w00ezFjkODhap/rSDvQlJ7n7lpVqMplkOYm I6Ok4eNQwtFh4A0Gv9HtCPUtZDhVOqV0ESqXMSOooohHHVjJdixj+5LZ8YGeI5aj53K/ m2Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688760520; x=1691352520; 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=CmHd/859/Bit4qucqZpPNnDSCbdMa8IL8SYbSrObhB0=; b=PPvt2FhKX97WAYxO0VQYeRImACCIGzddfEAscCB3KQIMjWVovR124M9rnX8+JDhhKw h0bJN2Atu3DjbzmGmDdcUc0uarwJAei+3ikevHdAyUgsjGzGhDXzBTH30kmQ3rY82aYT iQ9q7DJmtjfoqOTsNAsQY1h3OnjES+5wClI32rugVPesmabkiY4LcFK15KRx9hM0qNld G6cZcFs6a1z2k5KrF+RKhqiynjo7qxZ87ktXiuoflsxL4ol9dFObxVWTm2o2ox/YVXOf iF1VzFfV784024dDGvFCJWhlWF+tsXqjxZcuY27PscBZ1+YzM6caG2+boC6/rc4V9uKN n5+Q== X-Gm-Message-State: ABy/qLbTBmm26myxB4NOS4SKV0pdH+h67YXzhmU4mSqa5dnj80ZJXvt1 dMpbAO8mM8XcXGzXIzLRlbA8rZrMVgQSUN8L5nOWfw== X-Received: by 2002:a25:641:0:b0:bcb:c3d6:2b1d with SMTP id 62-20020a250641000000b00bcbc3d62b1dmr5298177ybg.34.1688760520258; Fri, 07 Jul 2023 13:08:40 -0700 (PDT) MIME-Version: 1.0 References: <20230707043211.3682710-1-surenb@google.com> In-Reply-To: From: Suren Baghdasaryan Date: Fri, 7 Jul 2023 20:08:29 +0000 Message-ID: Subject: Re: [PATCH 1/2] mm: lock a vma before stack expansion To: Matthew Wilcox Cc: Markus Elfring , linux-mm@kvack.org, kernel-janitors@vger.kernel.org, kernel-team@android.com, Andrew Morton , LKML , Axel Rasmussen , David Hildenbrand , David Rientjes , Davidlohr Bueso , Greg Thelen , Hugh Dickins , Jann Horn , Jerome Glisse , Johannes Weiner , Laurent Dufour , "Liam R. Howlett" , Lorenzo Stoakes , Michal Hocko , Michel Lespinasse , Pasha Tatashin , Peter Xu , Punit Agrawal , Shakeel Butt , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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-kernel@vger.kernel.org On Fri, Jul 7, 2023 at 8:03=E2=80=AFPM Matthew Wilcox = wrote: > > On Fri, Jul 07, 2023 at 10:00:42PM +0200, Markus Elfring wrote: > > =E2=80=A6 > > > write-locked to prevent page faults into the VMA being expanded. Add > > > the necessary locking. > > > > 1. Would it a bit nicer to put the second sentence on a separate line > > in such a change description? Maybe. Will do if there is a need to post a v2. > > > > 2. I noticed that you put the address =E2=80=9Cstable@vger.kernel.org= =E2=80=9D > > into the message field =E2=80=9CCc=E2=80=9D. > > Would you like to specify such a hint as a tag? > > > > See also: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/t= ree/Documentation/process/submitting-patches.rst?h=3Dv6.4#n264 Yeah, I always forget that :( > > > > 3. How do you think about to add the tag =E2=80=9CFixes=E2=80=9D? I thought about it but was not sure which patch I should list under such tag because the rules for stack expansion changed recently. > > > > 4. Will a cover letter become helpful also for the presented small patc= h series? Not much to say other than "add some missing locking" :) > > Markus, your nitpicking is not useful. Please stop. I'll fix the nits, at least the ones I can, if there is a need for v2.