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: <ZAvDQdY14BVKz09h@bombadil.infradead.org>
Date:   Fri, 10 Mar 2023 15:54:41 -0800
From:   Luis Chamberlain <mcgrof@...nel.org>
To:     Jason Baron <jbaron@...mai.com>
Cc:     linux-kernel@...r.kernel.org, Jim Cromie <jim.cromie@...il.com>,
        Vincenzo Palazzo <vincenzopalazzodev@...il.com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Bart Van Assche <bvanassche@....org>
Subject: Re: [PATCH] dyndbg: cleanup dynamic usage in ib_srp.c

On Fri, Mar 10, 2023 at 04:27:28PM -0500, Jason Baron wrote:
> Currently, in dynamic_debug.h we only provide
> DEFINE_DYNAMIC_DEBUG_METADATA() and DYNAMIC_DEBUG_BRANCH()
> definitions if CONFIG_DYNAMIC_CORE is enabled. Thus, drivers
> such as infiniband srp (see: drivers/infiniband/ulp/srp/ib_srp.c)
> must provide their own definitions for !CONFIG_DYNAMIC_CORE.
> 
> Thus, let's move this !CONFIG_DYNAMIC_CORE case into dynamic_debug.h.
> However, the dynamic debug interfaces should really only be defined
> if CONFIG_DYNAMIC_DEBUG is set or CONFIG_DYNAMIC_CORE is set along
> with DYNAMIC_DEBUG_MODULE, (see:
> Documentation/admin-guide/dynamic-debug-howto.rst). Thus, the
> undefined case becomes: !((CONFIG_DYNAMIC_DEBUG ||
> (CONFIG_DYNAMIC_CORE && DYNAMIC_DEBUG_MODULE)).
> With those changes in place, we can remove the !CONFIG_DYNAMIC_CORE
> case from ib_srp.c
> 
> This change was prompted by a build breakeage in ib_srp.c stemming
> from the inclusion of dynamic_debug.h unconditionally in module.h, due
> to commit 7deabd674988 ("dyndbg: use the module notifier callbacks").
> In that case, if we have CONFIG_DYNAMIC_CORE=y and
> CONFIG_DYNAMIC_DEBUG=n then the definitions for
> DEFINE_DYNAMIC_DEBUG_METADATA() and DYNAMIC_DEBUG_BRANCH() are defined
> once in ib_srp.c and then again in the dynamic_debug.h. This had been
> working prior to the above referenced commit because dynamic_debug.h
> was only pulled into ib_srp.c conditinally via printk.h if
> CONFIG_DYNAMIC_DEBUG was set.
> 
> Cc: Jim Cromie <jim.cromie@...il.com>
> Cc: Luis Chamberlain <mcgrof@...nel.org>
> Cc: Vincenzo Palazzo <vincenzopalazzodev@...il.com>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Bart Van Assche <bvanassche@....org>
> Fixes: 7deabd674988 ("dyndbg: use the module notifier callbacks")
> Reported-by: kernel test robot <lkp@...el.com>
> Link: https://urldefense.com/v3/__https://lore.kernel.org/oe-kbuild-all/202303071444.sIbZTDCy-lkp@intel.com/__;!!GjvTz_vk!S6X1T0wd8DP8kxf6V06_uDcxrNwKJhPOU_7dY0PNghJRL0ahqvE8bh-5544ThnyRkpVyK4Q$
> Signed-off-by: Jason Baron <jbaron@...mai.com>

Thanks, applied and pushed to modules-next!

  Luis

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ