On (10/01/18 15:15), Ashish Mhetre wrote: > From: Sri Krishna chowdary <schowdary@xxxxxxxxxx> > > Pages can be swapped out from interrupt context as well. Well, if you do kmalloc(GFP_KERNEL) from IRQ then that's the bug you need to fix in the first place. > ZRAM uses zsmalloc allocator to make room for these pages. > > But zsmalloc is not made to be used from interrupt context. > This can result in a kernel Oops. Most like not just "can" but "will" result in panic(). We have BUG_ON(in_interrupt()) in zsmalloc. -ss