Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp659155pxb; Thu, 30 Sep 2021 14:19:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvrZGHqx1DsYaylLP84pdqH/WJfJzGRfPAzILc/6nkJ0yhVP18rUZsgD6xVfU7d6qcbdsQ X-Received: by 2002:a17:902:e302:b0:13e:6dc0:1ac with SMTP id q2-20020a170902e30200b0013e6dc001acmr5117473plc.56.1633036743415; Thu, 30 Sep 2021 14:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633036743; cv=none; d=google.com; s=arc-20160816; b=Mht416u3VtJ9hcVkpCeauGGCaMYix8O9Y0wo0eUbb795Ryjs4AHaqf653DJ++uU27P 2FNDRYyflwcRB8nPGUOvGfci6nJyzMbm0w5DN9aeVEn4ddNTPkSTVmZMjUOWIvmlOTLs Fhv7NgkFXbQ7B+DogqOELiFrraaqiisACebjOoybq+Yg0wYeDM99Xmn3sMA5mDT/Lloq i5c5i01fgcngB649tild1iMYxsTjVjpO6kqU+G3LPkr8UhIZji3M7OEJMOSwDu2cGSRu 3swOZHecxyK3BJcQi/ASXi1vLOeMv3nSNgHxp7035+lAuk9dxELOoylJK/7k/x9j7VSv IBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=N2396PWWj0KDvLiRCrJymChy6KYkGMfQb2vNthzIeHc=; b=wN66nFlSCkmcGPGQpvuJXon/47i3uMcVg84hTNzZFKhqXfA9O+e9rj+HJoe6rg6HCI zKOtm/RZsfDsiKeZnB7UXhR7+lIdybKWZFklNK4K6pZNxIY6sQXn+NOLeuepie73Sy1m vP5IQdedGJDn8P3MruZ1AgZFULidr3ctXZCD+faIgpjdx7BZfCAOHiamRN85LrS90YNN x85V/DS2QhRUS/8449iY8OkgSY3bR0nTPa06uyKKz271d2R8gUgQ0EWmXCWVUB9zOSQK GH10ub6NUrbqSjC2q5u2VPm3+rHaWtRAW3Z5k56nb5lbsIkJSGGfPCt/SePnMTPdNodh 9jOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h0RgEzcl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si5045422pfg.239.2021.09.30.14.18.47; Thu, 30 Sep 2021 14:19:03 -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=@gmail.com header.s=20210112 header.b=h0RgEzcl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351701AbhI3S1L (ORCPT + 99 others); Thu, 30 Sep 2021 14:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351605AbhI3S1K (ORCPT ); Thu, 30 Sep 2021 14:27:10 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08619C06176A; Thu, 30 Sep 2021 11:25:26 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id k23-20020a17090a591700b001976d2db364so5467390pji.2; Thu, 30 Sep 2021 11:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N2396PWWj0KDvLiRCrJymChy6KYkGMfQb2vNthzIeHc=; b=h0RgEzclSn5qehouqncGfnvUr2kvD5B8ymJN014kbcvif0XOvf035AvLcI7OxGB7Wi +T2hZIAliVQXP/Pto7cEFkcC2TbHHjXNNEWFa+0VjLqLznEEPdLUpGELkelpdSHdziGu PR9Y3Kk+ubRjCFaW04GuIFnR3QiXiGmQTCPP1tRJd2OM6WO8E0sd9yeb/ycCZwPO6URf pHB17KcY2Mef60Z5J8ldbvtTKMw9+PpRjitkhyZu0x5WP2IjlSx9TsmnAxpjXC8hRK1u bH/NujR70pPJPi6EiRLOR9xMOvT3deurL84m1RfifEHWUO0O9EzKSv61NNRyfQ9Z7IqN 71qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N2396PWWj0KDvLiRCrJymChy6KYkGMfQb2vNthzIeHc=; b=Nd0oJ6w8rLGEaLyeke3CSIWeSWmnD4UcN2s/mpmvLBqL3/1/fLF2HAz/46M+fpPmSs 3omMlDlRnu3SOZgknZxpKmeOozrl0soNWSsefPX1mRGwhc8EcrtG8H+OmBiUCkfWEkvl e2HndTdKSBVZwRqx0uBzHpJh6inaJkpTb95HZ83QrDBXqrohvdVjFgEGS1M0IxKZoRne 2vy58sWfqo+slsbLVIPzSlbrtjlFDg+vbk0C1+rPTadUh0ylvg0ofa5KjmDuLMTIxAHC nAln8fIv1mhpggjjpAaC+ykICBE+oOjzsdUzdtfd1kAItemt+IgdhwxWAiWvd9Fdk2zx olcw== X-Gm-Message-State: AOAM530f8azTIvp9ke6pLetANco3/X1akJaiZi5GJqlcQyMsnnZyr9RI UT/ZM8VqF7/6q3AbPkLgw2m1rp3Nd0DJvHcjc2E= X-Received: by 2002:a17:90a:ba86:: with SMTP id t6mr1178246pjr.1.1633026325497; Thu, 30 Sep 2021 11:25:25 -0700 (PDT) MIME-Version: 1.0 References: <20210930010511.3387967-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210930010511.3387967-2-sathyanarayanan.kuppuswamy@linux.intel.com> In-Reply-To: From: Yehezkel Bernat Date: Thu, 30 Sep 2021 21:25:09 +0300 Message-ID: Subject: Re: [PATCH v2 1/6] driver core: Move the "authorized" attribute from USB/Thunderbolt to core To: Dan Williams Cc: Kuppuswamy Sathyanarayanan , Greg Kroah-Hartman , Borislav Petkov , X86 ML , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Andreas Noever , "Michael S . Tsirkin" , Michael Jamet , "Rafael J . Wysocki" , Mika Westerberg , Jonathan Corbet , Jason Wang , Andi Kleen , Kuppuswamy Sathyanarayanan , LKML , Linux PCI , USB list , virtualization@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 6:28 PM Dan Williams wrote: > > On Thu, Sep 30, 2021 at 4:20 AM Yehezkel Bernat wrote: > > > > On Thu, Sep 30, 2021 at 4:05 AM Kuppuswamy Sathyanarayanan > > wrote: > > > > > > no functional > > > changes other than value 2 being not visible to the user. > > > > > > > Are we sure we don't break any user-facing tool with it? Tools might use this to > > "remember" how the device was authorized this time. > > That's why it was highlighted in the changelog. Hopefully a > Thunderbolt developer can confirm if it is a non-issue. > Documentation/ABI/testing/sysfs-bus-thunderbolt does not seem to > answer this question about whether authorized_show and > authorized_store need to be symmetric. Apparently, Bolt does read it [1] and cares about it [2]. [1] https://gitlab.freedesktop.org/bolt/bolt/-/blob/130e09d1c7ff02c09e4ad1c9c36e9940b68e58d8/boltd/bolt-sysfs.c#L511 [2] https://gitlab.freedesktop.org/bolt/bolt/-/blob/130e09d1c7ff02c09e4ad1c9c36e9940b68e58d8/boltd/bolt-device.c#L639