Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2114151imm; Thu, 19 Jul 2018 13:28:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc7l7DA/GLgxNgHjVIUeh31wzQZ8Wo0ZQ9xTob74Z9+S0lrHIZAHsiuGZVu/42fiUmsueMo X-Received: by 2002:a17:902:1a9:: with SMTP id b38-v6mr11298179plb.89.1532032102441; Thu, 19 Jul 2018 13:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532032102; cv=none; d=google.com; s=arc-20160816; b=rM49K3l3XfqQtOgyfwxZUQhu5fgXRHhocLcZ6jvrtEUqeOzsN2JTku0xxFpx0jA1gE 2ZFsGyCgwHUmxF4NnOhbJw/aPy5/ZGWCpfFKqV8KqeqrXff0rxCic7xDgTpD2/GlUu0b jPhpMyaqM+xiRRp5DSdddY7w1OXXVQRGosS1lD2EbvB60wd/s38o5hRqtEtEzIsnNwpJ cEsn7dh+12eVCSwF3dG9ZZ7wh546CjwlfEMhLtIZRhCArqZq7DSQjRbAKbrBJnOrQZre y3GgMiBs4SxI7tHi0iR8VtcE/Gn9ftHSbv34yMcaVHrWHGJBimVoapwoMkOOnIBdMCCy QSiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=/v5FtxxGae58nZkDf9sUNwfHhwYSzitYnB6AA1XzQXQ=; b=xcPvTgBDtE1MO0/JkLGospu0wJ6VIhAvImBuy/0Bfz8BeFgRY6GXxpSvOtsUdmu0tc uqI3fSGzCOjKPb9tB7qpY0/MjX5guS5HMpA80pLslcDJvGB/5J91J6+L8JvPAkkgleCC MKX/93KL3/XMPaG70sf044Sqj7J1BWYJoKCDSrdGIkYrzHw8GOgQQ79+E2M9m1fx9O9V NEkAjKk9bwcqMXMemyrLC/ClAuAT6XXfKbDNLaGEc2IcW1aC/0GWzUi1meGrnarB8gT3 8nkU/ug3tKuNzIdk9bS4Jv/6lQqcGl9uUlBsNBiM0e6Ju8aTsNV+gbvJnEmzv+HlvwhC xsWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=YqkH31gm; 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=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si86980pgo.278.2018.07.19.13.28.05; Thu, 19 Jul 2018 13:28:22 -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=@hansenpartnership.com header.s=20151216 header.b=YqkH31gm; 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=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbeGSVMP (ORCPT + 99 others); Thu, 19 Jul 2018 17:12:15 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:43830 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727499AbeGSVMP (ORCPT ); Thu, 19 Jul 2018 17:12:15 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 305618EE1DD; Thu, 19 Jul 2018 13:27:31 -0700 (PDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X4BxADjUbOlu; Thu, 19 Jul 2018 13:27:31 -0700 (PDT) Received: from [153.66.254.194] (unknown [50.35.68.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id AE9DC8EE150; Thu, 19 Jul 2018 13:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1532032050; bh=sc0ZEWKf5NOBv4V125GnLV5jEbj1mYXGn2GszcsovII=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=YqkH31gmOdoFxr+yRMo2RFlE+Bqbx71n9/hO9+zVJwJvGco2zrqh3VhTY6QAR2VnX vTH+ouda2cpN6Dyp+krDzZ5A4KJUWlvrT4Ue5MqWT47u8eQbYwltGshB4ii8fIR7qO rmFCQajxvS5t4PyJMHPiY5FeZUezHow972z4QGbo= Message-ID: <1532032049.3061.1.camel@HansenPartnership.com> Subject: Re: [PATCH] tpm: add support for partial reads From: James Bottomley To: Tadeusz Struk , jarkko.sakkinen@linux.intel.com Cc: jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 19 Jul 2018 13:27:29 -0700 In-Reply-To: <0b9f0bb5-6620-0499-6680-5ec595167f23@intel.com> References: <153201555276.20155.1352499992826895966.stgit@tstruk-mobl1.jf.intel.com> <1532020750.5396.4.camel@HansenPartnership.com> <421c4b75-9e9d-7045-adad-797fd112898a@intel.com> <1532026030.3198.2.camel@HansenPartnership.com> <1532029979.3198.4.camel@HansenPartnership.com> <0b9f0bb5-6620-0499-6680-5ec595167f23@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-07-19 at 13:12 -0700, Tadeusz Struk wrote: > On 07/19/2018 12:52 PM, James Bottomley wrote: > > The ABI break is the error case as I outlined above.  We can't > > assume everyone uses the current interface without getting an error > > and one error and your hosed is a nasty failure case to change the > > interface to.  > > Well, if there is a broken application out there that doesn't work > today it will not work after this change neither. It doesn't have to be broken ... it could be using EFAULT to probe the buffer size for instance. That's the point of not breaking the ABI: you don't second guess what applications are doing. James