[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dccfbfa9-8844-7763-a85d-b30c99cb270b@kernel.org>
Date: Thu, 4 Oct 2018 13:18:01 -0600
From: Shuah Khan <shuah@...nel.org>
To: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
stable@...r.kernel.org, gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
Joel Fernandes <joelaf@...gle.com>,
Peter Zijlstra <peterz@...radead.org>,
Catalin Marinas <catalin.marinas@....com>,
Dave Watson <davejwatson@...com>,
Will Deacon <will.deacon@....com>,
Andi Kleen <andi@...stfloor.org>,
linux-kselftest@...r.kernel.org, "H . Peter Anvin" <hpa@...or.com>,
Chris Lameter <cl@...ux.com>,
Russell King <linux@....linux.org.uk>,
Michael Kerrisk <mtk.manpages@...il.com>,
"Paul E . McKenney" <paulmck@...ux.vnet.ibm.com>,
Paul Turner <pjt@...gle.com>,
Boqun Feng <boqun.feng@...il.com>,
Josh Triplett <josh@...htriplett.org>,
Steven Rostedt <rostedt@...dmis.org>,
Ben Maurer <bmaurer@...com>,
Andy Lutomirski <luto@...capital.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Shuah Khan <shuah@...nel.org>
Subject: Re: [PATCH backport for 4.18] rseq/selftests: fix parametrized test
with -fpie
On 10/04/2018 01:04 PM, Mathieu Desnoyers wrote:
> commit ce01a1575f45bf319e374592656441021a7f5823 upstream.
>
> On x86-64, the parametrized selftest code for rseq crashes with a
> segmentation fault when compiled with -fpie. This happens when the
> param_test binary is loaded at an address beyond 32-bit on x86-64.
>
> The issue is caused by use of a 32-bit register to hold the address
> of the loop counter variable.
>
> Fix this by using a 64-bit register to calculate the address of the
> loop counter variables as an offset from rip.
>
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
> Acked-by: "Paul E . McKenney" <paulmck@...ux.vnet.ibm.com>
Thanks for q quick back-port.
Acked-by: Shuah Khan (Samsung OSG) <shuah@...nel.org>
thanks,
-- Shuah
Powered by blists - more mailing lists