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: <20130529111152.GE12193@twins.programming.kicks-ass.net>
Date:	Wed, 29 May 2013 13:11:52 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	Sasha Levin <sasha.levin@...cle.com>
Cc:	torvalds@...ux-foundation.org, mingo@...nel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage
 from userspace

On Tue, May 28, 2013 at 03:30:35PM -0400, Sasha Levin wrote:
> On 05/22/2013 05:17 AM, Peter Zijlstra wrote:
> > On Wed, May 15, 2013 at 11:15:34PM -0400, Sasha Levin wrote:
> >> --- /dev/null
> >> +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h
> >> @@ -0,0 +1,55 @@
> >> +#ifndef _LIBLOCKDEP_LOCKDEP_H_
> >> +#define _LIBLOCKDEP_LOCKDEP_H_
> >> +
> >> +#include <sys/prctl.h>
> >> +#include <sys/syscall.h>
> >> +#include <string.h>
> >> +#include <limits.h>
> >> +#include <linux/utsname.h>
> >> +
> >> +
> >> +#define MAX_LOCK_DEPTH 2000UL
> >> +
> >> +#include "../../../include/linux/lockdep.h"
> >> +
> >> +struct task_struct {
> >> +	u64 curr_chain_key;
> >> +	int lockdep_depth;
> >> +	unsigned int lockdep_recursion;
> >> +	struct held_lock held_locks[MAX_LOCK_DEPTH];
> >> +	gfp_t lockdep_reclaim_gfp;
> >> +	int pid;
> >> +	char comm[17];
> >> +};
> > 
> > Whee that's a totally awesome MAX_LOCK_DEPTH.. :-)
> > 
> > Should we not also extend the other static allocations, or have you not
> > yet ran into them? I would suspect that without proper classes we're
> > bound to run out of class and link storage quite quickly.
> 
> I've changed MAX_LOCK_DEPTH just because I've actually hit it. I haven't
> got around to hitting anything else, but I guess we could preemptively
> send them hight.
> 
> What values would make sense here?

Dunno, I suppose we can deal with that when we hit them ;-)
--
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