public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424
@ 2021-08-03  9:23 clyon at gcc dot gnu.org
  2021-08-03  9:37 ` [Bug sanitizer/101744] " schwab@linux-m68k.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: clyon at gcc dot gnu.org @ 2021-08-03  9:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

            Bug ID: 101744
           Summary: [12 regression] hwasan new failures since r12-2424
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

Since r12-2424, I've noticed new failures in hwasan tests on aarch64 (I'm
testing a cross-compiler using QEMU, but it seems the same failures are
reported by native testers on gcc-testresults)

The patch seems to have enabled many new tests, some of which fail:

    c-c++-common/hwasan/alloca-gets-different-tag.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  execution test
    c-c++-common/hwasan/alloca-outside-caught.c   -O0  output pattern test
    c-c++-common/hwasan/alloca-outside-caught.c   -O1  output pattern test
    c-c++-common/hwasan/alloca-outside-caught.c   -O2  output pattern test
    c-c++-common/hwasan/alloca-outside-caught.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/alloca-outside-caught.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/alloca-outside-caught.c   -O3 -g  output pattern test
    c-c++-common/hwasan/alloca-outside-caught.c   -Os  output pattern test
    c-c++-common/hwasan/asan-pr70541.c   -O0  output pattern test
    c-c++-common/hwasan/bitfield-2.c   -O0  output pattern test
    c-c++-common/hwasan/bitfield-2.c   -O1  output pattern test
    c-c++-common/hwasan/bitfield-2.c   -O2  output pattern test
    c-c++-common/hwasan/bitfield-2.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    c-c++-common/hwasan/bitfield-2.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/bitfield-2.c   -O3 -g  output pattern test
    c-c++-common/hwasan/bitfield-2.c   -Os  output pattern test
    c-c++-common/hwasan/halt_on_error-1.c   -O0  output pattern test
    c-c++-common/hwasan/halt_on_error-1.c   -O1  output pattern test
    c-c++-common/hwasan/halt_on_error-1.c   -O2  output pattern test
    c-c++-common/hwasan/halt_on_error-1.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    c-c++-common/hwasan/halt_on_error-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/halt_on_error-1.c   -O3 -g  output pattern test
    c-c++-common/hwasan/halt_on_error-1.c   -Os  output pattern test
    c-c++-common/hwasan/heap-overflow.c   -O0  output pattern test
    c-c++-common/hwasan/heap-overflow.c   -O1  output pattern test
    c-c++-common/hwasan/heap-overflow.c   -O2  output pattern test
    c-c++-common/hwasan/heap-overflow.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    c-c++-common/hwasan/heap-overflow.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/heap-overflow.c   -O3 -g  output pattern test
    c-c++-common/hwasan/heap-overflow.c   -Os  output pattern test
    c-c++-common/hwasan/hwasan-thread-access-parent.c   -O0  output pattern
test
    c-c++-common/hwasan/hwasan-thread-access-parent.c   -O1  output pattern
test
    c-c++-common/hwasan/hwasan-thread-access-parent.c   -O2  output pattern
test
    c-c++-common/hwasan/hwasan-thread-access-parent.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/hwasan-thread-access-parent.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/hwasan-thread-access-parent.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/hwasan-thread-access-parent.c   -Os  output pattern
test
    c-c++-common/hwasan/hwasan-thread-basic-failure.c   -O0  output pattern
test
    c-c++-common/hwasan/hwasan-thread-basic-failure.c   -O1  output pattern
test
    c-c++-common/hwasan/hwasan-thread-basic-failure.c   -O2  output pattern
test
    c-c++-common/hwasan/hwasan-thread-basic-failure.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/hwasan-thread-basic-failure.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/hwasan-thread-basic-failure.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/hwasan-thread-basic-failure.c   -Os  output pattern
test
    c-c++-common/hwasan/hwasan-thread-clears-stack.c   -O0  output pattern test
    c-c++-common/hwasan/hwasan-thread-clears-stack.c   -O1  output pattern test
    c-c++-common/hwasan/hwasan-thread-clears-stack.c   -O2  output pattern test
    c-c++-common/hwasan/hwasan-thread-clears-stack.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/hwasan-thread-clears-stack.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/hwasan-thread-clears-stack.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/hwasan-thread-clears-stack.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-1.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-1.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-1.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-1.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-1.c   -O3 -g  output pattern test
    c-c++-common/hwasan/large-aligned-1.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-0.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-0.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-0.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-0.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-0.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-0.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-0.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-1.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-1.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-1.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-1.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-1.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-1.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-1.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-2.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-2.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-2.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-2.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-2.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-2.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-2.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-3.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-3.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-3.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-3.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-3.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-3.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-3.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-4.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-4.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-4.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-4.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-4.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-4.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-4.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-5.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-5.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-5.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-5.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-5.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-5.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-5.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-6.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-6.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-6.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-6.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-6.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-6.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-6.c   -Os  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-7.c   -O0  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-7.c   -O1  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-7.c   -O2  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-7.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-7.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/large-aligned-untagging-7.c   -O3 -g  output pattern
test
    c-c++-common/hwasan/large-aligned-untagging-7.c   -Os  output pattern test
    c-c++-common/hwasan/sanity-check-pure-c.c   -O0  output pattern test
    c-c++-common/hwasan/sanity-check-pure-c.c   -O1  output pattern test
    c-c++-common/hwasan/sanity-check-pure-c.c   -O2  output pattern test
    c-c++-common/hwasan/sanity-check-pure-c.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/sanity-check-pure-c.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/sanity-check-pure-c.c   -O3 -g  output pattern test
    c-c++-common/hwasan/sanity-check-pure-c.c   -Os  output pattern test
    c-c++-common/hwasan/setjmp-longjmp-1.c   -O0  output pattern test
    c-c++-common/hwasan/setjmp-longjmp-1.c   -O1  output pattern test
    c-c++-common/hwasan/setjmp-longjmp-1.c   -O2  output pattern test
    c-c++-common/hwasan/setjmp-longjmp-1.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    c-c++-common/hwasan/setjmp-longjmp-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/setjmp-longjmp-1.c   -O3 -g  output pattern test
    c-c++-common/hwasan/setjmp-longjmp-1.c   -Os  output pattern test
    c-c++-common/hwasan/stack-tagging-basic-1.c   -O0  output pattern test
    c-c++-common/hwasan/stack-tagging-basic-1.c   -O1  output pattern test
    c-c++-common/hwasan/stack-tagging-basic-1.c   -O2  output pattern test
    c-c++-common/hwasan/stack-tagging-basic-1.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/stack-tagging-basic-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/stack-tagging-basic-1.c   -O3 -g  output pattern test
    c-c++-common/hwasan/stack-tagging-basic-1.c   -Os  output pattern test
    c-c++-common/hwasan/use-after-free.c   -O0  output pattern test
    c-c++-common/hwasan/use-after-free.c   -O1  output pattern test
    c-c++-common/hwasan/use-after-free.c   -O2  output pattern test
    c-c++-common/hwasan/use-after-free.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    c-c++-common/hwasan/use-after-free.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/use-after-free.c   -O3 -g  output pattern test
    c-c++-common/hwasan/use-after-free.c   -Os  output pattern test
    c-c++-common/hwasan/vararray-outside-caught.c   -O0  output pattern test
    c-c++-common/hwasan/vararray-outside-caught.c   -O1  output pattern test
    c-c++-common/hwasan/vararray-outside-caught.c   -O2  output pattern test
    c-c++-common/hwasan/vararray-outside-caught.c   -O2 -flto
-fno-use-linker-plugin -flto-partition=none  output pattern test
    c-c++-common/hwasan/vararray-outside-caught.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
    c-c++-common/hwasan/vararray-outside-caught.c   -O3 -g  output pattern test
    c-c++-common/hwasan/vararray-outside-caught.c   -Os  output pattern test
    gcc.dg/hwasan/nested-functions-1.c   -O0  output pattern test
    gcc.dg/hwasan/nested-functions-1.c   -O1  output pattern test
    gcc.dg/hwasan/nested-functions-1.c   -O2  output pattern test
    gcc.dg/hwasan/nested-functions-1.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    gcc.dg/hwasan/nested-functions-1.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    gcc.dg/hwasan/nested-functions-1.c   -O3 -g  output pattern test
    gcc.dg/hwasan/nested-functions-1.c   -Os  output pattern test
    gcc.dg/hwasan/nested-functions-2.c   -O0  output pattern test
    gcc.dg/hwasan/nested-functions-2.c   -O1  output pattern test
    gcc.dg/hwasan/nested-functions-2.c   -O2  output pattern test
    gcc.dg/hwasan/nested-functions-2.c   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  output pattern test
    gcc.dg/hwasan/nested-functions-2.c   -O2 -flto -fuse-linker-plugin
-fno-fat-lto-objects  output pattern test
    gcc.dg/hwasan/nested-functions-2.c   -O3 -g  output pattern test
    gcc.dg/hwasan/nested-functions-2.c   -Os  output pattern test

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
@ 2021-08-03  9:37 ` schwab@linux-m68k.org
  2021-08-03 10:46 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2021-08-03  9:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
*** Bug 101745 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
  2021-08-03  9:37 ` [Bug sanitizer/101744] " schwab@linux-m68k.org
@ 2021-08-03 10:46 ` rguenth at gcc dot gnu.org
  2021-08-03 12:26 ` marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-03 10:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
             Target|                            |aarch64

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
  2021-08-03  9:37 ` [Bug sanitizer/101744] " schwab@linux-m68k.org
  2021-08-03 10:46 ` rguenth at gcc dot gnu.org
@ 2021-08-03 12:26 ` marxin at gcc dot gnu.org
  2021-08-04  7:08 ` crazylht at gmail dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-03 12:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matmal01 at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
I can see just few failures on a native system:

FAIL: c-c++-common/hwasan/alloca-gets-different-tag.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  execution test
FAIL: c-c++-common/hwasan/alloca-outside-caught.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
FAIL: c-c++-common/hwasan/alloca-gets-different-tag.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  execution test
FAIL: c-c++-common/hwasan/alloca-outside-caught.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test

CCing Matthew

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-08-03 12:26 ` marxin at gcc dot gnu.org
@ 2021-08-04  7:08 ` crazylht at gmail dot com
  2021-08-04 12:51 ` crazylht at gmail dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: crazylht at gmail dot com @ 2021-08-04  7:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

Hongtao.liu <crazylht at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |crazylht at gmail dot com

--- Comment #3 from Hongtao.liu <crazylht at gmail dot com> ---
x86 also get 2 new failures
```
FAIL: c-c++-common/hwasan/alloca-gets-different-tag.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  execution test
FAIL: c-c++-common/hwasan/alloca-outside-caught.c   -O2 -flto
-fuse-linker-plugin -fno-fat-lto-objects  output pattern test
``` 

And failure is because pointer passes to __hwasan_tag_memory is supposed to be
untagged(it will call TagMemoryAligned and then call MemToShadow where it shift
the address w/ kShadowScale(here is 4).

inline uptr MemToShadow(uptr untagged_addr) {
  return (untagged_addr >> kShadowScale) + GetShadowOffset();
}

And for local arrays which need to be tagged, pointer passed to
__hwasan_tag_memory is rsp+offset where rsp is not tagged, and this should be
ok, but sometimes gcc will do optimization to convert rsp+offset to rbp+offset,
but rbp is tagged, then it will raise an exception of  SGEV SGEV for illegal
address.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-08-04  7:08 ` crazylht at gmail dot com
@ 2021-08-04 12:51 ` crazylht at gmail dot com
  2021-08-04 14:10 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: crazylht at gmail dot com @ 2021-08-04 12:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Hongtao.liu from comment #3)
> x86 also get 2 new failures
> ```
> FAIL: c-c++-common/hwasan/alloca-gets-different-tag.c   -O2 -flto
> -fuse-linker-plugin -fno-fat-lto-objects  execution test
> FAIL: c-c++-common/hwasan/alloca-outside-caught.c   -O2 -flto
> -fuse-linker-plugin -fno-fat-lto-objects  output pattern test
> ``` 
Just want to clarify that it's our developping lam version which is at
https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-08-04 12:51 ` crazylht at gmail dot com
@ 2021-08-04 14:10 ` marxin at gcc dot gnu.org
  2021-08-05  1:09 ` crazylht at gmail dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-04 14:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
> > ``` 
> Just want to clarify that it's our developping lam version which is at
> https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master

What can you see for a vanilla GCC compiler?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-08-04 14:10 ` marxin at gcc dot gnu.org
@ 2021-08-05  1:09 ` crazylht at gmail dot com
  2021-08-05 16:44 ` matmal01 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: crazylht at gmail dot com @ 2021-08-05  1:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

--- Comment #6 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Martin Liška from comment #5)
> > > ``` 
> > Just want to clarify that it's our developping lam version which is at
> > https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master
> 
> What can you see for a vanilla GCC compiler?

hwasan is not enabled by x86 on the trunk which means there must be no impact
for a vanilla x86 GCC compiler.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-08-05  1:09 ` crazylht at gmail dot com
@ 2021-08-05 16:44 ` matmal01 at gcc dot gnu.org
  2021-12-19 17:06 ` pinskia at gcc dot gnu.org
  2022-03-08 14:08 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: matmal01 at gcc dot gnu.org @ 2021-08-05 16:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

--- Comment #7 from Matthew Malcomson <matmal01 at gcc dot gnu.org> ---
Hi there,

I didn't check all the new tests that Christophe mentioned, but all those I
checked had `dg-require-effective-target hwaddress_exec` in them.

The test that determines that effective target should only pass with a modern
enough kernel (one that supports passing tagged pointers to its syscalls).
It is still failing on my native AArch64 machine.

For anyone that is seeing them -- what kernel version are you running?
If your kernel has not changed could you manually run the check and see if it
passes and why?

I've unfortunately lost my testing environment.  I'm working on getting it back
but will be a while before I can see if I can reproduce the failures on a
machine with the required kernel.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2021-08-05 16:44 ` matmal01 at gcc dot gnu.org
@ 2021-12-19 17:06 ` pinskia at gcc dot gnu.org
  2022-03-08 14:08 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-19 17:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this is fixed.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug sanitizer/101744] [12 regression] hwasan new failures since r12-2424
  2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2021-12-19 17:06 ` pinskia at gcc dot gnu.org
@ 2022-03-08 14:08 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-08 14:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101744

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-03-08 14:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03  9:23 [Bug sanitizer/101744] New: [12 regression] hwasan new failures since r12-2424 clyon at gcc dot gnu.org
2021-08-03  9:37 ` [Bug sanitizer/101744] " schwab@linux-m68k.org
2021-08-03 10:46 ` rguenth at gcc dot gnu.org
2021-08-03 12:26 ` marxin at gcc dot gnu.org
2021-08-04  7:08 ` crazylht at gmail dot com
2021-08-04 12:51 ` crazylht at gmail dot com
2021-08-04 14:10 ` marxin at gcc dot gnu.org
2021-08-05  1:09 ` crazylht at gmail dot com
2021-08-05 16:44 ` matmal01 at gcc dot gnu.org
2021-12-19 17:06 ` pinskia at gcc dot gnu.org
2022-03-08 14:08 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).