Received: by 10.192.165.148 with SMTP id m20csp3045351imm; Sun, 22 Apr 2018 22:46:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx49bG29sN4LY+Ve75B2Q6KLrjsdkwoApF7UWBKW0xnAngfjPF/FZb+hhqSSMSnXahvpX0r7q X-Received: by 10.99.123.20 with SMTP id w20mr16123850pgc.124.1524462375519; Sun, 22 Apr 2018 22:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524462375; cv=none; d=google.com; s=arc-20160816; b=YmSlv4iUI/AUwZQ/mv1Irc+ud8xsqvZcTBg7rRQ3it5gQVwDtEoCJasPaifMfiDb81 ss196uXclyB5HM1XM7KL+pgZVnYCzY7K0Z2XnsKW1OcVyM1TOi9RcDjhNeiIBq9pE8Wc viFewF8pUt92XXB1eIefz1+eEhfMwvanf6S6Aa7HDwAy4OE3LGw2ZuCX9Hf5lsxBpiXz gR/zypsKeh3jPqaY++JEzeOfhjf/jUXM4MXqKTRXLK6J7/bfEGqYOCxymUDQI+PJ4nZR JHGNyPKrdxWtj94pdINKaxhQzoHafOHmzXDy3YEyWspmU5GokvBvGp2Fl8Tstph1bAxI GOSw== 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-transfer-encoding :mime-version:references:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=xA0cW+ZThVGCrogoRmGexCvXuKjzncjfLUyswZXj6bs=; b=rOI0hEihhmnxG0rIQ3padl/wNai2+7/Yw+A7/BzU+pBF5HYN33760C2dJCnV3DjGC9 QOxVQ7CNrCRvVGFTO00+pcgQDLFpGtnr8lLa1q5PxkUSJhazCxafsIN3LhvNsVf6/ERJ zX4nr5R8XR+RMSMzGd8jjtMpIIgqdFVSN0Ppdli6wfy7UWohUcerz5HZrMq+Sg/vp5VD Jiw21p+FFMPekhP+UBnwhEf1gVkODsyfx3F1sfla/EK5NLH1Aliz+40GSLzSTlwC7lN/ 9XirCIjaGMWaZKxH2ZnS+utv1PGcFatY41WBUxilstTeycZDdf4tmvz9n3X/gFNvFlgg AjBg== 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 j16si9109232pgn.233.2018.04.22.22.46.01; Sun, 22 Apr 2018 22:46:15 -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 S1751365AbeDWFov (ORCPT + 99 others); Mon, 23 Apr 2018 01:44:51 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60670 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751216AbeDWFos (ORCPT ); Mon, 23 Apr 2018 01:44:48 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3N5dLwd108645 for ; Mon, 23 Apr 2018 01:44:48 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hh3qa24e0-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 23 Apr 2018 01:44:47 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Apr 2018 06:44:42 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Apr 2018 06:44:39 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3N5idfN5833138; Mon, 23 Apr 2018 05:44:39 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A9B52AE045; Mon, 23 Apr 2018 06:34:23 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6BBD5AE04D; Mon, 23 Apr 2018 06:34:23 +0100 (BST) Received: from mschwideX1 (unknown [9.145.43.222]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 23 Apr 2018 06:34:23 +0100 (BST) Date: Mon, 23 Apr 2018 07:44:37 +0200 From: Martin Schwidefsky To: "Eric W. Biederman" Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Heiko Carstens , linux-s390@vger.kernel.org Subject: Re: [REVIEW][PATCH 15/22] signal/s390: Use force_sig_fault where appropriate In-Reply-To: <20180420143811.9994-15-ebiederm@xmission.com> References: <87604mhrnb.fsf@xmission.com> <20180420143811.9994-15-ebiederm@xmission.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18042305-0040-0000-0000-00000431D182 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042305-0041-0000-0000-00002635F561 Message-Id: <20180423074437.1203f39f@mschwideX1> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804230061 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Apr 2018 09:38:04 -0500 "Eric W. Biederman" wrote: > Filling in struct siginfo before calling force_sig_info a tedious and > error prone process, where once in a great while the wrong fields > are filled out, and siginfo has been inconsistently cleared. > > Simplify this process by using the helper force_sig_fault. Which > takes as a parameters all of the information it needs, ensures > all of the fiddly bits of filling in struct siginfo are done properly > and then calls force_sig_info. > > In short about a 5 line reduction in code for every time force_sig_info > is called, which makes the calling function clearer. > > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: linux-s390@vger.kernel.org > Signed-off-by: "Eric W. Biederman" > --- > arch/s390/kernel/traps.c | 32 ++++++-------------------------- > arch/s390/mm/fault.c | 23 ++++++----------------- > 2 files changed, 12 insertions(+), 43 deletions(-) Compiles & boots. Comparing old vs. new the same values are set in siginfo. Looks good. Acked-by: Martin Schwidefsky >schwidefsky@de.ibm.com> -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.