Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6926671rwl; Mon, 9 Jan 2023 15:12:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXvD57lsOP0UfP/I2Fic1pNFI0XkQ9L0ZKLJo0VAwNp47G2gvDHrQpP/3G1PuPzy6aluFwRf X-Received: by 2002:a17:902:8bc1:b0:191:2720:2ef6 with SMTP id r1-20020a1709028bc100b0019127202ef6mr70253382plo.21.1673305925776; Mon, 09 Jan 2023 15:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673305925; cv=none; d=google.com; s=arc-20160816; b=r+qOKHogRcTW8Oq1I7J3JOkAvC3AMlEtRpYsO/EoTEEvs7GKubx8Vr7k5po07CNKcH R/nf8IF+eLiq5ejyyJPSTFI27xFLRi/i+G8J7QCriXDICa7B68k1ulTcI8Vju6xjyyIy Dyw3lBLae9x2egpnI4xNrEP81a9i5UxOtB60wJwJBSv1DqlCq3+OK/WR59/UGQWEqqfo 2w+6aiYWqpEcAcQACBNgv7f77CMLYp6YBSlua4c+3OAxDU8f5k6OX90zDwOJA798GE91 tMiLUK4kngH1Tt2TmrEVUi9CbYhYS+SptOv4A8S91uGE1v8HxpgZ9ZPGcgcmPVGppzw+ vtqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RI74sXlV1oYz9/TLIBHZWi3rT+fmeU3E/LfGXNNGwiw=; b=NL+JR+9bHgaG5eRJTAtzTPt/MjnBNPltSfCLlE/yeh2RLypkB+tgexqRqxWwbAW/7L 8vCe6z9gecTGrnVeWoKHvlLKPwPywOlzMESNqQZwM4kNQPr0p8NrSaihFe/6UrgOy+LA JmZ5Ot+RmbMPYjvyM9hSFM2/wrqPM08sf6KIrUchwIZElzGTpLFgUNwe3OXEBov0kVd2 GdPloNvpk9bEeBLL6/JYHXS0R7FNStxMuFsTsg3PIa6LtzFmmksVCecm12PPGmXZ/Ijp 4ScHRliLgFOhI6zw7QR/xL5f/3aGqAQQdn+AsHd9Wi0NmB78hLFX9iMvfP7bNHjKWpK6 h/jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tBNY5A9o; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a170902d48400b00192cb7c42a7si10658996plg.536.2023.01.09.15.11.59; Mon, 09 Jan 2023 15:12:05 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=tBNY5A9o; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237142AbjAIXH5 (ORCPT + 53 others); Mon, 9 Jan 2023 18:07:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjAIXH4 (ORCPT ); Mon, 9 Jan 2023 18:07:56 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B3A91B9DF for ; Mon, 9 Jan 2023 15:07:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D9C15B8109E for ; Mon, 9 Jan 2023 23:07:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05239C433EF; Mon, 9 Jan 2023 23:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673305672; bh=L5utGm3sciYJfzyl8xq+sWm9uedBplaVJst8aID6858=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tBNY5A9odUkTWdZMLtW1JVqx7lQN5VNO8xIf1aStfqTY5H+QO0/oBho8oL1Q9Nj6B cse7V99LhOoqt7HhTsitgDBwKVx54aj4E8V4X8NjvIzSFiX7Iz1JFfrT5q0K2BHhVs rMgxWE7W9HJWmoCniTRr+blvWwRy522Br/wC9kr/CLyV92nFaQZCTcKENHE1rNBQ0M xuEf741egdpOlrj1V2tKMNVWZu9VQEEI5WSzFzGwOkOHSlRewI9il7Rxb/TrZsav4G 3Z+1Ost16bmlbzpFvIVRBdBuRi6YqEjbRyojgDl8kg611FUDUhxhK3yeyqDp4VpwNT RcxISpXLR1Qpg== From: SeongJae Park To: Liam Howlett Cc: SeongJae Park , "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton Subject: Re: [PATCH v2 22/44] mmap: Pass through vmi iterator to __split_vma() Date: Mon, 9 Jan 2023 23:07:50 +0000 Message-Id: <20230109230750.7211-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230109203026.nqwhze2d5y62z4tf@revolver> References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Hello Liam, On Mon, 9 Jan 2023 20:30:50 +0000 Liam Howlett wrote: > * SeongJae Park [230109 14:28]: > > On Mon, 9 Jan 2023 16:45:46 +0000 Liam Howlett wrote: > > > > > * SeongJae Park [230106 21:40]: > > > > Hello Liam, > > > > > > > > On Sat, 7 Jan 2023 02:01:26 +0000 SeongJae Park wrote: > > > > > > > > > Hello Liam, > > > > > > > > > > > > > > > I found 'make install' mm-unstable kernel fails from initramfs stage with > > > > > 'not a dynamic executable' message. I confirmed the issue is not reproducible > > > > > before your patchset[1] but after the series[2]. > > > > > > > > > > I tried to bisect, but on a commit[3] middle of mm-unstable tree which this > > > > > patch is applied, I get below error while booting. Do you have an idea? > > > > > > > > I further bisected for the boot failure. The first bad commit was a8e0f2e12936 > > > > ("mmap: change do_mas_munmap and do_mas_aligned_munmap() to use vma > > > > iterator")[1]. The stacktrace on the commit is as below. > > > > > > > ... > > > > > > Thanks for your work on this. > > > > > > I have found the issue and will send out a fix shortly. I am not > > > handling the invalidated state correctly in the write path. > > > > Thank you, I tested the patch and confirmed it is fixing the boot failure. The > > 'make install' issue on my system is not fixed yet, though. While doing bisect > > of the issue again with your boot failure fix, I found below build failure on a > > commit applying a patch of this series, namely "userfaultfd: use vma iterator". > > > > mm/madvise.c: In function ‘madvise_update_vma’: > > mm/madvise.c:165:11: error: implicit declaration of function ‘__split_vma’; did you mean ‘split_vma’? [-Werror=implicit-function-declaration] > > 165 | error = __split_vma(mm, vma, start, 1); > > | ^~~~~~~~~~~ > > | split_vma > > cc1: some warnings being treated as errors > > > > Maybe "mm: add temporary vma iterator versions of vma_merge(), split_vma(), and > > __split_vma()" caused the build failure? > > Yes, it seems I removed the external declaration before the function. > Thanks. I continued bisect with your fix for this[1], and found my 'make install' issue comes from 'mm: change mprotect_fixup to vma iterator'. [1] https://lore.kernel.org/linux-mm/20230109205300.955019-1-Liam.Howlett@oracle.com/ Thanks, SJ