https://github.com/torvalds/linux
Revision 3de463c7d9d58f8cf3395268230cb20a4c15bffa authored by Oleg Nesterov on 24 October 2005, 10:34:03 UTC, committed by Linus Torvalds on 24 October 2005, 15:12:35 UTC
do_exit() clears ->it_##clock##_expires, but nothing prevents
another cpu to attach the timer to exiting process after that.

After exit_notify() does 'write_unlock_irq(&tasklist_lock)' and
before do_exit() calls 'schedule() local timer interrupt can find
tsk->exit_state != 0. If that state was EXIT_DEAD (or another cpu
does sys_wait4) interrupted task has ->signal == NULL.

At this moment exiting task has no pending cpu timers, they were cleaned
up in __exit_signal()->posix_cpu_timers_exit{,_group}(), so we can just
return from irq.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 108150e
History
Tip revision: 3de463c7d9d58f8cf3395268230cb20a4c15bffa authored by Oleg Nesterov on 24 October 2005, 10:34:03 UTC
[PATCH] posix-timers: remove false BUG_ON() from run_posix_cpu_timers()
Tip revision: 3de463c
File Mode Size
Kconfig -rw-r--r-- 9.3 KB
Makefile -rw-r--r-- 1.1 KB
aes.c -rw-r--r-- 11.3 KB
anubis.c -rw-r--r-- 27.9 KB
api.c -rw-r--r-- 5.4 KB
arc4.c -rw-r--r-- 2.0 KB
blowfish.c -rw-r--r-- 17.3 KB
cast5.c -rw-r--r-- 34.6 KB
cast6.c -rw-r--r-- 22.8 KB
cipher.c -rw-r--r-- 11.1 KB
compress.c -rw-r--r-- 1.8 KB
crc32c.c -rw-r--r-- 2.4 KB
crypto_null.c -rw-r--r-- 3.3 KB
deflate.c -rw-r--r-- 5.4 KB
des.c -rw-r--r-- 35.1 KB
digest.c -rw-r--r-- 2.5 KB
hmac.c -rw-r--r-- 3.3 KB
internal.h -rw-r--r-- 2.6 KB
khazad.c -rw-r--r-- 52.4 KB
md4.c -rw-r--r-- 6.1 KB
md5.c -rw-r--r-- 7.1 KB
michael_mic.c -rw-r--r-- 3.4 KB
proc.c -rw-r--r-- 2.7 KB
scatterwalk.c -rw-r--r-- 2.8 KB
scatterwalk.h -rw-r--r-- 2.0 KB
serpent.c -rw-r--r-- 19.8 KB
sha1.c -rw-r--r-- 3.2 KB
sha256.c -rw-r--r-- 11.1 KB
sha512.c -rw-r--r-- 10.8 KB
tcrypt.c -rw-r--r-- 30.2 KB
tcrypt.h -rw-r--r-- 100.3 KB
tea.c -rw-r--r-- 6.5 KB
tgr192.c -rw-r--r-- 31.9 KB
twofish.c -rw-r--r-- 44.9 KB
wp512.c -rw-r--r-- 60.7 KB

back to top