ecryptfs error after resume from hibernation

Bug #1714919 reported by Harish on 2017-09-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Undecided
Unassigned

Bug Description

I get the following message in dmesg sometimes when I try to resume from hibernation. Hibernation does not work reliably for me and I suspect this to be a possible culprit.

[ 226.790152] ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4]
[ 226.790156] ecryptfs_readpage: Error decrypting page; rc = [-4]

I have a seperate /home partition and I have encrypted it according to the arch wiki on ecryptfs. Everything works except when I try to resume from hibernation.

Tyler Hicks (tyhicks) wrote :

Hello and thanks for the bug report!

If an interrupted (-4 is the EINTR errno) read() syscall was the reason hibernation is broken, it would likely be the fault of the application calling read(). See the read man page and how EINTR is a valid return code. The application should retry or at least emit a helpful error message.

Do you have any ideas about which application triggers this warning?

Changed in ecryptfs:
status: New → Incomplete
Harish (sitwano) wrote :

Thanks for the response Tyler. Just to clarify, I don't necessarily think ecryptfs is the reason for hibernation crashing as I don't always get this error (its somewhat random since I havn't figured out how to reproduce it yet).

Looking at the journal messages, I get the following:

Aug 24 11:40:03 harish-x250 kernel: ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4]
Aug 24 11:40:03 harish-x250 kernel: ecryptfs_readpage: Error decrypting page; rc = [-4]

So it seems like it has something to do with the kernel. When I first posted this bug I was on the 4.9.47 LTS kernel. Now I've moved on to non-lts 4.12.8 kernel so maybe this will make a difference. This might just turn out to be a non-issue kernel specific error.

Regarding your question "Do you have any ideas about which application triggers this warning?" I thought the application was ecryptfs? If it is not that then I have no clue.

I will report back when I am able to consistently reproduce this error :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers