Skip to content
  • David Miller's avatar
    Unaligned access fixes · 8871a0ea
    David Miller authored
    The first problem is that these SETGET macros lose typing information,
    and therefore can't see the 'packed' attribute and therefore take
    unaligned access SIGBUS signals on sparc64 when trying to derefernce
    the member.
    
    The next problem is a similar issue in btrfs_name_hash().  This gets
    passed things like &key.offset which is a member of a packed
    structure, losing this packed'ness information btrfs_name_hash()
    performs a potentially unaligned memory access, again resulting in a
    SIGBUS.
    8871a0ea