Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • link-vmlinux.sh
Find file BlameHistoryPermalink
  • Peter Zijlstra's avatar
    x86: Add straight-line-speculation mitigation · e463a09a
    Peter Zijlstra authored Dec 04, 2021
    Make use of an upcoming GCC feature to mitigate
    straight-line-speculation for x86:
    
      https://gcc.gnu.org/g:53a643f8568067d7700a9f2facc8ba39974973d3
      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952
      https://bugs.llvm.org/show_bug.cgi?id=52323
    
    
    
    It's built tested on x86_64-allyesconfig using GCC-12 and GCC-11.
    
    Maintenance overhead of this should be fairly low due to objtool
    validation.
    
    Size overhead of all these additional int3 instructions comes to:
    
         text	   data	    bss	    dec	    hex	filename
      22267751	6933356	2011368	31212475	1dc43bb	defconfig-build/vmlinux
      22804126	6933356	1470696	31208178	1dc32f2	defconfig-build/vmlinux.sls
    
    Or roughly 2.4% additional text.
    
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    Link: https://lore.kernel.org/r/20211204134908.140103474@infradead.org
    e463a09a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7