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: <20140102203036.GC7526@hmsreliant.think-freely.org>
Date:	Thu, 2 Jan 2014 15:30:36 -0500
From:	Neil Horman <nhorman@...driver.com>
To:	Ben Hutchings <bhutchings@...arflare.com>
Cc:	linux-sctp@...r.kernel.org, Vlad Yasevich <vyasevich@...il.com>,
	"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH] sctp: Add process name and pid to deprecation warnings

On Thu, Jan 02, 2014 at 07:52:30PM +0000, Ben Hutchings wrote:
> On Thu, 2014-01-02 at 12:54 -0500, Neil Horman wrote:
> > Recently I updated the sctp socket option deprecation warnings to be both a bit
> > more clear and ratelimited to prevent user processes from spamming the log file.
> > Ben Hutchings suggested that I add the process name and pid to these warnings so
> > that users can tell who is responsible for using the deprecated apis.  This
> > patch accomplishes that.
> [...]
> 
> I grepped for existing deprecation warnings that log the command and/or
> PID.  The warnings are not consistent, but where the include both comand
> and PID it's generally in the format "%s (%d)", comm, pid.  So please
> could you follow that format?
> 
Thats not really true, Subsystems vary widely in how they present process
name/pid warnings.  In fact, the first example you give below that uses both
process and pid, the format is <pid> (<name>)

There are alot that use <name> (<pid>), I argee, but theres quite alot of others
as well (the lockdep subssytem uses %s/%d, and several of the arm trap handlers
actually use Process <name> (pid: <pid>).  I don't have any issue with changing
it, but I'm not sure what the advantage is if theres not going to be consistent
use throughout the kernel.

Neil

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ