From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5360E3858D35; Tue, 21 May 2024 08:19:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5360E3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716279558; bh=z3/8Vy8qoLPVnNTd6iucZovYsyMrypmDNy9vE+xBJy0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ggenyACzEjxMOR7EoXSdQK4wvxJAaazo68Wfs5pQ8zJDgsEsKOMQmNj/xn7XkhJTK DF86w0lbXM5V3104gg5SG+SuptvN6oQlrW3szwWJfjMAnTCxE+0rPdDEM0tAw9LCfP +BKqly32qi5SH4NYNh75aXx9cU5hNL2wWF31pdiM= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/111736] Address sanitizer is not compatible with named address spaces Date: Tue, 21 May 2024 08:19:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: addr-space, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111736 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #45 from Uro=C5=A1 Bizjak --- Yes, I can confirm the Oops due to sanitization of %gs: prefixed variable: 307eee: 48 c7 c0 00 00 00 00 mov $0x0,%rax 307ef1: R_X86_64_32S cpu_tlbstate_shared 307ef5: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 307efc: fc ff df=20 307eff: 48 c1 e8 03 shr $0x3,%rax 307f03: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax 307f07: 84 c0 test %al,%al 307f09: 74 06 je 307f11 <__text_poke+0x4a1> 307f0b: 0f 8e f0 07 00 00 jle 308701 <__text_poke+0xc91> 307f11: 65 44 0f b6 35 00 00 movzbl %gs:0x0(%rip),%r14d # 307f1a <__text_poke+0x4aa> 307f18: 00 00=20 307f16: R_X86_64_PC32 cpu_tlbstate_shared-0x4=