Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933563AbcKCXpW (ORCPT ); Thu, 3 Nov 2016 19:45:22 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37264 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754138AbcKCXpU (ORCPT ); Thu, 3 Nov 2016 19:45:20 -0400 Subject: Re: tmpfs returns incorrect data on concurrent pread() and truncate() To: Hugh Dickins References: <18e9fa0f-ec31-9107-459c-ae1694503f87@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org From: Jakob Unterwurzacher Message-ID: <2f38a759-33b1-86e8-5929-084ae7e0094b@gmail.com> Date: Fri, 4 Nov 2016 00:45:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 551 Lines: 16 First of all, thanks for your replies! On 02.11.2016 00:51, Hugh Dickins wrote: > I don't think that there will be much appetite for changing the > kernel's VFS to prevent that. I hope that gocryptfs can provide > the serialization that it needs for itself, or otherwise handle > those zeroes without crashing. Yes, I dropped the nonce sanity check, the MAC will catch the corruption anyway. Just FYI, xfstests generic/075 discovered this. The test itself does not check the data it gets back, which is why it usually passes. Best regards, Jakob