Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3557255imm; Mon, 25 Jun 2018 00:08:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJNtAuRSH92mySo95lF79AORJdpR9N+fakd0PRaksXRmKbmY3I9BCEicbwnnZiay8d1oTm/ X-Received: by 2002:a65:43c9:: with SMTP id n9-v6mr9486257pgp.399.1529910506788; Mon, 25 Jun 2018 00:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529910506; cv=none; d=google.com; s=arc-20160816; b=LVLGrVL99OFkJbK0QH76HcUWdhjMW0lChfp105SG6SdRbssPoCDYaj+4X0jnqPy7Aa uhjiUU/aaPtuvRbAEb6+nS7qr+Sxf75duRZlas1bKp+mWXfgqX2oPy9Xmrt8/0a73rh/ 9Gx7oIVODo2KLuZTRt7Cvr+SJNQDVBUxcIj02Z51U/AGZ48BDx+4c4Z8VRWVsutJB4+w YCdEOdzjsI35uz7gWbriya6toIsFPCf1nRnnRccJbVd+Zjk7PCwbCKT1KRvzvu9FE86A yRw+PvS9UwvhAw0yAa/90steENS52SgIcYIiK0V4KJv+k9dSJL24ZIyjEpD7BsCjsoOq 8jaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=78B80lqyCdaQRIOd9eZdeAeKlDrLBqCZ2fqi/kCkAxg=; b=wRkLzxBrs3l3aHZiR6WnevWK7EE0D3bcwx77rhJLcs+kukT5Ykd4lkkGuJ5saC5ct4 WKrApVx0MQvLwaErllm63nVewPDQUY9Uh67wvv1VK9DoCvPjdYzhFBHYowtisC2I5S6z oSKHPz7STlsxj/nrbQJMGDnAcP7g2HvpPraZGo9jekECG+BlW640xPsUa9lL6moWgvuE cMM+1PYCWpRfAVab1ttTyuYqMPMuSLabnFFW4OUZ/YVvltRGZcG7dQ6LYyKAxS9YG8d7 mcJMUoW1ecGPviZez8WmwzTeFIzlvFQnbyJ16rFsZxAT6fWXPKFEtH11xPLa5P0N7h8F WHHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Hui9thMT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y27-v6si13606213pfa.181.2018.06.25.00.07.58; Mon, 25 Jun 2018 00:08:26 -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=fail header.i=@gmail.com header.s=20161025 header.b=Hui9thMT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974AbeFYHG6 (ORCPT + 99 others); Mon, 25 Jun 2018 03:06:58 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:39901 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750825AbeFYHG4 (ORCPT ); Mon, 25 Jun 2018 03:06:56 -0400 Received: by mail-ot0-f194.google.com with SMTP id l15-v6so13923924oth.6; Mon, 25 Jun 2018 00:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=78B80lqyCdaQRIOd9eZdeAeKlDrLBqCZ2fqi/kCkAxg=; b=Hui9thMTnMsXrFn48UNyY66H6wdf7nlPrhtPXzlYxqgCh7ZRAfFn513BtqKboc67Nm EFNTIv2Md2im1Qf98Z6ceWL5PGi8RdVBmjP5uicNnHUYj/mO9zhhZNuDXLlYclm5+m+7 H6debFCEVjLf4zyarTRAbEqXF7CdQzffvp6kGZmeC9rdBVx2/LxKZhyeqN1RUdr8BWZI U39eOahEqG/K8k3kvaauWiLnfaLlnWt7Yq69SOwgGe0LbkFpmCknjoLOKMzrM+MHpYtl 9O4K/NnRwLa5svjzjiLmG/WeL8wXXAwXkYFqwystQWlxrpadQe3bEOaJ3ztBLbgoDyNk 5KVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=78B80lqyCdaQRIOd9eZdeAeKlDrLBqCZ2fqi/kCkAxg=; b=kFaew9/nG3asGPoQNEVye8KQ9PdaSi9HadZNid3OR1Yxkei3mEyQWRG/Rz4LKqCcwK seRE9o+wvElfU1RXgbLeEa8LTcZJvcOEdHtuuVMivvSwfFxjmKKNrD+ZkKBClsZkf0Yh KxNE/sxRD2BrWv128hJh1k00tEdXEr1cxF37RBrULGP00YjSegRopnaPglUniqnXibHf qtf3s7VYhIA9tgBBstuBeISFn3Kh2IuS/oVNxmtHwW2jjBVkHld88NRVB+PSUKjH8iPu mw+B07ulOfZ0N0HtbqHLC5fgpsYLa3j68I+XocuHQJvEsHZGPzpgMIlR+mtnpS9gcTvJ BMSQ== X-Gm-Message-State: APt69E1yZUgv+1H1VJKrZml3rGLtExyjkzsTscOezPG9j+eBoG0Pe5V5 KxuMwNh8OOjiyehxr5oEfpU0rUDzt6OCpzK86tw= X-Received: by 2002:a9d:3e4c:: with SMTP id h12-v6mr2258284otg.150.1529910415720; Mon, 25 Jun 2018 00:06:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1429:0:0:0:0:0 with HTTP; Mon, 25 Jun 2018 00:06:55 -0700 (PDT) In-Reply-To: <20180621190401.GA14623@amd> References: <78af30838d0bac69bdd6e138b659bcbb8464fd13.1529486870.git.yu.c.chen@intel.com> <20180621090142.GB21807@amd> <20180621190401.GA14623@amd> From: "Rafael J. Wysocki" Date: Mon, 25 Jun 2018 09:06:55 +0200 X-Google-Sender-Auth: WME9OwgT7KMAl3G4qd1G6uReTgo Message-ID: Subject: Re: [PATCH 3/3][RFC] tools: create power/crypto utility To: Pavel Machek Cc: "Rafael J. Wysocki" , Chen Yu , "Ted Ts'o" , Len Brown , "Lee, Chun-Yi" , Borislav Petkov , Linux PM , Linux Kernel Mailing List , "Rafael J . Wysocki" , Stephan Mueller , Eric Biggers , Denis Kenzior Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 21, 2018 at 9:04 PM, Pavel Machek wrote: > On Thu 2018-06-21 14:10:06, Rafael J. Wysocki wrote: >> On Thu, Jun 21, 2018 at 11:01 AM, Pavel Machek wrote: >> > >> > >> > On Wed 2018-06-20 17:40:51, Chen Yu wrote: >> >> crypto_hibernate is a user-space utility to generate >> >> 512bits AES key and pass it to the kernel via ioctl >> >> for hibernation encryption.(We can also add the key >> >> into kernel via keyctl if necessary, but currently >> >> using ioctl seems to be more straightforward as we >> >> need both the key and salt transit). >> > >> > Ah, here you go: >> > >> > https://en.wikipedia.org/wiki/Uswsusp >> >> No, not really. >> >> > It can already do encryption. If you see problems there, patches will >> > be gladly accepted to fix them. >> >> By whom? > > By me. Well, OK Where's the repository the patches will go to when you accept them? >> > If you want to maintain uswsusp in kernel tree, I guess that would be >> > an option, too. >> >> No, it isn't an option due to the dependencies on crypto libraries. > > Why not? You need a specific set of devel libraries for the utilities to build and that need not be present on all systems I suppose? Besides, s2disk is currently tangled with s2ram which is obsolete, so I'd rather not.