kernel-ark/kernel
Oleg Nesterov f01b1b0baa [PATCH] ITIMER_REAL: fix possible deadlock and race
As Steven Rostedt pointed out, there are 2 problems with ITIMER_REAL
timers.

1. do_setitimer() does not call del_timer_sync() in case
   when the timer is not pending (it_real_value() returns 0).
   This is wrong, the timer may still be running, and it can
   rearm itself.

2. It calls del_timer_sync() with tsk->sighand->siglock held.
   This is deadlockable, because timer's handler needs this
   lock too.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-28 21:20:30 -07:00
..
irq [PATCH] Using msleep() instead of HZ 2005-06-28 21:20:29 -07:00
power Merge Christoph's freeze cleanup patch 2005-06-25 17:16:53 -07:00
acct.c
audit.c
auditsc.c
capability.c
compat.c
configs.c
cpu.c
cpuset.c [PATCH] Dynamic sched domains: cpuset changes 2005-06-25 16:24:45 -07:00
crash_dump.c [PATCH] kdump: Access dump file in elf format (/proc/vmcore) 2005-06-25 16:24:53 -07:00
dma.c
exec_domain.c
exit.c [PATCH] Update cfq io scheduler to time sliced design 2005-06-27 14:33:29 -07:00
extable.c
fork.c [PATCH] Update cfq io scheduler to time sliced design 2005-06-27 14:33:29 -07:00
futex.c
intermodule.c
itimer.c [PATCH] ITIMER_REAL: fix possible deadlock and race 2005-06-28 21:20:30 -07:00
kallsyms.c
Kconfig.hz
Kconfig.preempt [PATCH] sched: voluntary kernel preemption 2005-06-25 16:24:45 -07:00
kexec.c [PATCH] kexec: fix sparse warnings 2005-06-28 14:53:40 -07:00
kfifo.c
kmod.c
kprobes.c [PATCH] Return probe redesign: architecture independent changes 2005-06-27 15:23:52 -07:00
ksysfs.c [PATCH] Kdump: Export crash notes section address through sysfs 2005-06-25 16:24:51 -07:00
kthread.c
Makefile [PATCH] kdump: Routines for copying dump pages 2005-06-25 16:24:53 -07:00
module.c
panic.c [PATCH] kdump: Use real pt_regs from exception 2005-06-25 16:24:54 -07:00
params.c
pid.c
posix-cpu-timers.c
posix-timers.c
printk.c
profile.c
ptrace.c
rcupdate.c
resource.c [PATCH] Use ALIGN to remove duplicate code 2005-06-25 16:25:02 -07:00
sched.c [PATCH] Tweak idle thread setup semantics 2005-06-28 14:56:51 -07:00
seccomp.c
signal.c [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
softirq.c
spinlock.c
stop_machine.c
sys_ni.c [PATCH] kexec: add kexec syscalls 2005-06-25 16:24:48 -07:00
sys.c [PATCH] kexec: add kexec syscalls 2005-06-25 16:24:48 -07:00
sysctl.c [PATCH] remove redundant NULL check before before kfree() in kernel/sysctl.c 2005-06-25 16:24:59 -07:00
time.c
timer.c [PATCH] kernel/timer: fix msleep_interruptible() comment 2005-06-25 16:24:58 -07:00
uid16.c
user.c
wait.c
workqueue.c