From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 837F73858D3C for ; Tue, 18 Oct 2022 02:28:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 837F73858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29I1H180015405 for ; Tue, 18 Oct 2022 02:28:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=l7qyG38N6B6COWviKc0xwxikJbbWyCUQIPwIALTMWwg=; b=j1YX0Y+G4c74PUent2qknrvl5+E1L4/asjDK87sIQ+v75L3tZ+4tS+wQgXSPkKOZjQCz wmRkwFdiXxbWO/WDgT+CW6vm4M+zjl92oEGEPLmuRbL2EKqcxFM/eIqxmJ8qI6RBG9/H z3Kv8YmG48t91Gn8cpv6+RAwUnr+EA0YzVkC+OUs+U/4Nvb46sPa63dL9prK3HNOTB41 QL6eUWeYuTxCmJyV7VQjKyQLvUdB0adoDJLq5FK++GuH2ZK8kZjas6UkJtM9UJ0y2SxP f66oHiJI/y/rfXaa6Q39CGZfGYQaM8FQ3mB33a48+DiQcd0dqJg90hJg+BG/Tlq6msj8 zw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3k9bksw15v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Oct 2022 02:28:11 +0000 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 29I2R88O016559 for ; Tue, 18 Oct 2022 02:28:10 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3k9bksw14v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Oct 2022 02:28:10 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 29I2M6n4030017; Tue, 18 Oct 2022 02:28:08 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma02fra.de.ibm.com with ESMTP id 3k7mg939a9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Oct 2022 02:28:07 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 29I2S5KJ60293534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Oct 2022 02:28:05 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AA7F65204F; Tue, 18 Oct 2022 02:28:05 +0000 (GMT) Received: from [9.171.39.72] (unknown [9.171.39.72]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 7A4155204E; Tue, 18 Oct 2022 02:28:05 +0000 (GMT) Message-ID: <53164dd7bc12597ba15c1c0acdfe6e7744a4e4d5.camel@linux.ibm.com> Subject: PING [PATCH v5 0/2] IBM zSystems: Improve storing asan frame_pc From: Ilya Leoshkevich To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org Date: Tue, 18 Oct 2022 04:28:05 +0200 In-Reply-To: <20220927002334.651057-1-iii@linux.ibm.com> References: <20220927002334.651057-1-iii@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) X-TM-AS-GCONF: 00 X-Proofpoint-GUID: htdgy6rCX2Oqj0yiu6F8mXfQnLIdZw19 X-Proofpoint-ORIG-GUID: lx6wjZ2Gqc7wlweOqZ4lvFQPpA1T2SNS Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-17_13,2022-10-17_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 malwarescore=0 bulkscore=0 phishscore=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=797 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210180010 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 2022-09-27 at 02:23 +0200, Ilya Leoshkevich wrote: > Hi, > > This is a resend of v4 with slightly adjusted commit messages: > > v1: https://gcc.gnu.org/pipermail/gcc-patches/2019-July/525016.html > v2: https://gcc.gnu.org/pipermail/gcc-patches/2019-July/525069.html > v3: https://gcc.gnu.org/pipermail/gcc-patches/2020-June/548338.html > v4: https://gcc.gnu.org/pipermail/gcc-patches/2020-July/549252.html > > It still survives the bootstrap and the regtest on x86_64-redhat- > linux, > s390x-redhat-linux and ppc64le-redhat-linux.  It also fixes [1]. > > I also tried the approach with moving .LASANPC closer to the function > label and using FUNCTION_BOUNDARY instead of introducing > CODE_LABEL_BOUNDARY, but the problem there is that it's hard to catch > the moment where the function label is written.  Architectures can do > it by calling ASM_OUTPUT_LABEL() or assemble_name() in > ASM_DECLARE_FUNCTION_NAME(), ASM_OUTPUT_FUNCTION_LABEL() or > TARGET_ASM_FUNCTION_PROLOGUE().  epiphany_start_function() does that > twice, but passes the same decl to both calls.  Note that simply > moving asan_function_start() to final_start_function_1() is not > enough, > since an architecture can write something after the function label. > This all means that for this approach to work, all the architectures > need to be adjusted, which looks like an overkill to me. > > Best regards, > Ilya > > [1] https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593666.html > > > Ilya Leoshkevich (2): >   asan: specify alignment for LASANPC labels >   IBM zSystems: Define CODE_LABEL_BOUNDARY > >  gcc/asan.cc                                    |  1 + >  gcc/config/s390/s390.h                         |  3 +++ >  gcc/defaults.h                                 |  5 +++++ >  gcc/doc/tm.texi                                |  4 ++++ >  gcc/doc/tm.texi.in                             |  4 ++++ >  gcc/testsuite/gcc.target/s390/asan-no-gotoff.c | 15 +++++++++++++++ >  6 files changed, 32 insertions(+) >  create mode 100644 gcc/testsuite/gcc.target/s390/asan-no-gotoff.c >