Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3281595pxb; Mon, 1 Mar 2021 06:21:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqfcOsG7COJx3hhnPVGK49KCCNYgM+Lqmnp55+RhfRk3JfyqHmbK2kiqxI/cwNwkmbQCrQ X-Received: by 2002:a17:906:6b1b:: with SMTP id q27mr15673691ejr.508.1614608478331; Mon, 01 Mar 2021 06:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614608478; cv=none; d=google.com; s=arc-20160816; b=l4QTAF/FgH1P2zEdLeSCpXrFduMenxVdZpd2CPo64H/W/V9ODJDhAh5Yq9AEUDbazn 8JrLzLQR/l0ZdMM3tJqA90gTTwht8SPnVM6L5hkZvt+jk/Nnb/mjIdWWwYxT0KalgdMM Hi+jg14eB9qHemVpCXBnM0d+K2WwHAAgxFjr+XOcDEo5JSP3QJFXcdnMFHkW9i7UAT2G 9ihGn6csoXPyO1Q8kSDOe7VHtz0NmS5bmUBiHFV6qwfk5rEIj76NpKKK83A/M5TnrRH4 ywA/IkNndkav/7ajVuRJICCbu2ehairXC9fXHuTR8BmYQYYetxyqE9/ViP3HM5Go3+zb YvAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b9Mff6km4PPdgzuZY3aHsE35LKKVtoX6c1Pd79R7474=; b=EjcrKhtqOgWQcDZsska91aP6QjEA5A5Sb54OS3RXAilLOiFiYfh4oTr5WT1WRr9ZgC t3wYqsAw7NBsbsE/q8KOgmEfQiXXEg7dGkWH5OPw2q/4utbE6AzRE8Y8dsXdRav/dH3p SjdvCle6gUmJMDGpOlxhec/dAYCVg4banPnqw2Wvqvf1EXWnJPphGhQf/ixTLmEyl7Qa 1km5MRXgd6nSj6PcF5v72lx4xGLwgp2Cjcn+AkT2dlgEv5XeDewDtuFYtHkNsTU8PQ+Q 42pzd/AxPiJR6fPLcrHu8oKZ9WR2TjMkM0LrYnC95YS8FVovbyG161hcnawHj65u075H Sa5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RCX7w0rr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s28si3042944ejm.721.2021.03.01.06.20.52; Mon, 01 Mar 2021 06:21:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RCX7w0rr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236298AbhCAOQN (ORCPT + 99 others); Mon, 1 Mar 2021 09:16:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:51110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236217AbhCAOQJ (ORCPT ); Mon, 1 Mar 2021 09:16:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DC1D64D99; Mon, 1 Mar 2021 14:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614608129; bh=9mINMwSlE6Lx+Ht6ULSem8ouBs47qezztpHF+PAhhSw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RCX7w0rroZjBI8wWRNDjIQ6u97soKDKpqx2MH4Ow+ELjyIAvn7gdp7gLdYXPCAoxb 4dAU3od2y7UJwkyNEZRCHM0A5nL6iRyL/XoasmSWGzPoaIZ8phj3c///f6um+Y9WkW QW0o+YDkedxfj5hNqUO+q0y7Og2NNIhhRVZiQzkg= Date: Mon, 1 Mar 2021 15:15:26 +0100 From: Greg KH To: Zheng Yejian Cc: lee.jones@linaro.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, cj.chengjian@huawei.com, judy.chenhui@huawei.com, zhangjinhao2@huawei.com Subject: Re: [PATCH 4.9.y 1/1] futex: Fix OWNER_DEAD fixup Message-ID: References: <20210223144151.916675-1-zhengyejian1@huawei.com> <20210223144151.916675-2-zhengyejian1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210223144151.916675-2-zhengyejian1@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 10:41:51PM +0800, Zheng Yejian wrote: > From: Peter Zijlstra > > commit a97cb0e7b3f4c6297fd857055ae8e895f402f501 upstream. > > Both Geert and DaveJ reported that the recent futex commit: > > c1e2f0eaf015 ("futex: Avoid violating the 10th rule of futex") > > introduced a problem with setting OWNER_DEAD. We set the bit on an > uninitialized variable and then entirely optimize it away as a > dead-store. > > Move the setting of the bit to where it is more useful. > > Reported-by: Geert Uytterhoeven > Reported-by: Dave Jones > Signed-off-by: Peter Zijlstra (Intel) > Cc: Andrew Morton > Cc: Linus Torvalds > Cc: Paul E. McKenney > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Fixes: c1e2f0eaf015 ("futex: Avoid violating the 10th rule of futex") > Link: http://lkml.kernel.org/r/20180122103947.GD2228@hirez.programming.kicks-ass.net > Signed-off-by: Ingo Molnar > Signed-off-by: Zheng Yejian > --- > kernel/futex.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Now queued up, thanks. greg k-h