From: "Liam R. Howlett" <Liam.Howlett@oracle.com>
To: Jeff Xu <jeffxu@chromium.org>
Cc: akpm@linux-foundation.org, willy@infradead.org,
torvalds@linux-foundation.org, pedro.falcato@gmail.com,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-mm@kvack.org, linux-hardening@vger.kernel.org,
jeffxu@google.com, lorenzo.stoakes@oracle.com,
mpe@ellerman.id.au, oliver.sang@intel.com, vbabka@suse.cz,
keescook@chromium.org
Subject: Re: [PATCH v1 0/2] mremap refactor: check src address for vma boundaries first.
Date: Thu, 15 Aug 2024 12:49:49 -0400 [thread overview]
Message-ID: <szuouie2gbpaj6gynixelasgeo5fxtn5fd3vbmebzve2x3auum@2q4cjchfajvh> (raw)
In-Reply-To: <CABi2SkVrk-MyMGVDzRZi++7tzCu6k92Vz4hyaVHY2nbYDxd97g@mail.gmail.com>
* Jeff Xu <jeffxu@chromium.org> [240814 23:46]:
> On Wed, Aug 14, 2024 at 12:55 PM Liam R. Howlett
> <Liam.Howlett@oracle.com> wrote:
> > The majority of the comments to V2 are mine, you only told us that
> > splitting a sealed vma is wrong (after I asked you directly to answer)
> > and then you made a comment about testing of the patch set. Besides the
> > direct responses to me, your comment was "wait for me to test".
> >
> Please share this link for " Besides the direct responses to me, your
> comment was "wait for me to test".
> Or pop up that email by responding to it, to remind me. Thanks.
[1].
>
> > You are holding us hostage by asking for more testing but not sharing
> > what is and is not valid for mseal() - or even answering questions on
> > tests you run.
> https://docs.kernel.org/process/submitting-patches.html#don-t-get-discouraged-or-impatient
If you are implying that I'm impatient, I can assure you that is not
the feeling driving these emails.
You are just trying to push a patch through that changes the exact code
that you said you would test but didn't say how, and you said the
testing of another patch was insufficient but didn't say why. Then you
send out this fix.
>
> > These patches should be rejected in favour of fixing the feature like it
> > should have been written in the first place.
> This is not ture.
Yes, it is.
>
> Without removing arch_unmap, it is impossible to implement in-loop.
arch_unmap() is going away, besides..
arch_unmap() could fail today and leave the ppc vdso pointing to NULL,
mseal() would introduce a even less likely case of this happening. I
asked you about this in v10 [2]. I elaborated in my response, but I
doubt you got that far in the email.
> And I have mentioned this during initial discussion of mseal patch, as
> well as when Pedro expressed the interest on in-loop approach. If you
> like reference, I can find the links for you.
So the main concern is that ppc is going to mseal the vdso, then fail to
unmap it?
It would have been better to put a check in the arch_unmap() code in ppc
to avoid that - but it will never happen.
>
> I'm glad that arch_unmap is removed now and resulting in much cleaner
> code,
If you care at all about cleaner code, please move the mseal check to
where it should be - or stop getting in the way of others moving it.
> it has always been a question/mysterial to me ever since I read
> that code.
You could have also looked into what arch_unmap() did, or why it was
where it is today. If you had, you would have found that arch_unmap()
could be moved lower in the function and allowed in-loop approach - but
you didn't bother to find out what it was about.
Liam
...
[1]. https://lore.kernel.org/all/CALmYWFs0v07z5vheDt1h3hD+3--yr6Va0ZuQeaATo+-8MuRJ-g@mail.gmail.com/
[2]. https://lore.kernel.org/lkml/3rpmzsxiwo5t2uq7xy5inizbtaasotjtzocxbayw5ntgk5a2rx@jkccjg5mbqqh/
next prev parent reply other threads:[~2024-08-15 16:50 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-14 7:14 jeffxu
2024-08-14 7:14 ` [PATCH v1 1/2] mseal:selftest mremap across VMA boundaries jeffxu
2024-08-14 7:14 ` [PATCH v1 2/2] mseal: refactor mremap to remove can_modify_mm jeffxu
2024-08-14 14:39 ` [PATCH v1 0/2] mremap refactor: check src address for vma boundaries first Liam R. Howlett
2024-08-14 16:57 ` Jeff Xu
2024-08-14 19:55 ` Liam R. Howlett
2024-08-15 3:45 ` Jeff Xu
2024-08-15 16:49 ` Liam R. Howlett [this message]
2024-08-15 17:22 ` Jeff Xu
2024-08-15 20:14 ` Liam R. Howlett
2024-08-15 20:23 ` Jeff Xu
2024-08-15 20:40 ` Liam R. Howlett
2024-08-15 18:16 ` Jeff Xu
2024-08-15 20:19 ` Jeff Xu
2024-08-16 2:39 ` Oliver Sang
2024-08-16 2:58 ` Jeff Xu
2024-08-18 9:28 ` Oliver Sang
2024-08-19 1:38 ` Oliver Sang
2024-08-19 6:35 ` Oliver Sang
2024-08-21 6:19 ` Oliver Sang
2024-08-21 15:21 ` Jeff Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=szuouie2gbpaj6gynixelasgeo5fxtn5fd3vbmebzve2x3auum@2q4cjchfajvh \
--to=liam.howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=jeffxu@chromium.org \
--cc=jeffxu@google.com \
--cc=keescook@chromium.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=mpe@ellerman.id.au \
--cc=oliver.sang@intel.com \
--cc=pedro.falcato@gmail.com \
--cc=torvalds@linux-foundation.org \
--cc=vbabka@suse.cz \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox