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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211108165353.GS641268@paulmck-ThinkPad-P17-Gen-1>
Date:   Mon, 8 Nov 2021 08:53:53 -0800
From:   "Paul E. McKenney" <paulmck@...nel.org>
To:     Borislav Petkov <bp@...en8.de>
Cc:     LKML <linux-kernel@...r.kernel.org>, rcu@...r.kernel.org
Subject: Re: [PATCH v0 20/42] rcu: Check notifier registration return value

On Mon, Nov 08, 2021 at 11:11:35AM +0100, Borislav Petkov wrote:
> From: Borislav Petkov <bp@...e.de>
> 
> Avoid homegrown notifier registration checks.
> 
> No functional changes.
> 
> Signed-off-by: Borislav Petkov <bp@...e.de>

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

Or I would be happy to take this as soon as the first patch appears
somewhere that I can base off of.  (I could duplicate it in -rcu, I
suppose.)

							Thanx, Paul

> Cc: rcu@...r.kernel.org
> ---
>  kernel/rcu/tree_stall.h | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h
> index 5e2fa6fd97f1..0c1d631214f4 100644
> --- a/kernel/rcu/tree_stall.h
> +++ b/kernel/rcu/tree_stall.h
> @@ -101,7 +101,9 @@ static struct notifier_block rcu_panic_block = {
>  
>  static int __init check_cpu_stall_init(void)
>  {
> -	atomic_notifier_chain_register(&panic_notifier_list, &rcu_panic_block);
> +	if (atomic_notifier_chain_register(&panic_notifier_list, &rcu_panic_block))
> +		pr_warn("RCU warning suppress notifier already registered\n");
> +
>  	return 0;
>  }
>  early_initcall(check_cpu_stall_init);
> -- 
> 2.29.2
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ