mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Logging Behavior under arch/x86/kernel
       [not found] <YT3PR01MB87565C391CB407D2BB49BB3BA06D9@YT3PR01MB8756.CANPRD01.PROD.OUTLOOK.COM>
@ 2022-08-19 18:06 ` Borislav Petkov
  0 siblings, 0 replies; only message in thread
From: Borislav Petkov @ 2022-08-19 18:06 UTC (permalink / raw)
  To: Zhihao Lin; +Cc: tglx, mingo, dave.hansen, x86, linux-kernel

Hi,

On Thu, Aug 18, 2022 at 03:08:44PM +0000, Zhihao Lin wrote:
> 2. At the end of wakeup_secondary_cpu_via_init, send_status is
> checked and given an error-level log message. However, according
> to the control flow analysis, it is unclear that which of
> safe_apic_wait_icr_idle (line 870 or line 918) is checked because
> the loop (which contains the third call) may or may not execute.

Well, does it matter which is checked?

AFAICT, it always checks the right one. :-)

> In this case, my tool alerts that this log statement doesn’t provide
> sufficient information for error diagnostic.

The pr_err() calls at the end of the function do catch the case when
either send_status or accept_status are != 0.

> pci_write_config_dword
> 
>   *   arch/x86/kernel/amd_nb.c

That has been probably overlooked during review. If we had to be
pedantic, we should check all those retvals. I guess not that
important...

HTH.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-19 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <YT3PR01MB87565C391CB407D2BB49BB3BA06D9@YT3PR01MB8756.CANPRD01.PROD.OUTLOOK.COM>
2022-08-19 18:06 ` Logging Behavior under arch/x86/kernel Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®