From owner-freebsd-hackers@freebsd.org Sat Sep 12 22:49:44 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 031053E4BB9 for ; Sat, 12 Sep 2020 22:49:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bpnr66RLcz4c1q for ; Sat, 12 Sep 2020 22:49:42 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qv1-xf2d.google.com with SMTP id h1so7075658qvo.9 for ; Sat, 12 Sep 2020 15:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RWXAuVdkN/4ait6oAKiUkGeqYZ44ev0ZfwLqtI+5pZk=; b=zjlBQVHrRlm8dsp2H15W1kUpC9TT7Kkn2FffMQ/em7/VR2LfvN3sUmr8RHUCRxURQP IiCxMoSkVAEMNtD2hsHNEJssONH7L/CWmCH5w8TsVpvvM/kxAUo1nkosaMPmqsLoWFZM oDrZFYH26KQfSe4T2+22r2lHtrNOLDYZ7ZkzW7Ww1JmD6VnJzEF6T+XwGCE4zCiu2Bzg wDA05IsToUVi8DU0YBJRjnOz+BO0AQTtG4r4HsEmyV+uhvbQ1R6VCdLomhgM6cnFqe+z QG39YUETMBQxoNlue3Jy8uvqEKcMl6F9hfaeiYh3dejj50lPJCXJezk4Ar2wWbecyWX9 SdwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RWXAuVdkN/4ait6oAKiUkGeqYZ44ev0ZfwLqtI+5pZk=; b=HISXt93Xm5m1J3RAtwMUGYxpN/YtIFoR3eBPufjLAfCIWBF7jMKxIb/MQTnDfKlmLZ MnWt3zvRRAKpXCHHPTsCagDhCv3cC58//hauSFhkW1uzj/a9hYbuOv4W3DXCskibOZRc uADTShiWEUEiU+0/0ZvE0AksC9u6/Rd0vS+dkdm/ChRh1HGkUaRk0yCSFk0RDYeyzwRf truOZHnwl39xm0a6CnfTCdzuJFnD4blXxxBNNtMObdJQrF6TrsCJht/EsOb1a3KTswlt sqE6TjqOX7LZQhIECJjb0hMhL6dpd69F79PHCjJt3S45BMKA3DINBL95bhyBt+5YLRyc Bkhw== X-Gm-Message-State: AOAM5303sMlnXvfEQR/NUBkUyTj3siCj8IaAeDJz9FjMxCy5ubBLwsQI 5GGYKL21i7zSuHuutfwRu/uhcZiUUU/tGsu2fPj4gqx50UqceA== X-Google-Smtp-Source: ABdhPJzQegV8plqjKU2G0qtcAjbrNmczpHA5zfaXcO6z7KN+0l37Rwa044C9xpin2BpbdGU4c8jrRz6r6MPZHrLPY5k= X-Received: by 2002:ad4:4891:: with SMTP id bv17mr7559226qvb.20.1599950981654; Sat, 12 Sep 2020 15:49:41 -0700 (PDT) MIME-Version: 1.0 References: <676dfde0-4202-1dc9-f90c-420fe9bbae27@metricspace.net> In-Reply-To: <676dfde0-4202-1dc9-f90c-420fe9bbae27@metricspace.net> From: Warner Losh Date: Sat, 12 Sep 2020 16:49:30 -0600 Message-ID: Subject: Re: ZFS encryption and loader To: Eric McCorkle Cc: FreeBSD Hackers X-Rspamd-Queue-Id: 4Bpnr66RLcz4c1q X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=zjlBQVHr; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::f2d) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.39 / 15.00]; ARC_NA(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-0.98)[-0.983]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.995]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2d:from]; NEURAL_HAM_SHORT(-0.42)[-0.416]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Sep 2020 22:49:44 -0000 On Sat, Sep 12, 2020, 4:46 PM Eric McCorkle wrote: > I'm thinking of migrating to ZFS encryption from GELI in the near future. > > Does anyone know offhand what the state of support for ZFS encryption in > loader looks like, and if there's support for passing keys to the kernel > for boot-time loading? (I can look at adding these if they're missing) > Matt macey did an initial port. I've refined it to fit the stand env better. I need to upstream some things and got stalked there for unrelated reasons. Warner >