Michal Hocko wrote: > On Mon 01-06-15 22:04:28, Tetsuo Handa wrote: > > Michal Hocko wrote: > > > > Likewise, move do_send_sig_info(SIGKILL, victim) to before > > > > mark_oom_victim(victim) in case for_each_process() took very long time, > > > > for the OOM victim can abuse ALLOC_NO_WATERMARKS by TIF_MEMDIE via e.g. > > > > memset() in user space until SIGKILL is delivered. > > > > > > This is unrelated and I believe even not necessary. > > > > Why unnecessary? If serial console is configured and printing a series of > > "Kill process %d (%s) sharing same memory" took a few seconds, the OOM > > victim can consume all memory via malloc() + memset(), can't it? > > Can? You are generating one corner case after another. All of them > without actually showing it can happen in the real life. There are > million+1 corner cases possible yet we would prefer to handle those that > have changes to happen in the real life. So let's focus on the real life > scenarios. I worked at support center for three years. I saw many unexplained hangup cases. Some of them could be caused by these corner cases. But I can't prove that it happened in the real life because I don't have reproducer for hangups occurred in customer's systems. Analyzing syslog / vmcore did not help because memory allocator gives me no hints. What I can do is to imagine possible corner cases, but my goal is not to identify all corner cases. My goal is to propose a backportable workaround that enterprise customers can use now. While I feel sorry for bothering you, I also feel sorry for customers for not being able to offer one. "[PATCH] mm: Introduce timeout based OOM killing" is what I can come up with, without identifying one corner case after another. I've been asking for backportable workaround for many months. I spent time for finding potential bugs ( http://marc.info/?l=linux-mm&m=141684929114209 ). If you are already aware that there are million+1 corner cases possible yet (that is, we have too many potential bugs to identify and fix), why do you keep refusing to offer for-now workaround (that is, paper over potential bugs) ? I don't want to see customers and support staff suffering with OOM corner cases any more... -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>