Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2637942ybf; Mon, 2 Mar 2020 12:42:38 -0800 (PST) X-Google-Smtp-Source: ADFU+vsf3odIpEmACMGqkqiv0U1P/dXmxF2rGCQH73zX+8Vm3nDGbJtN/8by+gPVq8BgzArtTtUd X-Received: by 2002:aca:120e:: with SMTP id 14mr163652ois.135.1583181758037; Mon, 02 Mar 2020 12:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583181758; cv=none; d=google.com; s=arc-20160816; b=KaWq1za+gRiXpvCjEKPcGpOF8Xyy4rYxD6zHA+PMjSmkkF3mHC/RbEo9q9b4f2ywno XSUJp70+G+XBqE877msRdgGa+tUogbYTgn8HutZn4Bwydsg6/FabWr8zL9TyuL5Uvw9T jXJyJrgF5CiWTvCynBtsnanczqbZH7P/UJDRk8iQi6XljqnLJFFbzyRkGKZJUn2wYVB3 jrGu6iizcOk3iXSWKat9AlanxtqRB8BiRU0wfz49uakWwfsBJ2WvVkfCKCJjKXUh3IfS YqhXuymESZDXQa3XDtrXLu/ch5aidOmH/5051+pGfT+tHqTKyRAjY1h9BwU/+ono/q5h UM0A== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=vCxU960TxCjiBoV8PNLiWNkYsyCgohljbnzWrM7+AhE=; b=pXZue1EMZ4t4BjVQkd07Q3A7CDQJuRhynrGfswVP73dJngvOhCGwTz/x90SSdabho1 UGtVFS3JiYf+f16ZtORxHZI1sviFdKgHz5ImFAGyzt9b1WmCwiSIwWz3jxggDBQFKSth pChZj2/ePeMCrrF6n6gcGAJUPoZj7mSRLe4F3fprpCAshQ51QLIz8aD2ESEIAAaana6+ R6M9pZ0V9guw7Ve/xUyN1IOJRxEP4HKyrrBpVTpvwh90HbaKK9NxEBh8kCR6A1kjMOKA 4A0VBgJs6um8GFKjjF817XLm8Vr5Nqx7lhtJN/DePlYoVErEDIJqrNNNxIcpcB+0vEYh 6IEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mWTO7w9F; 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 c140si831693oib.195.2020.03.02.12.42.24; Mon, 02 Mar 2020 12:42:38 -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; dkim=pass header.i=@kernel.org header.s=default header.b=mWTO7w9F; 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 S1726747AbgCBUmW (ORCPT + 99 others); Mon, 2 Mar 2020 15:42:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:45650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbgCBUmV (ORCPT ); Mon, 2 Mar 2020 15:42:21 -0500 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (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 8947621556; Mon, 2 Mar 2020 20:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583181741; bh=SRrZiuIqb+CFf0u17GxuqBXyOhyi1OsfKZAOzYuzi14=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mWTO7w9FivA0BR7CvjDLlRubz0CWTSKXmAUYb//naFgTZGJwEiE05X9U33ba5S4kG lcVyj/dx/lg37DV+aAow2yU2a2VXdqv+jNBSmfLrc6VnOUbcYK7hMCfSVq8vOgXHby 8+lwQfZMsowXwhhcJCtTXgUg1OXs6vIpGHsIGO9c= Date: Mon, 2 Mar 2020 12:42:19 -0800 From: Andrew Morton To: Qian Cai Cc: linux-kernel@vger.kernel.org, dave@stgolabs.net, longman@redhat.com, manfred@colorfullife.com, mingo@redhat.com, mm-commits@vger.kernel.org, neilb@suse.com, oberpar@linux.ibm.com, rostedt@goodmis.org, viro@zeniv.linux.org.uk, vvs@virtuozzo.com Subject: Re: + seq_read-info-message-about-buggy-next-functions.patch added to -mm tree Message-Id: <20200302124219.eaf3d18422b76ff2196d9ce8@linux-foundation.org> In-Reply-To: <1583177508.7365.144.camel@lca.pw> References: <20200226035621.4NlNn738T%akpm@linux-foundation.org> <1583173259.7365.142.camel@lca.pw> <1583177508.7365.144.camel@lca.pw> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 02 Mar 2020 14:31:48 -0500 Qian Cai wrote: > On Mon, 2020-03-02 at 13:20 -0500, Qian Cai wrote: > > This patch spams the console like crazy while reading sysfs, > > > > # dmesg | grep 'buggy seq_file' | wc -l > > 4204 > > > > [ 9505.321981] LTP: starting read_all_proc (read_all -d /proc -q -r 10) > > [ 9508.222934] buggy seq_file .next function xt_match_seq_next [x_tables] did > > not updated position index > > [ 9508.223319] buggy seq_file .next function xt_match_seq_next [x_tables] did > > not updated position index > > [ 9508.223654] buggy seq_file .next function xt_match_seq_next [x_tables] did > > not updated position index > > [ 9508.223994] buggy seq_file .next function xt_match_seq_next [x_tables] did > > not updated position index > > [ 9508.224337] buggy seq_file .next function xt_match_seq_next [x_tables] did > > not updated position index > > ... > > > > > > > --- a/fs/seq_file.c~seq_read-info-message-about-buggy-next-functions > > > +++ a/fs/seq_file.c > > > @@ -256,9 +256,12 @@ Fill: > > > loff_t pos = m->index; > > > > > > p = m->op->next(m, p, &m->index); > > > - if (pos == m->index) > > > - /* Buggy ->next function */ > > > + if (pos == m->index) { > > > + pr_info("buggy seq_file .next function %ps " > > > + "did not updated position index\n", > > > + m->op->next); > > This? > > s/pr_info/pr_info_ratelimited/ > Fair enough - I made that change.