[PATCH] x86/efi: skip memattr table on kexec boot

2025-01-22 Thread Dave Young
efi_memattr_init() added a sanity check to avoid firmware caused corruption. The check is based on efi memmap entry numbers, but kexec only takes the runtime related memmap entries thus this caused many false warnings, see below thread for details: https://lore.kernel.org/all/20250108215957.343766

Re: Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-22 Thread Ard Biesheuvel
On Wed, 22 Jan 2025 at 13:25, Joel Granados wrote: > > On Tue, Jan 21, 2025 at 02:40:16PM +0100, Alexander Gordeev wrote: > > On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote: > > > > Hi Joel, > > > > > Add the const qualifier to all the ctl_tables in the tree except for > > > watchdo

Re: [REGRESSION] Kernel booted via kexec fails to resume from hibernation

2025-01-22 Thread Roberto Ricci
On 2025-01-22 Wed 17:45:41 +0800, RuiRui Yang wrote: > > I can reproduce this with kernel 6.13-rc7 in a qemu x86_64 virtual machine > > running Void Linux, with the following commands: > > > > ``` > > # kexec -l /boot/vmlinuz-6.13.0-rc7 --initrd=/boot/initramfs-6.13.0-rc7 > > --reuse-cmdline > > #

Re: Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-22 Thread Joel Granados
On Tue, Jan 21, 2025 at 02:40:16PM +0100, Alexander Gordeev wrote: > On Fri, Jan 10, 2025 at 03:16:08PM +0100, Joel Granados wrote: > > Hi Joel, > > > Add the const qualifier to all the ctl_tables in the tree except for > > watchdog_hardlockup_sysctl, memory_allocation_profiling_sysctls, > > load

Re: [RFC 1/2] efi/memattr: Use desc_size instead of total size to check for corruption

2025-01-22 Thread Usama Arif
On 22/01/2025 05:36, Dave Young wrote: > Hi, > On Mon, 20 Jan 2025 at 19:48, Usama Arif wrote: >> >> >> >> On 20/01/2025 11:29, Ard Biesheuvel wrote: >>> On Mon, 20 Jan 2025 at 11:50, Usama Arif wrote: On 20/01/2025 10:32, Ard Biesheuvel wrote: > On Mon, 20 Jan 2025 at

Re: [REGRESSION] Kernel booted via kexec fails to resume from hibernation

2025-01-22 Thread RuiRui Yang
> I can reproduce this with kernel 6.13-rc7 in a qemu x86_64 virtual machine > running Void Linux, with the following commands: > > ``` > # kexec -l /boot/vmlinuz-6.13.0-rc7 --initrd=/boot/initramfs-6.13.0-rc7 > --reuse-cmdline > # reboot > # printf reboot >/sys/power/disk > # printf disk >/sys/po