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: <20060921151951.d36d2fc4.rdunlap@xenotime.net>
Date:	Thu, 21 Sep 2006 15:19:51 -0700
From:	"Randy.Dunlap" <rdunlap@...otime.net>
To:	Mathieu Desnoyers <compudj@...stal.dyndns.org>
Cc:	Martin Bligh <mbligh@...gle.com>,
	"Frank Ch. Eigler" <fche@...hat.com>,
	Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>,
	prasanna@...ibm.com, Andrew Morton <akpm@...l.org>,
	Ingo Molnar <mingo@...e.hu>,
	Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>,
	Paul Mundt <lethal@...ux-sh.org>,
	linux-kernel <linux-kernel@...r.kernel.org>,
	Jes Sorensen <jes@....com>, Tom Zanussi <zanussi@...ibm.com>,
	Richard J Moore <richardj_moore@...ibm.com>,
	Michel Dagenais <michel.dagenais@...ymtl.ca>,
	Christoph Hellwig <hch@...radead.org>,
	Greg Kroah-Hartman <gregkh@...e.de>,
	Thomas Gleixner <tglx@...utronix.de>,
	William Cohen <wcohen@...hat.com>, ltt-dev@...fik.org,
	systemtap@...rces.redhat.com, Alan Cox <alan@...rguk.ukuu.org.uk>,
	Jeremy Fitzhardinge <jeremy@...p.org>
Subject: Re: [PATCH] Linux Kernel Markers 0.6 for 2.6.17

On Thu, 21 Sep 2006 17:56:44 -0400 Mathieu Desnoyers wrote:

> Hi Mathieu,

In your next version, please use a space between "if" and "(".

> --- /dev/null
> +++ b/kernel/marker.c
> @@ -0,0 +1,178 @@
> +/* Pointers can be used around preemption disabled */
> +static int marker_get_pointers(const char *name,
> +	struct marker_pointers *ptrs)
> +{
> +	if(!(ptrs->call && ptrs->jmpselect && ptrs->jmpcall
> +			&& ptrs->jmpinline && ptrs->jmpover)) {
> +		return ENOENT;
> +	}
> +}
> +
> +int marker_set_probe(const char *name, marker_probe_func *probe,
> +		enum marker_type type)
> +{
> +	if(result) {
> +		printk(KERN_NOTICE
> +			"Unable to find kallsyms for markers in %s\n",
> +			name);
> +		goto unlock;
> +	}
> +
> +		case MARKER_CALL:
> +			if(*ptrs.call != __mark_empty_function) {
> +				result = EBUSY;
> +				printk(KERN_NOTICE
> +					"Probe already installed on "
> +					"marker in %s\n",
> +					name);
> +				goto unlock;
> +			}
> +		case MARKER_INLINE:
> +			if(*ptrs.jmpover == *ptrs.jmpinline) {
> +				result = ENODEV;
> +				printk(KERN_NOTICE
> +					"No inline probe exists "
> +					"for marker in %s\n",
> +					name);
> +				goto unlock;
> +			}
> +}
> +
> +void marker_disable_probe(const char *name, marker_probe_func *probe,
> +		enum marker_type type)
> +{
> +	if(result)
> +		goto unlock;
> +
> +		case MARKER_CALL:
> +			if(*ptrs.call == probe) {
> +				*ptrs.jmpselect = *ptrs.jmpover;
> +				*ptrs.call = __mark_empty_function;
> +			}
> +		case MARKER_INLINE:
> +			if(*ptrs.jmpselect == *ptrs.jmpinline)
> +				*ptrs.jmpselect = *ptrs.jmpover;
> +			break;
> +	if(!result && type == MARKER_CALL)
> +		synchronize_sched();
> +}
> 

Thanks.
---
~Randy
-
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