Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp114393ybt; Tue, 16 Jun 2020 18:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAALIkznnTNGFLadBcYZHgYCzCzN/3T8kKd9y8gCE6UkG5DIB0BaL/byYvtc2OMxMzDvSi X-Received: by 2002:a17:906:16d3:: with SMTP id t19mr5070503ejd.297.1592356687253; Tue, 16 Jun 2020 18:18:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592356687; cv=pass; d=google.com; s=arc-20160816; b=0GVZz/YdEZ6X/d+ZMNIViJBWC/vdzp2x9biiRWi64SMFHmIQ4qFXq8ZMAGqc86tGNM S6+op1e29ADW6muIQaIiTkb9rv+z7d2NSBrI+XEyISdCmqXHcrk5B2kLdM1HekHc8War Y0R7/cwQ24v2JsOlsaowNEm/9yUQHPtYVPh8AK2buj7Ubjl4zm/x/SpzcbN9gUEs8tmN WHzFTotyvYZv2wVmrL/II0jfhq1movUBktGp+hAop86tqWHlm/0ok/TcJMndAHuo9v0E ovmND5jMcuFHnXVtRVFY5GSirKYpWW+pM6cnGIMwqyMRciQjBaN+/9RUFyeiSrQSghCr mJGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:ironport-sdr; bh=5790AA55H4JdUT+IE8gj9wzPQK0vInuHrn+T6DEaReo=; b=aMZ10bfK0OJNsCRFxgY1LSftGrF+jo6+RDnOoyt1vcLQ8o/0v8IkfjOw4QGGral7s/ 7M5FsyvoTxMy2GlbiISBr2okhqzetAG+3gVEk+Z/ZC9QQHZgipCECipHOwRfMoFHHu7l wMMiVyA2+ZEVnVCTTQi1xCJN+A2aWuQnbMN4wOHm+S2OZn8AQZPGlze745C/WyObN8jr KvduEAJWMMgoNrBIt/+s2jjpQR/klzUv/3DXbHMhKwgQGwIZzXMUUShwBms9uBmFsYXP dkoYB5Tz7K1cM9MQTjMhxGQOHZPcROP50+zTwRhFd26fC2KZLm/vs6t1uhLVYHp/C5dD iD2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=CJmxwOE9; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si11876301ejr.529.2020.06.16.18.17.44; Tue, 16 Jun 2020 18:18:07 -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=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=CJmxwOE9; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726519AbgFQBP7 (ORCPT + 99 others); Tue, 16 Jun 2020 21:15:59 -0400 Received: from mga06.intel.com ([134.134.136.31]:53098 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgFQBP6 (ORCPT ); Tue, 16 Jun 2020 21:15:58 -0400 IronPort-SDR: MV/P9hV+KTDI9b6QJqX1XL//S8BZKXreqyObi+98spi9biHRiZHwkkhJZS4O+Ao3aS8ZfG/Mra KZ7B9gRd2ZjA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2020 18:15:57 -0700 IronPort-SDR: 6XKvzaYvZkI333oXkdm3hOvg/3mh1mkdI8t1JFwR+IThkr8Qo74Aa/qT+7pu8DQfZzsyk9L0pW 8SkLJykiHnzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,520,1583222400"; d="scan'208";a="351921126" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga001.jf.intel.com with ESMTP; 16 Jun 2020 18:15:57 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 16 Jun 2020 18:15:56 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.174) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 16 Jun 2020 18:15:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S0KIGg9C6Kvuj+nxfr0pb7P183wPFJpXrfHGPf+ejWQ+ROdbxmeY8rW5YLAxhrNUxICei58Du5/yluMWItOpKr+XJFCaMeiKzwZc8GpL8vg5nRNJq5pnIJUclL6ikgt3VzFc8BIqEgUi3zk/EcF5IDoA4dlcbO/tNXCKM3mEG4dQpebForskuLCr7Xsof7Iq4rmh0VJte2aDMPxPzozki2EYYK7/UPOI8X11xYiGNl3jzpdm0w284OPna7Yzh0ytOQ4taqKFJQvbU+xLiZHVILZsMs0/Escx2zlFPvBRIdR7S+vzO2GVd4dkhiCMa3wUOxMzlMoCrc6kJe/QxItXow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5790AA55H4JdUT+IE8gj9wzPQK0vInuHrn+T6DEaReo=; b=dfwmNFRmjLSIk+l58wY1/IFZQkmRuS1WjLcMOm9mLDHMPS7Gx/PMJmxTs39qp0aoT0PgEzeyCX5on1Sr12fi/oRzYKpBZQSbwp1ClPyTW7twnUNlq90m+GACSHLKKJtwbypj1reujvgtoMIh9a3/qM7gMU0ZH13EL2GprynJJlE8/461RlSGpCGLsOI+jwQ3zdkGthfnjqAvj0d254RnD/5ZgOzuGr8B7+q5RPDxKAV/9gKwlvniET5Y3nXx2ZMlnmkcGm3WSsFl0N+9gU5IQuMtPx6NtHk3SidOaJB0N61Ce6ZUWACHOKFudznrvAOCrMtBSb9x+qEzBAy5N05hDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5790AA55H4JdUT+IE8gj9wzPQK0vInuHrn+T6DEaReo=; b=CJmxwOE9C/oDiv0SBJhwjpblFwGFU4RJ9Dhgxiv81EzSmWsNRfpRg2R3nPOfG/oA3LGw+HvW8WSLiN6DMIa+mksdPnFB2nUAjCgT7kHaQjOHgt7QWCAiQQ2Ncw9EeitDl96gKJgIqmR6RsodxCjZXRHRXI3uNLrV60xdInEkBWY= Received: from BN6PR11MB4132.namprd11.prod.outlook.com (2603:10b6:405:81::10) by BN6PR1101MB2164.namprd11.prod.outlook.com (2603:10b6:405:51::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.24; Wed, 17 Jun 2020 01:15:55 +0000 Received: from BN6PR11MB4132.namprd11.prod.outlook.com ([fe80::f1fa:3128:2198:e48d]) by BN6PR11MB4132.namprd11.prod.outlook.com ([fe80::f1fa:3128:2198:e48d%4]) with mapi id 15.20.3088.028; Wed, 17 Jun 2020 01:15:55 +0000 From: "Williams, Dan J" To: "torvalds@linux-foundation.org" , "dhowells@redhat.com" CC: "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 Thread-Topic: [GIT PULL] General notification queue and key notifications Thread-Index: AQHWRETZu9Qa754vaUCnrXuOChkHiQ== Date: Wed, 17 Jun 2020 01:15:55 +0000 Message-ID: <23219b787ed1c20a63017ab53839a0d1c794ec53.camel@intel.com> References: <1503686.1591113304@warthog.procyon.org.uk> In-Reply-To: <1503686.1591113304@warthog.procyon.org.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.32.5 (3.32.5-1.fc30) authentication-results: linux-foundation.org; dkim=none (message not signed) header.d=none;linux-foundation.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.52.220] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 38604e8c-cc1b-4235-8c91-08d8125bfc0d x-ms-traffictypediagnostic: BN6PR1101MB2164: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 04371797A5 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /44bpQ24wTp2xXq3O0++yewDsqklLahu6RyMUruMb0OFPyu6P0aquLD314x9gPq2Oo/pc4JMKfvcuE2IH34ZJBPbs9CAfvHrScYuxYeLH3Wa6yjjUhlkSLWECiJI1yehMQcC1YrckuqXggBxhPAtEFWGZDaws9KzykLoSbPeLBVefMHeUnDMjvE0TQmn0lFi0NR1J/mBN803HFlty55IdaFpQsn7n7Wxk20ruBqg/J3HfPxpEzPDflecVO2yHQ/BA/c4LAt1kHGB71BkSv2Sygc6cJbXNCmibT6Y5/xVWDQyCXcZ/DkjyLU6b1nFUBn8ZSPuElPaUywg8pvUkvNT6A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR11MB4132.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(396003)(136003)(346002)(376002)(366004)(36756003)(6512007)(478600001)(4326008)(45080400002)(7416002)(91956017)(110136005)(8676002)(71200400001)(316002)(83380400001)(8936002)(54906003)(2616005)(86362001)(66946007)(66446008)(76116006)(66476007)(66556008)(64756008)(6486002)(6506007)(26005)(15650500001)(5660300002)(2906002)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: v14VlWprYwg1XKo1s5Jr1maAI+RtSXlt4IntiDE4+MGCRU5ZQT40jW8irLK1b9H23t+ws/nrBNA6w2uiY+7oDJ+IlXHJL07mUtH1Tj+eilvBp0pawUvGwXp+v724F5Ee72lMJdJZCTbHozLAhz02lLGTP2wff66JNPfqGJhzgnxi8GnXB17FgwPoqZfqtUk/5GMaj1iwPmMnpaIYFwqPYrNmUpKaWR+9U9WaD9Ogs71VEQ9qVIcsp3kIx+x9uNy5U0qdVnnEnwbtm+F0hWW2YstWFi7Pd1Lw/CsauxazUQoTG10m3wrOGX2+v7Mgv9CHPs4Y/rQdyIPa9K+b3BBhEYLsa7VfsJQTyA3yU/KvnIoMzMX+yVD+iHqieLvBEVfrs4jy88rb/TUYG2u5AOYBgVs19M17SOOvo4q/1/9ivXlL4VzPR9fpdg0SaY76y+xWr4Gjgb4EsAu9kyPThvcafYHSHvEti5cipgF1ie/t/f8= Content-Type: text/plain; charset="utf-7" Content-ID: <4CECB5C7212778419344C3402AF6ECB4@namprd11.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 38604e8c-cc1b-4235-8c91-08d8125bfc0d X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2020 01:15:55.1906 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LWZB+zGBKM3Grueufj7dIhI3cRzubqBXgb9EWN8fu5zTM8F3GatD6x+dvRHRBeECyGqmQ6EXn8v4lKEPbDJDpkqOnK/TumqRLS2xeGk0ODQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2164 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Tue, 2020-06-02 at 16:55 +-0100, David Howells wrote: +AD4- Date: Tue, 02 Jun 2020 16:51:44 +-0100 +AD4-=20 +AD4- Hi Linus, +AD4-=20 +AD4- Can you pull this, please? It adds a general notification queue +AD4- concept +AD4- and adds an event source for keys/keyrings, such as linking and +AD4- unlinking +AD4- keys and changing their attributes. +AFs-..+AF0- This commit: +AD4- keys: Make the KEY+AF8-NEED+AF8AKg- perms an enum rather than a= mask ...upstream as: 8c0637e950d6 keys: Make the KEY+AF8-NEED+AF8AKg- perms an enum rather t= han 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. --- WARNING: CPU: 15 PID: 6276 at security/keys/permission.c:35 key+AF8-task+AF= 8-permission+-0xd3/0x140 Modules linked in: nd+AF8-blk(OE) nfit+AF8-test(OE) device+AF8-dax(OE) ebta= ble+AF8-filter(E) ebtables(E) ip6table+AF8-filter(E) ip6+AF8-tables(E) kvm+= AF8-intel(E) kvm(E) irqbypass(E) nd+AF8-pmem(OE) dax+AF8-pmem(OE) nd+AF8-bt= t(OE) dax+AF8-p ct10dif+AF8-pclmul(E) nd+AF8-e820(OE) nfit(OE) crc32+AF8-pclmul(E) libnvdim= m(OE) crc32c+AF8-intel(E) ghash+AF8-clmulni+AF8-intel(E) serio+AF8-raw(E) e= ncrypted+AF8-keys(E) trusted(E) nfit+AF8-test+AF8-iomap(OE) tpm(E) drm(E) CPU: 15 PID: 6276 Comm: lt-ndctl Tainted: G OE 5.7.0-rc6+- +A= CM-155 Hardware name: QEMU Standard PC (i440FX +- PIIX, 1996), BIOS 0.0.0 02/06/20= 15 RIP: 0010:key+AF8-task+AF8-permission+-0xd3/0x140 Code: c8 21 d9 39 d9 75 25 48 83 c4 08 4c 89 e6 48 89 ef 5b 5d 41 5c 41 5d = e9 1b a7 00 00 bb 01 00 00 00 83 fa 01 0f 84 68 ff ff ff +ADw-0f+AD4- 0b 48= 83 c4 08 b8 f3 ff ff ff 5b 5d 41 5c 41 5d c3 83 fa 06 RSP: 0018:ffffaddc42db7c90 EFLAGS: 00010297 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffaddc42db7c7c RDX: 0000000000000000 RSI: ffff985e1c46e840 RDI: ffff985e3a03de01 RBP: ffff985e3a03de01 R08: 0000000000000000 R09: 5461e7bc000002a0 R10: 0000000000000004 R11: 0000000066666666 R12: ffff985e1c46e840 R13: 0000000000000000 R14: ffffaddc42db7cd8 R15: ffff985e248c6540 FS: 00007f863c18a780(0000) GS:ffff985e3bbc0000(0000) knlGS:000000000000000= 0 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000006d3708 CR3: 0000000125a1e006 CR4: 0000000000160ee0 Call Trace: lookup+AF8-user+AF8-key+-0xeb/0x6b0 ? vsscanf+-0x3df/0x840 ? key+AF8-validate+-0x50/0x50 ? key+AF8-default+AF8-cmp+-0x20/0x20 nvdimm+AF8-get+AF8-user+AF8-key+AF8-payload.part.0+-0x21/0x110 +AFs-libnvd= imm+AF0- nvdimm+AF8-security+AF8-store+-0x67d/0xb20 +AFs-libnvdimm+AF0- security+AF8-store+-0x67/0x1a0 +AFs-libnvdimm+AF0- kernfs+AF8-fop+AF8-write+-0xcf/0x1c0 vfs+AF8-write+-0xde/0x1d0 ksys+AF8-write+-0x68/0xe0 do+AF8-syscall+AF8-64+-0x5c/0xa0 entry+AF8-SYSCALL+AF8-64+AF8-after+AF8-hwframe+-0x49/0xb3 RIP: 0033:0x7f863c624547 Code: 0d 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa = 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 +ADw-48+AD4- 3d 00= f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 RSP: 002b:00007ffd61d8f5e8 EFLAGS: 00000246 ORIG+AF8-RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ffd61d8f640 RCX: 00007f863c624547 RDX: 0000000000000014 RSI: 00007ffd61d8f640 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000014 R09: 00007ffd61d8f4a0 R10: fffffffffffff455 R11: 0000000000000246 R12: 00000000006dbbf0 R13: 00000000006cd710 R14: 00007f863c18a6a8 R15: 00007ffd61d8fae0 irq event stamp: 36976 hardirqs last enabled at (36975): +AFsAPA-ffffffff9131fa40+AD4AXQ- +AF8AXw= -slab+AF8-alloc+-0x70/0x90 hardirqs last disabled at (36976): +AFsAPA-ffffffff910049c7+AD4AXQ- trace+A= F8-hardirqs+AF8-off+AF8-thunk+-0x1a/0x1c softirqs last enabled at (35474): +AFsAPA-ffffffff91e00357+AD4AXQ- +AF8AXw= -do+AF8-softirq+-0x357/0x466 softirqs last disabled at (35467): +AFsAPA-ffffffff910eae96+AD4AXQ- irq+AF8= -exit+-0xe6/0xf0