All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Borislav Petkov <bp@alien8.de>
Cc: Ronan Pigott <ronan@rjp.ie>,
	linux-kernel@vger.kernel.org, x86@kernel.org
Subject: Re: UMIP and clearcpuid=
Date: Thu, 11 Jun 2026 09:53:11 +0200	[thread overview]
Message-ID: <20260611075311.GH48970@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <20260610235501.GGain5VbwcvpUwCxiw@fat_crate.local>

On Wed, Jun 10, 2026 at 04:55:01PM -0700, Borislav Petkov wrote:
> On Wed, Jun 10, 2026 at 08:41:02PM +0000, Ronan Pigott wrote:
> > My use case is playing Windows video games via Wine. For whatever reason,
> > they like to use these instructions:
> > 
> >   $ journalctl -b -g umip -o cat --since=-5m
> >   umip_printk: 117 callbacks suppressed
> >   umip: StreetFighter6.[3837] ip:15f523f4d sp:524fecb0: SGDT instruction cannot be used by applications.
> >   umip: StreetFighter6.[3837] ip:15f523f4d sp:524fecb0: For now, expensive software emulation returns the result.
> >   umip: StreetFighter6.[3837] ip:15f523f4d sp:524fec20: SGDT instruction cannot be used by applications.
> >   umip: StreetFighter6.[3837] ip:15f523f4d sp:524fec20: For now, expensive software emulation returns the result.
> >   umip: StreetFighter6.[3837] ip:15f523f4d sp:524fecb0: SGDT instruction cannot be used by applications.
> > 
> > I don't think I benefit from the UMIP protection or the emulation, so I'd
> 
> Question is, do you benefit from disabling the UMIP emulation. Any noticeable
> game performance increase?
> 
> > rather just disable it. clearcpuid still works, but results in a tainted
> > kernel etc:
> > 
> >   kernel: clearcpuid: force-disabling CPU feature flag: umip
> >   kernel: !!! setcpuid=/clearcpuid= in use, this is for TESTING ONLY, may break things horribly. Tainting kernel.
> 
> Right, I don't think a tainted kernel would be a problem but yeah...
> 
> I still think that it would make sense to issue a big fat warning when
> disabling UMIP so that people know.
>  
> > so I think a umip=no flag as originally proposed could be preferable. Would
> > that be acceptable?
> 
> umip=disable or umip=off
> 
> I guess.
> 
> Other than that, I guess that's a valid use case I'd say. Let's see what the
> others think.

So my own game box also has this; aside from the dmesg spam, there was
one game that just plain didn't run. I forgot what it was, but I'm sure
it was related to some dodgy DRM thing.

It is really annoying having to disable UMIP though, its bugged me, just
not enough to ever actually do anything about it.


  reply	other threads:[~2026-06-11  7:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10 19:46 UMIP and clearcpuid= Ronan Pigott
2026-06-10 20:00 ` Borislav Petkov
2026-06-10 20:41   ` Ronan Pigott
2026-06-10 23:55     ` Borislav Petkov
2026-06-11  7:53       ` Peter Zijlstra [this message]
2026-06-11 16:09         ` Borislav Petkov
2026-06-11 18:37           ` Peter Zijlstra
2026-06-12  2:21             ` Borislav Petkov
2026-06-12  6:42               ` Peter Zijlstra
2026-06-12 14:49                 ` Borislav Petkov

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=20260611075311.GH48970@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ronan@rjp.ie \
    --cc=x86@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.