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: <4D10FC90.6020104@linux.intel.com>
Date:	Tue, 21 Dec 2010 11:14:24 -0800
From:	Darren Hart <dvhart@...ux.intel.com>
To:	Lai Jiangshan <laijs@...fujitsu.com>
CC:	Peter Zijlstra <peterz@...radead.org>,
	John Kacur <jkacur@...hat.com>,
	James Bottomley <James.Bottomley@...e.de>,
	Ingo Molnar <mingo@...e.hu>, "Rafael J. Wysocki" <rjw@...k.pl>,
	Thomas Gleixner <tglx@...utronix.de>,
	Namhyung Kim <namhyung@...il.com>,
	linux-kernel@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH 2/4] futex,plist: remove debug lock assignment for plist_node

On 12/21/2010 01:55 AM, Lai Jiangshan wrote:
> original code use&plist_node->plist as the faked head of
> the priority list for plist_del(), these debug locks in
> the faked head are needed for CONFIG_DEBUG_PI_LIST.
>
> But now we always pass the real head to plist_del(), the debug locks
> in plist_node will not be used, so we remove these assignments.

Any reason to keep this separate from  patch 1/4 ?

--
Darren

>
> Signed-off-by:  Lai Jiangshan<laijs@...fujitsu.com>
> ---
> diff --git a/kernel/futex.c b/kernel/futex.c
> index 6c4f67a..725834e 100644
> --- a/kernel/futex.c
> +++ b/kernel/futex.c
> @@ -1032,9 +1032,6 @@ void requeue_futex(struct futex_q *q, struct futex_hash_bucket *hb1,
>   		plist_del(&q->list,&hb1->chain);
>   		plist_add(&q->list,&hb2->chain);
>   		q->lock_ptr =&hb2->lock;
> -#ifdef CONFIG_DEBUG_PI_LIST
> -		q->list.plist.spinlock =&hb2->lock;
> -#endif
>   	}
>   	get_futex_key_refs(key2);
>   	q->key = *key2;
> @@ -1068,9 +1065,6 @@ void requeue_pi_wake_futex(struct futex_q *q, union futex_key *key,
>   	q->rt_waiter = NULL;
>
>   	q->lock_ptr =&hb->lock;
> -#ifdef CONFIG_DEBUG_PI_LIST
> -	q->list.plist.spinlock =&hb->lock;
> -#endif
>
>   	wake_up_state(q->task, TASK_NORMAL);
>   }
> @@ -1418,9 +1412,6 @@ static inline void queue_me(struct futex_q *q, struct futex_hash_bucket *hb)
>   	prio = min(current->normal_prio, MAX_RT_PRIO);
>
>   	plist_node_init(&q->list, prio);
> -#ifdef CONFIG_DEBUG_PI_LIST
> -	q->list.plist.spinlock =&hb->lock;
> -#endif
>   	plist_add(&q->list,&hb->chain);
>   	q->task = current;
>   	spin_unlock(&hb->lock);


-- 
Darren Hart
Yocto Linux Kernel
--
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