Re: [PATCH makedumpfile] Fix incorrect exclusion of slab pages on Linux 6.2-rc1

2022-12-21 Thread 萩尾 一仁
On 2022/12/21 11:06, HAGIO KAZUHITO(萩尾 一仁) wrote: > From: Kazuhito Hagio > > * Required for kernel 6.2 > > Kernel commit 130d4df57390 ("mm/sl[au]b: rearrange struct slab fields to > allow larger rcu_head"), which is contained in Linux 6.2-rc1 and later, > made the offset of slab.slabs equal to

Re: [Crash-utility][PATCH V4 1/9] Add RISCV64 framework code support

2022-12-21 Thread 萩尾 一仁
On 2022/11/09 18:01, Xianting Tian wrote: >> On the kernel side, some relevant kernel patches got ack,  it seems >> they won't  change anymore. >> >> And the V4 looks good to me, so: Ack. > Thanks,  Linux kenrel RISC-V maintainer still don't apply the kernel patch,  > let's wait. Now I see

Re: kdump kernel randomly hang with tick_periodic call trace on bare metal system

2022-12-21 Thread Baoquan He
On 12/21/22 at 12:46pm, Guilherme G. Piccoli wrote: > On 20/12/2022 02:51, Baoquan He wrote: > > On 12/20/22 at 01:41pm, Baoquan He wrote: > >> On one intel bare metal system, I can randomly reproduce the kdump hang > >> as below with tick_periodic call trace. Attach the kernel config for > >>

Re: [PATCH v5 3/3] kexec: Introduce sysctl parameters kexec_load_limit_*

2022-12-21 Thread Baoquan He
Hi, On 12/21/22 at 08:45pm, Ricardo Ribalda wrote: > Add two parameters to specify how many times a kexec kernel can be loaded. > > The sysadmin can set different limits for kexec panic and kexec reboot > kernels. > > The value can be modified at runtime via sysctl, but only with a value >

Re: [PATCH v5 0/3] kexec: Add new parameter to limit the access to kexec

2022-12-21 Thread Steven Rostedt
On Wed, 21 Dec 2022 20:45:56 +0100 Ricardo Ribalda wrote: > Add two parameter to specify how many times a kexec kernel can be loaded. > > These parameter allow hardening the system. > > While we are at it, fix a documentation issue and refactor some code. > > To: Jonathan Corbet > To: Eric

[PATCH v5 1/3] Documentation: sysctl: Correct kexec_load_disabled

2022-12-21 Thread Ricardo Ribalda
kexec_load_disabled affects both ``kexec_load`` and ``kexec_file_load`` syscalls. Make it explicit. Signed-off-by: Ricardo Ribalda --- Documentation/admin-guide/sysctl/kernel.rst | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v5 0/3] kexec: Add new parameter to limit the access to kexec

2022-12-21 Thread Ricardo Ribalda
Add two parameter to specify how many times a kexec kernel can be loaded. These parameter allow hardening the system. While we are at it, fix a documentation issue and refactor some code. To: Jonathan Corbet To: Eric Biederman Cc: linux-...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc:

[PATCH v5 2/3] kexec: Factor out kexec_load_permitted

2022-12-21 Thread Ricardo Ribalda
Both syscalls (kexec and kexec_file) do the same check, lets factor it out. Signed-off-by: Ricardo Ribalda --- include/linux/kexec.h | 3 ++- kernel/kexec.c| 2 +- kernel/kexec_core.c | 11 ++- kernel/kexec_file.c | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-)

[PATCH v5 3/3] kexec: Introduce sysctl parameters kexec_load_limit_*

2022-12-21 Thread Ricardo Ribalda
Add two parameters to specify how many times a kexec kernel can be loaded. The sysadmin can set different limits for kexec panic and kexec reboot kernels. The value can be modified at runtime via sysctl, but only with a value smaller than the current one (except -1). Signed-off-by: Ricardo

Re: kdump kernel randomly hang with tick_periodic call trace on bare metal system

2022-12-21 Thread Guilherme G. Piccoli
On 20/12/2022 02:51, Baoquan He wrote: > On 12/20/22 at 01:41pm, Baoquan He wrote: >> On one intel bare metal system, I can randomly reproduce the kdump hang >> as below with tick_periodic call trace. Attach the kernel config for >> reference. > > Forgot mentioning this random hang is also caused

[ANNOUNCE] kexec-tools 2.0.26

2022-12-21 Thread Simon Horman
Hi all, I am happy to announce the release of kexec-tools 2.0.26. This is a feature release coinciding with the release of v6.1 of the Linux Kernel. This release can be downloaded from kernel.org: http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-2.0.26.tar.xz

Re: [PATCH v4 3/3] kexec: Introduce sysctl parameters kexec_load_limit_*

2022-12-21 Thread Steven Rostedt
On Wed, 21 Dec 2022 13:50:03 +0100 Ricardo Ribalda wrote: > @@ -941,6 +995,20 @@ static struct ctl_table kexec_core_sysctls[] = { > .extra1 = SYSCTL_ONE, > .extra2 = SYSCTL_ONE, > }, > + { > + .procname =

[PATCH v4 0/3] kexec: Add new parameter to limit the access to kexec

2022-12-21 Thread Ricardo Ribalda
Add two parameter to specify how many times a kexec kernel can be loaded. These parameter allow hardening the system. While we are at it, fix a documentation issue and refactor some code. To: Jonathan Corbet To: Eric Biederman Cc: linux-...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc:

[PATCH v4 2/3] kexec: Factor out kexec_load_permitted

2022-12-21 Thread Ricardo Ribalda
Both syscalls (kexec and kexec_file) do the same check, lets factor it out. Signed-off-by: Ricardo Ribalda --- include/linux/kexec.h | 3 ++- kernel/kexec.c| 2 +- kernel/kexec_core.c | 11 ++- kernel/kexec_file.c | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-)

[PATCH v4 1/3] Documentation: sysctl: Correct kexec_load_disabled

2022-12-21 Thread Ricardo Ribalda
kexec_load_disabled affects both ``kexec_load`` and ``kexec_file_load`` syscalls. Make it explicit. Signed-off-by: Ricardo Ribalda --- Documentation/admin-guide/sysctl/kernel.rst | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v4 3/3] kexec: Introduce sysctl parameters kexec_load_limit_*

2022-12-21 Thread Ricardo Ribalda
Add two parameters to specify how many times a kexec kernel can be loaded. The sysadmin can set different limits for kexec panic and kexec reboot kernels. The value can be modified at runtime via sysctl, but only with a value smaller than the current one (except -1). Signed-off-by: Ricardo