public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/105471] New: A few hwasan failures
@ 2022-05-04  8:04 marxin at gcc dot gnu.org
  2022-05-04  8:45 ` [Bug sanitizer/105471] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-04  8:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105471
           Summary: A few hwasan failures
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin 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, matmal01 at gcc dot gnu.org
  Target Milestone: ---

I've just noticed there are some test failures that are there likely for some
time:

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

==52332==ERROR: HWAddressSanitizer: SEGV on unknown address 0x205001fffffcad
(pc 0x40000006de20 bp 0xffffffffca50 sp 0xffffffffca50 T52332)
==52332==The signal is caused by a WRITE memory access.
    #0 0x40000006de20 in __sanitizer::internal_memset(void*, int, unsigned
long) ../../../../libsanitizer/sanitizer_common/sanitizer_libc.cpp:94
    #1 0x4000000603f0 in __hwasan::TagMemoryAligned(unsigned long, unsigned
long, unsigned char) ../../../../libsanitizer/hwasan/hwasan_linux.cpp:428
    #2 0x400838 in alloca_different_tag
/home/marxin/Programming/gcc/gcc/testsuite/c-c++-common/hwasan/alloca-gets-different-tag.c:27
    #3 0x400688 in main
/home/marxin/Programming/gcc/gcc/testsuite/c-c++-common/hwasan/alloca-gets-different-tag.c:61
    #4 0x40000073b280 in __libc_start_call_main (/lib64/libc.so.6+0x2b280)
    #5 0x40000073b358 in __libc_start_main@@GLIBC_2.34
(/lib64/libc.so.6+0x2b358)
    #6 0x4006ec in _start
(/home/marxin/Programming/gcc/objdir/gcc/testsuite/gcc4/alloca-gets-different-tag.exe+0x4006ec)

HWAddressSanitizer can not provide additional info.
SUMMARY: HWAddressSanitizer: SEGV
../../../../libsanitizer/sanitizer_common/sanitizer_libc.cpp:94 in
__sanitizer::internal_memset(void*, int, unsigned long)
==52332==ABORTING
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
Output was:
HWAddressSanitizer:DEADLYSIGNAL
==53458==ERROR: HWAddressSanitizer: SEGV on unknown address 0x105001fffffcc8
(pc 0x40000006de20 bp 0xffffffffcc10 sp 0xffffffffcc10 T53458)
==53458==The signal is caused by a WRITE memory access.
    #0 0x40000006de20 in __sanitizer::internal_memset(void*, int, unsigned
long) ../../../../libsanitizer/sanitizer_common/sanitizer_libc.cpp:94
    #1 0x4000000603f0 in __hwasan::TagMemoryAligned(unsigned long, unsigned
long, unsigned char) ../../../../libsanitizer/hwasan/hwasan_linux.cpp:428
    #2 0x400850 in check_alloca c-c++-common/hwasan/alloca-outside-caught.c:10
    #3 0x4006c8 in main c-c++-common/hwasan/alloca-outside-caught.c:18
    #4 0x40000073b280 in __libc_start_call_main (/lib64/libc.so.6+0x2b280)
    #5 0x40000073b358 in __libc_start_main@@GLIBC_2.34
(/lib64/libc.so.6+0x2b358)
    #6 0x40072c in _start
(gcc/objdir/gcc/testsuite/gcc4/alloca-outside-caught.exe+0x40072c)

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

* [Bug sanitizer/105471] A few hwasan failures
  2022-05-04  8:04 [Bug sanitizer/105471] New: A few hwasan failures marxin at gcc dot gnu.org
@ 2022-05-04  8:45 ` pinskia at gcc dot gnu.org
  2022-05-04  8:51 ` marxin at gcc dot gnu.org
  2022-05-04  9:38 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-04  8:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Is this on aarch64 and if so what page size is the kernel set to?

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

* [Bug sanitizer/105471] A few hwasan failures
  2022-05-04  8:04 [Bug sanitizer/105471] New: A few hwasan failures marxin at gcc dot gnu.org
  2022-05-04  8:45 ` [Bug sanitizer/105471] " pinskia at gcc dot gnu.org
@ 2022-05-04  8:51 ` marxin at gcc dot gnu.org
  2022-05-04  9:38 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-04  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-05-04
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Is this on aarch64 and if so what page size is the kernel set to?

Yes.

$ getconf PAGESIZE
4096

$ uname -a
Linux lnt-altra.arch.suse.cz 5.16.10-1-default #1 SMP Thu Feb 17 05:36:42 UTC
2022 (fc3f7ab) aarch64 aarch64 aarch64 GNU/Linux

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

* [Bug sanitizer/105471] A few hwasan failures
  2022-05-04  8:04 [Bug sanitizer/105471] New: A few hwasan failures marxin at gcc dot gnu.org
  2022-05-04  8:45 ` [Bug sanitizer/105471] " pinskia at gcc dot gnu.org
  2022-05-04  8:51 ` marxin at gcc dot gnu.org
@ 2022-05-04  9:38 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-04  9:38 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=101744

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe PR 101744 was closed too soon.

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

end of thread, other threads:[~2022-05-04  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04  8:04 [Bug sanitizer/105471] New: A few hwasan failures marxin at gcc dot gnu.org
2022-05-04  8:45 ` [Bug sanitizer/105471] " pinskia at gcc dot gnu.org
2022-05-04  8:51 ` marxin at gcc dot gnu.org
2022-05-04  9:38 ` pinskia 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).