From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16C72C433E0 for ; Tue, 2 Mar 2021 13:36:57 +0000 (UTC) Received: from mail.server123.net (mail.server123.net [78.46.64.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A32364F0B for ; Tue, 2 Mar 2021 13:36:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A32364F0B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dm-crypt-bounces@saout.de X-Virus-Scanned: amavisd-new at saout.de Authentication-Results: mail.server123.net (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.227.15.19; helo=mout.gmx.net; envelope-from=thomas123@gmx.ca; receiver= Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 2 Mar 2021 14:36:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1614692163; bh=jjRQ9NvOIhUunxiUxPIqnptsZL4IEGudWz6v5/YfA4Y=; h=X-UI-Sender-Class:From:To:Subject:Date; b=BMe1qpE5c4yvu9SaGh2t3ICdHwGl6KsmmXsP/03XdILAYerBlYYIiTFb6k2T4s9k4 BJjdywx6hACSC2Rhup40rbNXEbxtJfSLZQGTXbrGnrYreJ5qbtgdV9pdp/xTWDQTGH sMxKEeIyggI6o/u3uhg3Fs0N++fRHB6zrLOWI16c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [92.40.192.2] ([92.40.192.2]) by web-mail.gmx.net (3c-app-mailcom-bs10.server.lan [172.19.170.178]) (via HTTP); Tue, 2 Mar 2021 14:36:03 +0100 MIME-Version: 1.0 Message-ID: From: Frederick Gotham To: dm-crypt@saout.de Date: Tue, 2 Mar 2021 14:36:03 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:x3QnsXsf/b+n5pWpTMSHWGPuM1UzGmw/3LObjJ4dTgGFrrmZ+h0YX+Qc12t3vPH6rffAi M4F0RJwoWcV0rYFZZi8xD1ANdaU+mMlNSl6WAG/Phb+SUfsDV3rmpxfb3xS0dQ2KXFD9hGYiQUKt S/kaaa0K6OduXc/el/aKKnOFsKFuEO59Hu/xsEyKX13P1Su6ssqhm/neacT3OU7A2pxotn/LFo6W isBkzVGT6oWXvaSzm23LWmwuF1UVG3wsyEcrcop7DgX7MOEr+ZU2yynRQQR+HWkUkA1/5xHVMrcS zI= X-UI-Out-Filterresults: notjunk:1;V03:K0:CMlKqfcv2ic=:7AwBsfUuuWqJyPixQ0zIdN fxa3bxasuvFnld7ncQTfLHlOlY1xYQflxNtPMbVFzxc9+oirEiiPr5M4yk/MWLpVngS61w7CK EotZ+ijnPEcWHjLz8FMB2Jg9aRUiPVi2WbhkfRtx6GCD6BNhxzeDgPSWS+xumcN2uR2S2G1cM LrHSmmPNlnCJjp2lxRmqbzVK4Ev/TiE2dYnkR+BKjkmQ2WWMFcZ325sx1i8xCDygcHwkZuKZ7 bfJcsHMO1AiLZPWE66InzJKcBGD/LXtPmSlJnUZBn8i00z6pFbbGTCmibbuYkYC/YBHExVmN8 OOaFN+Pwrf+QoTh8V3sE9GOSb9yB92mR9pb2qC9SyJRZna1AGCG3UdBhQS2WGtNa2ONvkoSUM 0/xR5D/EeMSzvwDJzp/19oND7cO4NXZssTsVB55yLH5nSbZOEZ137mGUZfrlA0YqJWVE5+aRF fPH6P1H9+52NxYtHVrLNLs1rFv4QYbgAgzFO+hQlF3tQcAjhI56Xc+yXyMA3Xj8Gip71j7fz+ 5A3bxNDOpP1ldnZWOh7rhO0XRr/DVfnZHtHeHQ/lsR/NUZsmYReYXj+DymT9+nj6oBdbbgObf cW8H5YnA21UxY= Subject: [dm-crypt] Spontaneous Unmounting - LUKS Device Busy X-BeenThere: dm-crypt@saout.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6725840840321674652==" Errors-To: dm-crypt-bounces@saout.de Sender: "dm-crypt" --===============6725840840321674652== Content-Type: text/html; charset=UTF-8
 
Hi everyone,
 
I have an SDcard with one partition on it: /dev/mmcblk0p1
 
This partition is a LUKS volume, so I open it and give it the name 'z', and so I now have the node: /dev/mapper/z
 
I then mount /dev/mapper/z  to the directory  /mnt/sdcard
 
When doing testing on the SDcard, reading and writing data in a predeterimined elaborate pattern, the device "/dev/mapper/z" mysteriously becomes unmounted and this happens predicatably at the same point in the test every time. I don't know what's causing the unmounting. Next if I try to close the LUKS volume (either by using cryptsetup or dmsetup remove --force), it says Device Busy and it won't close (even though it's not mounted).
 
Is there any way I can turn on verbose logging for LUKS to try figure out why the volume is being spontaneously unmounted? I was thinking that maybe the intense testing is causing a spike in CPU / RAM usage which might cause an internal 'ioctl' command within the kernel to fail with error code EAGAIN (Temporary Unavailable). I haven't been able to confirm this yet.
 
With regard to the testing procedure I mentioned above, well I've done the same tests on an unencrypted SDcard, and they all work fine. I only get the spontaneous unmounting with a LUKS volume.
 
I had considered that the device "/dev/mmcblk0p1" might be disappearing and that this might invoke the UDEV script "media-automount" to unmount the volume, however I haven't been able to confirm yet if this is happening -- I'm waiting for people to get back to me on that.
 
For the time being I need to see verbose logging from LUKS to see if there's an error happening somewhere.
 
Frederick
 
--===============6725840840321674652== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dm-crypt mailing list dm-crypt@saout.de https://www.saout.de/mailman/listinfo/dm-crypt --===============6725840840321674652==--