Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4889670pjb; Mon, 27 Jul 2020 07:41:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeECVRCsP4aXxrOAmCFaWod5Ym2xpfZdt5k2dn2ajKw1dJY+hhFALn+Tp2IbdLIM1Oq31s X-Received: by 2002:a05:6402:cb:: with SMTP id i11mr8999237edu.372.1595860876055; Mon, 27 Jul 2020 07:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860876; cv=none; d=google.com; s=arc-20160816; b=DzoezA/VLP086dd1NcX5qIHjnG50oDtqkeEntuLpHLkT1k6aXa1xRBFg+CcfJ3DTK/ chPsT9AXoO9Y6aE9h4osBnOBM2m80aViuUqkdFUyc6gD9npC+CBiRYLbBGnMo51PMzt5 lQdfbXGPihW6ccCKlci+tRQUzI9hn1GNFK5tynvrE1zjtDie5DLLvpN7+ynxkusV0EPM Hltvj959uvEw/ERJA+pGuAtc21zNLMYN3AT4Vzh+udb7weDdnBxU+xT0uiaUdTKLdQyD ErpT9GlvH3kGshP7LnKiHkLYo7fKcpny4MG3UNFgtlH5TWsfla0UWgAas20Wt8TGJNHb snDw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=m+oyRc/OEdUTLJGek9Facp9VnDUE7M7ZlUz8wLGwLmk=; b=MKs+e35KiK5KQz3OW43tW3AcXBPxS7qLtG5R0A5OjsilyxhfQ3aMLGbmWZH5CVDb+1 la7lhxHAxa7879XqPMVH23IdR0oPlSze+XE6LCKa3U7TRZkYMpIcdya7wzPTYD5BAWZO TlA5zvL3fBk/kUQhWyLMsKiyRBaAKP17MtKbX4A2c/x27C+uSDVcL3LSJGogO1RUcRaJ EYzjJ+QdYPy0tlYHc/g+/wK1hEkcDGY1z7/WAGYmHF0JSPf0Mk888ub+4qtFMXpRa1zH GjgHUkR0WBINApF1AxuEnu1ZYtaBMHSJnvwYbuWl9OlSNHOsnEgjtUT1U/bcJBcZqTjM MQWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yPpSiZmG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co19si5414269edb.605.2020.07.27.07.40.54; Mon, 27 Jul 2020 07:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yPpSiZmG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729650AbgG0OJ3 (ORCPT + 99 others); Mon, 27 Jul 2020 10:09:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:59396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729630AbgG0OJV (ORCPT ); Mon, 27 Jul 2020 10:09:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E5BBF2073E; Mon, 27 Jul 2020 14:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595858961; bh=FrKXr/6KwIFqjkGnn/7CduLurD7L57pnS1D+ZPzd4ow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yPpSiZmGd1CmSkPJKMJibz0Gl3QImhCkZ89pheedzr9Y8k597ZeGIc0clF2KEUSh9 wKCal+k//sPNAusjDjYV2SJEuYcadC8XMRhCZ1pd+/p6qNtTMcOc8CPZvpNkOp98lB MZB+4MmAYsXIHvzl+tyMLX/C1czzgZ4Kz/py6tM0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolaus Rath , Hugh Dickins , Miklos Szeredi , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Sasha Levin Subject: [PATCH 4.19 13/86] fuse: fix weird page warning Date: Mon, 27 Jul 2020 16:03:47 +0200 Message-Id: <20200727134915.001245278@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134914.312934924@linuxfoundation.org> References: <20200727134914.312934924@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miklos Szeredi commit a5005c3cda6eeb6b95645e6cc32f58dafeffc976 upstream. When PageWaiters was added, updating this check was missed. Reported-by: Nikolaus Rath Reported-by: Hugh Dickins Fixes: 62906027091f ("mm: add PageWaiters indicating tasks are waiting for a page bit") Signed-off-by: Miklos Szeredi Signed-off-by: André Almeida Signed-off-by: Sasha Levin --- fs/fuse/dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 6d39143cfa094..01e6ea11822bf 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -838,7 +838,8 @@ static int fuse_check_page(struct page *page) 1 << PG_uptodate | 1 << PG_lru | 1 << PG_active | - 1 << PG_reclaim))) { + 1 << PG_reclaim | + 1 << PG_waiters))) { printk(KERN_WARNING "fuse: trying to steal weird page\n"); printk(KERN_WARNING " page=%p index=%li flags=%08lx, count=%i, mapcount=%i, mapping=%p\n", page, page->index, page->flags, page_count(page), page_mapcount(page), page->mapping); return 1; -- 2.25.1