On Thu, 24 Aug 2017 21:18:25 +0900 Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote: > We are doing last second memory allocation attempt before calling > out_of_memory(). But since slab shrinker functions might indirectly > wait for other thread's __GFP_DIRECT_RECLAIM && !__GFP_NORETRY memory > allocations via sleeping locks, calling slab shrinker functions from > node_reclaim() from get_page_from_freelist() with oom_lock held has > possibility of deadlock. Therefore, make sure that last second memory > allocation attempt does not call slab shrinker functions. I wonder if there's any way we could gert lockdep to detect this sort of thing. Has the deadlock been observed in testing? Do we think this fix should be backported into -stable? -- 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>