Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mitigations for speculative execution vulnerabilities
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Gentoopc
Guru
Guru


Joined: 25 Dec 2017
Posts: 413

PostPosted: Mon Jan 08, 2024 10:27 am    Post subject: Mitigations for speculative execution vulnerabilities Reply with quote

Code:


Mitigations for speculative execution vulnerabilities                                             
                                 

                                  [ ]   Remove the kernel mapping in user mode                                                           
                                  [ ]   Avoid speculative indirect branches in kernel                                                       
                                  [ ]   Enable return-thunks                                                                           
                                  [ ]   Enable UNRET on kernel entry                                                                 
                                  [ ]   Mitigate RSB underflow with call depth tracking                                                   
                                  [ ]   Enable call thunks and call depth tracking debugging                                             
                                  [ ]   Enable IBPB on kernel entry                                                                       
                                  [ ]   Enable IBRS on kernel entry                                                                                                                                                               
                                  [ ]   Force GDS Mitigation                                                                               
                                                                                                                                           
 

hello forum. I want to ask the guru of kernel builds, tell me which of these parameters must be enabled to start the kernel? without which parameters will the kernel not start?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2729

PostPosted: Mon Jan 08, 2024 11:32 am    Post subject: Reply with quote

The kernel will boot the PC regardless of all those options being enabled or not.

p.s. I'm not a guru. If you want an answer from a guru, you should wait for a guru to answer.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Gentoopc
Guru
Guru


Joined: 25 Dec 2017
Posts: 413

PostPosted: Mon Jan 08, 2024 11:55 am    Post subject: Reply with quote

logrusx wrote:
The kernel will boot the PC regardless of all those options being enabled or not.



thanks for answering.... the fact is that the kernels of versions 5.5 _ did not give me the opportunity to turn off Mitigations for speculative.... the kernel panicked
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2729

PostPosted: Mon Jan 08, 2024 12:59 pm    Post subject: Reply with quote

Gentoopc wrote:
logrusx wrote:
The kernel will boot the PC regardless of all those options being enabled or not.



thanks for answering.... the fact is that the kernels of versions 5.5 _ did not give me the opportunity to turn off Mitigations for speculative.... the kernel panicked


Did it explicitly state it was because of that? Are you sure it wasn't because of something else? Again, I'm not a kernel guru, but those mitigations are not essential to the functioning of the system. They mitigate hardware security issues. Some of them may already have been fixed in microcode updates, depending on the particular CPU.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Gentoopc
Guru
Guru


Joined: 25 Dec 2017
Posts: 413

PostPosted: Mon Jan 08, 2024 1:11 pm    Post subject: Reply with quote

logrusx wrote:

Did it explicitly state it was because of that? Are you sure it wasn't because of something else?


I have disabled only this option. the core panicked. I enabled this option and the kernel started.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5401
Location: Bavaria

PostPosted: Mon Jan 08, 2024 4:04 pm    Post subject: Reply with quote

Gentoopc wrote:
I have disabled only this option. the core panicked. I enabled this option and the kernel started.

How did you changed this option ? With an edit of .config OR in "make menuconfig" ?
As @logrusx correctly said, none of these options have any effect on whether the kernel boots ... but some of them enable (== selects) another option(s) (e.g. CONFIG_CALL_DEPTH_TRACKING and CONFIG_CALL_THUNKS_DEBUG; just look into the <Help>text) and if you have a mismatch (because of not changing it in "make menuconfig") between primary option and dependent option everything can happen ... :lol:

If you did the change in "make menuconfig" I would like to see the Panic text (maybe take a photo).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Gentoopc
Guru
Guru


Joined: 25 Dec 2017
Posts: 413

PostPosted: Mon Jan 08, 2024 11:09 pm    Post subject: Reply with quote

logrusx wrote:
you are right, this is disabled in new kernel versions) I have rebuilt
Back to top
View user's profile Send private message
Gentoopc
Guru
Guru


Joined: 25 Dec 2017
Posts: 413

PostPosted: Mon Jan 08, 2024 11:12 pm    Post subject: Reply with quote

pietinger wrote:



menuconfig
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1051
Location: Somewhere in Denmark

PostPosted: Tue Jan 09, 2024 9:32 pm    Post subject: Reply with quote

Gentoopc wrote:
logrusx wrote:
The kernel will boot the PC regardless of all those options being enabled or not.



thanks for answering.... the fact is that the kernels of versions 5.5 _ did not give me the opportunity to turn off Mitigations for speculative.... the kernel panicked


You got the panic after upgrading from 5.5 to 6.x? Any of the mitigations turned on/off shouldn't cause that, might want to compare other settings.
Back to top
View user's profile Send private message
Gentoopc
Guru
Guru


Joined: 25 Dec 2017
Posts: 413

PostPosted: Tue Jan 09, 2024 11:49 pm    Post subject: Reply with quote

[quote="freke"][/quote

when building the kernel version 5 _ _, I tried to turn off Mitigations for speculative.... this option was slightly positioned differently there. the bottom line is that I was getting a kernel panic. everything is fine now on kernel version 6 . 6 _. even the productivity of the system as a whole has increased by 2-3 %
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum