Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5392621ybi; Wed, 12 Jun 2019 01:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUvNiuTCXUgFlcKYCXaSHEUGHB3UxmHmRpSn+TEEMK/99mxQipelTbcYgkoE62dQpuacvG X-Received: by 2002:a17:902:c83:: with SMTP id 3mr22573750plt.326.1560328556430; Wed, 12 Jun 2019 01:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560328556; cv=none; d=google.com; s=arc-20160816; b=tUQeESklfb8DKwUAunlYmDjapjUCmWmgVMBaVD6ZXJ0uON6Xv/zsN2Xz6MQtyRbNtP Js1/P5S6F9jHF2BEForMjSXHTb0bUNURxmcmxuvQVyJ3VXhHuudIbNdTis914LF5Tq/S IVvSA0nkofXObX84EIAJGAKttQgfFVEldnhNvW2y0N62GuWNAFYbHigCXmHyNNoLrPDi 7tydSOtGCMxD4Eim4ZWufrXsqN3UUDnpvF5gtk7w5fqJEUnVOxWjjkoZs6BJByRCm7Zo gXUu6QS+t+f2C38uzVr+HH+OCw0uGnFNuf99XA6VT8Hw4OD2Tvxg8iK7sBhzXJ3J7cwm p74A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=qUc75h1Hq4XLpCs1yu8WmMPoWhyUu0Vsldjk+7/jXgs=; b=PYolfdFlxzUpjmJHytTyimKEpcjbI5YCA1ipBDBBemtCzKk6IVovult1ciDFIkudjS zHf/Sp0A8C60qUj0Qe2mLXaLYz/31FiA8n0tdnfMPcSUkoA8PYjCN5YeUAYVwU0co7rD 8bDQYNoZYaZu4j7FEX1Jexhjgl0gElinuPjSy5OByL49VFlNH4sLj/g/7TWs1aZhT6+h hYn2t3u4kDnq0BiwN90a127EO5DDnCRkADfSA329+B6PCYu88eGi3tjuk3QZEH06rrBQ lvpyHdkov9azuj+gQzd7AlXQftW6+ig5zAP0cm/AdmEoxzXeGQ+0DmcNJtQcaX4GnC+V aEqA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si4623072pjq.67.2019.06.12.01.35.40; Wed, 12 Jun 2019 01:35:56 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406370AbfFLHaD (ORCPT + 99 others); Wed, 12 Jun 2019 03:30:03 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60451 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406252AbfFLHaD (ORCPT ); Wed, 12 Jun 2019 03:30:03 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1haxhd-0006Lj-Gk; Wed, 12 Jun 2019 09:29:49 +0200 Date: Wed, 12 Jun 2019 09:29:48 +0200 (CEST) From: Thomas Gleixner To: Greg KH cc: "zhangxiaoxu (A)" , mingo@redhat.com, peterz@infradead.org, dvhart@infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] futex: Fix futex lock the wrong page In-Reply-To: <20190612071534.GA14367@kroah.com> Message-ID: References: <1560304465-68966-1-git-send-email-zhangxiaoxu5@huawei.com> <20190612071534.GA14367@kroah.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Jun 2019, Greg KH wrote: > On Wed, Jun 12, 2019 at 09:50:25AM +0800, zhangxiaoxu (A) wrote: > > This patch is for stable branch linux-4.4-y. > > > > On 2019/6/12 9:54, ZhangXiaoxu wrote: > > > The upstram commit 65d8fc777f6d ("futex: Remove requirement > > > for lock_page() in get_futex_key()") use variable 'page' as > > > the page head, when merge it to stable branch, the variable > > > `page_head` is page head. > > > > > > In the stable branch, the variable `page` not means the page > > > head, when lock the page head, we should lock 'page_head', > > > rather than 'page'. > > > > > > It maybe lead a hung task problem. > > > > > > Signed-off-by: ZhangXiaoxu > > > Cc: stable@vger.kernel.org > > > --- > > > kernel/futex.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > I do not understand. > > Please read > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html > for how to submit a patch to the stable trees properly. > > If the commit is not in Linus's tree, then we can not take it, unless > something is _very_ broken and it is the only way it can be resolved. There is something _very_ broken. Upstream is correct but the 4.4. backport of the above commit is broken (93dcb09e29bb24a86aa7b7eff65e424f7dc98af2) in the way Zhang described. So it's a 4.4. only issue. Thanks, tglx