From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751090AbdALUfC (ORCPT ); Thu, 12 Jan 2017 15:35:02 -0500 Received: from mga02.intel.com ([134.134.136.20]:57074 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbdALUe7 (ORCPT ); Thu, 12 Jan 2017 15:34:59 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,219,1477983600"; d="scan'208";a="1082308449" Date: Thu, 12 Jan 2017 22:34:50 +0200 From: Jarkko Sakkinen To: tpmdd-devel@lists.sourceforge.net Cc: linux-security-module@vger.kernel.org, Peter Huewe , Marcel Selhorst , Jason Gunthorpe , open list Subject: Re: [PATCH RFC v2 1/5] tpm: validate TPM 2.0 commands Message-ID: <20170112203450.exxpxypm6bmrvymi@intel.com> References: <20170112174612.9314-1-jarkko.sakkinen@linux.intel.com> <20170112174612.9314-2-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170112174612.9314-2-jarkko.sakkinen@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 12, 2017 at 07:46:04PM +0200, Jarkko Sakkinen wrote: > Check for every TPM 2.0 command that the command code is supported and > the command buffer has at least the length that can contain the header > and the handle area. > > Signed-off-by: Jarkko Sakkinen I think this could be bundled with Stefans patch. It is fairly independent of the rest of the patch set. /Jarkko