From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752752AbbJWJq2 (ORCPT ); Fri, 23 Oct 2015 05:46:28 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:37530 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752596AbbJWJq1 (ORCPT ); Fri, 23 Oct 2015 05:46:27 -0400 To: , , CC: Miao Xie , Xishi Qiu From: Rui Xiang Subject: [Question] A panic when reboot --force the system Message-ID: <562A01D5.20207@huawei.com> Date: Fri, 23 Oct 2015 17:45:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.177.22.70] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: [] panic+0xc1/0x1e2 [] do_exit+0x7db/0x8d0 [] do_group_exit+0x3a/0xa0 [] get_signal_to_deliver+0x1ab/0x5e0 [] do_signal+0x60/0x5f0 [] ? do_page_fault+0x4a7/0x4d0 [] ? poll_select_copy_remaining+0xec/0x140 [] do_notify_resume+0x65/0x80 [] ? trace_hardirqs_on_thunk+0x3a/0x3c [] 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 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.