Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp953336ybh; Tue, 21 Jul 2020 11:58:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxooMdWIOQFDZ15y5UBvBlQ0CM/wJjnQaj/q6bxEdpXBip8/Sc0U83HZNusZZknZRMysvgd X-Received: by 2002:a17:906:6004:: with SMTP id o4mr27473338ejj.411.1595357902115; Tue, 21 Jul 2020 11:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595357902; cv=none; d=google.com; s=arc-20160816; b=M2q9SMwKFJ/3pYmGTuwZgio9QkQmv8WNstk3UiWXATg/7pZsxfDtjcaA9FGLWPrU+K zc82ZgGWGGDyWtscemWYQkNYGYemHhi36P+tdAiKzWDVROszj0OCeDfST8GapKcYuNRM I2D1iQX35Fn76+CY2XsH8PxYfjsvaIBbDpbnPIH8MazIDJn/wFz36covXii9B8nZHBWC gAF4fAxppptSktQbJ0vk0SjpbLWKDg25PmeBtN5RfEGQ3B6Dys9VPO6CNK0xoakIt9Au LY71KhiO0FHLdF9dCz4PURuGkmqztmXVrjHZ5M8Kx7Eq8WNfZxTfztHle3ZfBrI41+2P RB+g== 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 :message-id:date:subject:cc:to:from; bh=vFKAfWsfVCB2YesxsBJadV7YnVGluinC/SRZ14NgzcY=; b=f0DPSCEOwYnHz7yt2wm/42kr6dZvMohLzMv4AygDT1G7r1EBaDXJ33C7XWW7wvbMzF LC1jsY7NeMKpCYJ5AgWdd2HoNR/dZshnK2OoO94neaHGAqY+XlA9bQOVJFHYkrZRxCt5 bXgWp/+YgENAYwDbZRyEltobf0j7fLPp9B0NtlN4n9hHyvZXhFwKdJmw8NLyq1wjvJBJ nNp7tFQUVus1w9C0XPQbP1ol4vGr9oxyiafZJpitrDslppFsIEo0+fjJXP0jDDul5PeO NanuhpTbLLJCuUv7qJB6VKvlJGID+e8UWzBPL9GF/tcBF3WmIBJnrotqXJv9auM5A3RJ P+ig== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si13247511edx.6.2020.07.21.11.57.59; Tue, 21 Jul 2020 11:58:22 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730354AbgGUSzy (ORCPT + 99 others); Tue, 21 Jul 2020 14:55:54 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:48108 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbgGUSzx (ORCPT ); Tue, 21 Jul 2020 14:55:53 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id DBA75290592 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: kernel@collabora.com, linux-fsdevel@vger.kernel.org, gregkh@linuxfoundation.org, sashal@kernel.org, krisman@collabora.com, =?UTF-8?q?Andr=C3=A9=20Almeida?= , Nikolaus Rath , Hugh Dickins , Miklos Szeredi Subject: [PATCH 5.7 1/1] fuse: fix weird page warning Date: Tue, 21 Jul 2020 15:54:59 -0300 Message-Id: <20200721185459.103445-1-andrealmeid@collabora.com> X-Mailer: git-send-email 2.27.0 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 --- 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 5c155437a455..ec02c3240176 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -771,7 +771,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))) { pr_warn("trying to steal weird page\n"); pr_warn(" 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.27.0