Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12342085rwl; Tue, 3 Jan 2023 12:52:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXudqboV7EHlrE10l7ZZQ/xvepVd8U3hzknxOwZaOKyzU3WRmVu0f8JGGJ/GGCkEW0mClAWl X-Received: by 2002:a62:1458:0:b0:582:a71a:94ad with SMTP id 85-20020a621458000000b00582a71a94admr4975483pfu.7.1672779165352; Tue, 03 Jan 2023 12:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672779165; cv=none; d=google.com; s=arc-20160816; b=KME8TbkVOwapKR48TQkyJ2hEiUHL0iSZkyl4V22qzk5dyB1jaG/6ktCfo2WZvRmrgU OoZe2UonV2U9l1B8M/AGZRoys5gnTnrX6HuRHhxzx/hZmi6O04c2GzEWSoXlPQNV42Ap pe1vBgmz5wU5XnffK/Hepfg/+cl5Q7P9OAbKb6w2bfcgeNeHyDfQRtmtvvttktLxFF60 JPt9kDHZyHfWi+4/3HdO5LvoUXt1XIKUvLe+xe5/I8yEDtyFYVM36Xyo+1JrY8jtwAgb sl8OMeKZ8G4zyTHwRHqrEglhMiXwjbykXpOh6JGay7lYEpjo5fMjqNrfXncNOZEJ4tTP +yaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GuHkx7fc138lNmvQjU9upPIl/BMWMyWGCqBn8wneQOc=; b=z3QxpHJ4JF05Pk1yukLfuPNJz2O44TN+iWHH6WrgawGOHuSiCEhmbQiy15NGllG7Yx RM5Cj6wMhBFPMZjteU2uo36yEgTNgig41EQyEoev24G5dboxvIjXYvudNCIVJ0pyCiVu gD6gZB6alXulNjLD2FTiS6qraGF/tADqc1vcT+2cuOQTggVcnZkcawfBsmKbAe4VoqaT A/FFP/EEBXGGX+DakV8rUrEYzwV7TxowPgH5QWpITro20cJjiIPGWqEdDSGwAtMYsyUK uOZZAdkF+7gqzrY+MjOgDlW4dG7O9sQVpOCHYRh9qW9bk535PJmcmk2LEDCeKahHt5GN lMug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fQ6TpWiJ; 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 t184-20020a6381c1000000b00498452aaabfsi29817905pgd.364.2023.01.03.12.52.23; Tue, 03 Jan 2023 12:52:45 -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=@google.com header.s=20210112 header.b=fQ6TpWiJ; 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 S238471AbjACU2D (ORCPT + 60 others); Tue, 3 Jan 2023 15:28:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238803AbjACU1s (ORCPT ); Tue, 3 Jan 2023 15:27:48 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFBD31570B for ; Tue, 3 Jan 2023 12:27:46 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id m26-20020a05600c3b1a00b003d9811fcaafso18001059wms.5 for ; Tue, 03 Jan 2023 12:27:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GuHkx7fc138lNmvQjU9upPIl/BMWMyWGCqBn8wneQOc=; b=fQ6TpWiJJnlFKvQY8aTqmU7s8oqlCyoa5Ps9Bh1txjnXZBw9B7WXaQiCZp6pORL3RE 8ly3BNRQCKZyAIqO3fabvg3lXe6NNM1FcPURPyO///aYBT8ddQtYow1o2jl8dHyP3aoR HqYZadeCNtsQOxHR8D52lcOtfYhr1XIcPr7cHsXsxvrnXBWIFA72Ef5dXIT1gbb7aQhG gJ291AQDVyk6R0LC8Z3qFdJQH26vvOTd1iRdTYGpfSm3x9bJ30f5ZypVgxfldPTWi45w Wgpry8Bq7346Pe5TN4M+puAcjZ9gPj1FLLmtEj7TltxoLcmYm+G16QkRRqPB5DGqBKYC xZaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=GuHkx7fc138lNmvQjU9upPIl/BMWMyWGCqBn8wneQOc=; b=6iDdhFjQ69VfELZsbSKDxlhjMqxE2OnW2tSVe92ehngbL1ZfUmKlv/PFughLeodZjz QNq88ViZz01OJqGXI6jNkBS0ngsmuvRNddz9j+7jjOMS5QPMSns7sbQzTAM5IS/La1ss UaumpwN+xWcPWJ+161lzi47mDkYgLgNhOT5NPZ3jyZ8y3xD5kTXFplds8MMitHiuAXpb 8SnWfe9XrhJt3Tkx1abP/IM9Hb281oXqD9rSHyShKV53dlwkexYdgYeT7D/SzRXviqbw 0U/Jeu39lJr9ZcCcLg8F1rP6EitKDpjC1hbz19GropBSvmlCVLLdchPQMqdliVG7XVB4 8Lrw== X-Gm-Message-State: AFqh2kqX+SnakFP5fQNTX4KybOUdqUtSkg+g79DhTWUSYLvrPAebjL3g 0p6zXJXzhq+JdTzby0HJ3CtJn42o7Veyy/qh+dASi1Iwyncy4w== X-Received: by 2002:a05:600c:4f56:b0:3d9:7950:dc5f with SMTP id m22-20020a05600c4f5600b003d97950dc5fmr1401933wmq.120.1672777665450; Tue, 03 Jan 2023 12:27:45 -0800 (PST) MIME-Version: 1.0 References: <20230101230042.244286-1-jthoughton@google.com> In-Reply-To: From: James Houghton Date: Tue, 3 Jan 2023 20:27:34 +0000 Message-ID: Subject: Re: [PATCH] hugetlb: unshare some PMDs when splitting VMAs To: Mike Kravetz Cc: Muchun Song , Peter Xu , Axel Rasmussen , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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, 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 > I think I've come up with one... :) It only took many many hours of > staring at code to come up with: > > 1. Fault in PUD_SIZE-aligned hugetlb mapping > 2. fork() (to actually share the PMDs) Erm, I mean: mmap(), then fork(), then fault in both processes.