[valgrind] [Bug 447995] Valgrind segfault on power10 due to hwcap checking code

2022-02-18 Thread Carl Love
https://bugs.kde.org/show_bug.cgi?id=447995

Carl Love  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 447995] Valgrind segfault on power10 due to hwcap checking code

2022-01-20 Thread Carl Love
https://bugs.kde.org/show_bug.cgi?id=447995

Carl Love  changed:

   What|Removed |Added

 Status|REPORTED|RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 447995] Valgrind segfault on power10 due to hwcap checking code

2022-01-20 Thread Carl Love
https://bugs.kde.org/show_bug.cgi?id=447995

--- Comment #2 from Carl Love  ---
Patch committed

commit 3ea8d4327003c3cefe8e82c59be8e92dcfe1a60f (HEAD -> master, origin/master,
origin/HEAD)
Author: Carl Love 
Date:   Fri Jan 14 23:04:44 2022 +

Assorted changes to protect from side affects from the feature checking
code.

Patch contributed by Will Schmidt 

This problem was initially reported by Tulio, he assisted me in
identifying the underlying issue here.

This was discovered on a Power10, and occurs since the ISA 3.1 support
check uses the brh instruction via a hardcoded ".long 0x7f1401b6" asm
stanza.
That encoding writes to r20, and since the stanza does not contain a
clobber
the compiler did not know to save or restore that register upon entry or
exit.
The junk value remaining in r20 subsequently caused a segfault.

This patch adds clobber masks to the instruction stanzas, as well as
updates the associated comments to clarify which registers are being
used.
As part of this change I've also
- updated the .long for the cnttzw instruction to write to r20, and
  zeroed the reserved bits from that instruction so it is properly
  decoded by the disassembler.
- updated the .long for the dadd instruction to write to f0.

I've inspected the current codegen with these changes in place, and
confirm that r20 is now saved and restored on entry and exit from the
machine_get_hwcaps() function.

bugzilla 447995   Valgrind segfault on power10 due to hwcap checking code

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 447995] Valgrind segfault on power10 due to hwcap checking code

2022-01-20 Thread Carl Love
https://bugs.kde.org/show_bug.cgi?id=447995

Carl Love  changed:

   What|Removed |Added

 Attachment #145143|0   |1
is obsolete||

--- Comment #1 from Carl Love  ---
Created attachment 145669
  --> https://bugs.kde.org/attachment.cgi?id=145669=edit
updated patch to add clobber masks to inline asm statements

Updated version of the patch from Will

-- 
You are receiving this mail because:
You are watching all bug changes.

[valgrind] [Bug 447995] Valgrind segfault on power10 due to hwcap checking code

2022-01-05 Thread Will Schmidt
https://bugs.kde.org/show_bug.cgi?id=447995

Will Schmidt  changed:

   What|Removed |Added

 CC||c...@us.ibm.com,
   ||will_schm...@vnet.ibm.com

-- 
You are receiving this mail because:
You are watching all bug changes.