Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8514368rwr; Thu, 11 May 2023 02:16:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MSJBcMpzwkaZRckm1qajL9wwzkkoQShff6eaVo2okX59qCtc56j3AjjJW9/Lp5WAAuGSW X-Received: by 2002:a05:6a00:16d3:b0:63d:3f74:9df7 with SMTP id l19-20020a056a0016d300b0063d3f749df7mr25376093pfc.34.1683796577342; Thu, 11 May 2023 02:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683796577; cv=none; d=google.com; s=arc-20160816; b=l3/xAR+G3fA9gPF7nrFghUHF1nTpXEyJQ/4sLGET5UysLpS74RTYHgossfoD2uYr32 3T4ntf4ij4/LfMi67ImpBf6lKmVPI7xl7mmX9Ml79tFtYEEDG3L1EfmBXqbqlYBqzEN4 HXpKOb8nqxW1Gtb9xKsgtYMkYejVHOMmICin8sRwCisWmCaIomkCxdlN/Zx8hwp76elQ AyAGgdB3K9WrqH4+pN5helgozrrt9X90vb41JwIMTPsIcpQ9yqvvAzkoeDUZoicZ1uHB 9SEtcqPvcyhlwM3PPye4m/sPypd9n7XZplvq1SiZ5g9P2mYJnaabkGBIHC7bpdYZQbO3 n82g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=H5w+W25PCMS8v7sqm6ps8GbXST5Py6KI5yZCbvPkhaU=; b=lO1nSC81Q+38Msx3a46xxlJ2FO25jxa6mkRoJrCRnJg37s4+WD5UWwp05SqReJAnR9 swL4ucpPIHDKDQmtuIcc9wrnqR8FYRQMU9RYb+sWOxGVReYDOheX0Z4MCQc9dJqOxShl RqVWVjKvAXdBPmJhnaMsfM0mmxFjbD4GR1hQd7lKiTUeg168JEt9Ubz9OuLRYYj00guP 7RvVKy3OZOR5mMClhIw+AzV69VCTvyQRrwf9PH0H+ZROKyJbKIWWsr82Fp4IYbRYS5dp UqXGZl4zfA/EC0qdbERpKFoaTQ9geLAKpfM5gPHWlKTQwFTKs0CNCNemWPGOZ9noPUQf E79Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=T7I6GnJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a24-20020aa79718000000b0063f1919c66esi6900596pfg.357.2023.05.11.02.16.02; Thu, 11 May 2023 02:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=T7I6GnJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236911AbjEKJJt (ORCPT + 99 others); Thu, 11 May 2023 05:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbjEKJJs (ORCPT ); Thu, 11 May 2023 05:09:48 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBF9AB8; Thu, 11 May 2023 02:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683796186; x=1715332186; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=LIAE6AICDiU3JtfOGCeNPnm8ua1Fx3jeY/DvL1sM4mg=; b=T7I6GnJv4Z0dOA0uk3vmKewmnYmd8wcWXmOPivUWjK5T4084zmwl1W8U vVSeck3D8gGFHf9/d2vQOKws49jG6Abjm1ePCTyIEcrYxCxZhkvZletNE G3FTpSfBF9xTGds4Y9PCF2aYtDVXOGVkrBnMoYhotqAMV1PIzm6v/D+SW STBZu3YpbPP7TPeoxi/RC4k29/PnmQuU8NbALNCc1A/YRXqh5ho/yDO+a 0SEasuq4TyEPE7gpOKkyAH6I03JD1wHbr9dL3vJbSeuNQfkusaubPF9XB DsA5SznWUkj8jMaPW1GPlB86/kv1/XSiSAD/uLPlTUPPFdq6G7eR16vrR Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="436776667" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="436776667" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2023 02:09:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="811510125" X-IronPort-AV: E=Sophos;i="5.99,266,1677571200"; d="scan'208";a="811510125" Received: from jsanche3-mobl1.ger.corp.intel.com ([10.252.39.112]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2023 02:09:44 -0700 Date: Thu, 11 May 2023 12:09:39 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Jorge Lopez cc: hdegoede@redhat.com, platform-driver-x86@vger.kernel.org, LKML , thomas@t-8ch.de Subject: Re: [PATCH v12 06/13] HP BIOSCFG driver - passwdobj-attributes In-Reply-To: Message-ID: <5fe49d95-79bd-441d-3a3a-4e2894536ae9@linux.intel.com> References: <20230505220043.39036-1-jorge.lopez2@hp.com> <20230505220043.39036-7-jorge.lopez2@hp.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-502350463-1683796186=:1900" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-502350463-1683796186=:1900 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Wed, 10 May 2023, Jorge Lopez wrote: > On Tue, May 9, 2023 at 7:34 AM Ilpo Järvinen > wrote: > > > > On Fri, 5 May 2023, Jorge Lopez wrote: > > > > > HP BIOS Configuration driver purpose is to provide a driver supporting > > > the latest sysfs class firmware attributes framework allowing the user > > > to change BIOS settings and security solutions on HP Inc.’s commercial > > > notebooks. > > > > > > Many features of HP Commercial notebooks can be managed using Windows > > > Management Instrumentation (WMI). WMI is an implementation of Web-Based > > > Enterprise Management (WBEM) that provides a standards-based interface > > > for changing and monitoring system settings. HP BIOSCFG driver provides > > > a native Linux solution and the exposed features facilitates the > > > migration to Linux environments. > > > > > > The Linux security features to be provided in hp-bioscfg driver enables > > > managing the BIOS settings and security solutions via sysfs, a virtual > > > filesystem that can be used by user-mode applications. The new > > > documentation cover HP-specific firmware sysfs attributes such Secure > > > Platform Management and Sure Start. Each section provides security > > > feature description and identifies sysfs directories and files exposed > > > by the driver. > > > > > > Many HP Commercial notebooks include a feature called Secure Platform > > > Management (SPM), which replaces older password-based BIOS settings > > > management with public key cryptography. PC secure product management > > > begins when a target system is provisioned with cryptographic keys > > > that are used to ensure the integrity of communications between system > > > management utilities and the BIOS. > > > > > > HP Commercial notebooks have several BIOS settings that control its > > > behaviour and capabilities, many of which are related to security. > > > To prevent unauthorized changes to these settings, the system can > > > be configured to use a cryptographic signature-based authorization > > > string that the BIOS will use to verify authorization to modify the > > > setting. > > > > > > Linux Security components are under development and not published yet. > > > The only linux component is the driver (hp bioscfg) at this time. > > > Other published security components are under Windows. > > > > > > Signed-off-by: Jorge Lopez > > > > > > --- > > > Based on the latest platform-drivers-x86.git/for-next > > > > FYI, for me you don't need to reply into the comments where you'll be > > following the review suggestion. It saves us both time if we focus on > > points where there's more to discuss. > > > + /* > > > + * This HACK is needed to keep the expected > > > + * element list pointing to the right obj[elem].type > > > + * when the size is zero. PREREQUISITES > > > > Please remove all these double space from your patches (should be easy > > to find them with grep). Please check if your editor adds them e.g., when > > reflowing text. > > What double spaces are you referring to? There's "zero. PREREQUISITES" so double space after the full stop. We don't use them in the kernel comments. It could be that your editor auto inserts the second space (by default) when e.g. reflowing text because it's some English rule to use two spaces there. -- i. --8323329-502350463-1683796186=:1900--