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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160518125311.311f970310f5e0080d690d17@gmail.com>
Date:	Wed, 18 May 2016 12:53:11 +0200
From:	Emese Revfy <re.emese@...il.com>
To:	kernel-hardening@...ts.openwall.com
Cc:	Andrew Donnellan <andrew.donnellan@....ibm.com>,
	linux-kbuild@...r.kernel.org, pageexec@...email.hu,
	spender@...ecurity.net, mmarek@...e.com, keescook@...omium.org,
	linux@...musvillemoes.dk, fengguang.wu@...el.com,
	dvyukov@...gle.com, linux-kernel@...r.kernel.org,
	david.brown@...aro.org, yamada.masahiro@...ionext.com
Subject: Re: [kernel-hardening] [PATCH v8 3/4] Add Cyclomatic complexity GCC
 plugin

On Wed, 18 May 2016 18:25:00 +1000
Andrew Donnellan <andrew.donnellan@....ibm.com> wrote:

> On 13/05/16 09:58, Emese Revfy wrote:
> > Add a very simple plugin to demonstrate the GCC plugin infrastructure. This GCC
> > plugin computes the cyclomatic complexity of each function.
> 
> ...
> 
> > +config GCC_PLUGIN_CYC_COMPLEXITY
> > +	bool "Compute the cyclomatic complexity of a function"
> > +	depends on GCC_PLUGINS
> > +	help
> > +	  The complexity M of a function's control flow graph is defined as:
> > +	   M = E - N + 2P
> > +	  where
> > +
> > +	  E = the number of edges
> > +	  N = the number of nodes
> > +	  P = the number of connected components (exit nodes).
> > +
> 
> If this plugin is intended primarily as a demonstration it's probably 
> worth mentioning this in the Kconfig description.

Hi,

Before sancov this plugin demonstrated the gcc plugin infrastructure but otherwise this is a fully working plugin not a test plugin. Also it doesn't demonstrate all aspects of writing gcc plugins.

-- 
Emese

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ