linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	Sasha Levin <sasha.levin@oracle.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] mm/memory: print also a_ops->readpage in print_bad_pte
Date: Fri, 3 Apr 2015 18:35:40 -0700	[thread overview]
Message-ID: <20150403183540.0ed5def0.akpm@linux-foundation.org> (raw)
In-Reply-To: <CALYGNiNNz7HJHY4EU0+5V2+L0+Mz02SqRx7pyX0g_1rSk8L3Uw@mail.gmail.com>

On Sat, 4 Apr 2015 03:47:12 +0300 Konstantin Khlebnikov <koct9i@gmail.com> wrote:

> On Sat, Apr 4, 2015 at 1:10 AM, Andrew Morton <akpm@linux-foundation.org> wrote:
> > On Fri, 03 Apr 2015 20:18:18 +0300 Konstantin Khlebnikov <khlebnikov@yandex-team.ru> wrote:
> >
> >> A lot of filesystems use generic_file_mmap() and filemap_fault(),
> >> f_op->mmap and vm_ops->fault aren't enough to identify filesystem.
> >>
> >> This prints file name, vm_ops->fault, f_op->mmap and a_ops->readpage
> >> (which is almost always implemented and filesystem-specific).
> >>
> >> Example:
> >>
> >> [   23.676410] BUG: Bad page map in process sh  pte:1b7e6025 pmd:19bbd067
> >> [   23.676887] page:ffffea00006df980 count:4 mapcount:1 mapping:ffff8800196426c0 index:0x97
> >> [   23.677481] flags: 0x10000000000000c(referenced|uptodate)
> >> [   23.677896] page dumped because: bad pte
> >> [   23.678205] addr:00007f52fcb17000 vm_flags:00000075 anon_vma:          (null) mapping:ffff8800196426c0 index:97
> >> [   23.678922] file:libc-2.19.so fault:filemap_fault mmap:generic_file_readonly_mmap readpage:v9fs_vfs_readpage
> >
> > Is that why we print these out?  Just to identify the fs type?
> >
> > There's always vma->vm_file->f_inode->i_sb->s_magic ;)
> 
> Yes, but that also might be anon inode/file mapped by some driver, so
> s_magic isn't enough.

Well, we could ensure that every file_system_type has a valid ->name.
Do an audit, put a debug check in register_filesystem()?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2015-04-04  1:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-03 17:18 Konstantin Khlebnikov
2015-04-03 17:33 ` Kirill A. Shutemov
2015-04-03 22:10 ` Andrew Morton
2015-04-04  0:47   ` Konstantin Khlebnikov
2015-04-04  1:35     ` Andrew Morton [this message]
2015-04-04 17:02       ` Konstantin Khlebnikov

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=20150403183540.0ed5def0.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=khlebnikov@yandex-team.ru \
    --cc=koct9i@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=sasha.levin@oracle.com \
    /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