Files
erofs-linux/kernel
Oleg Nesterov d02479bdeb posix-timers: fix creation race
sys_timer_create() sets ->it_process and unlocks ->siglock, then checks
tmr->it_sigev_notify to define if get_task_struct() is needed.

We already passed ->it_id to the caller, another thread can delete this timer
and free its memory in between.

As a minimal fix, move this code under ->siglock, sys_timer_delete() takes it
too before calling release_posix_timer().  A proper serialization would be to
take ->it_lock, we add a partly initialized timer on posix_timers_id, not
good.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2007-08-22 19:52:46 -07:00
..
2007-08-22 19:52:44 -07:00
…
…
2007-08-22 19:52:44 -07:00
…
…
…
…
…
…
…
…
…
2007-07-26 11:33:06 -07:00
2007-08-11 15:47:42 -07:00
2007-07-20 12:01:34 -07:00
…
2007-07-31 15:39:40 -07:00
…
…
2007-07-19 10:04:49 -07:00
…
…
…
2007-08-22 19:52:46 -07:00
2007-08-11 15:47:42 -07:00
…
…
2007-08-12 18:08:19 +02:00
…
…
…
…
…
…
…