* RDTSCP | IA32_TSC_AUX on x86-32
@ 2022-11-23 9:46 Sebastian Andrzej Siewior
2022-11-23 9:59 ` Borislav Petkov
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2022-11-23 9:46 UTC (permalink / raw)
To: x86, linux-kernel
Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
H. Peter Anvin
Hi,
the RDTSCP opcode is translated as "Read Time-Stamp Counter and
Processor ID". It does not read the Processor ID is merely returns the
value of IA32_TSC_AUX which has been previously written by the OS. This
is documented but is misleading if you never made it past the headline.
Now. On 64bit there is __vdso_getcpu and IA32_TSC_AUX is setup (it also
contains the node number but…) for its purpose.
On 32bit there is no __vdso_getcpu and IA32_TSC_AUX is not setup.
RDTSCP is not privileged and returns the proper timestamp but the "CPU"
field is always zero.
Is the format OS specific and not for user purpose or could IA32_TSC_AUX
be setup on 32bit?
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RDTSCP | IA32_TSC_AUX on x86-32
2022-11-23 9:46 RDTSCP | IA32_TSC_AUX on x86-32 Sebastian Andrzej Siewior
@ 2022-11-23 9:59 ` Borislav Petkov
2022-11-23 10:02 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Borislav Petkov @ 2022-11-23 9:59 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: x86, linux-kernel, Thomas Gleixner, Ingo Molnar, Dave Hansen,
H. Peter Anvin
On Wed, Nov 23, 2022 at 10:46:07AM +0100, Sebastian Andrzej Siewior wrote:
> Is the format OS specific and not for user purpose or could IA32_TSC_AUX
> be setup on 32bit?
I don't see why not.
I mean, we wanna remove 32-bit but if you wanna still improve it...
:-)
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RDTSCP | IA32_TSC_AUX on x86-32
2022-11-23 9:59 ` Borislav Petkov
@ 2022-11-23 10:02 ` Sebastian Andrzej Siewior
2022-11-23 10:23 ` Borislav Petkov
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2022-11-23 10:02 UTC (permalink / raw)
To: Borislav Petkov
Cc: x86, linux-kernel, Thomas Gleixner, Ingo Molnar, Dave Hansen,
H. Peter Anvin
On 2022-11-23 10:59:29 [+0100], Borislav Petkov wrote:
> On Wed, Nov 23, 2022 at 10:46:07AM +0100, Sebastian Andrzej Siewior wrote:
> > Is the format OS specific and not for user purpose or could IA32_TSC_AUX
> > be setup on 32bit?
>
> I don't see why not.
>
> I mean, we wanna remove 32-bit but if you wanna still improve it...
>
> :-)
Do we have a schedule for the removal? I mean we talk about it for
years…
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RDTSCP | IA32_TSC_AUX on x86-32
2022-11-23 10:02 ` Sebastian Andrzej Siewior
@ 2022-11-23 10:23 ` Borislav Petkov
2022-11-28 14:14 ` Pavel Machek
0 siblings, 1 reply; 5+ messages in thread
From: Borislav Petkov @ 2022-11-23 10:23 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: x86, linux-kernel, Thomas Gleixner, Ingo Molnar, Dave Hansen,
H. Peter Anvin
On Wed, Nov 23, 2022 at 11:02:52AM +0100, Sebastian Andrzej Siewior wrote:
> Do we have a schedule for the removal? I mean we talk about it for
> years…
Hahah, nah, no schedule. I don't think the time has come yet - even if
we want to. I was mostly joking. :-)
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RDTSCP | IA32_TSC_AUX on x86-32
2022-11-23 10:23 ` Borislav Petkov
@ 2022-11-28 14:14 ` Pavel Machek
0 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2022-11-28 14:14 UTC (permalink / raw)
To: Borislav Petkov
Cc: Sebastian Andrzej Siewior, x86, linux-kernel, Thomas Gleixner,
Ingo Molnar, Dave Hansen, H. Peter Anvin
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
On Wed 2022-11-23 11:23:36, Borislav Petkov wrote:
> On Wed, Nov 23, 2022 at 11:02:52AM +0100, Sebastian Andrzej Siewior wrote:
> > Do we have a schedule for the removal? I mean we talk about it for
> > years…
>
> Hahah, nah, no schedule. I don't think the time has come yet - even if
> we want to. I was mostly joking. :-)
Given that Pentium-class machines are last x86s without serious
security holes, I'd keep 32-bit support for a while :-).
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-28 14:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-23 9:46 RDTSCP | IA32_TSC_AUX on x86-32 Sebastian Andrzej Siewior
2022-11-23 9:59 ` Borislav Petkov
2022-11-23 10:02 ` Sebastian Andrzej Siewior
2022-11-23 10:23 ` Borislav Petkov
2022-11-28 14:14 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox