Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6717057ybh; Thu, 8 Aug 2019 04:37:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzU8Ez9duVxpSWk6uB4D1vTZhNc8wQydyiveW5Vjbol6Cxt7mQ7WPColOlOyPFoVi79u7Y3 X-Received: by 2002:a63:714a:: with SMTP id b10mr12825220pgn.25.1565264224565; Thu, 08 Aug 2019 04:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565264224; cv=none; d=google.com; s=arc-20160816; b=rxpUAZl8FecAOhEiDsjbmlb9Rbh565JPKyTWH2YFVmnbFjVn2d/YKQ5ys0OhvkuK7V oy0An39eDDUHIcs0QTUT2NUsEBC3uqiqWko/nFcKV6JCsGASpgCFLchLBEl4QvUoF7Z1 8X3mGXic8Gd4zajtvpP+x03jKz0rhR6ARlKjXHqYYU8o98ebQvuRswhbbuQMeotp5roK Vde6xExH9NPaxWHZU+9uGz8WKIpiGbmZJjf+60O3WS2IH4oLZvt9r2WgtGAieGoWtT00 Z3YKRc7AQtOLExiDqx7908ObjLWliEMGamcGLJUrNX7ZJxQJPgx43t4u5b7dSdMz935x uxKw== 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=KoIxxmk8PwemK8U9fQF0OG/ug9dkFVhJuvxon8QCgBE=; b=iMVT6OKrc8a/HZpIjJoqA6dIHt26Oa50uEUCXHwlygmQjMEei+xGOImZEw3FfO7UX0 3vrqtUNIGp3wT8v3CcIF4Opd0sNGIIGPHISn3uQii7VNaoWRu2BvekHbwTXr6bMpmVu0 lj06xilQmDbFi/H44Wy1wHlkHzK6RPMrxUd2gyzQKDa4dXXa/omf2B4+XuR6h/deP8lw /Nkuro4Ai873Hd6CB68mdoGsqWg78IPvGGLgu7KNP0QkaLMSksRIm5q4Zafzf/NxKNCE 10o+QtDSNxVABpQPp4P3C532uZ/mVvFxlN/mpq5ftpkdw9xRb290AO/hsRjJEy6aaU4z t25Q== 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 j63si49751814pgd.493.2019.08.08.04.36.48; Thu, 08 Aug 2019 04:37:04 -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 S1731038AbfHHLew (ORCPT + 99 others); Thu, 8 Aug 2019 07:34:52 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:8012 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728542AbfHHLew (ORCPT ); Thu, 8 Aug 2019 07:34:52 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x78BXbJw096184 for ; Thu, 8 Aug 2019 07:34:51 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u8jq8gngv-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 08 Aug 2019 07:34:51 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Aug 2019 12:34:49 +0100 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) by e06smtp07.uk.ibm.com (192.168.101.137) 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:34:46 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x78BYRwq32637370 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Aug 2019 11:34:27 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4083E42042; Thu, 8 Aug 2019 11:34:45 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B22D42045; Thu, 8 Aug 2019 11:34:45 +0000 (GMT) Received: from osiris (unknown [9.152.212.134]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 8 Aug 2019 11:34:44 +0000 (GMT) Date: Thu, 8 Aug 2019 13:34:43 +0200 From: Heiko Carstens To: Chuhong Yuan Cc: Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] s390/extmem: Use refcount_t for refcount References: <20190808071817.6595-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190808071817.6595-1-hslester96@gmail.com> X-TM-AS-GCONF: 00 x-cbid: 19080811-0028-0000-0000-0000038D3C5B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080811-0029-0000-0000-0000244F3E8A Message-Id: <20190808113443.GA4331@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=577 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:17PM +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/mm/extmem.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) Applied, thanks.