Skip to content
  • Thomas Gleixner's avatar
    seccomp: Move speculation migitation control to arch code · 8bf37d8c
    Thomas Gleixner authored
    
    
    The migitation control is simpler to implement in architecture code as it
    avoids the extra function call to check the mode. Aside of that having an
    explicit seccomp enabled mode in the architecture mitigations would require
    even more workarounds.
    
    Move it into architecture code and provide a weak function in the seccomp
    code. Remove the 'which' argument as this allows the architecture to decide
    which mitigations are relevant for seccomp.
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    8bf37d8c