[PATCH for 4.9 30/39] mm/cgroup: avoid panic when init with low memory

2017-09-17 Thread Levin, Alexander (Sasha Levin)
From: Laurent Dufour [ Upstream commit bfc7228b9a9647e1c353e50b40297a2929801759 ] The system may panic when initialisation is done when almost all the memory is assigned to the huge pages using the kernel command line parameter hugepage=. Panic may occur like

[PATCH for 4.9 30/39] mm/cgroup: avoid panic when init with low memory

2017-09-17 Thread Levin, Alexander (Sasha Levin)
From: Laurent Dufour [ Upstream commit bfc7228b9a9647e1c353e50b40297a2929801759 ] The system may panic when initialisation is done when almost all the memory is assigned to the huge pages using the kernel command line parameter hugepage=. Panic may occur like this: Unable to handle