Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbdCCQiE (ORCPT ); Fri, 3 Mar 2017 11:38:04 -0500 Received: from mail-ot0-f170.google.com ([74.125.82.170]:35470 "EHLO mail-ot0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbdCCQht (ORCPT ); Fri, 3 Mar 2017 11:37:49 -0500 MIME-Version: 1.0 X-Originating-IP: [176.63.54.97] In-Reply-To: <1488531845-23463-1-git-send-email-elena.reshetova@intel.com> References: <1488531845-23463-1-git-send-email-elena.reshetova@intel.com> From: Miklos Szeredi Date: Fri, 3 Mar 2017 17:05:01 +0100 Message-ID: Subject: Re: [PATCH 0/3] fs, fuse subsystem refcount conversions To: Elena Reshetova Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, "peterz@infradead.org" , Greg Kroah-Hartman Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 923 Lines: 20 On Fri, Mar 3, 2017 at 10:04 AM, Elena Reshetova wrote: > Now when new refcount_t type and API are finally merged > (see include/linux/refcount.h), the following > patches convert various refcounters in the fuse filesystem from atomic_t > to refcount_t. By doing this we prevent intentional or accidental > underflows or overflows that can led to use-after-free vulnerabilities. > > The below patches are fully independent and can be cherry-picked separately. > Since we convert all kernel subsystems in the same fashion, resulting > in about 300 patches, we have to group them for sending at least in some > fashion to be manageable. Please excuse the long cc list. > > These patches have been tested using tests supplied with libfuse. > Not sure if this is the right way to test it. No output or failures > with result to refcount conversions. refcount WARNs were on. Thanks, queued. Miklos