Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1405429ybl; Fri, 24 Jan 2020 23:31:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyadlYwzo2OS8HfVYyQn5YRJb2F+lQHW65RuedWEgKi2gJ76Gau7zQBK1bsqeosbdO0AvHB X-Received: by 2002:a05:6830:10d7:: with SMTP id z23mr5561181oto.114.1579937492424; Fri, 24 Jan 2020 23:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579937492; cv=none; d=google.com; s=arc-20160816; b=U7PRPMTyL80RP2KtJ9ZdesHMUa5ZElOdwR9XvWYOiQV5g/P1I17yKPlli/UrnJj/Nh DQWQVoh1Zr2zXnf1V43mxvnCju0fThu3PFk7RF4ydo3ogOCiuAJYf6pdYobd5/dioM6F YHZBSH0B5WHxQx6dOnbdEca3H+IKvw/f1KFKRpha8FeFm1wmG8DofTOSJvbf5Ayjvj45 mxEGie3jowM0qMdTBAP4yc93DpvK2zrlbZctCOGr6f9uS/qSMknTT7mm5mL0zV5W1wj4 oceq74wM/hwlACHD90DNNHSmMq63g6+MFwWMhiVwH0d78KUZIaLpkk/2VPDazGlYsnsO j3Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gfElhKcmLLzLavF5/+rWTQvus/0CsGz6eR+mU6mouGM=; b=JnIAR+hfsEdcAjfH1rrGrvuOK3lDNkg1I++aiLANWv6HyCM2FJZUPRKPgZpqtRSD6f ZXB5bfUs0qQwij89zkejND/DYqM6+A/4Sh3kxLptTdaEaXSBnuYfLxv/PIUfKW1lzFcN +uzdF5dnVBSnaLAor+z2HrMhDvaiMlpdbxMlS2KSkiooVelzARqVWARc02zM1kfZ5bQe Sy8XupG/zp71o4MxCCUQB6+jGRj16ViSb+eVJfh1A0c+O1NDudLtd2Wn2cod3Iyr/PPt nAP70M0YRDwZ3obvzfO2WS5ee4vQMvEnC1NNLuJwq3JDomyLM96kCmQOJCM9XVc68o2e 0OVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 l189si957694oih.166.2020.01.24.23.31.21; Fri, 24 Jan 2020 23:31:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727177AbgAYHbT (ORCPT + 99 others); Sat, 25 Jan 2020 02:31:19 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:53087 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726303AbgAYHbT (ORCPT ); Sat, 25 Jan 2020 02:31:19 -0500 Received: from callcc.thunk.org (rrcs-67-53-201-206.west.biz.rr.com [67.53.201.206]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 00P7VAjT026644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Jan 2020 02:31:12 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id A168E42014A; Sat, 25 Jan 2020 02:31:09 -0500 (EST) Date: Sat, 25 Jan 2020 02:31:09 -0500 From: "Theodore Y. Ts'o" To: Jan Kara Cc: Vasily Averin , linux-ext4@vger.kernel.org, Jan Kara Subject: Re: [PATCH 1/1] jbd2_seq_info_next should increase position index Message-ID: <20200125073109.GH1108497@mit.edu> References: <20200123111543.GC5728@quack2.suse.cz> <43e6a168-63b6-4a82-7b3d-5dd676b9f9bb@virtuozzo.com> <20200123140243.GA7914@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200123140243.GA7914@quack2.suse.cz> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Jan 23, 2020 at 03:02:43PM +0100, Jan Kara wrote: > On Thu 23-01-20 14:30:14, Vasily Averin wrote: > > > > > > On 1/23/20 2:15 PM, Jan Kara wrote: > > > On Thu 23-01-20 12:05:10, Vasily Averin wrote: > > >> if seq_file .next fuction does not change position index, > > >> read after some lseek can generate unexpected output. > > >> > > >> Script below generates endless output > > >> $ q=;while read -r r;do echo "$((++q)) $r";done > > > > > I've just tried and this works for me just fine with openSUSE 15.1 > > > (4.12.14-based) kernel. Is it some recent regression? > > > > I think it depends on > > commit 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code and interface") > > In OpenVz7 we got complain after backport of this patch. > > I see. OK. So please add tag: > > Fixes: 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code and interface") > > likely also: > > CC: stable@vger.kernel.org > > and you can also add: > > Reviewed-by: Jan Kara Thanks, applied with the suggested tags. - Ted