Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp716577yba; Wed, 24 Apr 2019 08:28:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBiFxM+cv35hfQuiI1wY55Mok+b/QfaATzuAXSpSGIxTuDG9/YgJzK6XmlM+bNVtI/UqVR X-Received: by 2002:a62:6845:: with SMTP id d66mr8754631pfc.21.1556119737913; Wed, 24 Apr 2019 08:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556119737; cv=none; d=google.com; s=arc-20160816; b=wlcFtpfY4dHVfy9Svs1D+Ptb0hs5AkYCAQw1koJbz6vNZCIcLWE4XX2mkbjCD7cayC EhSSScBfCn3crqQreOLA7Diz7O8RALjUjGiLQJn4RvgEPIP8tFiEYRyu6TR5+Xj+6ujv t0ngUvl1DdV04eOVGjROT02Y8bWaIoHTiUihRQTm/RsX8CevI5ozoBLIYf4LcqQJ7j0q Ca/oA+BiyzJa5MT6DbP8g3VwahouxlcTl8sXHqOTvbit0Qd7hsOA/8yRv0sUG9XAR4oX ThYuE57eZtIRIbI1YDZ211LWLEUgfTrrGIwJ2iqX57GzUER8rZMbU5B61hU3s70bbVFh GSjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=WV0aLN7pvahQr5sToC9GKACvUzvM6D05m4T4cPR6y/0=; b=BqMhq0XtUzSuwpcrFesxVdy8ZMECo3MSkK4EYdA4+JmelXLTrNSWiW6l9UOb8wJQBt HiJg+Ep1nTma4kQ51ZkheYPbnVbezCJQkggF48f2JLsNlUwDy9geU6VpeWltlW0M2O6I 8a7rwyxiOvhnh4gtYCoWU6ujf8wPuSwA1xOdC3LMeJpLuba4Z0NT/akwVGFEd/lEheHx NVKk7iXSbRIsdUWplstekA3erVHRgRLZotL7iWNlrECv7hE9UCvzZChya925MiWYQ7Cp qpyDNdFGKinylhvM5CeA3bixcj+VDDXNEg8GD9rxmF6/a0RyVY/zWInZ+A4d84oqUvn6 46sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=NYYnydFS; 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 w19si19255644ply.103.2019.04.24.08.28.42; Wed, 24 Apr 2019 08:28:57 -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=NYYnydFS; 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 S1731217AbfDXPZm (ORCPT + 99 others); Wed, 24 Apr 2019 11:25:42 -0400 Received: from mail.efficios.com ([167.114.142.138]:58050 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731190AbfDXPZk (ORCPT ); Wed, 24 Apr 2019 11:25:40 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 582311D91AC; Wed, 24 Apr 2019 11:25:38 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id xp10Gm7esdl9; Wed, 24 Apr 2019 11:25:38 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 0B1ED1D91A2; Wed, 24 Apr 2019 11:25:38 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 0B1ED1D91A2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1556119538; bh=WV0aLN7pvahQr5sToC9GKACvUzvM6D05m4T4cPR6y/0=; h=From:To:Date:Message-Id; b=NYYnydFSY5ix74g7uTysol7rkU5AcI88nIQN7QW/4UmEmEC4ru52xyF8lsVQdgSyl Q7vesXrqoRgZPCIon4NtshUHSOcfvh1wNGKv/tvSHDOPSwgK/wcGMLpcCWEPCm4w5t 1dtJGOFVmt6bgw1XXo5DTHpQeW9rarIU/bhmV2Bt4m7o7dS5QkkMP2Eoipq3jygJzn cWHestucfEAIMhfItGgIZSLs5ZObiE8AgaCOnbRmJhyVWmueXS0zjIeCYkNoiINMgc THNid+8HP2HVVxU+2H+e6FF5Q4s8m40Ffl16iw88k7UGmOWsYAAWKiOhgW2A4GwE7v o4s8D7PCHY4Og== 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 zs56E0wFIrbj; Wed, 24 Apr 2019 11:25:37 -0400 (EDT) Received: from thinkos.internal.efficios.com (192-222-157-41.qc.cable.ebox.net [192.222.157.41]) by mail.efficios.com (Postfix) with ESMTPSA id 64BA21D9185; Wed, 24 Apr 2019 11:25:37 -0400 (EDT) From: Mathieu Desnoyers To: Peter Zijlstra , "Paul E . McKenney" , Boqun Feng Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Thomas Gleixner , Andy Lutomirski , Dave Watson , Paul Turner , Andrew Morton , Russell King , Ingo Molnar , "H . Peter Anvin" , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , Shuah Khan , Martin Schwidefsky , Mathieu Desnoyers Subject: [RFC PATCH for 5.2 06/10] rseq/selftests: s390: use trap4 for RSEQ_SIG Date: Wed, 24 Apr 2019 11:24:58 -0400 Message-Id: <20190424152502.14246-7-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190424152502.14246-1-mathieu.desnoyers@efficios.com> References: <20190424152502.14246-1-mathieu.desnoyers@efficios.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Schwidefsky Use trap4 as the guard instruction for the restartable sequence abort handler. Signed-off-by: Martin Schwidefsky Signed-off-by: Mathieu Desnoyers --- tools/testing/selftests/rseq/rseq-s390.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/rseq/rseq-s390.h b/tools/testing/selftests/rseq/rseq-s390.h index 7c4f3a70b6c7..1d05c5187ae6 100644 --- a/tools/testing/selftests/rseq/rseq-s390.h +++ b/tools/testing/selftests/rseq/rseq-s390.h @@ -1,6 +1,13 @@ /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ -#define RSEQ_SIG 0x53053053 +/* + * RSEQ_SIG uses the trap4 instruction. As Linux does not make use of the + * access-register mode nor the linkage stack this instruction will always + * cause a special-operation exception (the trap-enabled bit in the DUCT + * is and will stay 0). The instruction pattern is + * b2 ff 0f ff trap4 4095(%r0) + */ +#define RSEQ_SIG 0xB2FF0FFF #define rseq_smp_mb() __asm__ __volatile__ ("bcr 15,0" ::: "memory") #define rseq_smp_rmb() rseq_smp_mb() -- 2.11.0