Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp544147rwl; Thu, 5 Jan 2023 00:41:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXv3fq0WwTjOcwAeQzojNORHxaIKRznkqYPOfgCzyTIbricpTVS92Nog8t4RAmRs2JTMXEnr X-Received: by 2002:a17:90a:ee86:b0:226:b627:6779 with SMTP id i6-20020a17090aee8600b00226b6276779mr5424294pjz.5.1672908111925; Thu, 05 Jan 2023 00:41:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672908111; cv=none; d=google.com; s=arc-20160816; b=qjxkEo88e9RuejZeYa56Wc4R4O52pJ9NPMY6JQMFuXRBh7ScBYAgPoQdpjdK9bwAAY 5Jy82yoxhhrAqh9jF7UMUQV4ycDzuGj+kZLmjQkxWe77MZO1xKGubHuYZhWvlSZEhOfO cdD27+sStkn3Fya4B+u94Q0QTNfM+D8UA1ld9cJv4kGC8yZEa4PlUkFNu1UtGlPzO+6S QZPuKr8fNZzcpqOXu4wX+NufrrXwJvyxutixIVRckT8H1A780kzUjwrN+lW97keUtjgg wOwGF/ft1mEq2lrDE0KWzLC/nACrprm9wYWYMQqcjLApW4kdYkREFEY8icg4Eug0jecY BJIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=7rG4uCX9wvgLxa5VSSu2Sj8AAkcwgQ3HOlO0JMkfC8U=; b=YmPxM9+r0bCitFPDmPy6CO+6C+EStgaSWw/UYGHHdVhaTQ25nCc6XBojqt34UCYXW2 kJl8Sfw4ZzKC2eXW9DceiFFYaNYFiJ1nIWjtvztaGpqbgeXuHaxg7iBSQD7rHclqdoKY yc0OnCsKPoF0wtUR771o576hAM7bc1Y3RhZqZ197rDkNSDR3Es6VfOKSxapi1Pn6wyJ7 eTKh3VLomf75rcydSnkqFyMGwt8ZgNVuFi2LJGaS1SmvgjNAJrXiLBCLToSswTutzGOp h7HsIJCKkioXG1jDS/ceZtebCggflP+y22E9oz4n5VyG8WQojBn2WqvNZx6M2/YMfroP 1Q4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BMhimpWO; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob5-20020a17090b390500b002194574db1csi1426808pjb.142.2023.01.05.00.41.45; Thu, 05 Jan 2023 00:41:51 -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=@redhat.com header.s=mimecast20190719 header.b=BMhimpWO; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231460AbjAEITd (ORCPT + 55 others); Thu, 5 Jan 2023 03:19:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbjAEISb (ORCPT ); Thu, 5 Jan 2023 03:18:31 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F1F15A8A3 for ; Thu, 5 Jan 2023 00:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672906608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7rG4uCX9wvgLxa5VSSu2Sj8AAkcwgQ3HOlO0JMkfC8U=; b=BMhimpWOxC97bgDSjrxBvgPlteb9k3BGgn0l4VybrhHySb7HnKWBR8wZZon9TiNAeWdLqx Y7/vjrEYVjqI4qP3xXYDvi8+SThF32lBVyIHHt5DLKTWcaIQYoNU1q0PBnm0ssN/aYz8zU xhW5J+ZNhW3BSAUt/pQC3IKMRu6U19M= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-621-Fcdupt6iNpC8v26d-a9SVA-1; Thu, 05 Jan 2023 03:16:46 -0500 X-MC-Unique: Fcdupt6iNpC8v26d-a9SVA-1 Received: by mail-wm1-f72.google.com with SMTP id k20-20020a05600c1c9400b003d9717c8b11so17411737wms.7 for ; Thu, 05 Jan 2023 00:16:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7rG4uCX9wvgLxa5VSSu2Sj8AAkcwgQ3HOlO0JMkfC8U=; b=Tcm1ZD57iXDNUb17BLoDhdRyvhBLK9pKhEuUp5oU8GNlABMJ1Hepo3Dx4QHIXddZkw PemEe0sYqKe4xqQzpSbe+wSjxw6xN72F2xiUJSQ507u5gsQfeWm6iq6J9cBwQn7UyG5G /f7kadvNPx+bxxqmUJwMmru4w3hJwcbdQSmu0fW/IdSw7dH6RSEib8Edq+ZguXmbM0oF 0ff9E3DnJM2XSsJYqGmaq3/mHC4WI+L0ljWWPn9/UtxoEd9DFSh46AY0fPQj7n6S7Z8Q yCr1RUubxhFMYCpN8ZOYHNBXFC48tL1Q8YvtN+kYIka65GIWFXeCR6o7yV6XsBao+AO7 gytg== X-Gm-Message-State: AFqh2kqdAIfNmlejlpv2izvzDuXL+ToI7rZNioN81UEEBYwVcVNOXyD9 DrEh8LwqbrSbvQEgeDzfuxKWbsTchDkqAskNMYjrBqVHbmxSIHIMvVTX7qbN4abBAYAynVhTShc HlHRepDdC1LBtCwoDTaBcl4bV X-Received: by 2002:a05:600c:3ba4:b0:3cf:d428:21d6 with SMTP id n36-20020a05600c3ba400b003cfd42821d6mr34338873wms.3.1672906605577; Thu, 05 Jan 2023 00:16:45 -0800 (PST) X-Received: by 2002:a05:600c:3ba4:b0:3cf:d428:21d6 with SMTP id n36-20020a05600c3ba400b003cfd42821d6mr34338855wms.3.1672906605283; Thu, 05 Jan 2023 00:16:45 -0800 (PST) Received: from ?IPV6:2003:cb:c707:6e00:ff02:ec7a:ded5:ec1e? (p200300cbc7076e00ff02ec7aded5ec1e.dip0.t-ipconnect.de. [2003:cb:c707:6e00:ff02:ec7a:ded5:ec1e]) by smtp.gmail.com with ESMTPSA id fj15-20020a05600c0c8f00b003cf894dbc4fsm1534778wmb.25.2023.01.05.00.16.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 00:16:44 -0800 (PST) Message-ID: Date: Thu, 5 Jan 2023 09:16:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 0/3] mm/uffd: Fix missing markers on hugetlb To: Peter Xu , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Mike Kravetz , Muchun Song , Nadav Amit , Andrea Arcangeli , James Houghton , Axel Rasmussen , Andrew Morton References: <20230104225207.1066932-1-peterx@redhat.com> Content-Language: en-US From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230104225207.1066932-1-peterx@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 On 04.01.23 23:52, Peter Xu wrote: > When James was developing the vma split fix for hugetlb pmd sharing, he > found that hugetlb uffd-wp is broken with the test case he developed [1]: > > https://lore.kernel.org/r/CADrL8HWSym93=yNpTUdWebOEzUOTR2ffbfUk04XdK6O+PNJNoA@mail.gmail.com > > Missing hugetlb pgtable pages caused uffd-wp to lose message when vma split > happens to be across a shared huge pmd range in the test. > > The issue is pgtable pre-allocation on hugetlb path was overlooked. That > was fixed in patch 1. Nice timing, I stumbled over that while adjusting background snapshot code in QEMU and wondered why we are not allocating page tables in that case -- and wanted to ask you why :) -- Thanks, David / dhildenb