Received: by 10.192.165.148 with SMTP id m20csp3015956imm; Mon, 7 May 2018 05:21:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpLeFPV1JZehAXFYJcNpNd2zoFamT+DSEdTZ6v4/gi2rDMhYlKbAt6s1cd/hVPKkNHJhymY X-Received: by 2002:a65:4784:: with SMTP id e4-v6mr29512732pgs.196.1525695671465; Mon, 07 May 2018 05:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525695671; cv=none; d=google.com; s=arc-20160816; b=eWqtvRaqG4ro9Rwrr/b27UB30RLRHZ9H+oGdfdwu8GGcyOpjX2VRP3nJaeF+F+tGBS QjjAduDiRJTFX8TgNpdhnIXtNRFgw4r/zDlPajx5A49AicADB2sJQiWkTXiZwl9e2x18 /4HvlF/U0l/GdzEGwTwUcQAIFuNeMpUkQVdnFDixrtp1Wjqwd1yPvbkfeC5T4NFMOcPL Dc4Hmz38+32pL+8L0wosExo7WZY1yt8Lwzd6pDuL07wdzt80URHNgQwdJYBxqM9zq9Tl 3bfIzCvFvaW6Jv4BpkqPBHpB0VOezo8UeyMaY98z2CzP2xTQMs/BX4g8EWSEZD9m/hPI flmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=doBD6tPrOfS5/PmOEQAP6LCUZmiIRHrl4Uk0iWjspgA=; b=ZLzxVW1f1kXYpodymA3c2ufsEvPkcgadz08jMcAK4ky3ILcnvDhKH1W3hqwehVibsD bYxDTv3TFGTRFkjzLtMVx3xr0Xx0n3WZq8jhYTHKo+luhHguCEXxLEUGgvHGTq6vWxEX I7HGFWRM8S3MfhDXC3b8L7sGTkwCpMreQnJSim2zUE59yxa3vonUBJCgn/uueuMPXdE3 GxuP2Hyi+7MnLiULm7c52Ti7minhIMLRJ4knAUp0TMwPWMJeHUq3ZIN4Ls1uI38o6qsf BOBY3FW4HKSoC0QgeMvEy2Ptpg0v3lRf/Qnb5SVfzy0kr/Hz8/Vc8zXOKYNQK5Lq7w4k hLag== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59-v6si21868535plb.106.2018.05.07.05.20.56; Mon, 07 May 2018 05:21:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751992AbeEGMU3 (ORCPT + 99 others); Mon, 7 May 2018 08:20:29 -0400 Received: from mga02.intel.com ([134.134.136.20]:8565 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbeEGMU2 (ORCPT ); Mon, 7 May 2018 08:20:28 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 May 2018 05:20:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,373,1520924400"; d="scan'208";a="226463820" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga006.fm.intel.com with SMTP; 07 May 2018 05:20:25 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 07 May 2018 15:20:24 +0300 Date: Mon, 7 May 2018 15:20:24 +0300 From: Mika Westerberg To: Yehezkel Bernat Cc: LKML , Andreas Noever , michael.jamet@intel.com Subject: Re: [PATCH v2] thunderbolt: Handle NULL boot ACL entries properly Message-ID: <20180507122024.GA2879@lahna.fi.intel.com> References: <20180430111245.31072-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 01, 2018 at 06:56:13PM +0000, Yehezkel Bernat wrote: > On Mon, Apr 30, 2018 at 2:12 PM Mika Westerberg < > mika.westerberg@linux.intel.com> wrote: > > > If the boot ACL entry is already NULL we should not fill in the upper > > two DWs with 0xfffffffff. Otherwise they are not shown as empty entries > > when the sysfs attribute is read. > > > Fixes: 9aaa3b8b4c56 ("thunderbolt: Add support for preboot ACL") > > Signed-off-by: Mika Westerberg > > --- > > Changes from v1 (https://lkml.org/lkml/2018/4/27/845): > > > * Use || instead of && to make sure UUIDs with only one zero DW > > are still treated as valid. > > > drivers/thunderbolt/icm.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c > > index 2d2ceda9aa26..500911f16498 100644 > > --- a/drivers/thunderbolt/icm.c > > +++ b/drivers/thunderbolt/icm.c > > @@ -1255,7 +1255,7 @@ static int icm_ar_get_boot_acl(struct tb *tb, > uuid_t *uuids, size_t nuuids) > > /* Map empty entries to null UUID */ > > uuid[0] = 0; > > uuid[1] = 0; > > - } else { > > + } else if (uuid[0] != 0 || uuid[1] != 0) { > > /* Upper two DWs are always one's */ > > uuid[2] = 0xffffffff; > > uuid[3] = 0xffffffff; > > -- > > 2.17.0 > > > Acked-by: Yehezkel Bernat Applied to thunderbolt.git/fixes.