[all-commits] [llvm/llvm-project] b17d44: [scudo] Compute the default aligned pointer withou...

Andrei Homescu via All-commits all-commits at lists.llvm.org
Thu May 23 10:08:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b17d44558ba4c30a3005089b334f68593d6a9c7c
      https://github.com/llvm/llvm-project/commit/b17d44558ba4c30a3005089b334f68593d6a9c7c
  Author: Andrei Homescu <ahomescu at google.com>
  Date:   2024-05-23 (Thu, 23 May 2024)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h

  Log Message:
  -----------
  [scudo] Compute the default aligned pointer without tag (#92989)

https://github.com/llvm/llvm-project/pull/83493 slightly
changed the order of computation of block addresses and
pointers, causing the value of DefaultAlignedPtr to
include the MTE tag. Move this computation earlier so it
matches the old behavior.

This fixes a UBSan failure in Trusty:
secure os: UBSan: (overflow:-)
external/scudo/standalone/combined.h:1070:35
secure os: Details: unsigned integer overflow: 8988807738704 -
144124176883594576 cannot be represented in type 'uptr'



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list