Re: [PATCH] zram: panic when use ext4 over zram

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

 



> > In any case, zram should ensure that its data is not damaged
> 
> zram cannot ensure that, it's not zram's job.  Nothing stops
> the buggy actor from modifiying the page at any random point,
> zram might not even be able to decompress the page in the end,
> it's not only the zs_handle allocation slow-path case.

What I mean is that if the length after recompression is longer than before,
writing directly to zs_obj will cause the next zs_obj to be corrupted,
eventually leading to panic. zram must ensure that its own zs_obj will not be
written to overflow, not page.




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux