From owner-freebsd-stable@FreeBSD.ORG Sat Dec 11 01:06:41 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20D27106566C for ; Sat, 11 Dec 2010 01:06:41 +0000 (UTC) (envelope-from me@janh.de) Received: from mailhost.uni-hamburg.de (mailhost.uni-hamburg.de [134.100.32.155]) by mx1.freebsd.org (Postfix) with ESMTP id A63498FC0A for ; Sat, 11 Dec 2010 01:06:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailhost.uni-hamburg.de (Postfix) with ESMTP id 0F05190291; Sat, 11 Dec 2010 01:48:57 +0100 (CET) X-Virus-Scanned: by University of Hamburg (RRZ/mailhost) Received: from mailhost.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eYF9QDomojnq; Sat, 11 Dec 2010 01:48:56 +0100 (CET) Received: from nb895.math (g224004002.adsl.alicedsl.de [92.224.4.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmjv004) by mailhost.uni-hamburg.de (Postfix) with ESMTPSA id CC31190099; Sat, 11 Dec 2010 01:48:56 +0100 (CET) Message-ID: <4D02CA9E.1030704@janh.de> Date: Sat, 11 Dec 2010 01:49:34 +0100 From: Jan Henrik Sylvester User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101210 Thunderbird/3.1.7 MIME-Version: 1.0 To: stable-list freebsd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: aesni(?) corrupts data on 8.2-BETA1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Dec 2010 01:06:41 -0000 I just upgraded my main laptop from 8.1-RELEASE (GENERIC, amd64) to 8.2-BETA1 and added aesni_load="YES" to my /boot/loader.conf. (If my interpretation is correct:) With aesni loaded, I see many files corrupted on my geli encrypted volume. Without aesni loaded, they are ok. I have got a journaling UFS2 on gjournal on geli on a FreeBSD partition on a MBR slice on a disk with ahci loaded. Story: First I noticed some weirdness of Thunderbird not showing the "upgraded" message properly and reloading IMAP messages that have already been read, but did not think of anything. Only during my usual rsyncing of the encrypted volume, I saw that some files could not be read (invalid file descriptor?). I rebooted without aesni and got a different error message. I created checksums of all files on that encrypted volume with and without aesni loaded (rebooting in between): 150 Differences (one files could not be read in both cases). Just to make sure, I tried to rsync with "--checksum" and "--dry-run" to the other machine that is supposed to have the same files: With aesni, many files were scheduled to be synced and one could not be read, but without aesni, only that one file was scheduled to be synced -- it probably got corrupted for good with aesni loaded. It is especially weird that I did not attempt to write to the file that got corrupted on disk with aesni loaded. Is there anything I am doing wrong or is it really aesni or the processor failing? The processor is a Core i7-M620 (with AESNI of course). Before I investigate any further, I have to make a real backup... rsyncing does not prevent silent corruption. I am lucky that it was not so silent after all. Jan Henrik