From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752569AbcLCPal (ORCPT ); Sat, 3 Dec 2016 10:30:41 -0500 Received: from mga09.intel.com ([134.134.136.24]:6338 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbcLCPaj (ORCPT ); Sat, 3 Dec 2016 10:30:39 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,736,1477983600"; d="scan'208";a="1094099274" Date: Sat, 3 Dec 2016 17:30:28 +0200 From: Jarkko Sakkinen To: Tomas Winkler Cc: tpmdd-devel@lists.sourceforge.net, Jason Gunthorpe , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH] tpm: use get_unaligned_be32 unaligned buffer access. Message-ID: <20161203153028.3xaqkamutio5gwgs@intel.com> References: <1479899094-9486-1-git-send-email-tomas.winkler@intel.com> <20161124133400.5dziisshpxqewkh2@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161124133400.5dziisshpxqewkh2@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 Hey, On Thu, Nov 24, 2016 at 03:34:00PM +0200, Jarkko Sakkinen wrote: > On Wed, Nov 23, 2016 at 01:04:54PM +0200, Tomas Winkler wrote: > > Use get_unaligned_be32 as b32_to_cpu doesn't work correctly on > > all platforms for unaligned access. > > > > The fix doesn't cover all the cases as also some cast > > structures have members on unaligned addresses. > > > > Signed-off-by: Tomas Winkler > > This looks good to me with the exceptio that was pointed out by Jason. > CC the next version to the linux-security-module. I talked with James > about this at LPC and since this list does not have too many active > reviewers it makes sense to cycle all the non-trivial changes through > that list. Are you planning to send an updated version of this. Should be a no-brainer to apply. /Jarkko