]> err.no Git - linux-2.6/commit
[PATCH] xacct_add_tsk: fix pure theoretical ->mm use-after-free
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 30 Oct 2006 06:46:43 +0000 (22:46 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 30 Oct 2006 20:08:41 +0000 (12:08 -0800)
commitf0ec1aaf54caddd21c259aea8b2ecfbde4ee4fb9
tree61202a09a030d659064df65e127b9be1c571c48c
parentd45e44d4be60ef508579001792f33753b5cb6d36
[PATCH] xacct_add_tsk: fix pure theoretical ->mm use-after-free

Paranoid fix. The task can free its ->mm after the 'if (p->mm)' check.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jay Lan <jlan@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/tsacct.c