Return-Path: Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Thu, 3 Jan 2019 18:36:43 +0100 (CET) Received: by mail-wr1-x433.google.com with SMTP id t6so34290903wrr.12 for ; Thu, 03 Jan 2019 09:36:43 -0800 (PST) References: From: Milan Broz Message-ID: <426c6abe-46ae-3773-b7ed-4caac189ed7f@gmail.com> Date: Thu, 3 Jan 2019 18:36:41 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] 'discard' as default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Anton Mitterer , dm-crypt On 03/01/2019 17:26, Christoph Anton Mitterer wrote: > On Thu, 2019-01-03 at 09:10 +0100, Milan Broz wrote: >> And maybe LUKS2 format (but not for LUKS1) should set TRIM flag by >> default, >> really would like to see opinions here. > > As mentioned already by Arno... it's a question of mindset: > > Anyone who's making reasonable use (i.e. really wants it and knows what > he wants) of dm-crypt/cryptsetup wants security as primary goal. Unfortunately this is not what I see from many "enterprise" customers. Sometimes it seems that they just need to click the "encrypted" checkbox to get signed paper with some nice certification... But really, there are many situations where discard/TRIM really improves performance and even allows to deploy some solutions with still good threat model. Imagine for example thin provisioned on-demand systems that use FDE - discard here is the operation that signals deallocating of used blocks. Without it you cannot implement dynamically allocated storage on block level. FDE can be used to improve guests isolation etc. We can (and want) to support both sides, just default should be on the secure side. Milan