Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2992350rdh; Wed, 27 Sep 2023 21:52:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7ZeZgELH1kvgP0Ydi45RuVfXeTmoM6zEDzriSmDhm7JSjAq1GeORi/rB7b2VLFADILGGk X-Received: by 2002:a05:6a00:2d96:b0:68a:586a:f62 with SMTP id fb22-20020a056a002d9600b0068a586a0f62mr170473pfb.4.1695876745616; Wed, 27 Sep 2023 21:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695876745; cv=none; d=google.com; s=arc-20160816; b=x04InoOGzIiYBC+VFZYkrb5/4i0jVhLW4iXGf67d5/KgRXsKVpfifWKRmrfeP/0xQg cRGv9Y6BJ6bwB6iNTSnvF5tSvI5KkqCoG5kD2HX6dxu7Jhi6fRaPyPQi1PW9giecH4Za 4uhiS2XbcGOWAkdXgXClMeQJaJ0WS5wRsogFB9YQW+m5fw+EtBlQjmnSWiSh3U4djvYk Up/lxrlpabU7WkUGVigNJzjzGt8iQoIE6rWMYNtgOUw+oIMEYhEp4dI3wjfumWbEoKKh ooC4zoReRbmWWon1+5ip+OrNIz6gaoD9+zeqRWx+ySjGWgHwl7RV3OblBm/8Yq8F2AQK 2w4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5CIG4IN+NULdj6GDXp85UVQu/M7lEt+lk7D7J1xFff4=; fh=dwOZWoKCqfNcyHJ+X0Nml4e1BXldiGg7y5PyJ+eQu7U=; b=wpV8Oyc+aRNnywRZG0h4bZ527t2ksqA5Da8baBa81UN3c0LFW8Lc3+TbP7ibM0r8mO 3KDtlPwkyzvmOKRZRhRR0Y7A6Cc9QDt1Qtc/Fl10CfYo94isddHIPVkhHj1W6OyjpBDe wnabyfzKVNhLxtdgllj5RD1389Tt7rBT7ToZVKL8g3S2l85jHDW5KUmVYNCFYMz3cz70 eqavnLUi9yfy/W/7PlwPQB3h4mjTMN+1Q55dzY+EteYZsCJokZLBRB5An9A142Bpsz9t cVE98QyojrZ2/kCeErEwrc3N9eqhKyR9oDEfPYaMf0FdIvF9QWa0fDD9U7lOp7+FrnFZ Dk6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="XaLZv/B8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a7-20020a056a000c8700b00690f8edee16si17982873pfv.275.2023.09.27.21.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 21:52:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="XaLZv/B8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9E90280417D4; Wed, 27 Sep 2023 13:06:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbjI0UGj (ORCPT + 99 others); Wed, 27 Sep 2023 16:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjI0UGi (ORCPT ); Wed, 27 Sep 2023 16:06:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A31DA10A; Wed, 27 Sep 2023 13:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5CIG4IN+NULdj6GDXp85UVQu/M7lEt+lk7D7J1xFff4=; b=XaLZv/B8s0zD31RKwX7U3qW6VG oPGodBmh1pBJJkZTC/2i1KbCUy6vQCsLB0t7I4bMeJdms5EFe/GltInDYHWXOU/bzjLVKBc+olvuv 7I7By2Uqq49Mi+lsIyXmK7jIU+C9S00LOK0BLgL4raNGWaTMoElaQNBh0sU5G6xMwBuNqsG3VHpdp f7S8rjtHGp92uNjrdFUtI7LQIOITCTjzVZtWN3n7CpKReC2vEco3ZYJnVSbT2364P1TLeoQ+7ptGY vf+zn3B1Q2sc51++AFk+ASRSV9eehPszFOHr7m4uNpfhi++XKXeLAlANvz3+B/FXHvdMBvS18ZZqJ WQiyvykA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qlank-00FpkC-EK; Wed, 27 Sep 2023 20:06:28 +0000 Date: Wed, 27 Sep 2023 21:06:28 +0100 From: Matthew Wilcox To: "Liam R. Howlett" Cc: Andrew Morton , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jann Horn , Lorenzo Stoakes , Vlastimil Babka , Suren Baghdasaryan , stable@vger.kernel.org Subject: Re: [PATCH 1/3] mmap: Fix vma_iterator in error path of vma_merge() Message-ID: References: <20230927160746.1928098-1-Liam.Howlett@oracle.com> <20230927160746.1928098-2-Liam.Howlett@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230927160746.1928098-2-Liam.Howlett@oracle.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 13:06:41 -0700 (PDT) On Wed, Sep 27, 2023 at 12:07:44PM -0400, Liam R. Howlett wrote: > +++ b/mm/mmap.c > @@ -968,14 +968,14 @@ struct vm_area_struct *vma_merge(struct vma_iterator *vmi, struct mm_struct *mm, > vma_pgoff = curr->vm_pgoff; > vma_start_write(curr); > remove = curr; > - err = dup_anon_vma(next, curr); > + err = dup_anon_vma(next, curr, &anon_dup); This isn't bisectable. dup_anon_vma() doesn't gain a third argument until patch 2.