Messages in this thread | | | Date | Tue, 31 Mar 2009 16:57:50 +0200 | From | Oleg Nesterov <> | Subject | Re: [stable] [PATCH 1/2] posix-timers: fix RLIMIT_CPU && fork() |
| |
On 03/31, Chris Wright wrote: > > * Oleg Nesterov (oleg@redhat.com) wrote: > > See http://bugzilla.kernel.org/show_bug.cgi?id=12911 > > > > copy_signal() copies signal->rlim, but RLIMIT_CPU is "lost". Because > > posix_cpu_timers_init_group() sets cputime_expires.prof_exp = 0 and thus > > fastpath_timer_check() returns false unless we have other expired cpu timers. > > > > Change copy_signal() to set cputime_expires.prof_exp if we have RLIMIT_CPU. > > Also, set cputimer.running = 1 in that case. This is not strictly necessary, > > but imho makes sense. > > For -stable should this be instead of 37bebc70d7ad4144c571d74500db3bb26ec0c0eb?
Yes, sorry for confusion.
The commit above was targeted for 2.6.29, it is not optimal. When/if "[PATCH 1/2] posix-timers: fix RLIMIT_CPU && fork()" will be merged, I'll sent the "revert" patch.
see http://marc.info/?t=123783777600004
Oleg.
| |