Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1203816imu; Wed, 16 Jan 2019 14:44:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN7gz2I6sQ9h/E9G3ql+tR5lnhPhvJ9W2wzIm5eL8oQMN+PSDktwyC2hhYEBSp0/RjYSe+IX X-Received: by 2002:a17:902:a50a:: with SMTP id s10mr11807585plq.278.1547678693431; Wed, 16 Jan 2019 14:44:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547678693; cv=none; d=google.com; s=arc-20160816; b=y4jX46Vm9qVEw07gLfebe9PHfVQkqsdCRbSpk6zUkn57K7M5cqoJaTdRz7BYsUR0lg /AYgBwQchbR1nT/Sya7mkwdgriyoFm8apHjFqhXczpcYcEnRiizfC1uLc7npsHNHRvMM s46naJ4w6p0vcXYjHaUVvY0z9ZeX7zpTX/FZdJ32wTPvSOfuOmjvBE+Eh5Jd60Mw40zx Gz860WRkCYjpVUV+/65oYF1UOibHYS9Qco1lkkXn7b9eK/XX5/6AMAtkJCaQmRpF5mGt fvzrz+C7CDnaCFAGZ+lCj5ep32hjh5i9zVoGvpvZvV9RYLVfd99vrJqW1Nr4rNS7kHnN dTcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:in-reply-to:mime-version :references:subject:cc:to:from:date; bh=HBjBA+Xg/GTPwXDyI3lPg1FVONhMxhd1hXQQG+EYg2o=; b=Ttrt68HMU08yByfoUSvQ7g4Bhx44hWpyen6pd2BDDN0HgGm7QOWufOdX8PoMxT/iHG tjXanggW966IGQ0G7PIEEGb8WG5YF1lT/cSvYbC8v+OH3f5Rw8xX1CVEF4qX5iwTF/gg rQsX7O0OSxf9y8TbBL1rfIUb5JTUSPlj8Kbp/XVrdew+GxP0VK31fr+Oq+Bl0ZaDXkTn 4SnZxLR+H29Y8CLX5gZTpFhv+8JiAna01A2ZjpJZ9modwR3vYQxXut1cSy+wO0KQKF+R DmI8CE/cbrxcsKTeYUwBmpgO1qW/o//bzWpcaVMwrc7JFMEKMdPfTxB2VXaW240A86in 9EiA== 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 s84si7172812pgs.306.2019.01.16.14.44.35; Wed, 16 Jan 2019 14:44:53 -0800 (PST) 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 S2393944AbfAPPNB (ORCPT + 99 others); Wed, 16 Jan 2019 10:13:01 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36192 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728675AbfAPPNA (ORCPT ); Wed, 16 Jan 2019 10:13:00 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0GFBAVZ046873 for ; Wed, 16 Jan 2019 10:12:59 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q26s3gvu2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Jan 2019 10:12:59 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 16 Jan 2019 15:12:57 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 16 Jan 2019 15:12:53 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0GFCqoC61210668 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Jan 2019 15:12:52 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1329C4C073; Wed, 16 Jan 2019 15:12:52 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CA6824C071; Wed, 16 Jan 2019 15:12:51 +0000 (GMT) Received: from osiris (unknown [9.152.212.95]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 16 Jan 2019 15:12:51 +0000 (GMT) Date: Wed, 16 Jan 2019 16:12:50 +0100 From: Heiko Carstens To: Arnd Bergmann Cc: linux-s390@vger.kernel.org, Martin Schwidefsky , linux-kernel@vger.kernel.org, y2038@lists.linaro.org, Dominik Brodowski , Mark Rutland Subject: Re: [PATCH 0/5] s390: rework compat wrapper generation References: <20190116131527.2071570-1-arnd@arndb.de> MIME-Version: 1.0 In-Reply-To: <20190116131527.2071570-1-arnd@arndb.de> X-TM-AS-GCONF: 00 x-cbid: 19011615-0020-0000-0000-00000307506C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011615-0021-0000-0000-000021586D96 Message-Id: <20190116151250.GB3474@osiris> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-16_06:,, 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=869 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901160125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2019 at 02:15:18PM +0100, Arnd Bergmann wrote: > Hi Heiko and Martin, > > As promised, I gave this a go and changed the SYSCALL_DEFINEx() > infrastructure to always include the wrappers for doing the > 31-bit argument conversion on s390 compat mode. > > This does three main things: > > - The UID16 rework saved a lot of duplicated code, and would > probably make sense by itself, but is also required as > we can no longer call sys_*() functions directly after the > last step. > > - Removing the compat_wrapper.c file is of course the main > goal here, in order to remove the need to maintain the > compat_wrapper.c file when new system calls get added. > Unfortunately, this requires adding some complexity in > syscall_wrapper.h, and trades a small reduction in source > code lines for a small increase in binary size for > unused wrappers. > > - As an added benefit, the use of syscall_wrapper.h now makes > it easy to change the syscall wrappers so they no longer > see all user space register contents, similar to changes > done in commits fa697140f9a2 ("syscalls/x86: Use 'struct pt_regs' > based syscall calling convention for 64-bit syscalls") and > 4378a7d4be30 ("arm64: implement syscall wrappers"). > I leave the actual implementation of this for you, if you > want to do it later. > > I did not test the changes at runtime, but I looked at the > generated object code, which seems fine here and includes > the same conversions as before. This work is highly appreciated! I'll look into this tomorrow. Thanks!