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: <f5837e2d-2fbd-34f2-37eb-11701db4464e@igalia.com>
Date:   Sun, 15 Oct 2023 15:54:49 +0200
From:   "Guilherme G. Piccoli" <gpiccoli@...lia.com>
To:     "Maciej W. Rozycki" <macro@...am.me.uk>
Cc:     linux-alpha@...r.kernel.org, mattst88@...il.com,
        linux-kernel@...r.kernel.org, kernel-dev@...lia.com,
        kernel@...ccoli.net, Ivan Kokshaysky <ink@...assic.park.msu.ru>,
        Richard Henderson <richard.henderson@...aro.org>,
        Petr Mladek <pmladek@...e.com>
Subject: Re: [PATCH v5] alpha: Clean-up the panic notifier code

On 10/10/2023 02:16, Maciej W. Rozycki wrote:
> On Sat, 2 Sep 2023, Guilherme G. Piccoli wrote:
> 
>> So, let's clean the code and set the notifier to run as the
>> latest, following the same approach other architectures are
>> doing - also, remove the unnecessary include of a header already
>> included indirectly.
> 
>  FWIW my understanding is our current policy is not to rely on indirect 
> inclusions and if a given source relies on declarations or definitions 
> provided by a header, then it is supposed to pull it explicitly.
> 
>  And in any case such an unrelated self-contained change is expected to be 
> sent as a separate patch, in a series if there's a mechanical dependency.
> 
>   Maciej
> 

Hi Maciej, thanks for your review!

I'm not sure how the indirect inclusion is happening here. The only
notifier present in this file is a panic notifier, and for this one, we
have the "panic_notifier.h" header. It's like this for many others (if
not all) panic notifiers in the kernel.

Usually the indirect inclusion would happen if some other notifier block
was used for any other reason, and we dropped the "notifier.h" include,
which then would indirectly rely on "panic_notifier.h". In case I'm
talking silly things, let me know! I might not have understood properly
your point (and if so, apologies).

Regarding split in another patch, it can easily be done, but I think
it's quite self-contained now, a simple patch that cleans-up the alpha
notifier. I've done that for other notifiers so far, but I'm OK either
way, as long maintainers are happy and community agrees =)

Cheers,


Guilherme

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ