Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4519600rwb; Mon, 21 Nov 2022 08:32:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4b1EVXEoy7Y6SyLRnL3rclV7EZIOqcjc4nR9B13xjMUNCk9miQ8I6dU9hUquuWjIbwuafu X-Received: by 2002:a63:1c66:0:b0:476:c782:e5d1 with SMTP id c38-20020a631c66000000b00476c782e5d1mr836018pgm.261.1669048330231; Mon, 21 Nov 2022 08:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669048330; cv=none; d=google.com; s=arc-20160816; b=GklmZab8NcNmp2pjPyx663ElFqpu1JxWzfgZeXdhCoUgmk/Gqs86RtNN4bcFhEPFeC TxAGzucReFxhkewC6T5uWTNa9nZKavS3XE74EwvLyDbgWCqAzckUVz+h8Y0F2fz4OnX9 LffuJLZgiNpNjHNfEwAK/YTC7FcTR56We98sLxVSucqbf0VBwee07wYSBpHoCctDBZQi 49CPh2qbFWUsss9Tdtv/Ai5eK407buNbNf6QqHLfvLC/KDAKbDPrLh8XPzPJBm71p+hs dOVm/ziK5xr3iF/uXF4MA4+5sO3fVK5VfXlNqs9FnSdHwAdfUNtJhqzynpQ7az2t0AU5 DLxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:organization:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=Brr1q29tF36QPcdWuuy4BDao5Edh5KDPJSgJgZKXZRA=; b=pJvlv44snoPJyIagCiLFLvMZ9h/zWygZh+pqmOCd8DCoMki7mYsN6sHp8Ih1r4P1xb iWdYbIRlBVeNK9gYe7HfjiawwyzS54AHOnk2c7O7sVpU0mSLArFg/N/vmCSomk7Aq267 iA7qiTQbYc0J7lFwDjUWsLNOsArM1vzKg9fF5zHdHY/EKcTykI1qJLJ+bQR+qzCGoGve 1qcKp2fVDHl49h6huePpb+X+B8of4ig5DtLoe9ZiCVnvDGkgdWWLZOAEGHcT3ovRdNRy HFTwOOtlp+MKeZgY1I+fNnNPAj7gGxJ1Rc32BWHyIEnWH1Vic1jRQK8hup9DU8qfSa96 etXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aQxKMHPT; 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 w1-20020aa78581000000b0056c25866e36si10615733pfn.79.2022.11.21.08.31.55; Mon, 21 Nov 2022 08:32:10 -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=aQxKMHPT; 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 S229903AbiKUP5J (ORCPT + 91 others); Mon, 21 Nov 2022 10:57:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbiKUP5E (ORCPT ); Mon, 21 Nov 2022 10:57:04 -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 E549CCB97A for ; Mon, 21 Nov 2022 07:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669046162; 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: in-reply-to:in-reply-to:references:references; bh=Brr1q29tF36QPcdWuuy4BDao5Edh5KDPJSgJgZKXZRA=; b=aQxKMHPTjzXFydgPbVyCYgNQ6m8v3DqvMR+onErM6GQcdnKiLZ8XjZ0uqHnwNfL6LijcHF b04KZIv7g+ZWRB7sJC/ia0V/+OpSaqz7wbVaU14hm3Z5bPIKBSGfSdnFYLY1lt//NFp9Lg nFDEUYK/fKbSL2bN+N2fc4TLKBBSx/M= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-411-ypr7FAg0PL2WaG4scCv6qw-1; Mon, 21 Nov 2022 10:56:00 -0500 X-MC-Unique: ypr7FAg0PL2WaG4scCv6qw-1 Received: by mail-wr1-f72.google.com with SMTP id r6-20020adfbb06000000b00241d4028812so1103599wrg.20 for ; Mon, 21 Nov 2022 07:55:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:organization:from:references:cc:to:content-language :subject:user-agent:mime-version:date:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Brr1q29tF36QPcdWuuy4BDao5Edh5KDPJSgJgZKXZRA=; b=iTmNy746U7vCpA19GgF1Yfx3mDOunU1PdROhyXKO7wdFBcOm2ylumMKMDkvFpMc001 kdyWM+K5Q3LyA7s/6C8IUa9y4/Kzen1CKCnVrqVTt5n9KPX+aO/JjSPWT0qlGBEk/bEO jHci8J9vo+GpVJChdZBP9duBaMdiCAinVGX8KRQh5PB/yMhHmoiPTgk4V+xiB7VMPpzq Q8i46RNMpulq8zXajV6Sw36kKjUZhXaTC2QHH1LpAoz5Z++3hOWXIOpDGTV8vD8RaMmV nAXvTjC+7d/rnXl9fSlARFpAmIwolgFs0XSG7qs7u3lF2thGJnfKo6bVdXk7odImi7u3 wljA== X-Gm-Message-State: ANoB5pk3IpeVQTKHM26XvNvD5DwBo/eaIAk7YJMhDzupJ6TQbRf/mP5t CfsDiqDwl9Z08izTqpCY+5OLnzBh97VS18hFmKTx67VQ7ZbzQ0p+ESH7GSrOsSjEsVXBUH7SyKQ iCx9oubsYLXHqN/wia2HPdUdn X-Received: by 2002:adf:f48f:0:b0:236:715c:aaa6 with SMTP id l15-20020adff48f000000b00236715caaa6mr5020252wro.25.1669046158768; Mon, 21 Nov 2022 07:55:58 -0800 (PST) X-Received: by 2002:adf:f48f:0:b0:236:715c:aaa6 with SMTP id l15-20020adff48f000000b00236715caaa6mr5020212wro.25.1669046158309; Mon, 21 Nov 2022 07:55:58 -0800 (PST) Received: from ?IPV6:2003:cb:c702:dc00:2571:c3c2:c6ea:84ef? (p200300cbc702dc002571c3c2c6ea84ef.dip0.t-ipconnect.de. [2003:cb:c702:dc00:2571:c3c2:c6ea:84ef]) by smtp.gmail.com with ESMTPSA id i7-20020a05600c354700b003cf4eac8e80sm18773096wmq.23.2022.11.21.07.55.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 07:55:57 -0800 (PST) Content-Type: multipart/mixed; boundary="------------X26NNqKh6qmB3gIBG6DEU1Rl" Message-ID: Date: Mon, 21 Nov 2022 16:55:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v6 0/3] Implement IOCTL to get and/or the clear info about PTEs Content-Language: en-US To: Muhammad Usama Anjum , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Andrei Vagin , Danylo Mocherniuk , Alexander Viro , Andrew Morton , Paul Gofman Cc: Suren Baghdasaryan , Greg KH , Christian Brauner , Peter Xu , Yang Shi , Vlastimil Babka , Zach O'Keefe , "Matthew Wilcox (Oracle)" , "Gustavo A. R. Silva" , Dan Williams , kernel@collabora.com, Gabriel Krisman Bertazi , Peter Enderborg , "open list : KERNEL SELFTEST FRAMEWORK" , Shuah Khan , open list , "open list : PROC FILESYSTEM" , "open list : MEMORY MANAGEMENT" References: <20221109102303.851281-1-usama.anjum@collabora.com> <9c167d01-ef09-ec4e-b4a1-2fff62bf01fe@redhat.com> <6fdce544-8d4f-8b3c-9208-735769a9e624@collabora.com> <254130e7-7fb1-6cf1-e8fa-5bc2d4450431@collabora.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <254130e7-7fb1-6cf1-e8fa-5bc2d4450431@collabora.com> X-Spam-Status: No, score=-2.1 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 This is a multi-part message in MIME format. --------------X26NNqKh6qmB3gIBG6DEU1Rl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 21.11.22 16:00, Muhammad Usama Anjum wrote: > Hello, > > Thank you for replying. > > On 11/14/22 8:46 PM, David Hildenbrand wrote: >>> The soft-dirtiness is stored in the PTE. VMA is marked dirty to store the >>> dirtiness for reused regions. Clearing the soft-dirty status of whole >>> process is straight forward. When we want to clear/monitor the >>> soft-dirtiness of a part of the virtual memory, there is a lot of internal >>> noise. We don't want the non-dirty pages to become dirty because of how the >>> soft-dirty feature has been working. Soft-dirty feature wasn't being used >>> the way we want to use now. While monitoring a part of memory, it is not >>> acceptable to get non-dirty pages as dirty. Non-dirty pages become dirty >>> when the two VMAs are merged without considering if they both are dirty or >>> not (34228d473efe). To monitor changes over the memory, sometimes VMAs are >>> split to clear the soft-dirty bit in the VMA flags. But sometimes kernel >>> decide to merge them backup. It is so waste of resources. >> >> Maybe you'd want a per-process option to not merge if the VM_SOFTDIRTY >> property differs. But that might be just one alternative for handling this >> case. >> >>> >>> To keep things consistent, the default behavior of the IOCTL is to output >>> even the extra non-dirty pages as dirty from the kernel noise. A optional >>> PAGEMAP_NO_REUSED_REGIONS flag is added for those use cases which aren't >>> tolerant of extra non-dirty pages. This flag can be considered as something >>> which is by-passing the already present buggy implementation in the kernel. >>> It is not buggy per say as the issue can be solved if we don't allow the >>> two VMA which have different soft-dirty bits to get merged. But we are >>> allowing that so that the total number of VMAs doesn't increase. This was >>> acceptable at the time, but now with the use case of monitoring a part of >>> memory for soft-dirty doesn't want this merging. So either we need to >>> revert 34228d473efe and PAGEMAP_NO_REUSED_REGIONS flag will not be needed >>> or we should allow PAGEMAP_NO_REUSED_REGIONS or similar mechanism to ignore >>> the extra dirty pages which aren't dirty in reality. >>> >>> When PAGEMAP_NO_REUSED_REGIONS flag is used, only the PTEs are checked to >>> find if the pages are dirty. So re-used regions cannot be detected. This >>> has the only side-effect of not checking the VMAs. So this is limitation of >>> using this flag which should be acceptable in the current state of code. >>> This limitation is okay for the users as they can clear the soft-dirty bit >>> of the VMA before starting to monitor a range of memory for soft-dirtiness. >>> >>> >>>> Please separate that part out from the other changes; I am still not >>>> convinced that we want this and what the semantical implications are. >>>> >>>> Let's take a look at an example: can_change_pte_writable() >>>> >>>>      /* Do we need write faults for softdirty tracking? */ >>>>      if (vma_soft_dirty_enabled(vma) && !pte_soft_dirty(pte)) >>>>          return false; >>>> >>>> We care about PTE softdirty tracking, if it is enabled for the VMA. >>>> Tracking is enabled if: vma_soft_dirty_enabled() >>>> >>>>      /* >>>>       * Soft-dirty is kind of special: its tracking is enabled when >>>>       * the vma flags not set. >>>>       */ >>>>      return !(vma->vm_flags & VM_SOFTDIRTY); >>>> >>>> Consequently, if VM_SOFTDIRTY is set, we are not considering the soft_dirty >>>> PTE bits accordingly. >>> Sorry, I'm unable to completely grasp the meaning of the example. We have >>> followed clear_refs_write() to write the soft-dirty bit clearing code in >>> the current patch. Dirtiness of the VMA and the PTE may be set >>> independently. Newer allocated memory has dirty bit set in the VMA. When >>> something is written the memory, the soft dirty bit is set in the PTEs as >>> well regardless if the soft dirty bit is set in the VMA or not. >>> >> >> Let me try to find a simple explanation: >> >> After clearing a SOFTDIRTY PTE flag inside an area with VM_SOFTDIRTY set, >> there are ways that PTE could get written to and it could become dirty, >> without the PTE becoming softdirty. >> >> Essentially, inside a VMA with VM_SOFTDIRTY set, the PTE softdirty values >> might be stale: there might be entries that are softdirty even though the >> PTE is *not* marked softdirty. > Can someone please share the example to reproduce this? In all of my > testing, even if I ignore VM_SOFTDIRTY and only base my decision of > soft-dirtiness on individual pages, it always passes. Quick reproducer (the first and easiest one that triggered :) ) attached. With no kernel changes, it works as expected. # ./softdirty_mprotect With the following kernel change to simulate what you propose it fails: diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index d22687d2e81e..f2c682bf7f64 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -1457,8 +1457,8 @@ static pagemap_entry_t pte_to_pagemap_entry(struct pagemapread *pm, flags |= PM_FILE; if (page && !migration && page_mapcount(page) == 1) flags |= PM_MMAP_EXCLUSIVE; - if (vma->vm_flags & VM_SOFTDIRTY) - flags |= PM_SOFT_DIRTY; + //if (vma->vm_flags & VM_SOFTDIRTY) + // flags |= PM_SOFT_DIRTY; return make_pme(frame, flags); } # ./softdirty_mprotect Page #1 should be softdirty -- Thanks, David / dhildenb --------------X26NNqKh6qmB3gIBG6DEU1Rl Content-Type: text/x-csrc; charset=UTF-8; name="softdirty_mprotect.c" Content-Disposition: attachment; filename="softdirty_mprotect.c" Content-Transfer-Encoding: base64 I2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RyaW5nLmg+CiNpbmNsdWRlIDxzd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