From: Xishi Qiu <qiuxishi@huawei.com>
To: Rui Xiang <rui.xiang@huawei.com>
Cc: sysvinit-devel@nongnu.org, systemd-devel@lists.freedesktop.org,
Miao Xie <miaoxie@huawei.com>, Linux MM <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Question] A panic when reboot --force the system
Date: Mon, 26 Oct 2015 16:52:51 +0800 [thread overview]
Message-ID: <562DE9E3.8090807@huawei.com> (raw)
In-Reply-To: <562A01D5.20207@huawei.com>
On 2015/10/23 17:45, Rui Xiang wrote:
> Hii 1/4 ?list
>
> I encounter a panic about init process.
>
> Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007
>
> Pid: 1, comm: init Tainted: G R O 3.4.24.19-0.11-default #1
> Call Trace:
> [<ffffffff8144dd24>] panic+0xc1/0x1e2
> [<ffffffff8104483b>] do_exit+0x7db/0x8d0
> [<ffffffff81044c7a>] do_group_exit+0x3a/0xa0
> [<ffffffff8105394b>] get_signal_to_deliver+0x1ab/0x5e0
> [<ffffffff81002270>] do_signal+0x60/0x5f0
> [<ffffffff8145bf97>] ? do_page_fault+0x4a7/0x4d0
> [<ffffffff81170d2c>] ? poll_select_copy_remaining+0xec/0x140
> [<ffffffff81002885>] do_notify_resume+0x65/0x80
> [<ffffffff8124ca7e>] ? trace_hardirqs_on_thunk+0x3a/0x3c
> [<ffffffff814587ab>] retint_signal+0x4d/0x92
>
> The system has a little memory left, then reboot it, and get the panic.
>
> In our host, kswapd would be wake up while using a lot of memory, and then reclaim
> some pages from init process. If we execute *"reboot"* or *"reboot -f"* to reboot
> host through sysvinit, reboot process will call sys_reboot and shut down the sas
> driver(disk), then will trigger the panic of init process.
>
> As follow,
>
> HOST reboot process init process
> use a lot of memory
> wake up kswapd
> reclaim some pages
> (these pages are code segment
> or data segment of init process)
> from init thread (pid=1)
> reboot
> sys_reboot
> shutdown disk driver
>
init thread read data from disk
Hi,
Does anyone know will init thread read data from disk after shutdown
the disk driver?
Thanks,
Xishi Qiu
> page_fault
> filemap_fault
> readpage failed because the disk is closed
> return VM_FAULT_SIGBUS
> send signal SIGBUS
> do_signal
> do_exit
> trigger the panic
>
>
> It seems that reboot or force reboot through *sysvinit* have the problem.
> Furthermore, using reboot -f in *systemd* should also have this problem, right?
>
> And is that a bug for current reboot process in sysvinit or systemd?
>
> All comments are welcome, thanks.
>
> .
>
--
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>
WARNING: multiple messages have this Message-ID (diff)
From: Xishi Qiu <qiuxishi@huawei.com>
To: Rui Xiang <rui.xiang@huawei.com>
Cc: <sysvinit-devel@nongnu.org>,
<systemd-devel@lists.freedesktop.org>,
"Miao Xie" <miaoxie@huawei.com>, Linux MM <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Question] A panic when reboot --force the system
Date: Mon, 26 Oct 2015 16:52:51 +0800 [thread overview]
Message-ID: <562DE9E3.8090807@huawei.com> (raw)
In-Reply-To: <562A01D5.20207@huawei.com>
On 2015/10/23 17:45, Rui Xiang wrote:
> Hi,list
>
> I encounter a panic about init process.
>
> Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007
>
> Pid: 1, comm: init Tainted: G R O 3.4.24.19-0.11-default #1
> Call Trace:
> [<ffffffff8144dd24>] panic+0xc1/0x1e2
> [<ffffffff8104483b>] do_exit+0x7db/0x8d0
> [<ffffffff81044c7a>] do_group_exit+0x3a/0xa0
> [<ffffffff8105394b>] get_signal_to_deliver+0x1ab/0x5e0
> [<ffffffff81002270>] do_signal+0x60/0x5f0
> [<ffffffff8145bf97>] ? do_page_fault+0x4a7/0x4d0
> [<ffffffff81170d2c>] ? poll_select_copy_remaining+0xec/0x140
> [<ffffffff81002885>] do_notify_resume+0x65/0x80
> [<ffffffff8124ca7e>] ? trace_hardirqs_on_thunk+0x3a/0x3c
> [<ffffffff814587ab>] retint_signal+0x4d/0x92
>
> The system has a little memory left, then reboot it, and get the panic.
>
> In our host, kswapd would be wake up while using a lot of memory, and then reclaim
> some pages from init process. If we execute *"reboot"* or *"reboot -f"* to reboot
> host through sysvinit, reboot process will call sys_reboot and shut down the sas
> driver(disk), then will trigger the panic of init process.
>
> As follow,
>
> HOST reboot process init process
> use a lot of memory
> wake up kswapd
> reclaim some pages
> (these pages are code segment
> or data segment of init process)
> from init thread (pid=1)
> reboot
> sys_reboot
> shutdown disk driver
>
init thread read data from disk
Hi,
Does anyone know will init thread read data from disk after shutdown
the disk driver?
Thanks,
Xishi Qiu
> page_fault
> filemap_fault
> readpage failed because the disk is closed
> return VM_FAULT_SIGBUS
> send signal SIGBUS
> do_signal
> do_exit
> trigger the panic
>
>
> It seems that reboot or force reboot through *sysvinit* have the problem.
> Furthermore, using reboot -f in *systemd* should also have this problem, right?
>
> And is that a bug for current reboot process in sysvinit or systemd?
>
> All comments are welcome, thanks.
>
> .
>
next prev parent reply other threads:[~2015-10-26 8:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 9:45 [Question] A panic when reboot --force the system Rui Xiang
2015-10-26 8:52 ` Xishi Qiu [this message]
2015-10-26 8:52 ` Xishi Qiu
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=562DE9E3.8090807@huawei.com \
--to=qiuxishi@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=miaoxie@huawei.com \
--cc=rui.xiang@huawei.com \
--cc=systemd-devel@lists.freedesktop.org \
--cc=sysvinit-devel@nongnu.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.