lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a6f29741-39e2-41fd-a253-1a0477b89a9f@paulmck-laptop>
Date:   Sat, 19 Aug 2023 14:01:38 -0700
From:   "Paul E. McKenney" <paulmck@...nel.org>
To:     Baoquan He <bhe@...hat.com>
Cc:     eric.devolder@...cle.com, linux-kernel@...r.kernel.org,
        linux-next@...r.kernel.org, sfr@...b.auug.org.au,
        tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
        dave.hansen@...ux.intel.com, x86@...nel.org, hpa@...or.com,
        sourabhjain@...ux.ibm.com, hbathini@...ux.ibm.com
Subject: Re: [BUG resend next-20230818] error: 'prepare_elf_headers' defined
 but not used

On Sat, Aug 19, 2023 at 09:04:33PM +0800, Baoquan He wrote:
> On 08/18/23 at 07:28pm, Paul E. McKenney wrote:
> > Hello!
> > 
> > This morning's rcutorture testing on next-20230818 complained about
> > prepare_elf_headers() being defined but unused on several rcutorture
> > scenarios.  The patch below makes rcutorture happy, but might or might
> > not be a proper fix.
> > 
> > This is a resend adding a few more people on CC, given a possible
> > relationship to 9f1f399ca999 ("x86/crash: add x86 crash hotplug support").
> > 
> > Thoughts?
> > 
> 
> Thanks for reporting this, Paul.
> > 
> > ------------------------------------------------------------------------
> > 
> > diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
> > index 1d0f824559fce..926c39e22387b 100644
> > --- a/arch/x86/kernel/crash.c
> > +++ b/arch/x86/kernel/crash.c
> > @@ -127,7 +127,8 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
> >  	crash_save_cpu(regs, safe_smp_processor_id());
> >  }
> >  
> > -#if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP)
> > +#if (defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP)) && defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
> 
> Hi Eric,
> 
> Now prepare_elf_headers() is needed for kexec_file_load and crash
> hotplug support of kexec_load, change it like this?
> 
> #if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_HOTPLUG)

If you mean the patch below:

Tested-by: Paul E. McKenney <paulmck@...nel.org>

------------------------------------------------------------------------

diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index 1d0f824559fc..c92d88680dbf 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -127,7 +127,7 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
 	crash_save_cpu(regs, safe_smp_processor_id());
 }
 
-#if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP)
+#if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_HOTPLUG)
 static int get_nr_ram_ranges_callback(struct resource *res, void *arg)
 {
 	unsigned int *nr_ranges = arg;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ