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
  • kernel
  • sys_ni.c
Find file BlameHistoryPermalink
  • Linus Torvalds's avatar
    posix-timers: Get rid of [COMPAT_]SYS_NI() uses · a4aebe93
    Linus Torvalds authored Dec 19, 2023
    
    
    Only the posix timer system calls use this (when the posix timer support
    is disabled, which does not actually happen in any normal case), because
    they had debug code to print out a warning about missing system calls.
    
    Get rid of that special case, and just use the standard COND_SYSCALL
    interface that creates weak system call stubs that return -ENOSYS for
    when the system call does not exist.
    
    This fixes a kCFI issue with the SYS_NI() hackery:
    
      CFI failure at int80_emulation+0x67/0xb0 (target: sys_ni_posix_timers+0x0/0x70; expected type: 0xb02b34d9)
      WARNING: CPU: 0 PID: 48 at int80_emulation+0x67/0xb0
    
    Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
    Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
    Tested-by: default avatarSami Tolvanen <samitolvanen@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a4aebe93
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7