Re: [PATCH] mm: Avoid swapping in interrupt context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux