Skip to content

built-in.a(arch/x86/kernel/cpu/bugs.o)(__jump_table+0x28): error: undefined reference to 'sched_smt_present' #132

Closed

Description

@perfect7gentleman
  GEN     .version
  CHK     include/generated/compile.h
  AR      built-in.a
  LD      vmlinux.o
  MODPOST vmlinux.o
built-in.a(arch/x86/kernel/cpu/bugs.o)(__jump_table+0x28): error: undefined reference to 'sched_smt_present'
built-in.a(arch/x86/kernel/cpu/bugs.o)(__jump_table+0x40): error: undefined reference to 'sched_smt_present'
built-in.a(arch/x86/kernel/cpu/bugs.o)(__jump_table+0x58): error: undefined reference to 'sched_smt_present'
built-in.a(arch/x86/kernel/cpu/bugs.o)(__jump_table+0x70): error: undefined reference to 'sched_smt_present'

Built on Gentoo. 4.19.6 was build fine.

Activity

  1. Defortio commented on Dec 6, 2018

    @Defortio

    I have this problem too!
    Built on Opensuse Tumbleweed. with 4.19.6 don't has problem

  2. jyhi commented on Dec 7, 2018

    @jyhi

    I have the same problem on 4.19.7-zen1.

      GEN     .version
      CHK     include/generated/compile.h
      AR      built-in.a
      LD      vmlinux.o
      MODPOST vmlinux.o
    arch/x86/kernel/cpu/bugs.o:(__jump_table+0x28): undefined reference to `sched_smt_present'
    arch/x86/kernel/cpu/bugs.o:(__jump_table+0x40): undefined reference to `sched_smt_present'
    arch/x86/kernel/cpu/bugs.o:(__jump_table+0x58): undefined reference to `sched_smt_present'
    arch/x86/kernel/cpu/bugs.o:(__jump_table+0x70): undefined reference to `sched_smt_present'
    arch/x86/kernel/cpu/bugs.o:(__jump_table+0x88): undefined reference to `sched_smt_present'
    arch/x86/kernel/cpu/bugs.o:(__jump_table+0xa0): more undefined references to `sched_smt_present' follow
    make: *** [Makefile:1036: vmlinux] Error 1
    

    This problem also presents on Linux Kernel with CK patches applied.

    I dug into the source code a little. Consider changes being made from 4.19.6 on:

    • torvalds/linux@340693e where extern struct static_key_false sched_smt_present is moved from kernel/sched/sched.h to include/linux/sched/smt.h
    • torvalds/linux@f55e301 where the change above is used in arch/x86/kernel/cpu/bugs.c

    might be the commits causing problem.

  3. heftig commented on Dec 7, 2018

    @heftig

    I'll wait for CK to fix this.

  4. Defortio commented on Dec 8, 2018

    @Defortio
    GEN     .version
      CHK     include/generated/compile.h
      AR      built-in.a
      LD      vmlinux.o
      MODPOST vmlinux.o
    ld: arch/x86/kernel/cpu/bugs.o:(__jump_table+0x28): undefined reference to `sched_smt_present'
    ld: arch/x86/kernel/cpu/bugs.o:(__jump_table+0x40): undefined reference to `sched_smt_present'
    make[2]: *** [Makefile:1032: vmlinux] Error 1
    

    in build 4.19.8 after build with has error 4.19.7 - error repeated

    Built on Opensuse Tumbleweed

  5. Tomoms commented on Dec 9, 2018

    @Tomoms

    I'm facing the same issue, building openSuSE Tumbleweed's kernel with zen's patches.

  6. damentz commented on Dec 10, 2018

    @damentz
    Member

    Has anyone's builds since 9c460cd2 succeeded? My builds with MuQSS enabled complete without errors. In fact, I'm running my own 4.19.8 build to write this comment.

  7. heftig commented on Dec 10, 2018

    @heftig

    Note that with sched_smt_present always being 0 for MuQSS, the mitigations for SMT-specific vulnerabilities are always disabled. Something to keep in mind when comparing benchmarks with CFS.

  8. Defortio commented on Dec 10, 2018

    @Defortio

    Has anyone's builds since 9c460cd succeeded? My builds with MuQSS enabled complete without errors. In fact, I'm running my own 4.19.8 build to write this comment.

    err
    MuQSS enabled - have error

  9. Defortio commented on Dec 10, 2018

    @Defortio

    Has anyone's builds since 9c460cd succeeded? My builds with MuQSS enabled complete without errors. In fact, I'm running my own 4.19.8 build to write this comment.

    for test - build with disable MuQSS - without error

  10. Tomoms commented on Dec 10, 2018

    @Tomoms

    Has anyone's builds since 9c460cd succeeded? My builds with MuQSS enabled complete without errors. In fact, I'm running my own 4.19.8 build to write this comment.

    I've built 4.19.7 with that patch and the build succeeded. I'm now running the kernel and it's working perfectly. Thank you :)

  11. jyhi commented on Dec 10, 2018

    @jyhi

    Has anyone's builds since 9c460cd succeeded?

    Yes the build succeed after this patch applied (actually I found the same patch from https://pastebin.com/v618N2xd).

  12. Defortio commented on Dec 10, 2018

    @Defortio

    after add patch < - all work

  13. damentz commented on Dec 11, 2018

    @damentz
    Member

    Excellent! Thanks for all the feedback. Closing out this issue.

  14. RJVB commented on Aug 21, 2020

    @RJVB

    Note that with sched_smt_present always being 0 for MuQSS, the mitigations for SMT-specific vulnerabilities are always disabled. Something to keep in mind when comparing benchmarks with CFS.

    Just how much of a problem is this? I just ran into the same build error with the latest 4.14 release (which I'm trying in hopes the i915 doesn't have the most problematic changes backported) and if this really makes a difference I'll just have to go find the latest 4.14 release that still has a working SCHED_SMT ...

    (EDIT: curiously, the 4.14.193 .config file suggests the feature is always on ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions