Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1630195imu; Tue, 6 Nov 2018 01:35:08 -0800 (PST) X-Google-Smtp-Source: AJdET5cxGMjAQSysyyGYWk44F2rotFVzRKkRQkVTPcWHrE8Ol8h6kv+QAnQbaFxsa/+F92vGAnhh X-Received: by 2002:a17:902:f20b:: with SMTP id gn11mr10040549plb.93.1541496908879; Tue, 06 Nov 2018 01:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541496908; cv=none; d=google.com; s=arc-20160816; b=zY69pqfmvV5/bzjm7AIdvC+BS4Tz4jJBXAIcpWuQvAHJaTD6BITWnh5tZoClUdtxfc yrd5FZGFaaj/xM1CjZQ+1QIiB3VgY2V9cxz3KIxAd8VScW7R+I9/Rb1lDmt9KESRhedW ea4Prw2z5OBKbKhO55A3tNUckcHjHOeY8VZ/CMwYpIudO2WyHb9+GoHSNX25CkQwvb5D ATtB1RZykfIxHG/mBtGEkjGwvnhhpo11z72HIKw0mhFmlHkskFBLLRuBwmaSQYyaDQHd TX9i1cI/3ks9J/+IxZTieaEdCNKfonKcPeiX0W63lW/KrebZooaZJ87a6Yb03z4eJ7dB N2Ww== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=BNCDRuEx8PLl9Cf+UnPKMhEsBYHXmjEVgwDhto9IZ0w=; b=Aw0kVfaEe+PunzKIEQstVCaV/uWJMZO+6dIr1qs1KaYBX2LicYHIM65qHYiXd/fydQ 77H3tQsa1+8vCTXBUW5nswWf/7RoYYv+kq2m7w2LWWLKvP0EAPWMl1ZQWbTBoXfnaZ+M fuJ6CK0L1LrFJlmuGJB4i4QjxW4pkY/mOrB6Q1RpX6W7BUinUn3Ruu52wYoK2PefY9Qv 50TJXrAErR+xMOGEH++MV2sYU+V5WD8EscYXVvwHBClZziQKIHMyf9Oky3PD5xEGCdA2 lnTcIMUMvag5Mw4No/bi9InNsAH01sIkGcDo9IofeL1lNk5Un+0hEsEaU/C9fZ9cMscp oIzQ== 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=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2-v6si30993675plh.157.2018.11.06.01.34.53; Tue, 06 Nov 2018 01:35:08 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730029AbeKFS6r (ORCPT + 99 others); Tue, 6 Nov 2018 13:58:47 -0500 Received: from relay.sw.ru ([185.231.240.75]:59274 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729272AbeKFS6r (ORCPT ); Tue, 6 Nov 2018 13:58:47 -0500 Received: from [172.16.25.169] by relay.sw.ru with esmtp (Exim 4.90_1) (envelope-from ) id 1gJxke-0002y8-7d; Tue, 06 Nov 2018 12:34:24 +0300 Subject: Re: [PATCH] fuse: Put leaked request on error path of fuse_retrieve() To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <154149557692.17196.12607896696117775780.stgit@localhost.localdomain> From: Kirill Tkhai Message-ID: <5e2fa16d-1408-4c34-1f9d-a6ccfe345358@virtuozzo.com> Date: Tue, 6 Nov 2018 12:34:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.11.2018 12:33, Miklos Szeredi wrote: > On Tue, Nov 6, 2018 at 10:25 AM, Kirill Tkhai wrote: >> On 06.11.2018 12:23, Miklos Szeredi wrote: >>> On Tue, Nov 6, 2018 at 10:13 AM, Kirill Tkhai wrote: >>>> fuse_request_send_notify_reply() may fail, and this case >>>> it remains leaked (fuse_retrieve_end(), which is called >>>> on error path, does not do that). Also, fc->num_waiting, >>>> will never be decremented, and fuse_wait_aborted() will >>>> never finish. So, put the request patently. >>>> >>>> Signed-off-by: Kirill Tkhai >>> >>> Posted same patch yesterday for a syzbot report. How did you notice this? >> >> I've found this by code review. I did this last week and I have 10 patches more >> on different theme. I was waiting for when the merge window opens. > > Well, the merge window just closed. But never worry, bugfixes can go > in at anytime. > > If you notice a bug, such as this, you don't need to hold back until > any particular time, the sooner it's known, the better. Ok, no problem :) Thanks, Kirill