kexec-tools/spec
Philipp Rudo 64f2827a4b kdump-lib: Harden _crashkernel_add
_crashkernel_add currently always assumes the good case, i.e. that the
value of the crashkernel parameter has the correct syntax and that the
delta added is a number. Both doesn't have to be true when the values
are provided by users. Thus add some additional checks.

Furthermore require the delta to have a explicit unit, i.e. no longer
assume that is in megabytes, i.e. 100 -> 100M.

Signed-off-by: Philipp Rudo <prudo@redhat.com>
Reviewed-by: Pingfan Liu <piliu@redhat.com>
2023-09-14 15:01:52 +08:00
..
support unit tests: add tests for "kdumpctl reset-crashkernel" 2022-04-14 11:45:08 +08:00
kdump-lib_spec.sh kdump-lib: Harden _crashkernel_add 2023-09-14 15:01:52 +08:00
kdump-lib-initramfs_spec.sh unit tests: add tests for kdump_get_conf_val in kdump-lib-initramfs.sh 2022-04-14 11:45:18 +08:00
kdumpctl_general_spec.sh kdumpctl: Stop updating grub config in reset_crashkernel 2023-09-14 15:01:52 +08:00
kdumpctl_manage_crashkernel_spec.sh kdumpctl: simplify _update_kernel_cmdline 2023-09-14 15:01:52 +08:00
kdumpctl_reset_crashkernel_spec.sh kdumpctl: Stop updating grub config in reset_crashkernel 2023-09-14 15:01:52 +08:00