linux-um archives
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: "Toralf Förster" <toralf.foerster@gmx.de>
Cc: UML devel <user-mode-linux-devel@lists.sourceforge.net>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: why does index in truncate_inode_pages_range() grows so much ?
Date: Tue, 3 Dec 2013 15:02:14 +0100	[thread overview]
Message-ID: <20131203140214.GB31128@quack.suse.cz> (raw)
In-Reply-To: <529217CD.1000204@gmx.de>

On Sun 24-11-13 16:14:21, Toralf Förster wrote:
> At a 32 bit guest UML with current kernel git tree I putted a printk
> into that function :
> 
> void truncate_inode_pages_range(struct address_space *mapping,
>                                 loff_t lstart, loff_t lend)
> {
> ...
> 
> 
>                 cond_resched();
>                 index++;
> 		printk ("            <------------
> 
> 
> 
> 
> and got (while fuzzying the UML guest with trinity) this output in the
> UML guest:
> 
> 
> Nov 24 12:06:53 trinity kernel: index:42 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:43 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:5 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1035468800 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:16 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:4 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:2 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:4184867847 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:3 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1727 end:4294967295
> Nov 24 12:06:53 trinity kernel: index:1 end:4294967295
> 
> 
> I'm wondering if index is expected to become sometimes so big.
  No, I wouldn't expect such huge indices. OTOH with fuzzing there could be
some valid explanations. Could you move the printk before
pagevec_release(), print also 'start' variable and in case 'index' is
suspiciously large, print also 'i' and some info about the page pvec[i]
page (page->index, page->flags, page->mapping->host->i_sb->s_id,
page->mapping->host->i_ino)?

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


  parent reply	other threads:[~2013-12-03 14:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-24 15:14 [uml-devel] why does index in truncate_inode_pages_range() grows so much ? Toralf Förster
2013-11-25 13:55 ` stian
2013-12-03 14:02 ` Jan Kara [this message]
2013-12-03 19:43   ` Toralf Förster
2013-12-03 23:00     ` Jan Kara
2013-12-04 13:06       ` [uml-devel] " Jan Kara
2013-12-07 18:06         ` Toralf Förster
2013-12-11 20:26           ` [uml-devel] " Jan Kara
2013-12-13  9:52             ` Toralf Förster
2013-12-13 10:51               ` [uml-devel] " Richard Weinberger
2013-12-13 13:01                 ` Toralf Förster
2013-12-13 19:10                   ` Jan Kara
2013-12-05 23:23       ` Toralf Förster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131203140214.GB31128@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=toralf.foerster@gmx.de \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox