Re: [PATCH 2/2] Race-free kernel.core_pattern

2008-01-27 Thread Andi Kleen
> Yup, that's the bug. > > Below is companion patch to be applied after BKL removal which fixes it: Still there are other do_string (and possibly multiple number integer) users which are likely buggy in the same way. It's probably better to find some more generic mechanism instead of adding a n

[PATCH 2/2] Race-free kernel.core_pattern

2008-01-27 Thread Alexey Dobriyan
e a bug worse not fixed it. Techically, yes. > There are cases that updating the corepath name and dumping a core at the > same moment can result in the wrong thing being exec()'d or a file being > opened which is a mix of the old and new name and could go anywhere