]> git.hungrycats.org Git - linux/commit
[PATCH] BSD accounting oops fix
authorAndrew Morton <akpm@osdl.org>
Mon, 12 Apr 2004 08:04:34 +0000 (01:04 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 12 Apr 2004 08:04:34 +0000 (01:04 -0700)
commit7285840f8745b467b111a908eb20a1d9b845c98c
treecb866e76dd8682ef22262c854344962a9a8ec395
parent177ddd528e5dd02a1093a539474d7556f3c36b99
[PATCH] BSD accounting oops fix

oopses have been reported in do_acct_process(), with premption enabled, when
threaded applications are exitting.

It appears that we're racing with another thread which is nulling out
current->tty.  I think this race is still there after we moved current->tty
into current->signal->tty, so let's take the needed lock.
kernel/acct.c