From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1k0tz4-0002Pi-WA for mharc-grub-devel@gnu.org; Wed, 29 Jul 2020 17:51:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0tz4-0002Oi-5L for grub-devel@gnu.org; Wed, 29 Jul 2020 17:51:34 -0400 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]:37777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0tyy-0006H6-B2 for grub-devel@gnu.org; Wed, 29 Jul 2020 17:51:33 -0400 Received: by mail-qt1-x843.google.com with SMTP id d27so18854685qtg.4 for ; Wed, 29 Jul 2020 14:51:27 -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=M5+GnCNfQz+fwXhKJt3OPeHnO9JmEj6tiN8arof5WhE=; b=MCOxEA+X9wY1++9+Ms5LiCDytGg6dImUE5dUeXqmcDG8/6sF3wkTr0/2FUXPWMy07f ilvoaUl51T29XLEiw8Kpb2mrCCh9ByR/UU4GkdQtcnaDZn7OdvLY/q+SnUqrIYjqBzyy ZB6auyfI1I/I7BlXFGcFO3/jtABAvbBI77QBWTOEoKaJyv03um+5GT3LM3ntG5SyQvaJ stl+7OFRBNC49rffMyXtSfcj06lU4nCnz6WAhELgHA/roUKtn5q1xyc0nFpt+LHgX6wg 7WuZlaAKFFRx0CbbwhWY18PRT/CaQlYlMNM+Z4Fb/+yZDEhuBwQ6w9CGKiRx9SN70B02 Ce9g== 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=M5+GnCNfQz+fwXhKJt3OPeHnO9JmEj6tiN8arof5WhE=; b=Bzqzb7dSijVgTsXCwYC7sIsl7AwfszHaMQulgV3728VcHc+6Mknr7YIKEQ7C9v7Ub1 fVMuyWrwItQPrrqzUZgLFRW9I7EqZiknp1SEAXDajKC2KBRsy5Yt970a5ma9xRopkymQ d8mgjkCh0RPdixmCkhSIUl0BpL2PbHRR2vjUeeVlopnudsGtK3j/PCpPopEZ7Pk+HGlY w86Zo4a7gnbzpmHm6X/uabmaLey2J/OSVhdxQXsIVxNj9ZY7XR2NzdGvS7tmceDchkUn 7ayyW4yG1KcMt83dwS14+MqAsreRrLODrq7AyjfMHTd0wonyiZ5ZuyZd8ml4bTbHI+kZ 8N/A== X-Gm-Message-State: AOAM533XVwZQEibv3fFpMk7PKDtsuyMmGf16qeytrER7/XuC4WHX6O1T Ikgg2Y+wrJLPKuP/TTY7XZ7LkobX1ePiWw== X-Google-Smtp-Source: ABdhPJyVHdRwYJdNtBEl+OXYi6U/fE0HA2Zxea8oi6glK1w69I6GyP9SMpjgHheeHodJV4POhNYJsw== X-Received: by 2002:ac8:5149:: with SMTP id h9mr429454qtn.357.1596059486589; Wed, 29 Jul 2020 14:51:26 -0700 (PDT) Received: from localhost.localdomain ([189.216.105.24]) by smtp.gmail.com with ESMTPSA id n127sm2804165qke.29.2020.07.29.14.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 14:51:26 -0700 (PDT) From: development@efficientek.com To: grub-devel@gnu.org Cc: Glenn Washburn , Daniel Kiper , Patrick Steinhardt Subject: [PATCH 00/17] Fixes and improvements for cryptodisks+luks2 and a few other things. Date: Wed, 29 Jul 2020 16:50:05 -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::843; envelope-from=development@efficientek.com; helo=mail-qt1-x843.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: Wed, 29 Jul 2020 21:51:34 -0000 From: Glenn Washburn Hi All, Here's a list of patches that mostly have to do with cryptodisk and luks2 fixes or improvements. The odd balls out are the patches adding the ubuntu font path, a fix an an improvement to blocklists, and adding a procfs entry for loopbacks. I'm hoping that at least the luks2 and cryptodisk sector size fixes can be included for the 2.06 release (non-512 byte sectors are definitely broken for LUKS2). Let me know if there's anything else I can do to help get these merged or messed something up in sending the emails (first time sending patches through git). Thanks for all the hard work, Glenn Glenn Washburn (17): 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. luks: Add support for LUKS2 in (proc)/luks_script 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: When checking if a block list goes past the end of the disk, make sure the total size of the disk is in grub native sector sizes, otherwise there will be blocks at the end of the disk unaccessible by block lists. 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: 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. configure.ac | 2 +- grub-core/disk/cryptodisk.c | 111 +++++++++++++++++++++++------------- grub-core/disk/geli.c | 2 +- grub-core/disk/loopback.c | 56 ++++++++++++++++++ grub-core/disk/luks.c | 27 +++------ grub-core/disk/luks2.c | 31 ++++++---- grub-core/kern/fs.c | 10 +++- include/grub/cryptodisk.h | 10 +++- include/grub/misc.h | 21 +++++++ 9 files changed, 192 insertions(+), 78 deletions(-) -- 2.25.1