lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 05 Mar 2014 09:15:28 -0800
From:	Dave Hansen <dave.hansen@...el.com>
To:	ecryptfs@...r.kernel.org, Tyler Hicks <tyhicks@...onical.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: ecryptfs log spew from EINTR

I have a little program that uses mmap() to copy files.  Essentially:

	addr1 = mmap(fd1);
	addr2 = mmap(fd2);
	memcpy(addr1, addr2, len);

If these files are on ecryptfs and I interrupt the memcpy() with ^C, I
consistently get this in dmesg:

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

-4 is, of course -EINTR because of the ^C.  Should we be suppressing the
message when we see EINTR?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ