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]
Date:	Fri, 26 Mar 2010 17:12:18 +0100
From:	Stanislaw Gruszka <sgruszka@...hat.com>
To:	Balbir Singh <balbir@...ux.vnet.ibm.com>
Cc:	Oleg Nesterov <oleg@...hat.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Americo Wang <xiyou.wangcong@...il.com>,
	"Eric W. Biederman" <ebiederm@...ssion.com>,
	Hidetoshi Seto <seto.hidetoshi@...fujitsu.com>,
	Ingo Molnar <mingo@...e.hu>,
	Peter Zijlstra <peterz@...radead.org>,
	Roland McGrath <roland@...hat.com>,
	Spencer Candland <spencer@...ehost.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [RFC,PATCH 1/2] cputimers/proc: do_task_stat()->task_times()
	can race with getrusage()

On Fri, Mar 26, 2010 at 08:37:23AM +0100, Stanislaw Gruszka wrote:
> On Fri, Mar 26, 2010 at 09:23:44AM +0530, Balbir Singh wrote:
> > * Oleg Nesterov <oleg@...hat.com> [2010-03-24 21:45:50]:
> > 
> > > do_task_stat()->task_times() can race with getrusage(), they both can
> > > try to update task->prev_Xtime at the same time.
> > > 
> > > Remove this bit of d180c5bc "sched: Introduce task_times() to replace
> > > task_{u,s}time()".
> > 
> > One of the reasons for adding this accuracy was to avoid sampling
> > based noise and errors that occur with utime and stime.
> > 
> > As long as there is no preemption during the assignment, I think we
> > should be OK. 
> > 
> > I see two options
> > 
> > 1. Disable preemption around assignment
> That one sounds very good.
No. Preemption will not help here.

Stanislaw
--
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