Return-Path: Received: from mx3.freesources.org (mx3.freesources.org [195.34.172.217]) (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 ; Sat, 29 Dec 2018 12:36:52 +0100 (CET) Received: from anon-49-198.vpn.ipredator.se ([46.246.49.198]) by mx3.freesources.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1gdCRG-00073r-3m for dm-crypt@saout.de; Sat, 29 Dec 2018 11:05:54 +0000 From: Jonas Meurer Message-ID: Date: Sat, 29 Dec 2018 12:05:50 +0100 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VfmLWWOS42Kzxpyv1QyvxkjywaQCyXwTx" Subject: [dm-crypt] 'discard' as default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VfmLWWOS42Kzxpyv1QyvxkjywaQCyXwTx Content-Type: multipart/mixed; boundary="jDyfJSJnuBOqXE6bAxOoOmV3qw3O8ovTC"; protected-headers="v1" From: Jonas Meurer To: dm-crypt Message-ID: Subject: 'discard' as default --jDyfJSJnuBOqXE6bAxOoOmV3qw3O8ovTC Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable Hi list, Starting with the upcoming release of Debian Buster, luks devices created during installation will have the 'discard' option (trim feature for flash devices) set in crypttab[1]. When Guilhem and me (we're the Debian cryptsetup maintainers) discussed this topic, we agreed, that in general, having the discard option set per default would be a nice thing to have. But we're unsure how to implement it. One option would be to simply add 'discard' to all crypttab examples and document in README.Debian that we recommend to always add 'discard' as crypttab option for new dm-crypt devices. Buth then, *always* listing an option is somehow weird from a technical perspective. If we want it to be the defualt, then it should be the default without explicitely having to set it. So we wonder whether you (cryptsetup upstream would consider to make discard the default in cryptsetup, at least for LUKS devices. [Certainly, enabling 'discard' for the LUKS device, isn't sufficient for turning on trim support for the device. It might have to be enabled in other block stack layers and filesystem still. But that's another topic to be dealt with in downstream distributions like Debian.] As far as we know, the main *negative* impact of enabling the trim feature on flash devices is, that it might reveal information on which parts of the disk are written and which are not, even if you first filled the disk with random data[2]. To our knowledge, that's only a problem if you need plausible deniability, wich LUKS doesn't provide anyw= ay. Our perspective is, that if you need plausible deniability, you have to look into details anyway (it's hard to do plausible deniability right), and people can still disable discard in those cases. So what do you think about making 'discard' the default in cryptsetup for LUKS? Would you consider doing so? If not, would you be fine with cryptsetup in Debian defaulting to 'discard' nevertheless? Could you imagine to add a compile-time flag for doing so? In any case, an option to *disable* the default would be needed. We're curious what you think about it :) Kind regards, jonas, on behalf of the Debian cryptsetup team [1] https://salsa.debian.org/installer-team/partman-crypto/merge_requests= /2 [2] https://asalor.blogspot.com/2011/08/trim-dm-crypt-problems.html --jDyfJSJnuBOqXE6bAxOoOmV3qw3O8ovTC-- --VfmLWWOS42Kzxpyv1QyvxkjywaQCyXwTx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELIzSg9Pv30M4kOeDUmLn/0kQSf4FAlwnVQ4ACgkQUmLn/0kQ Sf4HBA/8DDIupAqN7vAZ7Gse0JBPOLt/TYW00uyt1lag6odZ+CuY5W+NqHrP4mmj zl8odqYa+7BkXtYRl5fin1A4gzE2i5be8dA7jxzkgMb3Va66EUAB+OlhUs4xioDA k8oJk0D7KhQ89C0od5a27ht8E5vl8o5KbCEh5jJKjQcpsBqHXqZD4p6QJWIRWYdH gTT5TrVclBmYjeXLolbjB3dhOs04ILy4gNXnsimm1zfstOjlCNaC1zwpZ5qEjkLw 8Ub9WY/6+OaothVOnqrZnDX8fqkiaCD88L0uW+qdo099FbKWQIBj5YmcNrj705Sk kS/VEQ0J79Q/TPSsaVQz6870agns+NuqMqyd0rr2trWKLnIw6RoPwHVC5LEAGV+u A/hyi2REnX71xsTV+ntCU/mx94l0Ktk/EsmnDItfbAc8hRA7j9euuhUgChLMCF/6 JXuH28pafCV7Uk9e1J/inwjX0qV8oQXz2Tg4CP1PHXfF9OFOTUQdXhDfwitVJgcS xriIuzfmdtHcp1AbNFxSTGcReuWb34tMm5OZxwovPHn9BNR1RP/k16r1jmqxUsQL 8hZ2EyHG3BF/Ecgjk0PjCqNQGi6jy+XkUjaeaQVLPvbH2foNMYlo+8x1Rp2I4Abg 1TNFsLQvMpAA1CqxPB443xfCpwTR1jwlR6k1mLk/cvc22/8xgvk= =ycQV -----END PGP SIGNATURE----- --VfmLWWOS42Kzxpyv1QyvxkjywaQCyXwTx--