Re: [PATCH] Delete cryptoloop

dpf-lkml_at_fountainbay.com
Date: 07/22/04

  • Next message: Ed Sweetman: "Re: audio cd writing causes massive swap and crash"
    Date:	Wed, 21 Jul 2004 21:26:49 -0700 (PDT)
    To: "Andrew Morton" <akpm@osdl.org>
    
    

    Hello James and Andrew,

    Hopefully someone else will follow up, but I hope I'm somewhat convincing:

    Andrew Morton said:
    > James Morris <jmorris@redhat.com> wrote:
    >>
    >> This patch deletes cryptoloop,
    >
    > OK - if nobody complains convincingly we'll drop cryptoloop out of 2.6.9.
    >

    Cryptoloop is deprecated (since 2.6.4), but that doesn't mean it should be
    deleted. As is the case with many deprecated APIs, they usually hang
    around for a long time (until the next major rev) so that people have a
    chance to transition their tools. Is no one else using cryptoloop? Are 5
    minor revs really enough time (so far about 5 months)?

    >> which is buggy, unmaintained, and
    >> reportedly has mutliple security weaknesses.
    >
    > Doesn't dm-crypt have the same security weaknesses?
    >

    I don't doubt the superiority of dm-crypt. But most people using a
    _deprecated_ feature would know that means "buggy, unmaintained" and with
    possible weaknesses.

    Perhaps a better way to communicate deprecation, instead of pulling the
    rug out from under people by deleting so soon, is to inject warnings
    during compilation, or even during use. Or, split off the new code into a
    differently named module -- leaving a clean way to throw out the old
    method.

    From the cryptoloop HOWTO website:
    (http://www.tldp.org/HOWTO/Cryptoloop-HOWTO/cryptoloop-introduction.html)

    "Dm-crypt is available in the main kernel since 2.6.4. Cryptoloop will
    still be available in the main kernel for a long time, but dm-crypt will
    be the method of choice for disk encryption in the future."

    And then it goes on to say:

    "It is still very new and there are no easy-to-use userspace tools
    available yet. Dm-crypt is considered to be much cleaner code than
    Cryptoloop, but there are some important differences. For example,
    creating an ecrypted filesystem within a file will still require to go
    through a loop device, but this support is still in development."

    So it looks like dm-crypt is still up in the air on feature compatibility
    with cryptoloop.

    Deleting cryptoloop in 2.6.9 seems too soon -- even the cryptoloop HOWTO
    maintainer (Ralph Hölzer) seems to expect it to hang around.

    In February, lkml had essentially the same discussion.
    (http://kerneltrap.org/node/view/2433)

    Ditching cryptoloop completely in 2.7 after dm-crypt matures would be a
    better idea.

    Regards,

    Dale Fountain

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ed Sweetman: "Re: audio cd writing causes massive swap and crash"

    Relevant Pages

    • Re: [PATCH] Delete cryptoloop
      ... why not adding on option for DEPRECATED code? ... you'd just have to migrate cryptoloop into this DEPRECATED ... >> Ditching cryptoloop completely in 2.7 after dm-crypt ... > To unsubscribe from this list: ...
      (Linux-Kernel)
    • Re: [PATCH] Delete cryptoloop
      ... Dropping cryptoloop should ... dm-crypt and cryptoloop share the same on-disk format. ... absolutely no security gain by switching to dm-crypt. ... an attacker is able to find two identical cipher blocks on disk, ...
      (Linux-Kernel)
    • Re: [PATCH] Delete cryptoloop
      ... This seems to be a discussion about cryptoloop vs dm-crypt. ... point of view there is zero reason to switch. ... robustness of kernel implementation, together with the idea that we ...
      (Linux-Kernel)
    • Re: [PATCH] Delete cryptoloop
      ... If cryptoloop is removed, will you think "finally, I can change ... I will move to dm-crypt eventually if it's so much better, ... Then you don't need lungs anymore, ... just "try to find the time to switch this year" bad. ...
      (Linux-Kernel)
    • Re: loop driver, device-mapper and crypto
      ... and would be happier if the loop driver was used for files only. ... First of all, eventhou I'm the maintainer of cryptoloop, when Christophe ... posted the first time I immediately recognized that dm-crypt is vastly ... From an operational point of view, patching util-linux has been the most ...
      (Linux-Kernel)