[PATCH] kexec-tools: print error if kexec_file_load fails

2022-03-16 Thread Hari Bathini
Commit 4f77da634035 ("kexec-tools: Fix kexec_file_load(2) error handling") introduced EFALLBACK for scenarios where fallbacking back to kexec_load syscall is likely to work and dropped printing error message for these scenarios. But printing error message for other failure scenarios was inadvertent

Qemu does not like kexec initrd

2022-03-16 Thread Tobias Powalowski
Hi I just discovered this: https://githubhot.com/repo/talos-systems/talos/issues/4947 I also suffer from this in my project: Loading zstd initrd will cause an error: ZSTD-data is corrupt error on qemu. Is there a fix or workaround for this issue? greetings tpowa -- Tobias Powalowski Arch Linux De

Re: Qemu does not like kexec initrd

2022-03-16 Thread Baoquan He
Cc Tao, On 03/16/22 at 11:57am, Tobias Powalowski wrote: > Hi > I just discovered this: > https://githubhot.com/repo/talos-systems/talos/issues/4947 > I also suffer from this in my project: > Loading zstd initrd will cause an error: > ZSTD-data is corrupt error on qemu. > Is there a fix or workaro

Re: [PATCH v21 3/5] arm64: kdump: reimplement crashkernel=X

2022-03-16 Thread Baoquan He
On 02/27/22 at 11:07am, Zhen Lei wrote: > From: Chen Zhou > > There are following issues in arm64 kdump: > 1. We use crashkernel=X to reserve crashkernel below 4G, which > will fail when there is no enough low memory. > 2. If reserving crashkernel above 4G, in this case, crash dump > kernel will

Re: Qemu does not like kexec initrd

2022-03-16 Thread Tobias Powalowski
Hi, lzma is also affected, gzip works. Will test now xz. greetings tpowa Am Mi., 16. März 2022 um 12:38 Uhr schrieb Baoquan He : > > Cc Tao, > > On 03/16/22 at 11:57am, Tobias Powalowski wrote: > > Hi > > I just discovered this: > > https://githubhot.com/repo/talos-systems/talos/issues/4947 > > I

Re: [PATCH v21 3/5] arm64: kdump: reimplement crashkernel=X

2022-03-16 Thread Leizhen (ThunderTown)
On 2022/3/16 20:11, Baoquan He wrote: > On 02/27/22 at 11:07am, Zhen Lei wrote: >> From: Chen Zhou >> >> There are following issues in arm64 kdump: >> 1. We use crashkernel=X to reserve crashkernel below 4G, which >> will fail when there is no enough low memory. >> 2. If reserving crashkernel a

Re: [PATCH v2 0/4] makedumpfile: harden parsing of old prink buffer

2022-03-16 Thread David Wysochanski
On Mon, Mar 14, 2022 at 12:04 PM Philipp Rudo wrote: > > Hi, > > dumping the dmesg can cause an endless loop for the old prink mechanism (> > v3.5.0 and < v5.10.0) when the log_buf got corrupted. This series fixes those > cases by adding a cycle detection. The cycle detection is implemented in a >

Re: Qemu does not like kexec initrd

2022-03-16 Thread Tobias Powalowski
Hi, here the result of my tests with qemu: zstd is broken xz --check=crc32 is broken lz4 -l works gzip works Is there a bugtracker to report this or only this ML? Thanks for your help. greetings tpowa Am Mi., 16. März 2022 um 12:38 Uhr schrieb Baoquan He : > > Cc Tao, > > On 03/16/22 at 11:57am, T

Re: Qemu does not like kexec initrd

2022-03-16 Thread Tao Liu
Hi Baoquan, On Wed, Mar 16, 2022 at 7:38 PM Baoquan He wrote: > > Cc Tao, > > On 03/16/22 at 11:57am, Tobias Powalowski wrote: > > Hi > > I just discovered this: > > https://githubhot.com/repo/talos-systems/talos/issues/4947 > > I also suffer from this in my project: > > Loading zstd initrd will

Re: [PATCH] kexec-tools: print error if kexec_file_load fails

2022-03-16 Thread Petr Tesarik
Hi Hari, Dne 16. 03. 22 v 11:33 Hari Bathini napsal(a): Commit 4f77da634035 ("kexec-tools: Fix kexec_file_load(2) error handling") introduced EFALLBACK for scenarios where fallbacking back to kexec_load syscall is likely to work and dropped printing error message for these scenarios. But printin

Re: [PATCH v2 0/4] makedumpfile: harden parsing of old prink buffer

2022-03-16 Thread David Wysochanski
On Wed, Mar 16, 2022 at 9:17 AM David Wysochanski wrote: > > On Mon, Mar 14, 2022 at 12:04 PM Philipp Rudo wrote: > > > > Hi, > > > > dumping the dmesg can cause an endless loop for the old prink mechanism (> > > v3.5.0 and < v5.10.0) when the log_buf got corrupted. This series fixes > > those >

Re: Qemu does not like kexec initrd

2022-03-16 Thread Tobias Powalowski
Hi, Do you need anything from my side? Test files? Test system is latest Arch Linux with qemu 6.2.0 greetings tpowa Am Mi., 16. März 2022 um 14:58 Uhr schrieb Tao Liu : > > Hi Baoquan, > > On Wed, Mar 16, 2022 at 7:38 PM Baoquan He wrote: > > > > Cc Tao, > > > > On 03/16/22 at 11:57am, Tobias Pow

Re: Qemu does not like kexec initrd

2022-03-16 Thread Tao Liu
Hi Tobias, On Wed, Mar 16, 2022 at 10:10 PM Tobias Powalowski wrote: > > Hi, > Do you need anything from my side? > Test files? > Test system is latest Arch Linux with qemu 6.2.0 > greetings > tpowa > Could you briefly introduce your test steps please? I will try to reproduce it. Thanks, Tao Li

Re: [PATCH v21 3/5] arm64: kdump: reimplement crashkernel=X

2022-03-16 Thread Baoquan He
On 03/16/22 at 09:11pm, Leizhen (ThunderTown) wrote: > > > On 2022/3/16 20:11, Baoquan He wrote: > > On 02/27/22 at 11:07am, Zhen Lei wrote: .. > > Hi leizhen, > > > > I made change on reserve_crashkenrel(), inline comment may be slow. > > Please check and consider if they can be taken. >

Re: [PATCH v21 3/5] arm64: kdump: reimplement crashkernel=X

2022-03-16 Thread Baoquan He
On 02/27/22 at 11:07am, Zhen Lei wrote: > From: Chen Zhou > > There are following issues in arm64 kdump: > 1. We use crashkernel=X to reserve crashkernel below 4G, which > will fail when there is no enough low memory. > 2. If reserving crashkernel above 4G, in this case, crash dump > kernel will

Re: [PATCH v21 3/5] arm64: kdump: reimplement crashkernel=X

2022-03-16 Thread Leizhen (ThunderTown)
On 2022/3/17 10:36, Baoquan He wrote: > On 03/16/22 at 09:11pm, Leizhen (ThunderTown) wrote: >> >> >> On 2022/3/16 20:11, Baoquan He wrote: >>> On 02/27/22 at 11:07am, Zhen Lei wrote: > .. > >>> Hi leizhen, >>> >>> I made change on reserve_crashkenrel(), inline comment may be slow. >>> Ple

Re: [PATCH v21 3/5] arm64: kdump: reimplement crashkernel=X

2022-03-16 Thread Leizhen (ThunderTown)
On 2022/3/17 10:38, Baoquan He wrote: > On 02/27/22 at 11:07am, Zhen Lei wrote: >> From: Chen Zhou >> >> There are following issues in arm64 kdump: >> 1. We use crashkernel=X to reserve crashkernel below 4G, which >> will fail when there is no enough low memory. >> 2. If reserving crashkernel a

Re: [PATCH v21 3/5] arm64: kdump: reimplement crashkernel=X

2022-03-16 Thread Baoquan He
On 03/17/22 at 11:19am, Leizhen (ThunderTown) wrote: > > > On 2022/3/17 10:36, Baoquan He wrote: > > On 03/16/22 at 09:11pm, Leizhen (ThunderTown) wrote: > >> > >> > >> On 2022/3/16 20:11, Baoquan He wrote: > >>> On 02/27/22 at 11:07am, Zhen Lei wrote: > > .. > > > >>> Hi leizhen, > >>> > >