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]
Date:	Thu, 5 Dec 2013 01:32:03 +0100
From:	Frederic Weisbecker <fweisbec@...il.com>
To:	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
Cc:	tglx@...utronix.de, mingo@...nel.org, linux-kernel@...r.kernel.org,
	peterz@...radead.org, oleg@...hat.com, akpm@...ux-foundation.org
Subject: Re: [PATCH 02/10] posix-timers: Remove dead process posix cpu timers
 caching

On Wed, Dec 04, 2013 at 01:50:34PM -0500, KOSAKI Motohiro wrote:
> > @@ -1090,13 +1063,8 @@ void posix_cpu_timer_schedule(struct k_itimer *timer)
> >  			timer->it.cpu.expires = 0;
> >  			goto out_unlock;
> >  		} else if (unlikely(p->exit_state) && thread_group_empty(p)) {
> > -			/*
> > -			 * We've noticed that the thread is dead, but
> > -			 * not yet reaped.  Take this opportunity to
> > -			 * drop our task ref.
> > -			 */
> > +			/* Optimizations: if the process is dying, no need to rearm */
> >  			cpu_timer_sample_group(timer->it_clock, p, &now);
> 
> Why do we still need to call cpu_timer_sample_group? You removed to below line which uses
> "now".

Good point, it looks safe to remove it now.

Thanks.
 
> > -			clear_dead_task(timer, now);
> >  			goto out_unlock;
> >  		}
> >  		spin_lock(&p->sighand->siglock);
> > 
> 
--
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