Re: [PATCH] kexec: do syscore_shutdown() in kernel_kexec

2024-01-08 Thread Gowans, James
+ akpm Hi Eric and Andrew, Just checking in on this patch. Would be keen to get the fix merged if you're okay with it, or some feedback. Also still keen for input for the driver maintainers in CC if they support or have objections to their shutdown hooks being invoked on kexec. JG On Mon,

Re: [PATCHv9 2/2] powerpc/setup: Loosen the mapping between cpu logical id and its seq in dt

2024-01-08 Thread Hari Bathini
On 09/01/24 9:57 am, Hari Bathini wrote: Hi Michael, Sorry, Michael. I am just about getting back to work and I spoke too soon. You already seem to have posted a set with the approach you had in mind: https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=388350 Thanks Hari I

Re: [PATCHv9 2/2] powerpc/setup: Loosen the mapping between cpu logical id and its seq in dt

2024-01-08 Thread Hari Bathini
Hi Michael, I am fine with either approach. I was trying to address your concerns in my way. Looking for your inputs here on how to go about this now.. On 29/11/23 7:00 am, Pingfan Liu wrote: Hi Hari, On Mon, Nov 27, 2023 at 12:30 PM Hari Bathini wrote: Hi Pingfan, Michael, On 17/10/23

Re: [PATCH 5/5] crash: clean up CRASH_DUMP

2024-01-08 Thread Baoquan He
On 01/07/24 at 09:19pm, kernel test robot wrote: > Hi Baoquan, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on linus/master] > [also build test ERROR on v6.7-rc8] > [cannot apply to powerpc/next powerpc/fixes tip/x86/core arm64/for-next/core >

Re: [PATCH v4] x86/kexec: fix potential cmem->ranges out of bounds

2024-01-08 Thread Baoquan He
On 01/08/24 at 09:06pm, fuqiang wang wrote: > In memmap_exclude_ranges(), elfheader will be excluded from crashk_res. > In the current x86 architecture code, the elfheader is always allocated > at crashk_res.start. It seems that there won't be a new split range. > But it depends on the allocation

Re: [PATCHv5.1 14/16] x86/smp: Add smp_ops.stop_this_cpu() callback

2024-01-08 Thread Huang, Kai
> > > @@ -835,6 +835,13 @@ void __noreturn stop_this_cpu(void *dummy) > > >*/ > > > cpumask_clear_cpu(cpu, _stop_mask); > > > > > > +#ifdef CONFIG_SMP > > > + if (smp_ops.stop_this_cpu) { > > > + smp_ops.stop_this_cpu(); > > > + unreachable(); > > > + } > > > +#endif > >

Re: [RFC V2] IMA Log Snapshotting Design Proposal

2024-01-08 Thread Paul Moore
On Mon, Jan 8, 2024 at 6:48 AM Mimi Zohar wrote: > On Sun, 2024-01-07 at 21:58 -0500, Paul Moore wrote: > > On Sun, Jan 7, 2024 at 7:59 AM Mimi Zohar wrote: > > > On Sat, 2024-01-06 at 18:27 -0500, Paul Moore wrote: > > > > On Tue, Nov 28, 2023 at 9:07 PM Mimi Zohar wrote: > > > > > On Tue,

Re: [PATCHv5 15/16] x86/mm: Introduce kernel_ident_mapping_free()

2024-01-08 Thread kirill.shute...@linux.intel.com
On Mon, Jan 08, 2024 at 01:13:18PM +, Huang, Kai wrote: > On Mon, 2024-01-08 at 13:17 +0300, kirill.shute...@linux.intel.com wrote: > > On Mon, Jan 08, 2024 at 03:30:21AM +, Huang, Kai wrote: > > > On Mon, 2024-01-08 at 03:13 +, Huang, Kai wrote: > > > > On Sat, 2023-12-23 at 02:52

Re: [PATCHv5 15/16] x86/mm: Introduce kernel_ident_mapping_free()

2024-01-08 Thread Huang, Kai
On Mon, 2024-01-08 at 13:17 +0300, kirill.shute...@linux.intel.com wrote: > On Mon, Jan 08, 2024 at 03:30:21AM +, Huang, Kai wrote: > > On Mon, 2024-01-08 at 03:13 +, Huang, Kai wrote: > > > On Sat, 2023-12-23 at 02:52 +0300, Kirill A. Shutemov wrote: > > > > The helper complements

[PATCH v4] x86/kexec: fix potential cmem->ranges out of bounds

2024-01-08 Thread fuqiang wang
In memmap_exclude_ranges(), elfheader will be excluded from crashk_res. In the current x86 architecture code, the elfheader is always allocated at crashk_res.start. It seems that there won't be a new split range. But it depends on the allocation position of elfheader in crashk_res. To avoid

Re: [RFC V2] IMA Log Snapshotting Design Proposal

2024-01-08 Thread Mimi Zohar
On Sun, 2024-01-07 at 21:58 -0500, Paul Moore wrote: > On Sun, Jan 7, 2024 at 7:59 AM Mimi Zohar wrote: > > On Sat, 2024-01-06 at 18:27 -0500, Paul Moore wrote: > > > On Tue, Nov 28, 2023 at 9:07 PM Mimi Zohar wrote: > > > > On Tue, 2023-11-28 at 20:06 -0500, Paul Moore wrote: > > > > > On Tue,

Re: [PATCHv5 15/16] x86/mm: Introduce kernel_ident_mapping_free()

2024-01-08 Thread kirill.shute...@linux.intel.com
On Mon, Jan 08, 2024 at 03:30:21AM +, Huang, Kai wrote: > On Mon, 2024-01-08 at 03:13 +, Huang, Kai wrote: > > On Sat, 2023-12-23 at 02:52 +0300, Kirill A. Shutemov wrote: > > > The helper complements kernel_ident_mapping_init(): it frees the > > > identity mapping that was previously

Re: [PATCHv5.1 14/16] x86/smp: Add smp_ops.stop_this_cpu() callback

2024-01-08 Thread kirill.shute...@linux.intel.com
On Mon, Jan 08, 2024 at 03:04:31AM +, Huang, Kai wrote: > On Mon, 2023-12-25 at 11:05 +0300, Kirill A. Shutemov wrote: > > If the helper is defined, it is called instead of halt() to stop the CPU > > at the end of stop_this_cpu() and on crash CPU shutdown. > > > > ACPI MADT will use it to