Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6492508ybh; Thu, 8 Aug 2019 00:54:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7Wjz1/Hwe8ARSUUVPJKHd/w56bScOJlkKWKuLSDaq2l6wcXFj6NnxFlpNS4Fk3v7D8n1v X-Received: by 2002:a17:90a:17a6:: with SMTP id q35mr2713012pja.118.1565250865913; Thu, 08 Aug 2019 00:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565250865; cv=none; d=google.com; s=arc-20160816; b=SjS65t8/WZwQW7pqybwAEnXFRRLu1+6kz3H7nHFD0M+fXl5+L4AScOP/FSF3Qegk0t xhORtoVY8Po9B3eHMDsMu4a4GPFEXl4ssjpQLUXwNMGStXu7Hc3Pfr6OcPeRrxOiDI3T TzFlxxGCoN8WbjJA6CNlMoGXIRZYfRUoIa6nk6B0jSR4aS+9xbFy/sKZ+YFDZp0pYYkV rlYneu5NkaLsDJrhVmBiubpe6ixTaNpM53A5kBWQCWo1rKfTRKf9b/ms+itVbKRGGo4I LD1GfY/gLyhRZW4PxZTU1x0JgwBzBuTSI0+doVizGl9T4eFRLiWqAtBCUoyQI47CcPay EEpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=cEqUfBY+/dvJcdy9kscKpfnhgnfgYAHVzsFDvgaAh3g=; b=waBLw1fS4tGYcw95Ou9vyi1SwRJlM5JcvW6GBFv13n9NgTuOUX4SLv/4zicvXcdKNg jwjzttPG4e7POtkoGjNzZbz8ySgKaRH+QvW8M2pm37Ci29tXTC4b7xI5zYfUPNHovr99 xLLBww92vZjHggGqGLfveHTbFvlcdYQpaKq1NnbTizmL+dx4NOTK3e2X+Dc4f3tzHM39 8Rzul7iPGOWNYYPAkj1SrT6g8jNxmxcjLxA4rwIwmlBUu6GkIWQjfvlTr7c8kmmDO0ez 4zRUQym0m6GavrX/vZadDpxd2rLZt2ytg/BfMvaKAZ+bzWl1sHugHNrOnj6t1p7OwGDO eoRw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si1395561pjq.104.2019.08.08.00.54.10; Thu, 08 Aug 2019 00:54:25 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731719AbfHHHwy (ORCPT + 99 others); Thu, 8 Aug 2019 03:52:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54284 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731635AbfHHHwx (ORCPT ); Thu, 8 Aug 2019 03:52:53 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79E08C08EC07; Thu, 8 Aug 2019 07:52:53 +0000 (UTC) Received: from gondolin (dhcp-192-181.str.redhat.com [10.33.192.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E74519C69; Thu, 8 Aug 2019 07:52:51 +0000 (UTC) Date: Thu, 8 Aug 2019 09:52:49 +0200 From: Cornelia Huck To: Chuhong Yuan Cc: Christian Borntraeger , Janosch Frank , David Hildenbrand , Heiko Carstens , Vasily Gorbik , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] s390/mm: Use refcount_t for refcount Message-ID: <20190808095249.4fc40eb1.cohuck@redhat.com> In-Reply-To: <20190808071826.6649-1-hslester96@gmail.com> References: <20190808071826.6649-1-hslester96@gmail.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 08 Aug 2019 07:52:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Aug 2019 15:18:26 +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(-) Reviewed-by: Cornelia Huck