LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-10-2018, 04:30 AM   #1
BarryK
Puppy Chief Developer
 
Registered: Jun 2006
Location: Perenjori, Australia
Distribution: Puppy Linux
Posts: 11

Rep: Reputation: 0
Angry Retpoline patch seems to have messed up kernel config


The retpoline patch has been backported to the 4.14.* kernel, starting at 4.14.82. The problem is, when doing the "make menuconfig", retpoline can be disabled but SMT is forced on.

This is in "Processor type and features", you will see in there:

Code:
Processor type and features
  < > Avoid speculative indirect branches in kernel CONFIG_RETPOLINE
  [ ] SMT (hyperthreading) scheduler support CONFIG_SCHED_SMT
...the problem is, the SMT option has vanished, it is not there in the 4.14.87 kernel, and the SMT option is forced on. It is there in the 4.14.82 kernel.

I am wondering if this issue is showing up in later kernels?

Further info at blog post:

http://bkhome.org/news/201812/kernel...-compiled.html
 
Old 12-10-2018, 06:31 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,306

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Why don't you grok the patch ported, (forward and back) and read the thread and inform yourself? I've had to do that occasionally. Linus doesn't bite anymore, I'm told. The DFL is gone and the BDFL is back
 
Old 12-15-2018, 02:38 PM   #3
HMan81
LQ Newbie
 
Registered: Dec 2018
Posts: 5

Rep: Reputation: Disabled
I have recently faced a similar issue when trying to build old code against kernel 4.19.6, in my case CONFIG_TRACEPOINTS was disabled and hidden... The fix is easy though. Edit init/Kconfig, find the line where your target is, and add a description after it. For example:

Code:
config CONFIG_SCHED_SMT
        bool
becomes

Code:
config CONFIG_SCHED_SMT
        bool "SMT (hyperthreading) scheduler support"
Save the file, go back in menuconfig, and look for your option, it should be visible again. Depending on how it was patched out it may or may not be in the same location in the menus, to find it use "/" in menuconfig.

Last edited by HMan81; 12-15-2018 at 02:58 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: CentOS Linux 6.10 Released with Retpoline-Based Mitigations for Spectre V2 Flaw LXer Syndicated Linux News 0 07-05-2018 09:14 PM
Since mainline-kernel, presumably 4.16.7, no content in /boot/retpoline-4.16.x-xxxxx-config. Why? Andreas7 Linux - Security 4 05-29-2018 01:36 PM
LXer: Canonical Outs New Ubuntu Kernel Update with Compiler-Based Retpoline Mitigation LXer Syndicated Linux News 0 02-22-2018 08:42 AM
[SOLVED] Slackware From Scratch with full retpoline nobodino Slackware 2 01-23-2018 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration