Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3518971imm; Mon, 6 Aug 2018 06:17:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcqzw/KvDB6izs+WqjPlD6ZkFVWU/O5T3RwYh6WJq/3t8dJxBClhYFZwkq2u1rfSHbAsa22 X-Received: by 2002:a63:f18:: with SMTP id e24-v6mr14649386pgl.320.1533561437869; Mon, 06 Aug 2018 06:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533561437; cv=none; d=google.com; s=arc-20160816; b=zRAcBVQ083mc2pimK3zw40zZqjbzlUy3CUlSicU3ex2J6qtwtq7vhBvkbNrUQp9MY4 xjzwQqAzJ4O6t+XHz8qJ5NLzeAIZtAENd8BY2nwvtOVOfYU8ipvWhJk44BrAHI6GOJ77 3HYNhwXnnQsMYx9exzynh0kpR5aiuI9Wp89+JmRqnZXL6KhIXDCMWhdp1mk2FCyg1La9 MtR9ki+0n9lDS8Kk4/9gssNtv1+pMV1+zcAJjFFZJi4geHtdX2nF6Ds13a4ArUzGVB1Q ZueLiKceFM7EzXsb4ZMpOMli8AAAY3mQ5tDeDc6zaoSCxmdCrQs1euZpFdYWJjA3OoTq HSGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-disposition :mime-version:subject:cc:to:from:date:arc-authentication-results; bh=fB3xIV3BIoiuLZHQzeDuwvpjjz7Powv5J1BFK2M3RAE=; b=Ct6r5o9lBflcKXQB4fxk9oVfiy6r9LGMNVlrP3+QHI++gzH6f4mL4wIVXTpEKDlqiW 59hVma+gLnBlzV6E2E63BfPOywq64937jEjRBy2GRlPa8Xuno0Nf9u0m0+LN1T3kXIlv HYNANEp6BM6S3a2A0G+Sm2uqnAaQjn5D+c6beHEyEnQf6eCNahVOmQ0WlK1GGuGWjSYJ rXHB+q7OT94psZb4qH29cb/LwJ5OK17bApPLZEeVYGKnR2RHxqnBhoYS5LhTEqQCxqQU jwngUG7JxqIZ+YlKFwMWzwzj4vpP3kSkEy6T+7ofByq9bBrL5KdmK/ZGrW9xUl+eAsPr 38Wg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u29-v6si11494892pga.29.2018.08.06.06.17.02; Mon, 06 Aug 2018 06:17:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730724AbeHFNzw (ORCPT + 99 others); Mon, 6 Aug 2018 09:55:52 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34934 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727109AbeHFNzw (ORCPT ); Mon, 6 Aug 2018 09:55:52 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w76BcsQi093754 for ; Mon, 6 Aug 2018 07:47:09 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kpn6h995k-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 06 Aug 2018 07:47:08 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 Aug 2018 12:47:07 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 6 Aug 2018 12:47:03 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w76Bl22r40829154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 Aug 2018 11:47:02 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9F44242041; Mon, 6 Aug 2018 14:47:11 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4D16642047; Mon, 6 Aug 2018 14:47:11 +0100 (BST) Received: from localhost (unknown [9.152.212.144]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 6 Aug 2018 14:47:11 +0100 (BST) Date: Mon, 6 Aug 2018 13:47:00 +0200 From: Vasily Gorbik To: Mathieu Desnoyers , Shuah Khan , Thomas Gleixner Cc: Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 0/1] rseq/selftests: add __rseq_abi misalignment check MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-TM-AS-GCONF: 00 x-cbid: 18080611-0008-0000-0000-0000025DA5C2 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18080611-0009-0000-0000-000021C45555 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-06_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808060127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While implementing rseq selftest for s390 a glibc problem with tls variables alignment has been discovered. It turned out to be a general problem affecting several architectures. The bug opened for this problem: https://sourceware.org/bugzilla/show_bug.cgi?id=23403 There is no fix yet. On s390 __rseq_abi ends up aligned to 0x10 instead of 0x20 which makes rseq selftest fail every time. The change proposed adds __rseq_abi misalignment check, produces user friendly message and skips the test. Vasily Gorbik (1): rseq/selftests: add __rseq_abi misalignment check tools/testing/selftests/rseq/rseq.c | 19 +++++++++++++++++++ .../testing/selftests/rseq/run_param_test.sh | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) -- 2.18.0.13.gd42ae10