Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4875723pjb; Mon, 27 Jul 2020 07:22:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB2C4MzhfNsHYIVFwDHB4f0UmAkn146smeRQcY8xq61SR5FUfWYBxqmwjfSnD08arSr3xP X-Received: by 2002:a05:6402:21e6:: with SMTP id ce6mr16696274edb.275.1595859742038; Mon, 27 Jul 2020 07:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859742; cv=none; d=google.com; s=arc-20160816; b=q7O73nmKm/Vw5MXl/3nMlTufcwUw8nOxISsBLDnEHFic+2nohK99MmE4whDFNhpJK/ ok9WzXWS3MKtwBGT+wo8wFqe86eMtSFhHFyE+HOY+YF0/eM73OreQSKX65nCP3D6ZSkV ZHEM9v79A8tmkKjzL3gMQ1fJLy8UTfzzBCJmxSs7FSgtxZSuOG+77lC3PxqchETfoguc oOsDxkVjcZjYmcmcYsLRA6MFCXSKspyjJ6Yz+a6H3w+UKtN24NEAgGrd3JLGbzqH6BJy M62J7W6fkI7xzo8fnyimTGy8yb/ZVaHNZWDL9D6U845rKYoLGxE71zVMCDjfpV4VW5WT LpRw== 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=YUALMVoaTRl6NB1WWyDDeRejwkjZivaREm5HiGp8S0o=; b=TspRCmFxRgbS/oEpC0x6DMr8OaADcrGPg6jVCnqsLj9dV2a+yWQ8OaQ2fCsKze2BPB 1kRDWMXYqov5IciXBl2aIoiVQQNXMO2VoKo+JzLVbEOZkyO/V8zfyP6U7WWJprRBGsRg 08OEdDIG8HGbtvTKTOz5QluubTp2XNzTruIxQXgmWcHwKdQyHQ4gq263MRcFlEMwEmaD Xhj5IO7KBnOJgYNzuCXyajfI7TCj/KnmvY1YBWks4LzZwXLgAx26OFyUlkaFk5SgotTY sA+Q3e+ZS5kUfMz8DAcPjQCeuGDa1zOIGtWHBx6J1xeLSjBFc4AJ3N+1vjzJHqJW9JwD gUJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=W7FNK9kD; 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 du13si6908898ejc.159.2020.07.27.07.21.59; Mon, 27 Jul 2020 07:22: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; dkim=pass header.i=@kernel.org header.s=default header.b=W7FNK9kD; 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 S1731578AbgG0OUh (ORCPT + 99 others); Mon, 27 Jul 2020 10:20:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:48860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731573AbgG0OUf (ORCPT ); Mon, 27 Jul 2020 10:20:35 -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 23F172070A; Mon, 27 Jul 2020 14:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859635; bh=bmnCTZY3O0KpK89X3zYxFlN4vf9HYQ0a1eKFlA+zyic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W7FNK9kDqv4QkhU0uhmBQCDu2CQW2JpHBv7YiEJIu/i6IXPzaqxVInAaZ3U2nK1YL OlLVEhsYz+dOiPe/KYCjV5lcGf9gux2srI5b9LzRKOGqKGLwOU0z2AZW9F0HuZGMCH jUttLxl4B3uvxXcYVdynkQ7pc4/GrQ8V/uWrD6f0= 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 5.7 019/179] fuse: fix weird page warning Date: Mon, 27 Jul 2020 16:03:14 +0200 Message-Id: <20200727134933.606252746@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@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 5c155437a455d..ec02c3240176c 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.25.1