Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753549AbbHERQy (ORCPT ); Wed, 5 Aug 2015 13:16:54 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:58564 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752587AbbHERQv convert rfc822-to-8bit (ORCPT ); Wed, 5 Aug 2015 13:16:51 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: =?utf-8?B?5rKz5ZCI6Iux5a6PIC8gS0FXQUnvvIxISURFSElSTw==?= Cc: Vivek Goyal , Andrew Morton , "linux-mips\@linux-mips.org" , Baoquan He , "kexec\@lists.infradead.org" , "linux-kernel\@vger.kernel.org" , "HATAYAMA Daisuke" , =?utf-8?B?5bmz5p2+6ZuF?= =?utf-8?B?5bezIC8gSElSQU1BVFXvvIxNQVNBTUk=?= , Daniel Walker , "Ingo Molnar" References: <20150724011615.6834.79628.stgit@softrs> <55BF4B1F.9000602@hitachi.com> <877fpcfi2j.fsf@x220.int.ebiederm.org> <04EAB7311EE43145B2D3536183D1A84454926993@GSjpTKYDCembx31.service.hitachi.net> Date: Wed, 05 Aug 2015 12:10:06 -0500 In-Reply-To: <04EAB7311EE43145B2D3536183D1A84454926993@GSjpTKYDCembx31.service.hitachi.net> (=?utf-8?B?Iuays+WQiOiLseWujw==?= / =?utf-8?Q?KAWAI=EF=BC=8CHIDEHIRO=22's?= message of "Tue, 4 Aug 2015 11:41:14 +0000") Message-ID: <87io8tvez5.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-XM-AID: U2FsdGVkX18RPZC33dA55LTTOfLKiKElNPZ8H7AUiII= X-SA-Exim-Connect-IP: 97.119.22.40 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.5 XMGappySubj_01 Very gappy subject * 0.7 XMSubLong Long Subject * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4992] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: =?ISO-8859-1?Q?**;=e6=b2=b3=e5=90=88=e8=8b=b1=e5=ae=8f / KAWAI=ef=bc=8cHIDEHIRO ?= X-Spam-Relay-Country: X-Spam-Timing: total 571 ms - load_scoreonly_sql: 0.20 (0.0%), signal_user_changed: 4.9 (0.9%), b_tie_ro: 3.4 (0.6%), parse: 2.1 (0.4%), extract_message_metadata: 22 (3.9%), get_uri_detail_list: 2.6 (0.4%), tests_pri_-1000: 9 (1.5%), tests_pri_-950: 2.1 (0.4%), tests_pri_-900: 1.70 (0.3%), tests_pri_-400: 31 (5.5%), check_bayes: 30 (5.2%), b_tokenize: 12 (2.1%), b_tok_get_all: 8 (1.4%), b_comp_prob: 3.8 (0.7%), b_tok_touch_all: 2.6 (0.5%), b_finish: 0.85 (0.1%), tests_pri_0: 486 (85.1%), tests_pri_500: 6 (1.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: [RFC V2 PATCH 0/1] kexec: crash_kexec_post_notifiers boot option related fixes X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Wed, 24 Sep 2014 11:00:52 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2208 Lines: 54 "河合英宏 / KAWAI,HIDEHIRO" writes: > Hello, > > Thanks for the reply. > >> From: Eric W. Biederman [mailto:ebiederm@xmission.com] > [...] >> A specific hook for a very specific purpose when there is no other way >> we can consider. > > So, is kmsg_dump like feature admissible? > >> If you don't have something that generalises well into a general purpose >> operation that it makes sense for everyone to call you can always use >> the world's largest aka you can run code before the new kernel starts >> that is loaded with kexec_load. > > One of our purposes, notifying "I'm dying", would be achieved by purgatory > code provided by kexec command as I stated before. Since the way of the > notification will differ from each vendor, I think we need to modify > the purgatory codes pluggable. Also, I think we need some parameter > passing mechanism to the purgatory code. For example, passing the panic > message via boot parameter to save it to SEL. Although I'm not sure > we can do that (I've not investigated well yet). Is that acceptable? I think the address of panic message is available in crash notes. If not that is very reasonable to add. Updating the SEL from purgatory after purgatory has validated the checksums of the crash handling code is acceptable. All that is desired is to run as little code as possible in a kernel that is known broken. Once the checksums have verified things in purgatory you should be in good shape, and there is no possibility of relying on broken infrastructure because that code simply is not present in purgatory. We already have a few early_printk style drivers in purgatory and I don't the code to update the SEL would be much worse. On the flip side there are enough firmware bugs that I personally would not want to rely on firmware code running properly when the machine is in a known broken state, so I don't want the SEL update to be unconditional. Eric -- 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/