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
  • linux
  • kernel
  • rseq.c
Find file BlameHistoryPermalink
  • Mathieu Desnoyers's avatar
    rseq: Remove broken uapi field layout on 32-bit little endian · bfdf4e62
    Mathieu Desnoyers authored Jan 27, 2022
    The rseq rseq_cs.ptr.{ptr32,padding} uapi endianness handling is
    entirely wrong on 32-bit little endian: a preprocessor logic mistake
    wrongly uses the big endian field layout on 32-bit little endian
    architectures.
    
    Fortunately, those ptr32 accessors were never used within the kernel,
    and only meant as a convenience for user-space.
    
    Remove those and replace the whole rseq_cs union by a __u64 type, as
    this is the only thing really needed to express the ABI. Document how
    32-bit architectures are meant to interact with this field.
    
    Fixes: ec9c82e0
    
     ("rseq: uapi: Declare rseq_cs field as union, update includes")
    Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lkml.kernel.org/r/20220127152720.25898-1-mathieu.desnoyers@efficios.com
    bfdf4e62
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7