Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp151268ybt; Tue, 23 Jun 2020 17:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPaNHr/opdxVRbZgpkygL6gXwnkrPBHC6uGW/OLUXKNfjHlv9Hm1tYYzx2+jzPdrS4spB+ X-Received: by 2002:a17:906:fa9b:: with SMTP id lt27mr1239076ejb.513.1592960281572; Tue, 23 Jun 2020 17:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592960281; cv=none; d=google.com; s=arc-20160816; b=w01BjRV2MfAHZwStqHvuQVZfEFN07mTQARIk6TKXU6oa6D1m2VvPTVCzDb2CHrA8SZ yF01yW3XlmKDBRCYi1PgAI79Y6ufCdtBNmrIsyGSomqyh+h2AYhgPLEJfDmHKT4L4JG2 BpknBe2SgnG5V5iEwPCqdALTqANg/5u6X4nfSrpk5O0y8vn7oP/eoHFieSarq4Nt47Fz DrWkheXmvmTTCyj23YM9AKIcpRKvvBDYQryx8GSDVJxa7iDa9ZDPcqUKyOZUj3BYNh+S 9VJIDICffXGWZoH4GCm/ZMiY1oDqY8jAAW66dO13liXN3lz+M7fDxO00xgYKBiHVGwnh sLdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=l8YDKYWSS8vDlTiiBW94TviByEXAP7JxXxS7ijuo3BU=; b=kZHSeaK6EtMRTQemvbQjPBPMVbkocpCcbN8aqqCiP9UZ5AQ0s70tCC15H9+VxOCeMw CldYMv9Jqo3qQhg7j1FdB6P+txz7omovjRN0U7TTq47IVUtiVaPjdkc4hxtzMipzPr4H uVqJiFEYR3rC3gKgYfDU6bJ5CDyHcsNGA8Swk0nR1u6aPUlmwIPGNbicuSp30AXt3gmb cQ4+2WaZW040fJDEgYQKDN1WKK7mwXW0ODzqJaNIZ8a/8fD+Ka8j7PbnHeJXdnbv/P7C LIwIGmMm50XB8OqeUVLWc0oAxfSsX5PF/mv3QjP/PMAAC4OzckfJw34Wi6GAuzyo0O5K p5zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BawIVNzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si1866211ejc.476.2020.06.23.17.57.37; Tue, 23 Jun 2020 17:58:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BawIVNzq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388287AbgFXAz1 (ORCPT + 99 others); Tue, 23 Jun 2020 20:55:27 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:35137 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387586AbgFXAz1 (ORCPT ); Tue, 23 Jun 2020 20:55:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592960125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l8YDKYWSS8vDlTiiBW94TviByEXAP7JxXxS7ijuo3BU=; b=BawIVNzq0/V3zwO1P47j85QcP9nPRgvep5V9tmuvh79MnxN3J2O6KfS0gQe4ufvnvC+eT3 YIWFiWsl6kxzhmRXuvA24BdbaFLNnXv8JjSG5gYp8RHMRLYB7YV+MLJsCDBX9U6jPCYu2Q qAtYBkjuPFqHl5/9noivbQwWU6UpXzg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-147-SUNRbfhUNlOrRx30UX_RVQ-1; Tue, 23 Jun 2020 20:55:22 -0400 X-MC-Unique: SUNRbfhUNlOrRx30UX_RVQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5C601804001; Wed, 24 Jun 2020 00:55:20 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-114-66.rdu2.redhat.com [10.10.114.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 032357CCF9; Wed, 24 Jun 2020 00:55:16 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <1503686.1591113304@warthog.procyon.org.uk> <23219b787ed1c20a63017ab53839a0d1c794ec53.camel@intel.com> To: Dan Williams Cc: dhowells@redhat.com, "torvalds@linux-foundation.org" , "raven@themaw.net" , "kzak@redhat.com" , "jarkko.sakkinen@linux.intel.com" , "linux-nvdimm@lists.01.org" , "dray@redhat.com" , "swhiteho@redhat.com" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "mszeredi@redhat.com" , "jlayton@redhat.com" , "viro@zeniv.linux.org.uk" , "andres@anarazel.de" , "keyrings@vger.kernel.org" , "christian.brauner@ubuntu.com" Subject: Re: [GIT PULL] General notification queue and key notifications MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3015560.1592960116.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Wed, 24 Jun 2020 01:55:16 +0100 Message-ID: <3015561.1592960116@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Williams wrote: > > This commit: > > > > > keys: Make the KEY_NEED_* perms an enum rather than a mask > > > > ...upstream as: > > > > 8c0637e950d6 keys: Make the KEY_NEED_* perms an enum rather than a= mask > > > > ...triggers a regression in the libnvdimm unit test that exercises the > > encrypted keys used to store nvdimm passphrases. It results in the > > below warning. > = > This regression is still present in tip of tree. David, have you had a > chance to take a look? nvdimm_lookup_user_key() needs to indicate to lookup_user_key() what it wa= nts the key for so that the appropriate security checks can take place in SELi= nux and Smack. Note that I have a patch in the works that changes this still further. Does setting the third argument of lookup_user_key() to KEY_NEED_SEARCH wo= rk for you? David