[PATCH RESEND] x86/kexec: Carry forward the boot DTB on kexec

2025-07-29 Thread Brian Mak
The kexec_file_load syscall on x86 currently does not support passing a device tree blob to the new kernel. To add support for this, we copy the behavior of ARM64 and PowerPC and copy the current boot's device tree blob for use in the new kernel. We do this on x86 by passing the device tree blob a

Re: [PATCH v4 2/4] x86: Handle KCOV __init vs inline mismatches

2025-07-29 Thread Arnd Bergmann
On Thu, Jul 24, 2025, at 07:50, Kees Cook wrote: > GCC appears to have kind of fragile inlining heuristics, in the > sense that it can change whether or not it inlines something based on > optimizations. It looks like the kcov instrumentation being added (or in > this case, removed) from a function

Re: [PATCH v4 1/4] arm64: Handle KCOV __init vs inline mismatches

2025-07-29 Thread Will Deacon
On Wed, Jul 23, 2025 at 10:50:25PM -0700, Kees Cook wrote: > GCC appears to have kind of fragile inlining heuristics, in the > sense that it can change whether or not it inlines something based on > optimizations. It looks like the kcov instrumentation being added (or in > this case, removed) from

Re: [PATCH v4 2/4] x86: Handle KCOV __init vs inline mismatches

2025-07-29 Thread Mike Rapoport
On Wed, Jul 23, 2025 at 10:50:26PM -0700, Kees Cook wrote: > GCC appears to have kind of fragile inlining heuristics, in the > sense that it can change whether or not it inlines something based on > optimizations. It looks like the kcov instrumentation being added (or in > this case, removed) from

Re: [PATCH v4 0/4] stackleak: Support Clang stack depth tracking

2025-07-29 Thread Kees Cook
On Fri, Jul 25, 2025 at 05:43:13PM -0700, Nathan Chancellor wrote: > ld.lld: error: undefined symbol: __sanitizer_cov_stack_depth > >>> referenced by atags_to_fdt.c Proposed fix: https://lore.kernel.org/lkml/20250726212945.work.975-k...@kernel.org/ > kernel/kstack_erase.c:168:2: warning: fu