* Removing __get_user / __put_user for good
[not found] ` <CAHk-=wjxtzD1TXZr5iWu0p1+Hu0YZP7jbNSwFkp7AJYmhzhVCA@mail.gmail.com>
@ 2026-10-20 7:25 ` Linus Torvalds
2026-10-20 9:33 ` Jani Nikula
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Linus Torvalds @ 2026-10-20 7:25 UTC (permalink / raw)
To: Michael S. Tsirkin, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
Tvrtko Ursulin, David Airlie, Simona Vetter, Borislav Petkov,
Tom Lendacky, Joerg Roedel, Nikunj A. Dadhania
Cc: intel-gfx, dri-devel, the arch/x86 maintainers
Bah. I made this branch of mine public because I wanted Michael
Tsirkin to check the vhost part.
But honestly, the i915 side and the coco/SEV patches are the much more
interesting ones.
So this brings in some new victims^Hpeople for that git branch to comment on.
It's all in
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
uaccess-cleanup
I haven't dared actually boot it yet.
Linus
On Mon, 19 Oct 2026 at 20:51, Linus Torvalds
<torvalds@linuxfoundation.org> wrote:
>
> I have a whole branch that removes __get_user() and __put_user() entirely.
>
> Somebody should check that I did it right. But I didn't want to do the
> pagefault_disable() around the vringh_notify() part, so it's not quite
> the same as yours.
>
> Let me just push it out. I was going to let it simmer, but your email
> made me go "I should just let more people look at it".
>
> Mind taking a look at the 'uaccess-cleanups' branch?
>
> It builds for me. That's all the testing it has gotten so far. Blush.
>
> Linus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Removing __get_user / __put_user for good
2026-10-20 7:25 ` Removing __get_user / __put_user for good Linus Torvalds
@ 2026-10-20 9:33 ` Jani Nikula
2026-10-20 9:46 ` Michael S. Tsirkin
2026-10-20 13:19 ` Ingo Molnar
2 siblings, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2026-10-20 9:33 UTC (permalink / raw)
To: Linus Torvalds, Michael S. Tsirkin, Joonas Lahtinen, Rodrigo Vivi,
Tvrtko Ursulin, David Airlie, Simona Vetter, Borislav Petkov,
Tom Lendacky, Joerg Roedel, Nikunj A. Dadhania
Cc: intel-gfx, dri-devel, the arch/x86 maintainers
On Mon, 19 Oct 2026, Linus Torvalds <torvalds@linuxfoundation.org> wrote:
> Bah. I made this branch of mine public because I wanted Michael
> Tsirkin to check the vhost part.
>
> But honestly, the i915 side and the coco/SEV patches are the much more
> interesting ones.
>
> So this brings in some new victims^Hpeople for that git branch to comment on.
>
> It's all in
>
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> uaccess-cleanup
>
> I haven't dared actually boot it yet.
I rebased it on top of our development branch and sent it to i915
CI. Let's see if it blows up. ;)
BR,
Jani.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Removing __get_user / __put_user for good
2026-10-20 7:25 ` Removing __get_user / __put_user for good Linus Torvalds
2026-10-20 9:33 ` Jani Nikula
@ 2026-10-20 9:46 ` Michael S. Tsirkin
2026-10-20 13:19 ` Ingo Molnar
2 siblings, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2026-10-20 9:46 UTC (permalink / raw)
To: Linus Torvalds
Cc: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
David Airlie, Simona Vetter, Borislav Petkov, Tom Lendacky,
Joerg Roedel, Nikunj A. Dadhania, intel-gfx, dri-devel,
the arch/x86 maintainers
On Mon, Oct 19, 2026 at 09:25:02PM -1000, Linus Torvalds wrote:
> Bah. I made this branch of mine public because I wanted Michael
> Tsirkin to check the vhost part.
>
> But honestly, the i915 side and the coco/SEV patches are the much more
> interesting ones.
>
> So this brings in some new victims^Hpeople for that git branch to comment on.
>
> It's all in
>
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> uaccess-cleanup
>
> I haven't dared actually boot it yet.
>
> Linus
vpda seems to survive light testing in a VM for me.
Tested-by: Michael S. Tsirkin <mst@redhat.com>
It's still buggy if there is a swapout right before
the access, just like it was previously, but hey.
One splat less. An improvement.
You might want:
Fixes: 42823a871fd4 ("vringh: support VA with iotlb")
with that, vdpa/vhost bits:
Acked-by: Michael S. Tsirkin <mst@redhat.com>
> On Mon, 19 Oct 2026 at 20:51, Linus Torvalds
> <torvalds@linuxfoundation.org> wrote:
> >
> > I have a whole branch that removes __get_user() and __put_user() entirely.
> >
> > Somebody should check that I did it right. But I didn't want to do the
> > pagefault_disable() around the vringh_notify() part, so it's not quite
> > the same as yours.
> >
> > Let me just push it out. I was going to let it simmer, but your email
> > made me go "I should just let more people look at it".
> >
> > Mind taking a look at the 'uaccess-cleanups' branch?
> >
> > It builds for me. That's all the testing it has gotten so far. Blush.
> >
> > Linus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Removing __get_user / __put_user for good
2026-10-20 7:25 ` Removing __get_user / __put_user for good Linus Torvalds
2026-10-20 9:33 ` Jani Nikula
2026-10-20 9:46 ` Michael S. Tsirkin
@ 2026-10-20 13:19 ` Ingo Molnar
2 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2026-10-20 13:19 UTC (permalink / raw)
To: Linus Torvalds
Cc: Michael S. Tsirkin, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
Tvrtko Ursulin, David Airlie, Simona Vetter, Borislav Petkov,
Tom Lendacky, Joerg Roedel, Nikunj A. Dadhania, intel-gfx,
dri-devel, the arch/x86 maintainers
* Linus Torvalds <torvalds@linuxfoundation.org> wrote:
> Bah. I made this branch of mine public because I wanted Michael
> Tsirkin to check the vhost part.
>
> But honestly, the i915 side and the coco/SEV patches are the much more
> interesting ones.
>
> So this brings in some new victims^Hpeople for that git branch to comment on.
>
> It's all in
>
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> uaccess-cleanup
So it's 'uaccess-cleanups', plural, in case someone copy & pasted
this URI verbatim instead of using the branch name from your
earlier mail. :-)
All the x86 cleanups look good to me in principle, and a quick
test-build & boot shows no problems (both on 64-bit and 32-bit),
but regular testing doesn't fully excercise the exception paths
of these changes, so YMMV.
( BTW., there's a new dependency introduced by this series,
if an architecture gets rid of __get_user(), then it must
define arch_get_kernel_nofault(), otherwise it will gain
new uses of __get_user()/__put_user() via the generic implementations
of __get_kernel_nofault() and __put_kernel_nofault(). No big deal
I suppose. )
Thanks,
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-20 13:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <6ad07f8a.a0c71a5e.2d2efd.977a@mx.google.com>
[not found] ` <20261018152358-mutt-send-email-mst@kernel.org>
[not found] ` <CAHk-=wiUn9EbV4TJ4J7OPY0fVc3UC+xb-pp=+rg3hRc4jQqihg@mail.gmail.com>
[not found] ` <20261018174250-mutt-send-email-mst@kernel.org>
[not found] ` <376ef9d0-b03f-4f85-aee5-46cf20eb00ae@gmail.com>
[not found] ` <20261020021924-mutt-send-email-mst@kernel.org>
[not found] ` <CAHk-=wjxtzD1TXZr5iWu0p1+Hu0YZP7jbNSwFkp7AJYmhzhVCA@mail.gmail.com>
2026-10-20 7:25 ` Removing __get_user / __put_user for good Linus Torvalds
2026-10-20 9:33 ` Jani Nikula
2026-10-20 9:46 ` Michael S. Tsirkin
2026-10-20 13:19 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox