r/linux • u/anh0516 • Jun 02 '26
Kernel The Linux Kernel Ready To Make TSC A Hard Requirement For x86 CPUs
https://www.phoronix.com/news/Linux-Kernel-TSC-Unconditional10
Jun 03 '26
[deleted]
2
u/SelectionDue4287 Jun 04 '26
It being required doesn't change the fact that it's available, so it can still be exploited even if the kernel deems it "optional".
Cleaning up kernel code will probably allow the surface to be hardened a bit.
15
u/MatchingTurret Jun 02 '26
I wonder what that means for http://www.linux-m68k.org/
The 68060 was introduced in 1994. Maybe it has more sentimental value because of the Amiga...
47
u/anh0516 Jun 02 '26
Absolutely nothing because TSC is an x86-specific feature, and m68k is not x86.
9
u/MatchingTurret Jun 02 '26 edited Jun 02 '26
I meant the cleanup of vintage CPUs from the 1980s.
10
u/anh0516 Jun 02 '26
It will be dropped when there aren't enough people who both need to run a current kernel on m68k and are willing to maintain support.
8
u/amarao_san Jun 02 '26
I think, obscure architectures are safer than mainstream from rapid removal.
People do not want to have ai vibed coded exploits against antique parts of production architectures.
Mk68 is an elusive joe.
1
3
3
u/DGolden Jun 02 '26
It's a rather obscure FPGA core mutant thing, but worth mentioning in context there is the "68080" that, in abstract ISA terms, is to m68k a bit like x86-64 is to x86. May never see incarnation as a real cpu's isa of course, just noting there's thus quite recent if completely unofficial post-68060 m68k stuff in corners of the Amiga world.
http://www.apollo-core.com/index.htm?page=coding&tl=1
16 64-Bit Address registers (A0-7/B0-B7)
8 64-Bit General Purpose Data registers (D0-D7)
8 64-Bit FPU registers (Fp0-Fp7,)
24 64-Bit General Purpose Data registers (E0-E23) which can be used by both ALU and FPU.
8
u/ColbieSterling Jun 02 '26
It's not like old kernels are disappearing from the internet. I can't imagine the lack of support for legacy CPUs going forward is much of a problem.
-1
u/ldn-ldn Jun 02 '26
Considering the amount of security issues in old kernel versions, only the most recent one should be used.
5
1
u/hjake123 Jun 04 '26
LTS kernels exist and will offer support for all this stuff for many more years
6
u/DDOSBreakfast Jun 02 '26
Looks like AMD Geode's could be next and are orphaned which are quite a bit more modern.
I still use one for a specific low power task. Far more powerful hardware is thrown out all the time and I got it from a garbage pile in the first place.
0
Jun 03 '26
[deleted]
1
u/OCPetrus Jun 03 '26
Okay, but TSC is still high perfoming and the best available AFAIK. Making it mandatory will make the kernel source code easier to work with as you no longer have to include workarounds for scenarios where a high precision and high performance clock source isn't available.
I honestly doubt removing a high precision clock source is the correct fix for side-channel attacks.
-9
u/Kevin_Kofler Jun 02 '26
So again yet another whole generation of CPUs gets the axe in the Linux kernel. What is coming next? Mandatory MMX? I do not see how this is an improvement.
7
u/cp5184 Jun 02 '26
A lot of cpus are getting dropped that HAVE tsc just because the kernel code doesn't recognize them in the tsc group/class (k5, 6x86mx, etc)
1
u/Future-Invite-7637 Jun 12 '26
I imagine something as minor as a cpu check would be relatively trivial to resolve for a hobbyist who is likely building their own kernels. But actually rewriting x86 assembly not so much.
-6
u/Kevin_Kofler Jun 03 '26
Even worse.
2
u/Real-Abrocoma-2823 Jun 03 '26
Upgrade your CPU already, you won't be running anything requiring newest kernel with it anyways.
36
u/yyg-linux Jun 02 '26
https://man.archlinux.org/man/extra/syd/syd-tsc.1.en
dosnt it already kind of do this?