Skip to contentSkip to conversation

Only allow to set crash_kexec_post_notifiers on boot time

PATCH In review Dave Young 8 participants 20 messages Sep 18, 2020 – Sep 29, 2020

Subsystems (2)
lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 1/1 Only allow to set crash_kexec_post_notifiers on boot time

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

---
 kernel/panic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/panic.c +1 -1
index aef8872ba843..bea44fc4eb3b 100644
@@ -695,7 +695,7 @@ core_param(panic, panic_timeout, int, 0644);
 core_param(panic_print, panic_print, ulong, 0644);
 core_param(pause_on_oops, pause_on_oops, int, 0644);
 core_param(panic_on_warn, panic_on_warn, int, 0644);
-core_param(crash_kexec_post_notifiers, crash_kexec_post_notifiers, bool, 0644);
+core_param(crash_kexec_post_notifiers, crash_kexec_post_notifiers, bool, 0444);
 
 static int __init oops_setup(char *s)
 {
Signature · 7 lines
2.26.2


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 8 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

author
#2 lore raw
Quoted 23 lines · Andrew Morton
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 8 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Quoted 8 lines

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

I hope that commit can be merged in systemd, but we are really not optimize about that. The discussion is clear there but we did not get response since Aug 6.

BTW, Kairui sent the systemd pull request 15 days ago, the new update added some comment.

Thanks
Dave

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#3 lore raw
In reply to Andrew Morton
Quoted 14 lines · Andrew Morton
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 4 lines
Quoted 4 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

Quoted 5 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Quoted 7 lines

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

It does in systemd, but there is a strong interest in making this on by default.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#4 lore raw
Quoted 30 lines · Konrad Rzeszutek Wilk
Quoted 14 lines · Andrew Morton
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 4 lines
Quoted 4 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

Quoted 8 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

Quoted 7 lines
Quoted 4 lines

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

It does in systemd, but there is a strong interest in making this on by default.

There is also a strong interest in removing this code entirely from the kernel.

This failure is a case in point.

I think I am at my I told you so point. This is what all of the testing over all the years has said. Leaving functionality to the peculiarities of firmware when you don't have to, and can actually control what is going on doesn't work.

Eric

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#5 lore raw

+ more people who may care about this param

Quoted 37 lines · Eric W. Biederman
Quoted 35 lines · Konrad Rzeszutek Wilk
Quoted 14 lines · Andrew Morton
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 4 lines
Quoted 4 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

Quoted 12 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

Quoted 5 lines
Quoted 2 lines

It does in systemd, but there is a strong interest in making this on by default.

There is also a strong interest in removing this code entirely from the kernel.

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

commit f06e5153f4ae2e2f3b0300f0e260e40cb7fefd45
Author: Masami Hiramatsu <[email protected]>
Date: Fri Jun 6 14:37:07 2014 -0700

kernel/panic.c: add "crash_kexec_post_notifiers" option for kdump after panic_notifers

Add a "crash_kexec_post_notifiers" boot option to run kdump after running panic_notifiers and dump kmsg. This can help rare situations where kdump fails because of unstable crashed kernel or hardware failure (memory corruption on critical data/code), or the 2nd kernel is already broken by the 1st kernel (it's a broken behavior, but who can guarantee that the "crashed" kernel works correctly?).

Usage: add "crash_kexec_post_notifiers" to kernel boot option.

Note that this actually increases risks of the failure of kdump. This option should be set only if you worry about the rare case of kdump failure rather than increasing the chance of success.

Quoted 11 lines

This failure is a case in point.

I think I am at my I told you so point. This is what all of the testing over all the years has said. Leaving functionality to the peculiarities of firmware when you don't have to, and can actually control what is going on doesn't work.

Eric

Thanks
Dave

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#6 lore raw
Quoted 1 line · Dave Young

+ more people who may care about this param

Paarty time!!

(See below, didn't snip any comments)

Quoted 62 lines · Eric W. Biederman
Quoted 37 lines
Quoted 35 lines · Konrad Rzeszutek Wilk
Quoted 14 lines · Andrew Morton
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 4 lines
Quoted 4 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

Quoted 12 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

Quoted 5 lines
Quoted 2 lines

It does in systemd, but there is a strong interest in making this on by default.

There is also a strong interest in removing this code entirely from the kernel.

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

commit f06e5153f4ae2e2f3b0300f0e260e40cb7fefd45
Author: Masami Hiramatsu <[email protected]>
Date: Fri Jun 6 14:37:07 2014 -0700

kernel/panic.c: add "crash_kexec_post_notifiers" option for kdump after panic_notifers

Add a "crash_kexec_post_notifiers" boot option to run kdump after running panic_notifiers and dump kmsg. This can help rare situations where kdump fails because of unstable crashed kernel or hardware failure (memory corruption on critical data/code), or the 2nd kernel is already broken by the 1st kernel (it's a broken behavior, but who can guarantee that the "crashed" kernel works correctly?).

Quoted 5 lines

Usage: add "crash_kexec_post_notifiers" to kernel boot option.

Note that this actually increases risks of the failure of kdump. This option should be set only if you worry about the rare case of kdump failure rather than increasing the chance of success.

If this is such risky knob that leads to bugs where folks are backing away from with disgust in their faces - then perhaps the only way to go about this is - limit the exposure to known working situations on firmware that we can control?

That is enable only a subset of post notifiers which determine if they are OK running if the conditions are blessed?

I think that would satisfy the conditions where you have to to deal with unsavory bugs that end up on your plate - and aren't fun because there is no way to fixing it - but at the same time allowing multiple ways to save the crash?

Please don't take away something that is quite useful in the field. Can we hammer out something that will remove your pain points?

Quoted 9 lines
Quoted 9 lines

This failure is a case in point.

I think I am at my I told you so point. This is what all of the testing over all the years has said. Leaving functionality to the peculiarities of firmware when you don't have to, and can actually control what is going on doesn't work.

Quoted 7 lines
Quoted 3 lines

Eric

Thanks
Dave

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#7 lore raw

From: Konrad Rzeszutek Wilk <[email protected]> Sent: Wednesday, September 23, 2020 8:48 AM

Quoted 24 lines · Dave Young
Quoted 1 line

+ more people who may care about this param

Paarty time!!

(See below, didn't snip any comments)

Quoted 13 lines · Eric W. Biederman
Quoted 12 lines
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Andrew Morton
Quoted 7 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:

Quoted 36 lines

https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsyst
emd%2Fsystemd%2Fissues%2F16661&amp;data=02%7C01%7Cmikelley%40microsoft.com% 7C3631bae06f7147c0f92908d85fd7f2b2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0% 7C637364728378052956&amp;sdata=9CUpPUxcKLLggbJ1bjubBjbFUAhPVeZhIc4yss8wAiU%3 D&amp;reserved=0

Quoted 31 lines
Quoted 21 lines
Quoted 21 lines
Quoted 5 lines
Quoted 5 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

Quoted 12 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

Quoted 5 lines
Quoted 2 lines

It does in systemd, but there is a strong interest in making this on by default.

There is also a strong interest in removing this code entirely from the kernel.

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Michael

Quoted 52 lines
Quoted 6 lines

commit f06e5153f4ae2e2f3b0300f0e260e40cb7fefd45
Author: Masami Hiramatsu <[email protected]>
Date: Fri Jun 6 14:37:07 2014 -0700

kernel/panic.c: add "crash_kexec_post_notifiers" option for kdump after

panic_notifers

Quoted 8 lines

Add a "crash_kexec_post_notifiers" boot option to run kdump after running panic_notifiers and dump kmsg. This can help rare situations where kdump fails because of unstable crashed kernel or hardware failure (memory corruption on critical data/code), or the 2nd kernel is already broken by the 1st kernel (it's a broken behavior, but who can guarantee that the "crashed" kernel works correctly?).

Quoted 5 lines

Usage: add "crash_kexec_post_notifiers" to kernel boot option.

Note that this actually increases risks of the failure of kdump. This option should be set only if you worry about the rare case of kdump failure rather than increasing the chance of success.

If this is such risky knob that leads to bugs where folks are backing away from with disgust in their faces - then perhaps the only way to go about this is - limit the exposure to known working situations on firmware that we can control?

That is enable only a subset of post notifiers which determine if they are OK running if the conditions are blessed?

I think that would satisfy the conditions where you have to to deal with unsavory bugs that end up on your plate - and aren't fun because there is no way to fixing it - but at the same time allowing multiple ways to save the crash?

Please don't take away something that is quite useful in the field. Can we hammer out something that will remove your pain points?

Quoted 16 lines
Quoted 12 lines

This failure is a case in point.

I think I am at my I told you so point. This is what all of the testing over all the years has said. Leaving functionality to the peculiarities of firmware when you don't have to, and can actually control what is going on doesn't work.

Eric

Thanks
Dave

#8 lore raw
Quoted 62 lines · Michael Kelley

From: Konrad Rzeszutek Wilk <[email protected]> Sent: Wednesday, September 23, 2020 8:48 AM

Quoted 24 lines · Dave Young
Quoted 1 line

+ more people who may care about this param

Paarty time!!

(See below, didn't snip any comments)

Quoted 13 lines · Eric W. Biederman
Quoted 12 lines
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 9 lines · Andrew Morton
Quoted 7 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:

Quoted 36 lines

https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsyst
emd%2Fsystemd%2Fissues%2F16661&amp;data=02%7C01%7Cmikelley%40microsoft.com% 7C3631bae06f7147c0f92908d85fd7f2b2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0% 7C637364728378052956&amp;sdata=9CUpPUxcKLLggbJ1bjubBjbFUAhPVeZhIc4yss8wAiU%3 D&amp;reserved=0

Quoted 31 lines
Quoted 21 lines
Quoted 21 lines
Quoted 5 lines
Quoted 5 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

Quoted 12 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

Quoted 5 lines
Quoted 2 lines

It does in systemd, but there is a strong interest in making this on by default.

There is also a strong interest in removing this code entirely from the kernel.

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Quoted 6 lines

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

Eric

#9 lore raw

From: Eric W. Biederman <[email protected]> Sent: Thursday, September 24, 2020 9:26 AM

Quoted 16 lines
Quoted 6 lines · Michael Kelley
Quoted 5 lines
Quoted 5 lines

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Quoted 6 lines

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Quoted 4 lines

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

The host itself doesn't care. But the host is a convenient out-of-band channel for recording that a panic has occurred and to collect basic data about the panic. This out-of-band channel is then used to notify the end customer that his VM has panic'ed. Sure, the customer should be running his own monitoring software, but customers don't always do what they should. Equally important, the out-of-band channel allows the cloud infrastructure software to notice trends, such as that the rate of Linux panics has increased, and that perhaps there is a cloud problem that should be investigated.

Quoted 5 lines

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

The use case I describe has no particular requirement that it be implemented via the notifier call chain. If there's a better way to run some out-of-band notification code on all Linux panics regardless of whether a kdump is taken, we're open to such an alternative.

Michael

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#10 lore raw
Quoted 17 lines · Michael Kelley

From: Eric W. Biederman <[email protected]> Sent: Thursday, September 24, 2020 9:26 AM

Quoted 12 lines
Quoted 10 lines · Michael Kelley
Quoted 4 lines
Quoted 4 lines

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Quoted 4 lines

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

Quoted 9 lines

The host itself doesn't care. But the host is a convenient out-of-band channel for recording that a panic has occurred and to collect basic data about the panic. This out-of-band channel is then used to notify the end customer that his VM has panic'ed. Sure, the customer should be running his own monitoring software, but customers don't always do what they should. Equally important, the out-of-band channel allows the cloud infrastructure software to notice trends, such as that the rate of Linux panics has increased, and that perhaps there is a cloud problem that should be investigated.

In many cases (especially in cloud environment) your dump device is remote (e.g. iscsi) and kdump sometimes (often?) gets stuck because of connectivity issues (which could be cause of the panic in the first place). So it is quite desirable to inform the infrastructure that the VM is on its way out without waiting for kdump to complete.

Quoted 5 lines
Quoted 5 lines

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

We btw already have a direct call from panic() to kmsg_dump() which is indirectly controlled by crash_kexec_post_notifiers, and it would also be preferable to be able to call it before kdump as well.

-boris

Quoted 4 lines

The use case I describe has no particular requirement that it be implemented via the notifier call chain. If there's a better way to run some out-of-band notification code on all Linux panics regardless of whether a kdump is taken, we're open to such an alternative.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#11 lore raw

Hi,

Quoted 30 lines · On 09/24/20 at 01:16pm, [email protected] wrote:
Quoted 17 lines · Michael Kelley

From: Eric W. Biederman <[email protected]> Sent: Thursday, September 24, 2020 9:26 AM

Quoted 12 lines
Quoted 10 lines · Michael Kelley
Quoted 4 lines
Quoted 4 lines

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Quoted 4 lines

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

Quoted 9 lines

The host itself doesn't care. But the host is a convenient out-of-band channel for recording that a panic has occurred and to collect basic data about the panic. This out-of-band channel is then used to notify the end customer that his VM has panic'ed. Sure, the customer should be running his own monitoring software, but customers don't always do what they should. Equally important, the out-of-band channel allows the cloud infrastructure software to notice trends, such as that the rate of Linux panics has increased, and that perhaps there is a cloud problem that should be investigated.

Quoted 1 line

In many cases (especially in cloud environment) your dump device is remote (e.g. iscsi) and kdump sometimes (often?) gets stuck because of connectivity issues (which could be cause of the panic in the first place). So it is quite desirable to inform the infrastructure that the VM is on its way out without waiting for kdump to complete.

That can probably be done in kdump kernel if it is really needed. Say informing host that panic happened and a kdump kernel is runnning.

But I think to set crash_kexec_post_notifiers by default is still bad.

Quoted 9 lines
Quoted 7 lines
Quoted 7 lines

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

We btw already have a direct call from panic() to kmsg_dump() which is indirectly controlled by crash_kexec_post_notifiers, and it would also be preferable to be able to call it before kdump as well.

Right, that is the same thing we are talking about.

Thanks
Dave

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#12 lore raw
Quoted 33 lines · Dave Young

Hi,

Quoted 30 lines · On 09/24/20 at 01:16pm, [email protected] wrote:
Quoted 26 lines · Michael Kelley

From: Eric W. Biederman <[email protected]> Sent: Thursday, September 24, 2020 9:26 AM

Quoted 12 lines
Quoted 10 lines · Michael Kelley
Quoted 4 lines
Quoted 4 lines

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Quoted 4 lines

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

The host itself doesn't care. But the host is a convenient out-of-band channel for recording that a panic has occurred and to collect basic data about the panic. This out-of-band channel is then used to notify the end customer that his VM has panic'ed. Sure, the customer should be running his own monitoring software, but customers don't always do what they should. Equally important, the out-of-band channel allows the cloud infrastructure software to notice trends, such as that the rate of Linux panics has increased, and that perhaps there is a cloud problem that should be investigated.

Quoted 4 lines
Quoted 1 line

In many cases (especially in cloud environment) your dump device is remote (e.g. iscsi) and kdump sometimes (often?) gets stuck because of connectivity issues (which could be cause of the panic in the first place). So it is quite desirable to inform the infrastructure that the VM is on its way out without waiting for kdump to complete.

That can probably be done in kdump kernel if it is really needed. Say informing host that panic happened and a kdump kernel is runnning.

If kdump kernel gets to that point. Sometimes (sadly) it ends up being misconfigured and it chokes up - and hence having multiple ways to emit the crash information before running kdump kernel is a life-saver.

Quoted 2 lines

But I think to set crash_kexec_post_notifiers by default is still bad.

Because of the way it is run today I presume? If there was some safe/unsafe policy that should work right? I would think that the safe ones that work properly all the time are:

- HyperV CRASH_MSRs,
- KVM PVPANIC_[PANIC,CRASHLOAD] push button knob,
- pstore EFI variables
- Dumping in memory,

And then some that depend on firmware version (aka BIOS, and vendor) are:
- ACPI ERST,

And then the unsafe:
- s390, PowerPC (I don't actually know what they are but that was Dave's primary motivator).

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

Quoted 7 lines
Quoted 1 line

We btw already have a direct call from panic() to kmsg_dump() which is indirectly controlled by crash_kexec_post_notifiers, and it would also be preferable to be able to call it before kdump as well.

Right, that is the same thing we are talking about.

Thanks
Dave

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#13 lore raw

Hi,

Quoted 34 lines · Konrad Rzeszutek Wilk
Quoted 33 lines · Dave Young

Hi,

Quoted 30 lines · On 09/24/20 at 01:16pm, [email protected] wrote:
Quoted 26 lines · Michael Kelley

From: Eric W. Biederman <[email protected]> Sent: Thursday, September 24, 2020 9:26 AM

Quoted 12 lines
Quoted 10 lines · Michael Kelley
Quoted 4 lines
Quoted 4 lines

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Quoted 4 lines

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

The host itself doesn't care. But the host is a convenient out-of-band channel for recording that a panic has occurred and to collect basic data about the panic. This out-of-band channel is then used to notify the end customer that his VM has panic'ed. Sure, the customer should be running his own monitoring software, but customers don't always do what they should. Equally important, the out-of-band channel allows the cloud infrastructure software to notice trends, such as that the rate of Linux panics has increased, and that perhaps there is a cloud problem that should be investigated.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

In many cases (especially in cloud environment) your dump device is remote (e.g. iscsi) and kdump sometimes (often?) gets stuck because of connectivity issues (which could be cause of the panic in the first place). So it is quite desirable to inform the infrastructure that the VM is on its way out without waiting for kdump to complete.

That can probably be done in kdump kernel if it is really needed. Say informing host that panic happened and a kdump kernel is runnning.

If kdump kernel gets to that point. Sometimes (sadly) it ends up being misconfigured and it chokes up - and hence having multiple ways to emit the crash information before running kdump kernel is a life-saver.

If it is done in kernel boot phase before pid 1 comes up then things should be good enough, specific for kvm/hyper-v guests the kdump kernel.

Quoted 13 lines
Quoted 3 lines

But I think to set crash_kexec_post_notifiers by default is still bad.

Because of the way it is run today I presume? If there was some safe/unsafe policy that should work right? I would think that the safe ones that work properly all the time are:

- HyperV CRASH_MSRs,
- KVM PVPANIC_[PANIC,CRASHLOAD] push button knob,
- pstore EFI variables
- Dumping in memory,

Quoted 6 lines

And then some that depend on firmware version (aka BIOS, and vendor) are:
- ACPI ERST,

And then the unsafe:
- s390, PowerPC (I don't actually know what they are but that was Dave's primary motivator).

As I said we also got reports of kdump kernel hang with Hyper-V with the crash_kexec_post_notifiers enabled.

EFI pstore also depends on efi runtime that is in firmware, also we can not ensure it works well after a panic happened. Ditto for other pstore backends we do not prefer to do it before kdump. But as I said I'm not saying they are not useful, people can use them by their choose.

As for the virtual machine panic events maybe it is ok to add some other hooks instead of the notifiers. But frankly I still feel it is better to do it in kdump kernel boot path since kdump works well for virt from our experience.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

We btw already have a direct call from panic() to kmsg_dump() which is indirectly controlled by crash_kexec_post_notifiers, and it would also be preferable to be able to call it before kdump as well.

Right, that is the same thing we are talking about.

Thanks
Dave

Thanks
Dave

#14 lore raw
In reply to Konrad Rzeszutek Wilk

Hi,

Quoted 55 lines · On Fri, 25 Sep 2020 10:56:25 -0400 Konrad Rzeszutek Wilk…
Quoted 33 lines · Dave Young

Hi,

Quoted 30 lines · On 09/24/20 at 01:16pm, [email protected] wrote:
Quoted 26 lines · Michael Kelley

From: Eric W. Biederman <[email protected]> Sent: Thursday, September 24, 2020 9:26 AM

Quoted 12 lines
Quoted 10 lines · Michael Kelley
Quoted 4 lines
Quoted 4 lines

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Quoted 4 lines

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

The host itself doesn't care. But the host is a convenient out-of-band channel for recording that a panic has occurred and to collect basic data about the panic. This out-of-band channel is then used to notify the end customer that his VM has panic'ed. Sure, the customer should be running his own monitoring software, but customers don't always do what they should. Equally important, the out-of-band channel allows the cloud infrastructure software to notice trends, such as that the rate of Linux panics has increased, and that perhaps there is a cloud problem that should be investigated.

Quoted 4 lines
Quoted 1 line

In many cases (especially in cloud environment) your dump device is remote (e.g. iscsi) and kdump sometimes (often?) gets stuck because of connectivity issues (which could be cause of the panic in the first place). So it is quite desirable to inform the infrastructure that the VM is on its way out without waiting for kdump to complete.

That can probably be done in kdump kernel if it is really needed. Say informing host that panic happened and a kdump kernel is runnning.

If kdump kernel gets to that point. Sometimes (sadly) it ends up being misconfigured and it chokes up - and hence having multiple ways to emit the crash information before running kdump kernel is a life-saver.

Quoted 2 lines

But I think to set crash_kexec_post_notifiers by default is still bad.

Because of the way it is run today I presume? If there was some safe/unsafe policy that should work right? I would think that the safe ones that work properly all the time are:

- HyperV CRASH_MSRs,
- KVM PVPANIC_[PANIC,CRASHLOAD] push button knob,
- pstore EFI variables
- Dumping in memory,

Quoted 6 lines

And then some that depend on firmware version (aka BIOS, and vendor) are:
- ACPI ERST,

And then the unsafe:
- s390, PowerPC (I don't actually know what they are but that was Dave's primary motivator).

that won't work on s390. Let me emphasize that the problems on s390 are not the notifiers themselves but the fact that they are called before crash_kexec.

On s390 we have multiple dump methods besides kdump. We use a panic notifier to trigger these dump methods from the panicking kernel. The problem is that these dump methods are less powerful than kdump so we only want to use them as fallback, i.e. only use them when either kdump wasn't configured or loading of the crash kernel failed for whatever reason. That's why (plus historic reasons) our notifier stops the machine when it is called and none of the methods is configured. Which means that the second crash_kexec is never reached.

Long story short, the problem on s390 is caused by the two hunks in kernel/panic.c:panic from f06e5153f4ae ("kernel/panic.c: add "crash_kexec_post_notifiers" option for kdump after panic_notifers").

Besides the problems on s390 I support Dave and think that setting crash_kexec_post_notifiers by default is wrong. We should keep in mind that we are in a panic situation. This means that the kernel is in a state where it doesn't trust itself anymore. So we should keep the code that is run to the bare minimum as we cannot rely on it to work properly.

Thanks
Philipp

Quoted 14 lines
Quoted 14 lines
Quoted 11 lines
Quoted 9 lines
Quoted 9 lines

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

We btw already have a direct call from panic() to kmsg_dump() which is indirectly controlled by crash_kexec_post_notifiers, and it would also be preferable to be able to call it before kdump as well.

Right, that is the same thing we are talking about.

Quoted 8 lines
Quoted 3 lines

Thanks
Dave

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#15 lore raw

+Lennart

Quoted 75 lines · Philipp Rudo

Hi,

Quoted 49 lines · On Fri, 25 Sep 2020 10:56:25 -0400 Konrad Rzeszutek Wilk…
Quoted 31 lines · Dave Young

Hi,

Quoted 28 lines · On 09/24/20 at 01:16pm, [email protected] wrote:
Quoted 26 lines · Michael Kelley

From: Eric W. Biederman <[email protected]> Sent: Thursday, September 24, 2020 9:26 AM

Quoted 12 lines
Quoted 10 lines · Michael Kelley
Quoted 4 lines
Quoted 4 lines

Added Hyper-V people and people who created the param, it is below commit, I also want to remove it if possible, let's see how people think, but the least way should be to disable the auto setting in both systemd and kernel:

Hyper-V uses a notifier to inform the host system that a Linux VM has panic'ed. Informing the host is particularly important in a public cloud such as Azure so that the cloud software can alert the customer, and can
track cloud-wide reliability statistics. Whether a kdump is taken is controlled
entirely by the customer and how he configures the VM, and we want the host to be informed either way.

Quoted 4 lines

Why?

Why does the host care?
Especially if the VM continues executing into a kdump kernel?

The host itself doesn't care. But the host is a convenient out-of-band channel for recording that a panic has occurred and to collect basic data about the panic. This out-of-band channel is then used to notify the end customer that his VM has panic'ed. Sure, the customer should be running his own monitoring software, but customers don't always do what they should. Equally important, the out-of-band channel allows the cloud infrastructure software to notice trends, such as that the rate of Linux panics has increased, and that perhaps there is a cloud problem that should be investigated.

Quoted 3 lines
Quoted 1 line

In many cases (especially in cloud environment) your dump device is remote (e.g. iscsi) and kdump sometimes (often?) gets stuck because of connectivity issues (which could be cause of the panic in the first place). So it is quite desirable to inform the infrastructure that the VM is on its way out without waiting for kdump to complete.

That can probably be done in kdump kernel if it is really needed. Say informing host that panic happened and a kdump kernel is runnning.

If kdump kernel gets to that point. Sometimes (sadly) it ends up being misconfigured and it chokes up - and hence having multiple ways to emit the crash information before running kdump kernel is a life-saver.

Quoted 1 line

But I think to set crash_kexec_post_notifiers by default is still bad.

Because of the way it is run today I presume? If there was some safe/unsafe policy that should work right? I would think that the safe ones that work properly all the time are:

- HyperV CRASH_MSRs,
- KVM PVPANIC_[PANIC,CRASHLOAD] push button knob,
- pstore EFI variables
- Dumping in memory,

Quoted 6 lines

And then some that depend on firmware version (aka BIOS, and vendor) are:
- ACPI ERST,

And then the unsafe:
- s390, PowerPC (I don't actually know what they are but that was Dave's primary motivator).

that won't work on s390. Let me emphasize that the problems on s390 are not the notifiers themselves but the fact that they are called before crash_kexec.

On s390 we have multiple dump methods besides kdump. We use a panic notifier to trigger these dump methods from the panicking kernel. The problem is that these dump methods are less powerful than kdump so we only want to use them as fallback, i.e. only use them when either kdump wasn't configured or loading of the crash kernel failed for whatever reason. That's why (plus historic reasons) our notifier stops the machine when it is called and none of the methods is configured. Which means that the second crash_kexec is never reached.

Long story short, the problem on s390 is caused by the two hunks in kernel/panic.c:panic from f06e5153f4ae ("kernel/panic.c: add "crash_kexec_post_notifiers" option for kdump after panic_notifers").

Quoted 5 lines

Besides the problems on s390 I support Dave and think that setting crash_kexec_post_notifiers by default is wrong. We should keep in mind that we are in a panic situation. This means that the kernel is in a state where it doesn't trust itself anymore. So we should keep the code that is run to the bare minimum as we cannot rely on it to work properly.

There is a pending patch to revert notifiers' default in systemd: https://github.com/systemd/systemd/pull/16950

If this change goes through then Dave's patch will be unnecessary.

-boris

Quoted 21 lines

Thanks
Philipp

Quoted 17 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Further like I have mentioned everytime something like this has come up a call on the kexec on panic code path should be a direct call (That can be audited) not something hidden in a notifier call chain (which can not).

Quoted 6 lines
Quoted 1 line

We btw already have a direct call from panic() to kmsg_dump() which is indirectly controlled by crash_kexec_post_notifiers, and it would also be preferable to be able to call it before kdump as well.

Right, that is the same thing we are talking about.

Thanks
Dave

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#16 lore raw
In reply to Konrad Rzeszutek Wilk

Hi Konrad,

Quoted 15 lines · On Mon, 21 Sep 2020 16:18:12 -0400 Konrad Rzeszutek Wilk…
Quoted 14 lines · Andrew Morton
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

There's little s390 can fix. We use the panic_notifier_list to start other dumpers in case kdump isn't configured or failed. This behavior was introduced in 2006 long before crash_kexec_post_notifiers were introduced. So I suggest that crash_kexec_post_notifiers are fixed instead.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

Quoted 6 lines
Quoted 4 lines

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

It does in systemd, but there is a strong interest in making this on by default.

AFAIK pstore requires UEFI to work. So what's the point to enable it on non-UEFI systems?

Thanks
Philipp

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#17 lore raw
Quoted 3 lines · Philipp Rudo

AFAIK pstore requires UEFI to work. So what's the point to enable it on non-UEFI systems?

I don't think UEFI is required, ERST can specify its own backend. And that, in fact, can be quite useful in virtualization scenarios (especially in cases of direct boot, when there is no OVMF)

-boris

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#18 lore raw
Quoted 4 lines · On Tue, Sep 22, 2020 at 11:53 AM <[email protected]> wrote:
Quoted 1 line · Philipp Rudo
Quoted 8 lines
Quoted 2 lines

AFAIK pstore requires UEFI to work. So what's the point to enable it on non-UEFI systems?

I don't think UEFI is required, ERST can specify its own backend. And that, in fact, can be quite useful in virtualization scenarios (especially in cases of direct boot, when there is no OVMF)

-boris

There is ramoops backend too - I was able to collect a dmesg in a cloud provider using that!

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

author
#19 lore raw
In reply to Konrad Rzeszutek Wilk
Quoted 30 lines · Konrad Rzeszutek Wilk
Quoted 14 lines · Andrew Morton
Quoted 12 lines · On Fri, 18 Sep 2020 11:25:46 +0800 Dave Young <[email protected]> wrote:

crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested to be enabled by default when users are not aware in distributions.

But unfortunately it is enabled by default in systemd, see below discussions in a systemd report, we can not convince systemd to change it:
https://github.com/systemd/systemd/issues/16661

Quoted 4 lines
Quoted 4 lines

Actually we have got reports about kdump kernel hangs in both s390x and powerpcle cases caused by the systemd change, also some x86 cases could also be caused by the same (although that is in Hyper-V code instead of systemd, that need to be addressed separately).

Perhaps it may be better to fix the issus on s390x and PowerPC as well?

Quoted 8 lines
Quoted 4 lines

Thus to avoid the auto enablement here just disable the param writable permission in sysfs.

Well. I don't think this is at all a desirable way of resolving a disagreement with the systemd developers

Quoted 6 lines
Quoted 4 lines

At the above github address I'm seeing "ryncsn added a commit to ryncsn/systemd that referenced this issue 9 days ago", "pstore: don't enable crash_kexec_post_notifiers by default". So didn't that address the issue?

It does in systemd, but there is a strong interest in making this on by default.

I understand there could be such interest, but we have to keep in mind that any extra things after a system crash can cause kdump unreliable.

I do not object people to use pstore, but I do object to enable the notifiers by default.

BTW, crash notifiers are not limited to pstore, there are quite a log of other pieces like led trigger etc.

Thanks
Dave