Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1827043imm; Mon, 3 Sep 2018 10:27:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZngYwU7Oi4bZdNYDRpMQfytIGb/WXqdkJNXippU9y5syX3g1XMq8oAkLChp+39IK6mmo/l X-Received: by 2002:a62:d2c4:: with SMTP id c187-v6mr30465136pfg.8.1535995626240; Mon, 03 Sep 2018 10:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995626; cv=none; d=google.com; s=arc-20160816; b=His7I1JfDxURXZSNM4kohHFihSXvd/DDeF97Ez95uUeeUF6aYQYBu5NJyxs650whoR 1/q935MB9ZP8wLAtrdLlnlPy2jydknxtvK1Wri/XFB8nVqArHbGBPruZkbTEw5N30Mf7 dc/RbQGu/p6Mc8GI28st4AkYtmxqhkrsdinu//2/1njGaHRRYdDh4aUGZUWy7AGxYiyB CxRiEsEbIFPZ8KJqAUrJX3dXrab+xIufFhnXCAheYtT1ff7VSEMfCdykWeJ/s1Q46n9I 7yXej+mDBjQ4Su9pLerIwbO0dHrZoei2TfgRIRjjatYvqtpVfoukHsnbK+8/FfHo1lct E/+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=iOGfIGRDrbOBde09pa8tuIFU4gvmQXx0TjQDfDXjcoc=; b=HItGMiW2bHOVUQR5pmInARC5Wt1AXQmtkWU44u7EgbLFSUPdIA00+x41N2VMwgtCWf NvvcFX/+wccEvnAWDZ9lkvKc3A/l91+/KItCl+V4LGgiLBcBTfig+gduU461a/ARtSvL ao5SQTmie9zFCoB4IDq3OgZBsIQI3deaz7njP6vE+2iW5nuQZwQSdJJP4t0ck2jyVs/R +mNKTN6DTGvpZjr0khfDqW8JRhJCZfZbHgyUaWfZ7vwllfKYghtw+m9JPGfkVjkWIudz Qefc7FCWuT3N2OpUjQONCRUnYF7twyiJOzjIzjJJ2R2pQJPS9KvjxjlTPyO21cT6qabK HrvA== 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 s14-v6si17835123pga.21.2018.09.03.10.26.51; Mon, 03 Sep 2018 10:27:06 -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 S1730720AbeICVqz (ORCPT + 99 others); Mon, 3 Sep 2018 17:46:55 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45818 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbeICVqy (ORCPT ); Mon, 3 Sep 2018 17:46:54 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 85456D36; Mon, 3 Sep 2018 17:25:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kirill Tkhai , Miklos Szeredi Subject: [PATCH 4.14 124/165] fuse: Add missed unlock_page() to fuse_readpages_fill() Date: Mon, 3 Sep 2018 18:56:50 +0200 Message-Id: <20180903165701.786624790@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kirill Tkhai commit 109728ccc5933151c68d1106e4065478a487a323 upstream. The above error path returns with page unlocked, so this place seems also to behave the same. Fixes: f8dbdf81821b ("fuse: rework fuse_readpages()") Signed-off-by: Kirill Tkhai Signed-off-by: Miklos Szeredi Signed-off-by: Greg Kroah-Hartman --- fs/fuse/file.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -866,6 +866,7 @@ static int fuse_readpages_fill(void *_da } if (WARN_ON(req->num_pages >= req->max_pages)) { + unlock_page(page); fuse_put_request(fc, req); return -EIO; }