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: <20150826013747.GA30900@free64-pc.asiapac.arm.com>
Date:	Wed, 26 Aug 2015 09:37:47 +0800
From:	Huang Shijie <shijie.huang@....com>
To:	Thomas Gleixner <tglx@...utronix.de>
Cc:	jiang.liu@...ux.intel.com, marc.zyngier@....com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] irqdomain: remove the confused log

On Tue, Aug 25, 2015 at 09:34:00PM +0200, Thomas Gleixner wrote:
> On Tue, 25 Aug 2015, Huang Shijie wrote:
> 
> > When the dynamic debug is enabled for irq domain, the kernel will print out:
> >   ------------------------------------------------------
> >     irqdomain:__irq_domain_add: irq: Added domain (null)
> >   ------------------------------------------------------
> > 
> > It does not print out the irq domain's name, since the @domain->name is NULL.
> > Keep the log here just makes people nervous.
> 
> Well, it might be NULL in your case, but there are enough cases where
> its not NULL and the output valuable. 
In which case ?

The domain is allocated by kzalloc_node(), so @domain->name is NULL in the function.
The @domain->name is set in other function, such as irq_domain_associate().

> 
> 
> Aside of that I don't understand what's making one nervous
> here. People who enable that debug stuff should know that this can be
> NULL and just deal with it. If they get nervous about it they probably
> should not try to debug that code in the first place.
okay.

thanks
Huang Shijie

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ