Received: by 10.223.164.202 with SMTP id h10csp4236489wrb; Wed, 29 Nov 2017 03:16:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMa+nEgVqa9VzyFr+yt71iwDdwww6FSCqZO3VbHYpkzZ1uU0JmmMZ0H73j1ZiQ9FaBaacnX7 X-Received: by 10.101.67.6 with SMTP id j6mr2435582pgq.278.1511954212762; Wed, 29 Nov 2017 03:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511954212; cv=none; d=google.com; s=arc-20160816; b=ANOzX1Log1NNLuhFT3o4Q864Ov5pBVt3oqGgiTSW0wQ5HdfyuJHaMuMBippx10XuQ2 WRxfSxuf0ZQPbp5AMFLtwbNooFmQz2850dZxtobuijN/NrHF3nfG4ex2cnZycMfJWW7D mRRZ8g2uDo6xiSj13A5uzhBGJYmjei57OFL7cvbKXR+2K0NyXct/Q96pWWia3L/8Qtgu bZt4LFD55sAk775fxGq6UNkrWQb4II/E5EGtMkwcrvOQj9DN13YSusCz/uqEc1jNwcBt n1eF7QIRuBr3zmeC9kRtnS457uZz6GT4OEJors7hX1soHNsUgAZNsYTF3jq/EYPZdEWm +YwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=K6IvZYHLQE+rAe4WFaoONgW2/9J9oz0oN0xORT3Bj/c=; b=nqInbibvsuEC1k7cmJOFKvj0oWdzrJtjHSX0YYiAqQ7vec9kWfYOuO64zEgR8HWTUP clE5ALwsYRBG+PRiFMNQDKVZuLh9+L3MA07sPUOKSMONgVblyHtkLlahjZNMlMlriYrk IViCdidmGsdVFePeECngSCUaj9MkrfLkNqbFW8gGld5vRGVQHlupwgbbUsQ5PAo/xssg wYdY3BAvh4KiVX/fhHoZM7Dkc1CG7QW1VDyM2TfmgBEP2BGWfxxeaVco03XVmiP+Sjkr nHEP0hKC43/3HsTDmVyswa6ttWF0pMiVV7ppDQWZZod/PPXM5aoGbpmVyYx+Wvk9tnOZ lKlQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d71si1185850pfd.88.2017.11.29.03.16.42; Wed, 29 Nov 2017 03:16:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754498AbdK2LPz (ORCPT + 70 others); Wed, 29 Nov 2017 06:15:55 -0500 Received: from mga06.intel.com ([134.134.136.31]:1750 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751623AbdK2LPx (ORCPT ); Wed, 29 Nov 2017 06:15:53 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Nov 2017 03:15:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,472,1505804400"; d="scan'208";a="13293440" Received: from elena-thinkpad-x230.fi.intel.com ([10.237.72.87]) by orsmga002.jf.intel.com with ESMTP; 29 Nov 2017 03:15:50 -0800 From: Elena Reshetova To: linux-nfs@vger.kernel.org Cc: linux-kernel@vger.kernel.org, bfields@fieldses.org, jlayton@kernel.org, trond.myklebust@primarydata.com, anna.schumaker@netapp.com, peterz@infradead.org, keescook@chromium.org, Elena Reshetova Subject: [PATCH 0/4] lockd refcount conversions Date: Wed, 29 Nov 2017 13:15:42 +0200 Message-Id: <1511954146-11793-1-git-send-email-elena.reshetova@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series, for lockd component, replaces atomic_t reference counters with the new refcount_t type and API (see include/linux/refcount.h). By doing this we prevent intentional or accidental underflows or overflows that can led to use-after-free vulnerabilities. The patches are fully independent and can be cherry-picked separately. If there are no objections to the patches, please merge them via respective tree. Elena Reshetova (4): lockd: convert nlm_host.h_count from atomic_t to refcount_t lockd: convert nsm_handle.sm_count from atomic_t to refcount_t lockd: convert nlm_lockowner.count from atomic_t to refcount_t lockd: convert nlm_rqst.a_count from atomic_t to refcount_t fs/lockd/clntproc.c | 14 +++++++------- fs/lockd/host.c | 16 ++++++++-------- fs/lockd/mon.c | 14 +++++++------- fs/lockd/svcproc.c | 2 +- include/linux/lockd/lockd.h | 9 +++++---- 5 files changed, 28 insertions(+), 27 deletions(-) -- 2.7.4 From 1585481651952234137@xxx Thu Nov 30 09:12:10 +0000 2017 X-GM-THRID: 1585447109985517093 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread