Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6718462ybh; Thu, 8 Aug 2019 04:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn9n0WS/jPSpqgDMhTUn3TFuZrYP4qZVY1PD6I59eeHBTxGrIY4mCivA9d5b7EtAluwm3W X-Received: by 2002:a63:cb4f:: with SMTP id m15mr12317322pgi.100.1565264321713; Thu, 08 Aug 2019 04:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565264321; cv=none; d=google.com; s=arc-20160816; b=SvBbKWF0CAHJI/XNGvgwq/DR/CzXLEHx8/hNfxSBZK81wWg0FsyJ4X9+T1CfmM4RHF vsK9OqzGK4GFS67fKihmNMTzjLtEA+1ylrsGPaqUD3Bjqa4hQKq6uxJYAKBtpbVCxJax OAd6Vo9QX5Omdq6pvZwhmcv4WiWqqsoC0ef7afH/IMw/rGSbiXIQX4LnvXTSMyVGLc+m XghEd7dTv5Ump8CHTVqT5WU1tGhvMhDfuUHgKD49IS6IpIiJCmruYuxWWHewKZObPr/s QmPQ332m1dqs8VtHcNZps58QUqLtDvWcTmBa7+nYcLSTLRt46v4C7agrz9WnUQN2ueU8 sxnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=7yUyefPmWbRP8ygVCCYGUz+itEZrZxxLqShCSnvjWvI=; b=EQso7IBKPlLMMSUQ7K4t8fbCT85gtmymDGCxqx0pWUGcH3YiY4XugROXBWm/CJXOGa Vio4tc9RcjtQUsFvSElPtRqQ7VULE55ocXWVDZWRHyV30rs/GuLJQzSTq9zZOPtFj1tK hpzsxiIjsHQUVqqGdMNwa3GGSzeJLZP+Maiy8cxYyBFTGa3/pfGDe4qB1fdZ8ASVE489 tAMIuEcjSO+iSy0uF3kwyPuNUhcDJaAVFjAsrbNs+YdQ4qa/sXb0ZSQMl1mdi0upsOiO 5tSYx27bXdbXlTTFYh0p/LyNAZNPTI5aFWAsjhn575kP+gXqUUkjmXFDyXpS/z794t8j sX5A== 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 b3si47219734plb.367.2019.08.08.04.38.25; Thu, 08 Aug 2019 04:38:41 -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 S1732178AbfHHLfJ (ORCPT + 99 others); Thu, 8 Aug 2019 07:35:09 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:24588 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728542AbfHHLfJ (ORCPT ); Thu, 8 Aug 2019 07:35:09 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x78BWBPq112459 for ; Thu, 8 Aug 2019 07:35:08 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2u8h8wmkqm-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 08 Aug 2019 07:35:07 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Aug 2019 12:35:06 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) 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) Thu, 8 Aug 2019 12:35:02 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x78BZ12135717492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Aug 2019 11:35:01 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1387611C054; Thu, 8 Aug 2019 11:35:01 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CCF5511C04A; Thu, 8 Aug 2019 11:35:00 +0000 (GMT) Received: from osiris (unknown [9.152.212.134]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 8 Aug 2019 11:35:00 +0000 (GMT) Date: Thu, 8 Aug 2019 13:34:59 +0200 From: Heiko Carstens To: Chuhong Yuan Cc: Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Vasily Gorbik , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] s390/mm: Use refcount_t for refcount References: <20190808071826.6649-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190808071826.6649-1-hslester96@gmail.com> X-TM-AS-GCONF: 00 x-cbid: 19080811-0008-0000-0000-000003069865 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080811-0009-0000-0000-00004A249DE2 Message-Id: <20190808113459.GB4331@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-08_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=5 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=483 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908080123 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 08, 2019 at 03:18:26PM +0800, Chuhong Yuan wrote: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan > --- > arch/s390/include/asm/gmap.h | 4 +++- > arch/s390/mm/gmap.c | 10 +++++----- > 2 files changed, 8 insertions(+), 6 deletions(-) Applied, thanks.