Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3840718ima; Mon, 4 Feb 2019 06:08:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN4vkTezGxPHGxUV0S8QmUUL9bocEoCHWZZfjtB/TdtlnmVOzejqN8MZb0p1WL77v5v2Cd+a X-Received: by 2002:a63:ce50:: with SMTP id r16mr46088291pgi.217.1549289313454; Mon, 04 Feb 2019 06:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549289313; cv=none; d=google.com; s=arc-20160816; b=c6/Ey9Eng6qjDz9NzyDXBOGsQmNINrr4EV/QGrg9F4FgFVMrTu+q9tuNz4Gjn8QwL7 /zJUQSbQaFPXSA5FddtVdMLd14pDjB4OFqM9OzLOBIAFNwDwf0vjssoKOt4hqewhKMLs P8j2MRB22+x9LrH77efhPqjyJ8eWS5MpCrCTNgq/DJiJNLusJmk6/7q6lKamdpfIm7on /qCySKPGrWFo+y9/ZpAx+7Z4jcDHhXR2BVy4S/25OEWf2v2hmfJ1dE9h88gP9fBAnpLX etzknMjdsrjhj3VysyP0dEBxKbLuqnEdwZjF8PR9JZo/cx9kHRKmDrycjvopMHpWDrzx 1C0w== 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; bh=0tZ8KR2kGljWmOx66j+9ViQg6bl2og0JNfSsfQLl1Ls=; b=eid/x2lb3Mcb52CrY6zV7RpcItWVE+nn6sumeIbaHmmEusnNHdb6r9q7MOImAV+O5G 4LJqLDXwpCbHfB8M+rR7f1iG5H8EiG/gYUcypig2MorZY69N6pSIRKk6nr6rx39yoIYo TTEPr9eOfi3VjH+1zFWu9eylPOpZ2NUDXRKynZ1EYKjUuF0B2iS2XgKgASWk4QcD/2sS L65Eq2NRvvDb+jJrr47QYGN8NQqiTLc0bN0JPr+aWZ4c/y1hV8F9Gb6RqjcvQOYCBMOx QYMFTo4+AqWoEc9IQIO4LudwJIk80eBCTJhFBP10Vaaqw6pbEJVP7d/fx5g6hikYiaSL 9mAg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si128114pla.352.2019.02.04.06.08.16; Mon, 04 Feb 2019 06:08:33 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729434AbfBDLr3 (ORCPT + 99 others); Mon, 4 Feb 2019 06:47:29 -0500 Received: from mga03.intel.com ([134.134.136.65]:21552 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbfBDLr3 (ORCPT ); Mon, 4 Feb 2019 06:47:29 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Feb 2019 03:47:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,560,1539673200"; d="scan'208";a="115115028" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.172]) by orsmga008.jf.intel.com with ESMTP; 04 Feb 2019 03:47:25 -0800 Date: Mon, 4 Feb 2019 13:47:24 +0200 From: Jarkko Sakkinen To: Linus Torvalds Cc: Linux List Kernel Mailing , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, stable , James Morris , Tomas Winkler , Jerry Snitselaar Subject: Re: [PATCH] tpm/tpm_crb: Avoid unaligned reads in crb_recv(): Message-ID: <20190204114724.GB26799@linux.intel.com> References: <20190201111949.14881-1-jarkko.sakkinen@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.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 01, 2019 at 09:49:05AM -0800, Linus Torvalds wrote: > On Fri, Feb 1, 2019 at 3:33 AM Jarkko Sakkinen > wrote: > > > > Thus, it makes sense to fix this also in tpm_crb, not least because > > the fix can be then backported to stable kernels and make them more robust > > when compiled in differing environments. > > Ack, looks sane to me, and should help both the backport and probably > generate better code too. > > In the meantime, I've committed the iomem.c change with a *long* > commit message. For all we know, there might be other cases like this > lurking somewhere else that just happened to work. Plus it's the right > thing to do anyway. > > Linus Great! Umh, so, should my tpm_crb change committed to 5.0 with the minor changes implemented suggested by Tomas or not? Can also include it to my 5.1 PR. Either WFM. /Jarkko