Re: [tip:core/rseq] rseq/selftests/x86: Work around bogus gcc-8 optimisation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip:core/rseq] rseq/selftests/x86: Work around bogus gcc-8 optimisation
- From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
- Date: Fri, 19 Apr 2019 17:13:21 -0400 (EDT)
- Cc: "H. Peter Anvin" <hpa@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Will Deacon <will.deacon@xxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Chris Lameter <cl@xxxxxxxxx>, shuah <shuah@xxxxxxxxxx>, Josh Triplett <josh@xxxxxxxxxxxxxxxx>, Dave Watson <davejwatson@xxxxxx>, Boqun Feng <boqun.feng@xxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxxx>, Paul Turner <pjt@xxxxxxxxxx>, Ben Maurer <bmaurer@xxxxxx>, Joel Fernandes <joelaf@xxxxxxxxxx>, Michael Kerrisk <mtk.manpages@xxxxxxxxx>, rostedt <rostedt@xxxxxxxxxxx>, linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>, Andy Lutomirski <luto@xxxxxxxxxxxxxx>, Paul McKenney <paulmck@xxxxxxxxxxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, linux-tip-commits@xxxxxxxxxxxxxxx
- In-reply-to: <CAHk-=wieuxm+B-Bmhcy+Sszqs6h=iTNMEP=TeSBFKxtnEsKHUg@mail.gmail.com>
- References: <20190419145327.12736-1-mathieu.desnoyers@efficios.com> <tip-3c0f67279fb57568b436dece3aa20651aa6c5a05@git.kernel.org> <CAHk-=wieuxm+B-Bmhcy+Sszqs6h=iTNMEP=TeSBFKxtnEsKHUg@mail.gmail.com>
----- On Apr 19, 2019, at 2:53 PM, Linus Torvalds torvalds@xxxxxxxxxxxxxxxxxxxx wrote:
> On Fri, Apr 19, 2019 at 11:46 AM tip-bot for Mathieu Desnoyers
> <tipbot@xxxxxxxxx> wrote:
>>
>> rseq/selftests/x86: Work around bogus gcc-8 optimisation
>>
>> At least the following versions of gcc-8:
>>
>> - gcc version 8.0.1 20180414 (experimental) [trunk revision 259383] (Ubuntu
>> 8-20180414-1ubuntu2)
>> - gcc 8.2.0-7ubuntu1 (Ubuntu 18.10 (Cosmic)),
>>
>> generate broken assembler with asm goto that have a thread-local storage
>> "m" input operand on both x86-32 and x86-64. For instance:
>
> Is there a gcc bugzilla for this? Shouldn't that be mentioned here?
My google-fu did not find any match, so I don't think so. I'll open one
shortly.
>
> Also, we use "asm goto" together with "m" all the time in the kernel.
> In fact, it's the most common case, with the RMWcc ops being generated
> with that. I realize that we don't use the gcc thread-local storage
> for them (we often do use our *own* thread-local storage), but it
> would be good to have that gcc bugzilla to see why it can only affect
> those user level "__thread" cases.
Indeed, it would be good to investigate and understand all problematic
scenarios triggering this bug.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]