Received: by 10.223.164.221 with SMTP id h29csp4974987wrb; Fri, 20 Oct 2017 04:18:10 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TVWp1u4jv6MFyIVldKALjzohM2Y1gi/YY+HgHMK9gW7fuUSzByRHUiQNVc88NGixYD9C5a X-Received: by 10.98.37.68 with SMTP id l65mr4694292pfl.253.1508498290171; Fri, 20 Oct 2017 04:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508498290; cv=none; d=google.com; s=arc-20160816; b=QrkCmIQsHVYKESzrx9SQEEaWYCDCoJuVTZN1cZUUEqiQDMJBYXkaGMChHKSLvK4Gcp SyxQXgx2FL/jeOn1nQRM/qXv57YJ+4SGbcdbwTNCLiTP2ievVfH5NnFgJTZoxS4dux89 QFehzcodThGGdTtRC53ad/kLdX4Z6Z6D/Q9CazOkA0zdL91DPUYfNqMyAtQL+Xi086Of AHFAsEeYQ89YkZoSLHzWI0G+LoeGjIA+zC/ta2XNn0nePsvHY0G1FzKBJCU0jK5m+O6k P6WC3vx/dnouR5DGnfgZ7K0qiSjP+9/472WIUs+7uA7lwb8YUv/oQEkxe7G5HITjAMxE qWMQ== 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=aqNqE/Pr3X5lnKZ4mdwRwHZ4WshOchqha+b+4vDxxiw=; b=gM/yLIvMUvRLYuf9Q8Hk0z1wHRcoWcVzuuKX4FzByW7ouXzGYVO1aD+dXkrJ5BLS9q yu4pqDaNSuQtkofKQVIRpPi0wstHBxqaA42K3WmB8rjHFxHBsKxHuzx48s94c3iiHUbd 39Id33NyrwVYSeMc/OegwEBHVeH/W5+7LwfqCtyW60vf3b/Tl8KTuLr/n/wcNEO9Im/a KUbz72YlB3LH0l9eLLdt74aMq3ope34Yr6KDHyrLlwc4biNTZQoet9QRtEvxRtaFqSA1 zZa+C15ZQTxJABu6YTxy3W5ln9i4/MBfpevMzvW8xGej5d4PR0v1sHV9cyAwRR7Hyf1l 2lsg== 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 z13si649007pfe.416.2017.10.20.04.17.55; Fri, 20 Oct 2017 04:18:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752927AbdJTLP5 (ORCPT + 99 others); Fri, 20 Oct 2017 07:15:57 -0400 Received: from mga09.intel.com ([134.134.136.24]:35826 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793AbdJTLPz (ORCPT ); Fri, 20 Oct 2017 07:15:55 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2017 04:15:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,405,1503385200"; d="scan'208";a="1208012276" Received: from elena-thinkpad-x230.fi.intel.com ([10.237.72.87]) by fmsmga001.fm.intel.com with ESMTP; 20 Oct 2017 04:15:53 -0700 From: Elena Reshetova To: darrick.wong@oracle.com Cc: linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, peterz@infradead.org, keescook@chromium.org, Elena Reshetova Subject: [PATCH 0/5] xfs refcount conversions Date: Fri, 20 Oct 2017 14:07:53 +0300 Message-Id: <1508497678-10508-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 Note: our previous thread didn't finish in any conclusion, so I am resending this now (rebased at latest linux-next) to revive the discussion. refcount_t is slowly becoming a standard for refcounters and we would really like to make all conversions done where it is applicable. ****** This series, for xfs, 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 lead 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 trees. Elena Reshetova (5): fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to refcount_t fs, xfs: convert xlog_ticket.t_ref from atomic_t to refcount_t fs, xfs: convert xfs_cui_log_item.cui_refcount from atomic_t to refcount_t fs, xfs: convert xfs_rui_log_item.rui_refcount from atomic_t to refcount_t fs/xfs/xfs_bmap_item.c | 6 +++--- fs/xfs/xfs_bmap_item.h | 2 +- fs/xfs/xfs_extfree_item.c | 6 +++--- fs/xfs/xfs_extfree_item.h | 2 +- fs/xfs/xfs_linux.h | 1 + fs/xfs/xfs_log.c | 10 +++++----- fs/xfs/xfs_log_priv.h | 2 +- fs/xfs/xfs_refcount_item.c | 6 +++--- fs/xfs/xfs_refcount_item.h | 2 +- fs/xfs/xfs_rmap_item.c | 6 +++--- fs/xfs/xfs_rmap_item.h | 2 +- 11 files changed, 23 insertions(+), 22 deletions(-) -- 2.7.4 From 1583053019516660837@xxx Fri Nov 03 13:50:06 +0000 2017 X-GM-THRID: 1583053019516660837 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread