From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1k1Tju-0006E2-Pp for mharc-grub-devel@gnu.org; Fri, 31 Jul 2020 08:02:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1Tjt-0006CK-3Z for grub-devel@gnu.org; Fri, 31 Jul 2020 08:02:17 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:40163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1Tjn-0005QN-AO for grub-devel@gnu.org; Fri, 31 Jul 2020 08:02:16 -0400 Received: by mail-pl1-x634.google.com with SMTP id u10so7689190plr.7 for ; Fri, 31 Jul 2020 05:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eNq5JAUi7HtxrsehEVEUD5pfQJ95zs0qh2AkS7pds84=; b=JuDmxVtPvoORCLNnRvQqsGtsRKynItGO1jwXtbOi48eHHgpbVW/cXhssM3OewgoBp9 7dZ5YPGMjTOtnFP7poBwEUPVb/fY3CZQ9h8Ha6nBGASn3k4A7V2hSCENop7H0vbjl0Jl /qAqB48hG7EJ+SHXjQQajjiwTm9MhLmmzJD6t/CIZJH4CCuNQp1p0hr0DK9d4KwYKUvS az7UmtB73Zb3fqsqsp2O07hMQPHRfnwrZ23qGtnorD+vjCtZ3NLhD6oQiy2DxovQci1x YoLcyO6QJvDODlvbklngmYeupC6nGgn8xRpPDQxc0xtYAo95vFunUOEtUqhzHqj+2cU3 BkIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eNq5JAUi7HtxrsehEVEUD5pfQJ95zs0qh2AkS7pds84=; b=m8UIRLh+8TGVaLBMboSAxaD+ECf957VA0IEVnrE42HJl9cHy2ie+2GI7ZDttUM2Uuq AJcksU464wWlPpVUVuKYQTPpMVUrO6YhnwczvO4yfo8TqI3SzDFuEwG+RVnsW1SgHKwh oIa3Ai4/Iznq2B/+wN00GegDEWEzHAB4kmGS8HjPRImnx19P8wfyzKz5mruiSTgeA8X/ 2E6o3weOwUzSodLRA/3fmesKuft5+aoHucID5I6qTPHnRnbypAvmWJ95uhMTyOL6sNpB 0hflks/CZ6D4KKxb2FiTvabH80UH8qIzx8iB94sPZuGZDrcB0JWlHE5R9rOu12ntBB5u gWQQ== X-Gm-Message-State: AOAM532YeD67Vvw4Y3JWN5TBeZ3ZvhqFiHIu6WIrvbzzyJPMfQHGTGcI m+vW5E5BhHvoJWyxwKzsIDe5YnZmidw= X-Google-Smtp-Source: ABdhPJxuwiIBnq0qHPXTcUm/FiSpNWbcJT/rMFA2go7r1+62RnF+oRZI7KdmEflIvVxFDU+dPxEuUA== X-Received: by 2002:a17:90a:d195:: with SMTP id fu21mr3742944pjb.100.1596196929173; Fri, 31 Jul 2020 05:02:09 -0700 (PDT) Received: from localhost.localdomain ([189.216.105.24]) by smtp.gmail.com with ESMTPSA id o4sm9781590pfd.25.2020.07.31.05.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 05:02:07 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org Cc: Glenn Washburn , Daniel Kiper , Patrick Steinhardt Subject: [CRYPTO-LUKS v1 00/19] Fixes and improvements for cryptodisks+luks2 and a few other things. Date: Fri, 31 Jul 2020 07:01:41 -0500 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=development@efficientek.com; helo=mail-pl1-x634.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2020 12:02:17 -0000 I've changed the name of the patch series to make it more self-explanatory, but still incremented the version number. All of Patrick's suggestions have been added in. I've added 2 new patches, one suggested by Patrick for rename cryptodisk's offset member to offset_sectors. And another to rename 'disk' to 'source' where appropriate in luks2.c. Glenn Washburn (19): configure: Add Ubuntu dejavu font path. cryptodisk: Fix cipher IV mode 'plain64' always being set as 'plain'. cryptodisk: Incorrect calculation of start sector for grub_disk_read in grub_cryptodisk_read. cryptodisk: Add more verbosity when reading/writing cryptodisks. luks2: Add support for LUKS2 in (proc)/luks_script luks2: Rename source disk variabled named 'disk' to 'source' as in luks.c. luks2: grub_cryptodisk_t->total_length is the max number of device native sectors. cryptodisk,luks: Allow special processing for comparing UUIDs. cryptodisk: Unregister cryptomount command when removing module. fs: Fix block lists not being able to address to end of disk sometimes. cryptodisk: Properly handle non-512 byte sized sectors. cryptodisk: Rename total_length field in grub_cryptodisk_t to total_sectors. fs: Allow number of blocks in block list to be optional, where length will be defaulted to the length of the device. loopback: Add procfs entry 'loopbacks' to output configured loopback devices. cryptodisk,luks2: Add header line to procfs entry and crypto and source device names. cryptodisk: Add a couple comments noting the usage of a couple fields in grub_cryptodisk_t as is done for grub_disk_t. luks2: Ensure that bit fields of grub_luks2_digest_t in luks2_parse_digest are initialized before returning. luks2: Fix use of incorrect index and some error messages. cryptodisk: Rename offset in grub_cryptodisk_t to offset_sectors to improve readability. configure.ac | 2 +- grub-core/disk/cryptodisk.c | 115 +++++++++++++++++++++++------------- grub-core/disk/geli.c | 4 +- grub-core/disk/loopback.c | 56 ++++++++++++++++++ grub-core/disk/luks.c | 29 +++------ grub-core/disk/luks2.c | 78 +++++++++++++----------- grub-core/kern/fs.c | 10 +++- include/grub/cryptodisk.h | 12 +++- include/grub/misc.h | 21 +++++++ 9 files changed, 224 insertions(+), 103 deletions(-) -- 2.25.1