From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC684C021B2 for ; Thu, 20 Feb 2025 12:44:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 796062802DE; Thu, 20 Feb 2025 07:44:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 746222802DA; Thu, 20 Feb 2025 07:44:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C0492802DE; Thu, 20 Feb 2025 07:44:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3B2802802DA for ; Thu, 20 Feb 2025 07:44:32 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 063DC1C901E for ; Thu, 20 Feb 2025 12:44:32 +0000 (UTC) X-FDA: 83140291584.03.3DABDCF Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf18.hostedemail.com (Postfix) with ESMTP id 6F4571C000F for ; Thu, 20 Feb 2025 12:44:29 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EjTBOiwQ; spf=pass (imf18.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740055469; h=from:from:sender: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:dkim-signature; bh=Aw2uty6j9x0fqEkPxv/nF0HlVK8X1BpwPiiIHwWFu90=; b=k0uiCK9mv+30L8XFJ8uVn/GqaRzZvFhpDhgx+paZjPnJWkoU3HcI9EFBeluREJs+f9P4Em IBEdeQTm8JbQIRD/8UqDiufbYbTdr4VS7kLQxwB+cUVpW6jY2LL6PCIp4jyyNHjsPLVWdk cwX4OBS32FZ3t54DdFOXcqgfli4MWco= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EjTBOiwQ; spf=pass (imf18.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740055469; a=rsa-sha256; cv=none; b=vqToWFcEKTnut4BNXjZSYO2/YpCfvDEQKrGnkFKu1oaiMedjLX9U54vrw8AAx3JGAgm8pm J6Cz/yAZxpKiApiVwdTGH2VA8DeTX45OhVzADoHT4Kmf1ywl5PPoEBW51K2UU4sCIctDHW xIHSdQsLz3DfLR7GwfqJN2IZyt/8TT0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1740055468; 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:autocrypt:autocrypt; bh=Aw2uty6j9x0fqEkPxv/nF0HlVK8X1BpwPiiIHwWFu90=; b=EjTBOiwQrVkED03de1yWzhKj6/2GrZB6WHYNJZCnjrT8Ipm9YVgJoH1AjBdbKSCsDymG5G k/1a4vyM3rCc8fOSzU0oYVb3HXzd9vmYku/j83hXLmmnk4ddl3mF5tDqmnRVnNkLsQ0eZJ I7GpeHOTGOaYPTB69z16czxBg/5wa4k= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-101-1kBv1LWqOUK9OfncuajbXQ-1; Thu, 20 Feb 2025 07:44:25 -0500 X-MC-Unique: 1kBv1LWqOUK9OfncuajbXQ-1 X-Mimecast-MFC-AGG-ID: 1kBv1LWqOUK9OfncuajbXQ_1740055464 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-38f443b4949so435184f8f.3 for ; Thu, 20 Feb 2025 04:44:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740055464; x=1740660264; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from: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=Aw2uty6j9x0fqEkPxv/nF0HlVK8X1BpwPiiIHwWFu90=; b=RpDw1psn2kzWJkn5WSfDYcJCFnnjmOKBpl8qQqa6gbDR2YibtBkM0P0caFYuLQx1xp MpLj7V2z3X2pcH2Lz65DdA7qItGqnC5seNPXTI1yfu2KqMwUJ/0UVO2lmrxgyXWnVrG8 4OHjag8EGtcDCa8L4hIioijTU5UZ/dlCVdWyS+Gz7RXNJwKrZ1b5YccfWyxWgT0qWw1e T6dGI4cXJ2bSgTkDT9QJLvbR6aEPnfwFaAF57WjNyVdLWWO8d5An8OdHzQFjb+EoykRH rlHFU4mCcALuOM19QYuiWpc4DyWF+mK6sDHNTVgdeoMmcx+I+4wEV2w+ld82ACYqfXKL jCog== X-Forwarded-Encrypted: i=1; AJvYcCUTWuTrpOi243OR5OiY/Y2seZK2eHZz9ejtp1WFAuFukExyqYqjgEJ20/aMDyVDPRpbFyzZJsRbog==@kvack.org X-Gm-Message-State: AOJu0Yzbq3VUomxqkzaRQnqWpEzaFcRlpmXa9jNiDsbSpjLKYqZ0BX3c H60TInpoZWwPUK9ffMyewt2Hw3uKmEt2B4oAsYFcnsBVuFi1mvDBBX9/fKTK54/rdxqe59zDbln 6MlaIDBExpef39jkrdyQnqj9ERap//Ty8cwwWgpNiWa7WM/E3 X-Gm-Gg: ASbGncs5cm/J1oUb1NPvxMHatvZrTzjSG2JYAT1HI8nApMS/hLaBTIhyj3Jxp76Lyoh q+oNMIHT7Cxm5adKI0A551yK20S8R4DG4ZkAPSEPQKs//ETBmVYX83i03jIZm5sIlWjf6TdgiWg Fa3VgywjqJSsqcLxFRYpyXS/Lj1VCZtaos9c63pxD6qAEWo0sdTL8PhiOffJ9ruNxdYUV8vRS9v 01iXZ9RadnCtrSHkNDWrITKAw5TckFRRAu962kakPebOwMDf9J6NQa7VH3qpGebFRFORIRd23mh zRUY3SFzTxjF06mhqdkcVc6iqdXHN28jYPe8Fii57Gz64+f+oQK1MNNmOxZBxeq7Q+zgrwBza9G 8oYDpTZr4+kaSVM1JmXcOb+LMO3j4pQ== X-Received: by 2002:a5d:58c3:0:b0:38d:e61a:bc7 with SMTP id ffacd0b85a97d-38f3406cd95mr18809399f8f.40.1740055464400; Thu, 20 Feb 2025 04:44:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWR1r+x5fxTVDkaeTb+DGmJUge83PhPNpWxQET+3WOp7mEtvkA8YLL3jY58yOBXvJyv+SzYA== X-Received: by 2002:a5d:58c3:0:b0:38d:e61a:bc7 with SMTP id ffacd0b85a97d-38f3406cd95mr18809375f8f.40.1740055463978; Thu, 20 Feb 2025 04:44:23 -0800 (PST) Received: from ?IPV6:2003:cb:c706:2000:e44c:bc46:d8d3:be5? (p200300cbc7062000e44cbc46d8d30be5.dip0.t-ipconnect.de. [2003:cb:c706:2000:e44c:bc46:d8d3:be5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f25915146sm20836738f8f.56.2025.02.20.04.44.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2025 04:44:22 -0800 (PST) Message-ID: Date: Thu, 20 Feb 2025 13:44:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/4] mm: permit guard regions for file-backed/shmem mappings To: Lorenzo Stoakes Cc: Kalesh Singh , Andrew Morton , Suren Baghdasaryan , "Liam R . Howlett" , Matthew Wilcox , Vlastimil Babka , "Paul E . McKenney" , Jann Horn , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org, linux-api@vger.kernel.org, John Hubbard , Juan Yescas References: <6e356431-5ac9-4363-b876-78a69ae7622a@lucifer.local> <4aa97b5c-3ddc-442b-8ec9-cc43ebe9e599@redhat.com> <387f3516-99f2-41e9-967e-4b051a8d21b8@redhat.com> <72e044ba-64af-49c0-8b87-ead508654fb7@lucifer.local> <4f5a9c19-9bdd-47eb-bb14-205e3dcced90@redhat.com> <1e959451-2534-44b7-bf62-bc75305048fe@lucifer.local> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXMQRwU0O/ztJIQqsE5LsUomE//bLwzj9IVsaQpKDqW6TAPjcdBDPLHvriq7kGjt WhVhdl0qEYB8lkBEU7V2Yb+SYhmhpDrti9Fq1EsmhiHSkxJcGREoMK/63r9WLZYI3+4W2rAc UucZa4OT27U5Z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Ox/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <1e959451-2534-44b7-bf62-bc75305048fe@lucifer.local> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: KaArMmQ7FkHQ6jGnNj3BrZOY032QTnFV5TLXtSa5GCc_1740055464 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 6F4571C000F X-Stat-Signature: c41tyg3c5xn4ok7nws9bs9nz7oiksicr X-HE-Tag: 1740055469-963461 X-HE-Meta: U2FsdGVkX1+r1x+3JauimJPEBxFZtThWRUYhMYGXMmreaC/DVkHXLo50VYn5BrI3ASgw3Y6L1E7etQ4LYTUDdbFsm8hlhw5UtY7OZWRlqQtGqaqgs3n/L9f87T933L0fD+RpGCUfmiToyLkUD7GXx33ZkfhdekV/LCOUDhydbdQbudeLfZ9l7GAPeRWZKBilAqRC/ptwMQqfCZUR8D00Lk6XWVFZEj5DF9yzGVMvBrTKqbS51RbEy+ppFQcTez71DB96IndF2mwcaxaNPSCafrNXDp4YlDCpD4OoAXLZTfOqbapg69hFkc2kmb2zo3A3dYMTus/RYdxw8Rsi42vadu5CBvf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amicity=0.344698, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 20.02.25 11:15, Lorenzo Stoakes wrote: > On Thu, Feb 20, 2025 at 11:03:02AM +0100, David Hildenbrand wrote: >>>> Your conclusion is 'did not participate with upstream'; I don't agree with >>>> that. But maybe you and Kalesh have a history on that that let's you react >>>> on his questions IMHO more emotionally than it should have been. >>> >>> This is wholly unfair, I have been very reasonable in response to this >>> thread. I have offered to find solutions, I have tried to understand the >>> problem in spite of having gone to great lengths to try to discuss the >>> limitations of the proposed approach in every venue I possibly could. >>> >>> I go out of my way to deal professionally and objectively with what is >>> presented. Nothing here is emotional. So I'd ask that you please abstain >>> from making commentary like this which has no basis. >> >> I appreciate everything you write below. But this request is just >> impossible. I will keep raising my opinion and misunderstandings will >> happen. > > Well I wouldn't ask you not to express your opinion David, you know I respect > and like you, and by all means push back hard or call out what you think is bad > behaviour :) > > I just meant to say, in my view, that there was no basis, but I appreciate > miscommunications happen. > > So apologies if I came off as being difficult or rude, it actually wasn't > intended. And to re-emphasise - I have zero personal issue with anybody in this > thread whatsoever! It sounded to me like you were trying to defend your work (again, IMHO too emotionally, and I might have completely misinterpreted that) and slowly switching to "friendly fire" (towards me). Apologies from my side if I completely misunderstood/misinterpreted that. To recap: what we have upstream is great; you did a great job. Yes, the mechanism has its drawbacks, but that's just part of the design. Some people maybe have wrong expectations, maybe there were misunderstandings, or maybe there are requirements that only now pop up; it's sometimes unavoidable, and that's ok. We can try to document it better (and I was trying to find clues why people might be mislead), and see if/how we could sort out these requirements. But we can likely not make it perfect in any possible way (I'm sure there are plenty of use cases where what we currently have is more than sufficient). > > I just want to find the best way forward, technically and am willing to do > whatever work is required to make the guard region implementation as good as it > possibly can be. > >> >> Note that the whole "Honestly David you and the naming. .." thing could have >> been written as "I don't think it's a naming problem." > > I feel like I _always_ get in trouble when I try to write in a 'tongue-in-cheek' > style, which is what this was meant to be... so I think herein lies the basis of > the miscommunication :) > > I apologise, the household is ill, which maybe affects my judgment in how I > write these, but in general text is a very poor medium. It was meant to be said > in a jolly tone with a wink... > > I think maybe I should learn my lesson with these things, I thought the ':p' > would make this clear but yeah, text, poor medium. > > Anyway apologies if this seemed disrespectful. No worries, it's hard to really make me angry, and I appreciate your openness and your apology (well, and you and your work, obviously). I'll note, though, if my memory serves me right, that nobody so far ever criticized the way I communicate upstream, or even told me to abstain from certain communication. That probably hurt most, now that a couple of hours passed. Nothing that a couple of beers and a bit of self-reflection on my communication style can't fix ;) [...] >>>>> Yeah that's a good point, but honestly if you're reading smaps that reads >>>>> the page tables, then reading /proc/$pid/pagemaps and reading page tables >>>>> TWICE that seems inefficient vs. just reading /proc/$pid/maps, then reading >>>>> /proc/$pid/pagemaps and reading page tables once. >>>> >>>> Right; I recently wished that we would have an interface to obtain more VMA >>>> flags without having to go through smaps >>> >>> Well maybe that lends itself to the idea of adding a whole new interface in >>> general... >> >> An extended "maps" interface might be reasonable, that allows for exposing >> more things without walking the page tables. (e.g., flags) >> >> Maybe one could have an indicator that says "ever had guard regions in this >> mapping" without actually walking the page tables. > > Yeah this is something we've discussed before, but it's a little fraught. Let's > say it was a VMA flag, in this case we'd have to make this flag 'sticky' and not > impact merging (easy enough) to account for splits/merges. > > The problem comes in that we would then need to acquire the VMA write lock to do > it, something we don't currently require on application of guard regions. Right, and we shouldn't write-lock the mmap. We'd need some way to just atomically set such an indicator on a VMA. I'll also note that it might be helpful for smallish region, but especially for large ones (including when they are split and the indicator is wrong), it's less helpful. I don't have to tell you about the VMA merging implications, probably it would be like VM_SOFTDIRTY handling :) > > We'd also have to make sure nothing else makes any assumptions about VMA flags > implying differences in VMAs in this one instance (though we do already do this > for VM_SOFTDIRTY). > > I saw this as possibly something like VM_MAYBE_GUARD_REGIONS or something. Yes. -- Cheers, David / dhildenb