Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5465002ima; Tue, 5 Feb 2019 12:13:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IYUA7Mr4RjRQ4XqdkcpVKuqqzv+kUqYthPBcrIRsTWnIrmveaJHED+fkJ/AaeupI5HuO4an X-Received: by 2002:a63:4c04:: with SMTP id z4mr1302360pga.312.1549397615791; Tue, 05 Feb 2019 12:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549397615; cv=none; d=google.com; s=arc-20160816; b=rpL/xwFY1u6HDF6MzKMkexiAhewrnkrx6GyYNlsaWGzeWFWCn1lCwCRK9X2JCPpfMR CbZxQ+iZPTLf9ZmyrGsLqINe8ebtjtQoWwD9JJB77P3RKuNtipwE49Ig0I5LMbzV1UXB MEg9HG9nJcdfUgBQESKdXXEYjv15lP1luecBLHZs4r/K5PY3O4cvzAm7ujF4bPZc/G+i Tp4f6FFqRnbO+qUVTelaCKZZHO928P4FEZK+ZdMzzzKzJn3gaABBqmdOAHOwHkcqFMqx tzh9CVdpqdwOuZcCevaDCTOX/VIwdYm0NHNRAjxmqTxExJagKTRW8/UF/+4OoTB5+ziV 2pJg== 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; bh=3mZnM7OgV6ha+qccbKubFeMoxqBnYgJ5I2RDy+VCdvI=; b=QF9avhVztpxswvEnM1k5Ua/emu282VSVYZY2W5Hlqg2ZB3bMvE1Rv/TO5UeXB8RhWe xV0V6Du9G8Lgo2TDr3Y5EdkdyQVjcc5qZTQhhv5VXUyPZwySzmGaPuKHvV6gTHOyVbay +sHPzgrUnLfSz0bsNzf5couDhJ3VJ0fFGYPBJEWgpepsZwzUuTT0yv0v+1fNarkKTcLm jPkm4V04gwQqVRQBjYQv7dwUYONrGfeJoBn2cpyewwgA1nbV+tbxxsOEgdQVfs1FW7eV SWkb8XryvMMdEq80Z7XtuBb/SrZADceYDwFhysQUFD19M1VpwYFcr0Q34kbpab/sDHwX X8/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=VMEHbjmB; 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 p15si4318375pfi.251.2019.02.05.12.13.11; Tue, 05 Feb 2019 12:13:35 -0800 (PST) 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=VMEHbjmB; 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 S1729334AbfBETkZ (ORCPT + 99 others); Tue, 5 Feb 2019 14:40:25 -0500 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:33434 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727122AbfBETkZ (ORCPT ); Tue, 5 Feb 2019 14:40:25 -0500 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 236F88EE241; Tue, 5 Feb 2019 11:40:25 -0800 (PST) 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 heSaB2JM460B; Tue, 5 Feb 2019 11:40:24 -0800 (PST) Received: from rrcs-24-103-236-65.nyc.biz.rr.com (rrcs-24-103-236-65.nyc.biz.rr.com [24.103.236.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 16B0C8EE1A0; Tue, 5 Feb 2019 11:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1549395624; bh=OMonKztN7QCLx4iMKuZI2D53Vxy0jzIxuXKKOqQaUBM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=VMEHbjmBFXmopITKt6Fhzxayf7D74w2wcfePka4ltq76f+6JQyW5zB02VbaoChaNN FMl9Ulm0oPxIb4yKfPhKKO02i90c8W/YVbayYw/DRce9B6R+gKNGDkvbnfcXvohzQz UTDP4uYoTgpml+bT6n83NeS7jt1usF77gHHlwVfo= Message-ID: <1549395622.2923.14.camel@HansenPartnership.com> Subject: Re: [PATCH v2] tpm/st33zp24: Fix the name collisions in tpm_st33zp24_spi and tpm_i2c_infineon From: James Bottomley To: Jarkko Sakkinen , linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, roberto.sassu@huawei.com, zohar@linux.ibm.com, stable@vger.kernel.org Date: Tue, 05 Feb 2019 14:40:22 -0500 In-Reply-To: <20190204133749.14176-1-jarkko.sakkinen@linux.intel.com> References: <20190204133749.14176-1-jarkko.sakkinen@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-02-04 at 15:37 +0200, Jarkko Sakkinen wrote: > diff --git a/drivers/char/tpm/tpm_i2c_infineon.c > b/drivers/char/tpm/tpm_i2c_infineon.c > index 9086edc9066b..b9d5a1dda8d2 100644 > --- a/drivers/char/tpm/tpm_i2c_infineon.c > +++ b/drivers/char/tpm/tpm_i2c_infineon.c [...] > @@ -527,8 +528,8 @@ static int tpm_tis_i2c_send(struct tpm_chip > *chip, u8 *buf, size_t len) > u8 retries = 0; > u8 sts = TPM_STS_GO; > > - if (len > TPM_BUFSIZE) > - return -E2BIG; /* command is too long for our > tpm, sorry */ > + if (len > TPM_I2C_INFINEON_BUFSIZE) TPM_I2C_INFINEON_MAX_BUFSIZE, surely, otherwise it won't compile ... the kbuild robot just spotted this as well. James