Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2344454imu; Thu, 24 Jan 2019 11:05:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN4eCZQHKL0+5LccagmU/HTj5rJrneXrziYdEf+zF57wiNHZHhORK7V5BeMlDLqUA3Y4i/Sj X-Received: by 2002:a62:76cc:: with SMTP id r195mr7710127pfc.38.1548356745786; Thu, 24 Jan 2019 11:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548356745; cv=none; d=google.com; s=arc-20160816; b=qdYbutSbA3DUmJtIKyiaolCyWFJnAggs/FW7Yi3eTSZXpDssLlnv+XO6S7muxBlpp0 mwvcmBnNkwKz/rQNj+JkT53XJ1QwMqFIWoAKcdUPz5pNj/Vw0pYb9wGR2CJQjDNqs+oa llJ1uk/Tk/Ipo7PToPbZI8GkO5/6gvRJQJqfY/CcnSyNZZQej3cUDlTwW3zcI+7NijFq G8gM9JS0BK00tzDE9tS41aky2HGzPOBVD2dU8zDanwY5hZPho+UuKLKj33eIA/vRc7xa 4v1R/4ePgJRLWorRgBKsTL3LDxFQ52GDXv+OzI9vEGA3OQl+G9WQby8nx9ABdmef7Iyb s8XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UQz6bIerBF6WvF9bB6Q5e0QAwxbtr/GPT30DNtQaYdU=; b=emzCIYWLcQtSp9oRMRrRHthfQxCB/mXzRRK2H4ayTuAaM03ZprpxLIsGKBP7SgYC18 QStQt+/GZ39AELQI+Us4SQy/Z6Ft41lcHTpg8Rl9D5+rjlt+O6h6tl/WBl2bCKxi0GJ4 6yMh3Qdcs27J/UAsNpPeZf66M4RUh8dDQjtS1kw/vqZhc+oZk8/FouRzOgK5w0W5QmUR OWhGh/xBrynIMleTQipMI7mi2SpnN71mTpNUWd0bKxdYYZ0dEqk/gQsfJHrNw27rfJQc 58NVBSPE+xhtAtobmmKw+LBeu2wHNjvqd75e/x+MqE8qa+KEntGFa6kUNOujIo796gcM mcuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=syZVieD3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si22326748plz.118.2019.01.24.11.05.29; Thu, 24 Jan 2019 11:05:45 -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=pass header.i=@kernel.org header.s=default header.b=syZVieD3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728499AbfAXTEJ (ORCPT + 99 others); Thu, 24 Jan 2019 14:04:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:37818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbfAXTEI (ORCPT ); Thu, 24 Jan 2019 14:04:08 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D2E55218A2; Thu, 24 Jan 2019 19:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548356648; bh=kOnuYNYDy15N5B74rTqYFeUF1hRqsnVaTnt4kzyacuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=syZVieD3j+CPsWiRf5W0zYUUCzsOmaV3nHkYsASpDClqk46tTuxqQHdC+Poc1EM7W nSef+l7Q5R5yMMX1E1aEwsymfKvtYnfvrQySBxXxfcIw56e8YKV57+o/0NCDbTxpti OHJtS1HSo81GHZGwgrR1+CEetA3Ta48bW5BmfGdw= Date: Thu, 24 Jan 2019 20:04:05 +0100 From: Greg KH To: Will Deacon Cc: linux-kernel@vger.kernel.org, Dave Airlie , stable@vger.kernel.org Subject: Re: [PATCH stable-4.9.y] locking/qspinlock: Pull in asm/byteorder.h to ensure correct endianness Message-ID: <20190124190405.GB32078@kroah.com> References: <20190124185415.29830-1-will.deacon@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190124185415.29830-1-will.deacon@arm.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 06:54:15PM +0000, Will Deacon wrote: > From: Dave Airlie > > This commit is not required upstream, but is required for the 4.9.y > stable series. > > Upstream commit 101110f6271c ("Kbuild: always define endianess in > kconfig.h") ensures that either __LITTLE_ENDIAN or __BIG_ENDIAN is > defined to reflect the endianness of the target CPU architecture > regardless of whether or not has been #included. The > upstream definition of 'struct qspinlock' relies on this property. > > Unfortunately, the 4.9.y stable series does not provide this guarantee, > so the 'spin_unlock()' routine can erroneously treat the underlying > lockword as big-endian on little-endian architectures using native > qspinlock (i.e. x86_64 without PV) if the caller has not included > . This can lead to hangs such as the one in > 'i915_gem_request()' reported via bugzilla: > > https://bugzilla.kernel.org/show_bug.cgi?id=202063 > > Fix the issue by ensuring that is #included in > , where 'struct qspinlock' is defined. That is crazy... Thanks for the patch, now queued up. greg k-h