From: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
To: Petr Mladek <pmladek@suse.com>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-doc@vger.kernel.org, mcgrof@kernel.org,
keescook@chromium.org, yzaikin@google.com,
akpm@linux-foundation.org, feng.tang@intel.com,
siglesias@igalia.com, kernel@gpiccoli.net
Subject: Re: [PATCH 3/3] panic: Allow printing extra panic information on kdump
Date: Thu, 13 Jan 2022 10:00:49 -0300 [thread overview]
Message-ID: <fbadf45f-e21f-6f23-8165-e3568f119ebb@igalia.com> (raw)
In-Reply-To: <Yd/qmyz+qSuoUwbs@alley>
On 13/01/2022 06:02, Petr Mladek wrote:
> [...]
> Is anyone really using this approach? kmsg_dump() looks like a better
> choice when there are memory constrains. It does not need to reserve
> memory for booting the crash kernel.
>
> I would not mind much but this change depends on a not fully reliable
> assumption, see below.
>
> Also it will also complicate the solution for the kmsg_dump() code path.
> It would be better to discuss this togeter with the other patch
> https://lore.kernel.org/r/20220106212835.119409-1-gpiccoli@igalia.com
Hi Petr, thanks for your analysis here. Indeed, our use case benefits
from both this and the other patch in the thread you mentioned above -
see [0].
> [...]
>> (b) We assume that the code path won't return from __crash_kexec()
>> so we didn't guard against double execution of panic_print_sys_info().
>
> This sounds suspiciously. There is small race window but it actually works.
> __crash_kexec() really never returns when @kexec_crash_image is
> loaded. Well, it might break in the future if the code is modified.
>
> Best Regards,
> Petr
OK, so since this patch is already on linux-next and is relevant for our
use case, how about if we explicitly guard against the double print, as
I suggested in [0]?
Cheers,
Guilherme
[0]
https://lore.kernel.org/lkml/ba0e29ba-0e08-df6e-ade5-eb58ae2495e3@igalia.com/
next prev parent reply other threads:[~2022-01-13 13:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 20:28 [PATCH 0/3] Some improvements on panic_print Guilherme G. Piccoli
2021-11-09 20:28 ` [PATCH 1/3] docs: sysctl/kernel: Add missing bit to panic_print Guilherme G. Piccoli
2021-11-30 5:09 ` Feng Tang
2021-11-09 20:28 ` [PATCH 2/3] panic: Add option to dump all CPUs backtraces in panic_print Guilherme G. Piccoli
2021-11-30 5:12 ` Feng Tang
2021-12-03 15:09 ` Guilherme G. Piccoli
2021-12-19 20:11 ` Luis Chamberlain
2021-12-20 12:38 ` Guilherme G. Piccoli
2021-12-21 23:48 ` Andrew Morton
2021-12-22 12:37 ` Guilherme G. Piccoli
2022-01-13 9:31 ` Petr Mladek
2021-11-09 20:28 ` [PATCH 3/3] panic: Allow printing extra panic information on kdump Guilherme G. Piccoli
2021-12-22 11:45 ` Dave Young
2021-12-22 12:34 ` Guilherme G. Piccoli
2021-12-24 1:35 ` Dave Young
2021-12-25 19:21 ` Guilherme G. Piccoli
2021-12-27 1:45 ` Dave Young
2021-12-27 3:14 ` Guilherme G. Piccoli
2022-01-13 9:02 ` Petr Mladek
2022-01-13 13:00 ` Guilherme G. Piccoli [this message]
2022-01-27 16:53 ` Guilherme G. Piccoli
2022-02-08 18:12 ` Guilherme G. Piccoli
2022-02-08 21:39 ` Stephen Rothwell
2022-02-09 15:06 ` Guilherme G. Piccoli
2022-02-09 23:26 ` Stephen Rothwell
2022-02-10 12:50 ` Guilherme G. Piccoli
2021-11-26 21:34 ` [PATCH 0/3] Some improvements on panic_print Guilherme G. Piccoli
2021-12-14 16:31 ` Guilherme G. Piccoli
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=fbadf45f-e21f-6f23-8165-e3568f119ebb@igalia.com \
--to=gpiccoli@igalia.com \
--cc=akpm@linux-foundation.org \
--cc=feng.tang@intel.com \
--cc=keescook@chromium.org \
--cc=kernel@gpiccoli.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=pmladek@suse.com \
--cc=siglesias@igalia.com \
--cc=yzaikin@google.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;
as well as URLs for NNTP newsgroup(s).