Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9984305ybi; Wed, 10 Jul 2019 21:14:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCwz0weaJcrQPCrgnGgYuQfcSPUAaD9v673c9aysAaoI/d7cc1q8Rm8ODVN2TwX5uwZGaA X-Received: by 2002:a17:90a:3ac2:: with SMTP id b60mr2373622pjc.74.1562818443271; Wed, 10 Jul 2019 21:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562818443; cv=none; d=google.com; s=arc-20160816; b=HVkAM+lalHt7Mg9tdXppBu2D0h6whixa4E0SjNVBEiplliulPsmns3CmHjOBJePAnU 1hOK9Gr2iwf9jeEe8EN0o4Pg9K0rT9QXcRbW+1UOJJQJ0WEdjQjE+JdBrXizVb4AgYha Xr1/nrZvea928l+NbebLua6hMp5+etwW1KYZDnclU7SlIpO+ebe4IpkJnrnnEH8IUhSs 5tylXPJErzE+S4vgwDVba6ceZqadFn6mKg6PfiFUryjG72O/UGy/ajXg4YFT43McuKqu 7R/l6aI2TnbQdDVqfJtVZgN1aAg5RJ5KF1qf85CjYtn4/RTDCydO/Zmne2xS/9PVRZOi Eo8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=bSqx5lRhnvQ+7sTCSs3xCfsXxcwdrD2eEqRPLZvVrbA=; b=yQtNFRsUkG003FMudWdMIHx14QEjyQj+gIE/fJvBOeqDusLbYoAW8pLHcRZW0QApiT MzrgMnkS2yM/XyDMxv2XuJ39F3axIAq5bA+r80kR/BeHSrEiD/nL5Bs/gttcyc+RSd9w 7BZBd/GLwcYMxihrT+yW6N2Wsw1/nribWD33ayqrNdMxBlRn4o5uT033J1sDQAwPzPy2 ae1siQW5RucGzJh5PmPSgNAmQWNb2ixN9jYvrhjUpYFJKy42o4xk2k56px2idR7giLWU vS14vthZGOIq08zBdLriUdPRTiO5yn1Z+iLO9KTseiKiLFrUoOLyLW0BxAo869atFUSy uDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HQipN+bs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si3731249plt.271.2019.07.10.21.13.47; Wed, 10 Jul 2019 21:14:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HQipN+bs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbfGKELx (ORCPT + 99 others); Thu, 11 Jul 2019 00:11:53 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43384 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfGKELw (ORCPT ); Thu, 11 Jul 2019 00:11:52 -0400 Received: by mail-pl1-f196.google.com with SMTP id cl9so2288439plb.10; Wed, 10 Jul 2019 21:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bSqx5lRhnvQ+7sTCSs3xCfsXxcwdrD2eEqRPLZvVrbA=; b=HQipN+bsvIBMHH7pXW047PoLn1gb24JU6O6094dySrF2kg2I9dihkWzrRRvEW5lmbx 1WmRCHYsgMmVisomKYe2R9zHJVAGjer/+fC5cNecSCiC9ZOFF88hNsN8Bgc+8fFyZmBk pUnaMkAQL/N/+YyY12cO9ELzj3E7V5kOk18t/MYMKhvmpITlJVpl6YNlaTZ7p84fv+Q3 dNMGD77wMSl+tMmXnHw0QccYZfTcT27l2F0ZmVBkiorsIagbeZx//DAzWP/AI9R9kgMV 9RaUX0IuYTR0iL9W5nPOIGx73j+/VWjmf46iWkV3/kbhK7tEFEeWpcc+YkymY9Oc6szH ClEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bSqx5lRhnvQ+7sTCSs3xCfsXxcwdrD2eEqRPLZvVrbA=; b=Ak27Wgk8I6t4u26yZB0FyFeYNGCAfl99mBjcrmMnJnxW+Wh1jDqHR/3aXBcOb+0+dX SOye7VvLTUpcw5XCAD7WWEyfXLuVKxxIe4ZMWtVV40MTpkUsqHnw4XNiu2ySgWOuGeGl ADOwsDGdFHqMKJPXYgzCvUjFgHgT3SIp+P9PtL47dzCb7WWI41cRmns/Fr14D35/GB2k sALdKcAfko4VoqmgrY/i6sWJRqOQJQWpOR9MQLbslBNauNZXiG7x3sFT5PojOsIH0VWe w9W1G9h5x0/Yy8ZvvYBF+KNdfkrt5qFy5UEg7WHg1rLORWtNxauJ2J14HGMNz58SMs1P OGnQ== X-Gm-Message-State: APjAAAUaAiStmKGCw8J6P4GndXnoCJudtiJ/tRzAMHvt13q6VGyj6ptA bKrHEYx8JZBZ+CQNDXT3sH8= X-Received: by 2002:a17:902:42d:: with SMTP id 42mr2105475ple.228.1562818312183; Wed, 10 Jul 2019 21:11:52 -0700 (PDT) Received: from linux-l9pv.suse ([202.47.205.198]) by smtp.gmail.com with ESMTPSA id 12sm3586433pfi.60.2019.07.10.21.11.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jul 2019 21:11:51 -0700 (PDT) From: joeyli X-Google-Original-From: joeyli Date: Thu, 11 Jul 2019 12:11:45 +0800 To: Jiri Kosina Cc: Pavel Machek , Matthew Garrett , jmorris@namei.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Josh Boyer , David Howells , Matthew Garrett , rjw@rjwysocki.net, linux-pm@vger.kernel.org Subject: Re: [PATCH V34 10/29] hibernate: Disable when the kernel is locked down Message-ID: <20190711041145.GA28145@linux-l9pv.suse> References: <20190622000358.19895-1-matthewgarrett@google.com> <20190622000358.19895-11-matthewgarrett@google.com> <20190622175208.GB30317@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi experts, On Mon, Jun 24, 2019 at 03:21:23PM +0200, Jiri Kosina wrote: > On Sat, 22 Jun 2019, Pavel Machek wrote: > > > > There is currently no way to verify the resume image when returning > > > from hibernate. This might compromise the signed modules trust model, > > > so until we can work with signed hibernate images we disable it when the > > > kernel is locked down. > > > > I keep getting these... > > > > IIRC suse has patches to verify the images. > > Yeah, Joey Lee is taking care of those. CCing. > The last time that I sent for hibernation encryption and authentication is here: https://lkml.org/lkml/2019/1/3/281 It needs some big changes after review: - Simplify the design: remove keyring dependency and trampoline. - Encrypted whole snapshot image instead of only data pages. - Using TPM: - Direct use TPM API in hibernation instead of keyring - Localities (suggested by James Bottomley) I am still finding enough time to implement those changes, especial TPM parts. Thanks Joey Lee