Re: [PATCH v4 00/14] kexec: introduce Kexec HandOver (KHO)

2025-02-18 Thread Mike Rapoport
On Mon, Feb 17, 2025 at 11:19:45AM +0800, RuiRui Yang wrote: > On Thu, 6 Feb 2025 at 21:34, Mike Rapoport wrote: > > == Limitations == > > > > Currently KHO is only implemented for file based kexec. The kernel > > interfaces in the patch set are already in place to support user space > > kexec as

Re: [PATCH v4 13/14] memblock: Add KHO support for reserve_mem

2025-02-18 Thread Mike Rapoport
On Mon, Feb 17, 2025 at 04:04:48AM +, Wei Yang wrote: > On Thu, Feb 06, 2025 at 03:27:53PM +0200, Mike Rapoport wrote: > >From: Alexander Graf > > > >Linux has recently gained support for "reserve_mem": A mechanism to > >allocate a region of memory early enough in boot that we can cross our >

Re: [PATCH v4 02/14] memblock: add MEMBLOCK_RSRV_KERN flag

2025-02-18 Thread Mike Rapoport
Hi, On Tue, Feb 18, 2025 at 03:50:04PM +, Wei Yang wrote: > On Thu, Feb 06, 2025 at 03:27:42PM +0200, Mike Rapoport wrote: > >From: "Mike Rapoport (Microsoft)" > > > >to denote areas that were reserved for kernel use either directly with > >memblock_reserve_kern() or via memblock allocations.

Re: [PATCH v4 01/14] mm/mm_init: rename init_reserved_page to init_deferred_page

2025-02-18 Thread Mike Rapoport
Hi, On Tue, Feb 18, 2025 at 02:59:04PM +, Wei Yang wrote: > On Thu, Feb 06, 2025 at 03:27:41PM +0200, Mike Rapoport wrote: > >From: "Mike Rapoport (Microsoft)" > > > >When CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled, init_reserved_page() > >function performs initialization of a struct page th

[Hypervisor Live Update] Notes from February 10, 2025

2025-02-18 Thread David Rientjes
Hi everybody, Here are the notes from the last Hypervisor Live Update call that happened on Monday, February 10. Thanks for everybody who was involved! These notes are intended to bring people up to speed who could not attend the call as well as keep the conversation going in between meetings.

Re: [PATCH] makedumpfile: fix gcc-15 compiling error: too many arguments to function eppic_init

2025-02-18 Thread Coiby Xu
On Tue, Feb 18, 2025 at 12:32:42PM +, YAMAZAKI MASAMITSU(山崎 真光) wrote: Hi Coiby, Hi Masa, Oops. I'm so sorry. I will correct any typos found next. No problem. Maybe I can also resend one version with typos corrected next time. But, Thanks for finding this building error and fixing.

[PATCH v8 5/7] ima: kexec: move IMA log copy from kexec load to execute

2025-02-18 Thread steven chen
ima_dump_measurement_list() is called during kexec 'load', which may result in loss of IMA measurements during kexec soft reboot. It needs to be called during kexec 'execute'. This patch includes the following changes: - Implement kimage_file_post_load() function to be invoked after the new K

[PATCH v8 0/7] ima: kexec: measure events between kexec load and execute

2025-02-18 Thread steven chen
The current kernel behavior is IMA measurements snapshot is taken at kexec 'load' and not at kexec 'execute'. IMA log is then carried over to the new kernel after kexec 'execute'. New events can be measured during/after the IMA log snapshot at kexec 'load' and before the system boots to the new

[PATCH v8 1/7] ima: define and call ima_alloc_kexec_file_buf

2025-02-18 Thread steven chen
Carrying the IMA measurement list across kexec requires allocating a buffer and copying the measurement records. Separate allocating the buffer and copying the measurement records into separate functions in order to allocate the buffer at kexec 'load' and copy the measurements at kexec 'execute'.

[PATCH v8 2/7] kexec: define functions to map and unmap segments

2025-02-18 Thread steven chen
Currently, the mechanism to map and unmap segments to the kimage structure is not available to the subsystems outside of kexec. This functionality is needed when IMA is allocating the memory segments during kexec 'load' operation. Implement functions to map and unmap segments to kimage. Implemen

[PATCH v8 7/7] ima: measure kexec load and exec events as critical data

2025-02-18 Thread steven chen
The amount of memory allocated at kexec load, even with the extra memory allocated, might not be large enough for the entire measurement list. The indeterminate interval between kexec 'load' and 'execute' could exacerbate this problem. Define two new IMA events, 'kexec_load' and 'kexec_execute',

[PATCH v8 6/7] ima: make the kexec extra memory configurable

2025-02-18 Thread steven chen
The extra memory allocated for carrying the IMA measurement list across kexec is hard-coded as half a PAGE. Make it configurable. Define a Kconfig option, IMA_KEXEC_EXTRA_MEMORY_KB, to configure the extra memory (in kb) to be allocated for IMA measurements added during kexec soft reboot. Ensure

[PATCH v8 3/7] ima: kexec: skip IMA segment validation after kexec soft reboot

2025-02-18 Thread steven chen
kexec_calculate_store_digests() calculates and stores the digest of the segment at kexec_file_load syscall where the IMA segment is also allocated. With this series, the IMA segment will be updated with the measurement log at kexec execute stage when soft reboot is initiated. Therefore, it may fa

[PATCH v8 4/7] ima: kexec: define functions to copy IMA log at soft boot

2025-02-18 Thread steven chen
IMA log is copied to the new Kernel during kexec 'load' using ima_dump_measurement_list(). The log copy at kexec 'load' may result in loss of IMA measurements during kexec soft reboot. It needs to be copied over during kexec 'execute'. Setup the needed infrastructure to move the IMA log copy fr

Re: [PATCH v12 00/19] x86: Trenchboot secure dynamic launch Linux kernel support

2025-02-18 Thread ross . philipson
On 2/18/25 10:31 AM, Jarkko Sakkinen wrote: On Tue, 2025-02-18 at 10:21 -0800, ross.philip...@oracle.com wrote: Hello folks, We posted the v12 version of our patch set in December of 2024 and we have not heard anything on it from the community. We believe we have reasonably addressed the issues

Re: [PATCH v7 0/7] ima: kexec: measure events between kexec load and execute

2025-02-18 Thread Mimi Zohar
Hi Steven, I'm ignoring this version of v7. Please remember to update the version to v8 before re- posting and update the change log. thanks, Mimi On Tue, 2025-02-18 at 09:20 -0800, steven chen wrote: > The current kernel behavior is IMA measurements snapshot is taken at > kexec 'load' and no

Re: [PATCH v12 00/19] x86: Trenchboot secure dynamic launch Linux kernel support

2025-02-18 Thread Jarkko Sakkinen
On Tue, 2025-02-18 at 10:21 -0800, ross.philip...@oracle.com wrote: > Hello folks, > > We posted the v12 version of our patch set in December of 2024 and we > have not heard anything on it from the community. We believe we have > reasonably addressed the issues as has been discussed on list. I >

[PATCH v7 0/7] ima: kexec: measure events between kexec load and execute

2025-02-18 Thread steven chen
The current kernel behavior is IMA measurements snapshot is taken at kexec 'load' and not at kexec 'execute'. IMA log is then carried over to the new kernel after kexec 'execute'. New events can be measured during/after the IMA log snapshot at kexec 'load' and before the system boots to the new

[PATCH v7 5/7] ima: kexec: move IMA log copy from kexec load to execute

2025-02-18 Thread steven chen
ima_dump_measurement_list() is called during kexec 'load', which may result in loss of IMA measurements during kexec soft reboot. It needs to be called during kexec 'execute'. This patch includes the following changes: - Implement kimage_file_post_load() function to be invoked after the new K

[PATCH v7 6/7] ima: make the kexec extra memory configurable

2025-02-18 Thread steven chen
The extra memory allocated for carrying the IMA measurement list across kexec is hard-coded as half a PAGE. Make it configurable. Define a Kconfig option, IMA_KEXEC_EXTRA_MEMORY_KB, to configure the extra memory (in kb) to be allocated for IMA measurements added during kexec soft reboot. Ensure

[PATCH v7 7/7] ima: measure kexec load and exec events as critical data

2025-02-18 Thread steven chen
The amount of memory allocated at kexec load, even with the extra memory allocated, might not be large enough for the entire measurement list. The indeterminate interval between kexec 'load' and 'execute' could exacerbate this problem. Define two new IMA events, 'kexec_load' and 'kexec_execute',

[PATCH v7 4/7] ima: kexec: define functions to copy IMA log at soft boot

2025-02-18 Thread steven chen
IMA log is copied to the new Kernel during kexec 'load' using ima_dump_measurement_list(). The log copy at kexec 'load' may result in loss of IMA measurements during kexec soft reboot. It needs to be copied over during kexec 'execute'. Setup the needed infrastructure to move the IMA log copy fr

[PATCH v7 3/7] ima: kexec: skip IMA segment validation after kexec soft reboot

2025-02-18 Thread steven chen
kexec_calculate_store_digests() calculates and stores the digest of the segment at kexec_file_load syscall where the IMA segment is also allocated. With this series, the IMA segment will be updated with the measurement log at kexec excute stage when soft reboot is initiated. Therefore, it may fai

[PATCH v7 2/7] kexec: define functions to map and unmap segments

2025-02-18 Thread steven chen
Currently, the mechanism to map and unmap segments to the kimage structure is not available to the subsystems outside of kexec. This functionality is needed when IMA is allocating the memory segments during kexec 'load' operation. Implement functions to map and unmap segments to kimage. Implemen

[PATCH v7 1/7] ima: define and call ima_alloc_kexec_file_buf

2025-02-18 Thread steven chen
Carrying the IMA measurement list across kexec requires allocating a buffer and copying the measurement records. Separate allocating the buffer and copying the measurement records into separate functions in order to allocate the buffer at kexec 'load' and copy the measurements at kexec 'execute'.

Re: VMCORE and kdump.conf file not found LINUX 6.12 KERNEL

2025-02-18 Thread Philipp Rudo
Hi, On Tue, 18 Feb 2025 16:48:26 +0800 Dave Young wrote: > On Tue, 18 Feb 2025 at 14:07, Gokul Praveen wrote: > > > > Hi Team, > > > > Just a reminder. > > It would be really great if you could help me with the following. > > > > Regards > > Gokul > > > > On 05/02/25 17:50, Gokul Praveen wrote:

Re: [PATCH v4 02/14] memblock: add MEMBLOCK_RSRV_KERN flag

2025-02-18 Thread Wei Yang
On Thu, Feb 06, 2025 at 03:27:42PM +0200, Mike Rapoport wrote: >From: "Mike Rapoport (Microsoft)" > >to denote areas that were reserved for kernel use either directly with >memblock_reserve_kern() or via memblock allocations. > >Signed-off-by: Mike Rapoport (Microsoft) >--- > include/linux/memblo

Re: [PATCH v4 01/14] mm/mm_init: rename init_reserved_page to init_deferred_page

2025-02-18 Thread Wei Yang
On Thu, Feb 06, 2025 at 03:27:41PM +0200, Mike Rapoport wrote: >From: "Mike Rapoport (Microsoft)" > >When CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled, init_reserved_page() >function performs initialization of a struct page that would have been >deferred normally. > >Rename it to init_deferred_page

Re: [PATCH] Improve message readability and fix typos

2025-02-18 Thread 山崎 真光
Hi Seiji, Thanks for this patch. This patch has been merged. Sorry for saying late. Best regards, Masa On 2025/01/10 12:00, Seiji Nishikawa wrote: > This patch enhances the readability of several messages printed by > adding a space after a comma that is not followed by a newline. These > change

RE: [PATCH] makedumpfile: fix gcc-15 compiling error: too many arguments to function eppic_init

2025-02-18 Thread 山崎 真光
Hi Coiby, Oops. I'm so sorry. I will correct any typos found next. But, Thanks for finding this building error and fixing. When building makekdumpfile against gcc-14, not problem. However, certainly could not build using gcc-15. Thanks! Best regards, Masa -Original Message- From: kexec

Re: VMCORE and kdump.conf file not found LINUX 6.12 KERNEL

2025-02-18 Thread Dave Young
On Tue, 18 Feb 2025 at 14:07, Gokul Praveen wrote: > > Hi Team, > > Just a reminder. > It would be really great if you could help me with the following. > > Regards > Gokul > > On 05/02/25 17:50, Gokul Praveen wrote: > > Hi Team, > > > > It would be really great,if you could help me with a couple