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]
Date:	Thu, 5 Mar 2015 00:06:16 +0000
From:	Mark Brown <broonie@...nel.org>
To:	Bjorn Andersson <bjorn.andersson@...ymobile.com>
Cc:	Liam Girdwood <lgirdwood@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regulator: core: Silence EPROBE_DEFER error on bulk_get

On Thu, Feb 26, 2015 at 03:40:20PM -0800, Bjorn Andersson wrote:

> As this is already being logged elsewhere we shouldn't spam the log
> unnecessarily upon EPROBE_DEFER.

Where exactly is this "elsewhere" you're thinking of?  I suspect you
mean the core -EPROBE_DEFER logging but you don't say...

> Maybe we should have a dev_dbg() for EPROBE_DEFER to aid finding which
> regulator it actually was that it deferred?

No, that's the wrong way around:

>  			ret = PTR_ERR(consumers[i].consumer);
> -			dev_err(dev, "Failed to get supply '%s': %d\n",
> -				consumers[i].supply, ret);
> +			if (ret != -EPROBE_DEFER)
> +				dev_err(dev, "Failed to get supply '%s': %d\n",
> +					consumers[i].supply, ret);

What you're saying here is that essentially everything in the probe path
has to special case -EPROBE_DEFER to remove error logging which in turn
means that any useful information gets elided from the logs.  Having a
debug level log that people can enable or dig out helps somewhat but
it's not really helping users to make it harder to discover information.

If you think probe deferral is too noisy then fix it, don't go and add
lots of special casing code to the error handling.  If other things
aren't reporting errors well then fix that.

Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ