Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2333186imm; Thu, 27 Sep 2018 11:02:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV63T22C0HMRZ37VxUba/KmdK4TgmEQWaZJ/1skrXnnN3thHfRBJjo3zHMzzsfo5JKkuE333P X-Received: by 2002:a62:898d:: with SMTP id n13-v6mr12510012pfk.57.1538071369460; Thu, 27 Sep 2018 11:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538071369; cv=none; d=google.com; s=arc-20160816; b=te3r7vvcJhEDyx/jlU+rPxp8TtG+QlrcAqGT714rpUrBcNzfAU0TFrN9RGihYV2nyJ 4W8WQ29mgcMpiRqspA/XONo6vt2AWo/1S9C8xIBm6g1Z8kY65c2V0ubiNKi/pVuu0/Uf g45OKjUKQAiT4XfonaCXbTIs2LZqMqGVNf5e/niueSrbBQYx5I/An3tzgieOtuhaUhP9 rVkCTc7avggPa0WPKbUIBuQjefJXe1klDqrQzTduGZD3XK+WNaAjnAe7ftVL9LP4WWFD 5uWQEpqWPETAKwHp9m5fBadxDHfvwPVklKvNOKFVSZwndPXGJGAlf2P74ui243vZ+zIw BNpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=yXlhQ35jnZf6icPPCSOWEouOm7NFShHC25nup+qr6Qw=; b=vhVdk1FQbgNew+myGv8LNdcRhZYuVA9gnufNNiKJQhKNuBZyfRZlkvcc36CyOM7rgS +EoKmozIXiN05JJ4NjfhQx69qyE59xYRjV2PISQzQwEenp5SsJRfBRy2rLxFdEZb0Ijr D0x1Ey1FuPJmST58NqUTYJ+jGoPY1TeZDnCbNFDLnKSZfkUPsdd6ID0nhIwqCSo4gE6s kXM8tGM0l5AEjp6WoTUVkcyY7Mg4WSUvY6lSDCactBDSGk0Q0s6mu6/c3+IoltaTk76F yHmVVpLiMC+2mQbXL2F851XtGR9En6GOrtNU8vAamFIVKV/YWbsWzHkFepoBnWEQtjDp 6cbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=cePcWO8D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14-v6si2631113pfa.44.2018.09.27.11.02.17; Thu, 27 Sep 2018 11:02:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=cePcWO8D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728401AbeI1AVh (ORCPT + 99 others); Thu, 27 Sep 2018 20:21:37 -0400 Received: from mail.efficios.com ([167.114.142.138]:41714 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727522AbeI1AVh (ORCPT ); Thu, 27 Sep 2018 20:21:37 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id AF9F4242677; Thu, 27 Sep 2018 14:02:09 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id l0Q7b_oDttTC; Thu, 27 Sep 2018 14:02:08 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 8BD3224266F; Thu, 27 Sep 2018 14:02:08 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 8BD3224266F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1538071328; bh=yXlhQ35jnZf6icPPCSOWEouOm7NFShHC25nup+qr6Qw=; h=Date:From:To:Message-ID:MIME-Version; b=cePcWO8Dak50DE69JL99ikvnNySdMt3Yqgrz6BMdzNKBKUatC4PWRZ/VIU60zIdhS JNfqrx5b66pXg3kpz43cTXO3jK6MAUgzElWb4CrlV+bpiWWw7JAQ29VvuUfT2bNojM t1aYSqXQQOQH+HfwM8GptgJemKytnRVzFcl8R4qwHSoGdkWD6CEzDrUozfsxjvYC8R aJbJEswf01d4CVFWFeXe7Ywd8JwnU3tc7hBL05qsjPs4bvnOq/j/ilXD87kAMKBc8B qKDHzony/uVITcw/+6JST/666wgeIvWAJ85tLdcqu8xB2ttYKa2IeVZS4e2WAJ2Kte XXJr5g0tVka3w== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id ucwMxwGiL1Or; Thu, 27 Sep 2018 14:02:08 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id 6A5A4242668; Thu, 27 Sep 2018 14:02:08 -0400 (EDT) Date: Thu, 27 Sep 2018 14:02:08 -0400 (EDT) From: Mathieu Desnoyers To: shuah kh Cc: rostedt , Thomas Gleixner , Shuah Khan , linux-kselftest , linux-kernel , linux-api , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , Paul Turner , Andrew Morton , Russell King , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Chris Lameter , Ben Maurer , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , stable , shuah Message-ID: <44897232.11546.1538071328396.JavaMail.zimbra@efficios.com> In-Reply-To: References: <20180918135328.32034-1-mathieu.desnoyers@efficios.com> <1367962117.10271.1537897176578.JavaMail.zimbra@efficios.com> <20180927092235.77282e35@vmware.local.home> Subject: Re: [PATCH] rseq/selftests: fix parametrized test with -fpie MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.142.138] X-Mailer: Zimbra 8.8.9_GA_3019 (ZimbraWebClient - FF52 (Linux)/8.8.9_GA_3019) Thread-Topic: rseq/selftests: fix parametrized test with -fpie Thread-Index: eUxmozW8H4gJdhHOEwUVY+Vn8yzteA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Sep 27, 2018, at 9:58 AM, Shuah Khan shuah.kh@samsung.com wrote: > On 09/27/2018 07:22 AM, Steven Rostedt wrote: >> On Tue, 25 Sep 2018 13:39:36 -0400 (EDT) >> Mathieu Desnoyers wrote: >> >>> ----- On Sep 18, 2018, at 9:53 AM, Mathieu Desnoyers >>> mathieu.desnoyers@efficios.com wrote: >>> >>>> 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. >>> >>> Should this fix go through tip or the selftests tree ? >>> >> >> I usually have changes like this pulled through Shuah's tree with an >> ack from the maintainer of the code that it tests. >> >> -- Steve >> > > Right that is what I prefer. I usually wait for an Ack. I can pull this > in. I am maintainer of the code that it tests as well, so being both author of the selftest patch and giving an ack to it seems a bit silly. :) Other rseq co-maintainers could weight in though: Peter, Paul, and Boqun. Thanks, Mathieu > > thanks, > -- Shuah > > -- > Shuah Khan > Sr. Linux Kernel Developer > Open Source Innovation Group > Samsung Research America(Silicon Valley) > shuah.kh@samsung.com -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com