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 ; Sun, 30 Dec 2018 17:19:55 +0100 (CET) Received: from anon-49-197.vpn.ipredator.se ([46.246.49.197]) by mx3.freesources.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1gddoh-0002tb-0f for dm-crypt@saout.de; Sun, 30 Dec 2018 16:19:55 +0000 From: Jonas Meurer Message-ID: Date: Sun, 30 Dec 2018 17:19:44 +0100 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xsFdfVMjlNuu5UZmFqoXGhKCIAl6zGZFK" 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) --xsFdfVMjlNuu5UZmFqoXGhKCIAl6zGZFK Content-Type: multipart/mixed; boundary="UwGOjVIcdo6kdgtQYcuN8MVWiWxCmFJQu"; protected-headers="v1" From: Jonas Meurer To: dm-crypt Message-ID: Subject: 'discard' as default --UwGOjVIcdo6kdgtQYcuN8MVWiWxCmFJQu 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 --UwGOjVIcdo6kdgtQYcuN8MVWiWxCmFJQu-- --xsFdfVMjlNuu5UZmFqoXGhKCIAl6zGZFK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELIzSg9Pv30M4kOeDUmLn/0kQSf4FAlwo8CcACgkQUmLn/0kQ Sf6yBQ//fTBtKKHtNZ+OFaWSOJD6RQv29f5leXNVqlQLlUnhbqnclnB4NmNF5xmI ft3gqZ27t+Uv67osF56BspctUfRrHS1KggD2zHc0mmUYMNJuD2KcOKjAdQcP/qRe zv+IUGvLPAfWEg5SHuoPaPdboDUkctgIp3T4f6K4cdZaOIwuWyBdeFCHc0CQ74HF 3Bj+NClfESgoN5p/TzocfnIRB6na0ULPmKEV4jfja3VKK4l/HBX6FGCJc7ryhyG1 IxQK8Hvf/JkSe/iUh2iK5OxEqrdE8yivk8OEkFm7UnCwDOzYE9+/P+MNpVCs4gzF QNkxHw3Q1h55YyS5/t8qKbAcvm/mWcK4EVmrbe2W9A3NIS7hp9wjU8yXBTBviVII TPXNV5DrqZ0eN/zdoBvXaIczImNIcXanZ1+mbk7tKAy2CLTHbHVNlRszNvhI6UTq XFEyx/MLMbg6tM37QDPzRxovrKgPyHK2C3LPiVWERJnbJ1Spc3t7++iyur8iJQk6 VBeq54nH4eBRu3aQAQO5kIk2PAs8gUlgleJ5MHJYkbUlM/zWc2NCAx5F7siApOb8 FmRzi3rol0/CSyLXIj4sLiVAnf1PuorJ8G5/xp7U6WnrpbH9UPPYoSz8IMBLUZ7O 9SlTaCKdLeI3/imUjZeUkH4MlTjexUbCd6euBjODpx35n6bmwJo= =XCMN -----END PGP SIGNATURE----- --xsFdfVMjlNuu5UZmFqoXGhKCIAl6zGZFK--