From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by sourceware.org (Postfix) with ESMTPS id 29AC23889824 for ; Thu, 27 Apr 2023 16:25:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29AC23889824 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-b9a6eec8611so4336953276.0 for ; Thu, 27 Apr 2023 09:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682612739; x=1685204739; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=D08wSmf7tdGQHbSDe6Lrx3xQX9a0ZzuETTmxO+IY++M=; b=iHdCvao8UzpcwzNRHVxiBLEpV0s0Tv2/264vRHZsPePgYsLSLPb2jmTKfTfAHtSeTx bP+Ygb5hyeuz8BNTLzp5C6zWDd3MGj06oyLGxW5wHVMKhutPI+P82Cw600X5qUFRoRJN 9cmXWphk9LNtYKZ2RR7kJkJWZAIyOKcwRyzpxDvlbBQ/4ZLA8EW0/cRDrg/lnVJUUovB zHMUiINTMRvbdQ93EPfUupHIwAWJFGD8UXGDVhOZlVeTTDEgQN27/Aq3p5bW5Y1Mk+30 WjXYQatDGRGArFwSK+DTwCPyxl4DPeUQxMrGiNTqYnToWsfp9fJ9eyM2xCFecG/AX6m+ PWAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682612739; x=1685204739; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D08wSmf7tdGQHbSDe6Lrx3xQX9a0ZzuETTmxO+IY++M=; b=I7E7+8W3nbpcB+FWKrQ8CqSeojjYEEsd8/WxWTIU+W29qom/C8XdtMClZLhwRg1qnc fa1Y6FdaY2PFEPFnBHx1G9AGNGwj46T2jusFB0Vni48jceZFlxzvV9H1lQAjkLrJq+X3 CSLO0iKnVEvHYdilj2S/O2fHe9nxmp/CwenZDPJxjyeXyJLf1us4p9EK77H5TwV1LJTD LEIlk+gu+IGqLCPBXAYl7TkgvaB6j5BXKBx3Co+TemvyENmM4aGUxVJV+elYRSpvVZ8W Fi3M8LTOHb4Nir7HTRFyP2OmcoO/Wce9y7TnDr3hF03XASAj6c72AmEz5hd2g1jVV4h0 lRXA== X-Gm-Message-State: AC+VfDxYHW0KW22sHF3A/oz6cxy+ZvKIH7npuZsjEfp8L98oMBKoGSqj nTXHH/XlafKATx1Wj/jD2VZC1d+TLgeaIEgyzgY= X-Google-Smtp-Source: ACHHUZ4lCDlsi3Na2JQV8qrRBnR2K+yM9O83k0UvsUL/YwrUWMOncASbiqXQK7szAFpo1eH4hMpsPy56GMQBVmPX1Qg= X-Received: by 2002:a81:13c9:0:b0:54f:223b:3cf6 with SMTP id 192-20020a8113c9000000b0054f223b3cf6mr5048849ywt.7.1682612739266; Thu, 27 Apr 2023 09:25:39 -0700 (PDT) MIME-Version: 1.0 References: <20230427023243.1481560-1-hjl.tools@gmail.com> In-Reply-To: From: "H.J. Lu" Date: Thu, 27 Apr 2023 09:25:03 -0700 Message-ID: Subject: Re: [PATCH] libsanitizer: cherry-pick commit 05551c658269 from upstream To: =?UTF-8?Q?Martin_Li=C5=A1ka?= Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3022.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Apr 27, 2023 at 12:03=E2=80=AFAM Martin Li=C5=A1ka = wrote: > > On 4/27/23 04:32, H.J. Lu via Gcc-patches wrote: > > cherry-pick: > > Can you please wait a few days before it? I'm going to merge again > in the near future after https://reviews.llvm.org/D144073 got handled. Sure. > Martin > > > > > 05551c658269 [sanitizer] Correct alignment of x32 __sanitizer_siginfo > > > > * sanitizer_common/sanitizer_platform_limits_posix.h > > (__sanitizer_siginfo_pad): Use u64 to align x32 > > __sanitizer_siginfo to 8 bytes. > > --- > > .../sanitizer_common/sanitizer_platform_limits_posix.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_po= six.h b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h > > index cfca7bdedbe..e6f298c26e1 100644 > > --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h > > +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h > > @@ -578,8 +578,13 @@ struct __sanitizer_sigset_t { > > #endif > > > > struct __sanitizer_siginfo_pad { > > +#if SANITIZER_X32 > > + // x32 siginfo_t is aligned to 8 bytes. > > + u64 pad[128 / sizeof(u64)]; > > +#else > > // Require uptr, because siginfo_t is always pointer-size aligned on= Linux. > > uptr pad[128 / sizeof(uptr)]; > > +#endif > > }; > > > > #if SANITIZER_LINUX > --=20 H.J.