All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vyacheslav Dubeyko <slava-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
To: Ryusuke Konishi
	<konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	jeromepoulin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: Kernel Bug: unable to handle kernel paging request
Date: Fri, 16 Aug 2013 11:03:30 +0400	[thread overview]
Message-ID: <1376636610.2301.28.camel@slavad-ubuntu> (raw)
In-Reply-To: <20130816.134934.27810145.konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>

Hi Ryusuke,

On Fri, 2013-08-16 at 13:49 +0900, Ryusuke Konishi wrote:
> Hi Vyachelav,
> 
> I haven't yet succeeded to reproduce this issue even with apt-get
> update operation.
> 
> How long did it take to reproduce this issue in your environment ?
> 

I reproduce the issue stably in my environment. But sometimes I need to
repeat reproducing path several times before achieving the issue.
Usually, the issue is reproduced on the phase of "Reading package
lists...". But it is hard to predict on what concrete percent of
operation progress you will reproduce the issue.

I have such version of the kernel: Linux 3.10.0-rc5+ #45 SMP Thu Aug 8
17:20:43 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux. This is Ubuntu 12.04.2
LTS (GNU/Linux 3.10.0-rc5+ x86_64) distro.

I simply start four terminal windows in parallel with root permissions:
(1) "tail -n 30 -f /var/log/syslog" output;
(2) "top" output;
(3) start kernel compilation;
(4) start apt-get update;

> According to reported logs, the crash seems to occur at the following
> BUG_ON() which is inlined in nilfs_end_page_io() function:
> 
> #define page_buffers(page)                                      \
>         ({                                                      \
>                 BUG_ON(!PagePrivate(page));                     \
>                 ((struct buffer_head *)page_private(page));     \
>         })
> 
> However, it's hard to narrow down the cause without reproducing the
> issue.  The page private flag is used to indicate that the given page
> has buffer heads.  So, this issue seems to be caused by that an
> invalid page was passed to nilfs_end_page_io() or
> try_to_free_buffers() freed the buffer head by some reason.
> 
> The latter situation can occur if the following buffer_busy() function
> unexpectedly failed for the buffer head:
> 
> static inline int buffer_busy(struct buffer_head *bh)
> {
>         return atomic_read(&bh->b_count) |
>                 (bh->b_state & ((1 << BH_Dirty) | (1 << BH_Lock)));
> }
> 
> Since BH_Dirty is dropped in nilfs_segctor_complete_write() function,
> I suspect the situation that bh->b_count mistakenly reached zero.
> 
> Anyhow, further debug seems hard without reproducing the issue.
> 

Yes, I see. I will take into account your considerations about possible
reason of the issue. Thank you.

Unfortunately, I haven't opportunity for the issue investigation during
this week. I think that I can check your suspicion during today. Anyway,
I will continue investigation of the issue on the next week.

Sorry that I don't answer on your previous e-mail. I were busy.

With the best regards,
Vyacheslav Dubeyko.


--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2013-08-16  7:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12  5:24 Kernel Bug: unable to handle kernel paging request Jérôme Poulin
     [not found] ` <CALJXSJquK6YxGKuH97Ec2CTMyJaZrJjOfePSKtgPDm8_9YXzzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-12 18:58   ` Jérôme Poulin
     [not found]     ` <CALJXSJoW9Qpp9t42u_k4cW3gO6qzSPoeCjtQDU3tDKq6TJ=K8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-18 17:30       ` Vyacheslav Dubeyko
     [not found]         ` <F4156394-8A25-4F81-81C3-9921CB00BD92-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
2013-07-22 19:11           ` Jérôme Poulin
     [not found]             ` <CALJXSJrj0J_-ZUCOurJXaYhx_wEJwxb2_5OOJjQSSmmP-PQDgg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-23 11:15               ` Vyacheslav Dubeyko
2013-07-26 18:13                 ` Jérôme Poulin
     [not found]                   ` <CALJXSJrY22eGkYA76wwL4moAdsjV+_PUtvVO6tt5K16hzMh8xQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-27 17:06                     ` Vyacheslav Dubeyko
     [not found]                       ` <CALJXSJqV5nYb_t6GMS0FpWyf1aRehAgpvebwgbJzMJfctf1b2A@mail.gmail.com>
     [not found]                         ` <CALJXSJqV5nYb_t6GMS0FpWyf1aRehAgpvebwgbJzMJfctf1b2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-29 17:30                           ` Vyacheslav Dubeyko
2013-08-09 13:15                           ` Vyacheslav Dubeyko
2013-08-14 22:38                             ` Ryusuke Konishi
     [not found]                               ` <20130815.073806.260411879.konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
2013-08-16  4:49                                 ` Ryusuke Konishi
     [not found]                                   ` <20130816.134934.27810145.konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
2013-08-16  7:03                                     ` Vyacheslav Dubeyko [this message]
2013-08-29 19:10                                       ` Vyacheslav Dubeyko
     [not found]                                         ` <72C60256-983E-43D0-9DA1-D4A446B578BB-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
2013-08-29 23:37                                           ` Jérôme Poulin
     [not found]                                             ` <CALJXSJpbHN2SQWz0e2gC_hrRKG8EcnV2bWf068GWsuoa8AX5Dw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-30  5:43                                               ` Vyacheslav Dubeyko

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=1376636610.2301.28.camel@slavad-ubuntu \
    --to=slava-yeenwd64clxbdgjk7y7tuq@public.gmane.org \
    --cc=jeromepoulin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org \
    --cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.