Closed GoogleCodeExporter closed 9 years ago
The version of compcache (called zram) as included in mainline does not require
these notifiers and is quite stable. It would be difficult for me to do the
backport due to time constraints but if you have resources and attempt the
same, I would be glad to help out with any problems you might face.
Original comment by nitingupta910@gmail.com
on 5 Jan 2011 at 9:59
Unfortunately, I'm not a kernel hacker and trying to backport zram and
understand what I'm doing would be a very time consuming effort for me, so to
say.
I finally have had a closer look at it, and I have found the cause:
In the swapon and swapoff notify functions it's assumed that the inode of the
swap device belongs to a block device, when in fact it can be a (swap) file,
and dereferencing a non existing bd_disk->private_data pointer causes the crash.
The attached patch fixes all the issues I've found with compcache-0.5.4:
- pr_err undefined in the kernel patch
- undefined types make build fail
- kernel crash adding/removing a second swap file with CONFIG_SWAP_NOTIFIERS
Please, apply it to 0.5.4 so people forced to use old kernels don't have the
same issues.
Original comment by maac...@gmail.com
on 5 Jan 2011 at 11:31
Attachments:
Thanks for the patch. Over next few weeks, I'm planning to update all download
packages, webpages to reflect current state of the project (mainline status
etc.)
I will try to backport the current mainline version for older kernels. If that
does not happen, I will integrate your patch and add the fixed version to
Downloads.
Original comment by nitingupta910@gmail.com
on 6 Jan 2011 at 12:24
no longer supporting ancient compcache versions
Original comment by nitingupta910@gmail.com
on 2 Oct 2012 at 10:13
Original issue reported on code.google.com by
maac...@gmail.com
on 4 Jan 2011 at 12:02