Re: kexec does not work for kernel version with patch level >= 256

2021-04-07 Thread Eric W. Biederman
Liu Tao writes: > Hello Eric, > > Please correct me if I'm wrong. After my research, I found that the > KERNEL_VERSION > check cannot be removed. > > In x86_64 case, function get_kernel_page_offset set different hard coded > values into > elf_info->page_offset according to KERNEL_VERSION, then

Re: kexec does not work for kernel version with patch level >= 256

2021-04-01 Thread Eric W. Biederman
Liu Tao writes: > Hello Eric, > > I'd like to have a try on this issue. > Since I'm not very familiar with the related code, maybe I need to spend a > little more time on it. Please give it a shot. Getting rid of explicit kernel version checks would be wonderful and prevent future problems as

Re: kexec does not work for kernel version with patch level >= 256

2021-03-31 Thread Eric W. Biederman
Greg KH writes: > On Wed, Mar 31, 2021 at 04:03:24PM +0800, Baoquan He wrote: >> Add Sasha and Greg to the CC list. >> >> On 03/31/21 at 11:48am, Baoquan He wrote: >> > On 03/31/21 at 11:04am, Patrick Sung wrote: >> > > On Wed, Mar 31, 2021 at 10:47 AM Baoquan He wrote: >> > > > >> > > > On

Re: kexec does not work for kernel version with patch level >= 256

2021-03-31 Thread Greg KH
On Wed, Mar 31, 2021 at 04:03:24PM +0800, Baoquan He wrote: > Add Sasha and Greg to the CC list. > > On 03/31/21 at 11:48am, Baoquan He wrote: > > On 03/31/21 at 11:04am, Patrick Sung wrote: > > > On Wed, Mar 31, 2021 at 10:47 AM Baoquan He wrote: > > > > > > > > On 03/24/21 at 12:28pm, Patrick

Re: kexec does not work for kernel version with patch level >= 256

2021-03-31 Thread Baoquan He
Add Sasha and Greg to the CC list. On 03/31/21 at 11:48am, Baoquan He wrote: > On 03/31/21 at 11:04am, Patrick Sung wrote: > > On Wed, Mar 31, 2021 at 10:47 AM Baoquan He wrote: > > > > > > On 03/24/21 at 12:28pm, Patrick Sung wrote: > > > > Hello all, > > > > > > > > I am using the 4.9 long

Re: kexec does not work for kernel version with patch level >= 256

2021-03-30 Thread Baoquan He
On 03/31/21 at 11:04am, Patrick Sung wrote: > On Wed, Mar 31, 2021 at 10:47 AM Baoquan He wrote: > > > > On 03/24/21 at 12:28pm, Patrick Sung wrote: > > > Hello all, > > > > > > I am using the 4.9 long term kernel which is currently at 4.9.262. > > > When using this kernel with kexec-tools it

Re: kexec does not work for kernel version with patch level >= 256

2021-03-30 Thread Patrick Sung
On Wed, Mar 31, 2021 at 10:47 AM Baoquan He wrote: > > On 03/24/21 at 12:28pm, Patrick Sung wrote: > > Hello all, > > > > I am using the 4.9 long term kernel which is currently at 4.9.262. > > When using this kernel with kexec-tools it prints out this error > > > > Unsupported utsname.release:

Re: kexec does not work for kernel version with patch level >= 256

2021-03-30 Thread Baoquan He
On 03/24/21 at 12:28pm, Patrick Sung wrote: > Hello all, > > I am using the 4.9 long term kernel which is currently at 4.9.262. > When using this kernel with kexec-tools it prints out this error > > Unsupported utsname.release: 4.9.262 > Cannot load > > A quick search in the code shows

kexec does not work for kernel version with patch level >= 256

2021-03-23 Thread Patrick Sung
Hello all, I am using the 4.9 long term kernel which is currently at 4.9.262. When using this kernel with kexec-tools it prints out this error Unsupported utsname.release: 4.9.262 Cannot load A quick search in the code shows that kexec/kernel_version.c doing this check: if (major >= 256