Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5753593ybi; Wed, 12 Jun 2019 07:56:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpunohHaAXEuz73HFkC6dmrTpz1eNbQ+auZzJEp7i0zEXgxyF779LLVOZ4KFZb2gcGL5GP X-Received: by 2002:a62:5253:: with SMTP id g80mr39025670pfb.179.1560351398088; Wed, 12 Jun 2019 07:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560351398; cv=none; d=google.com; s=arc-20160816; b=GiZt8tj/OvsOABQZP7fouqEQETEoTrCAKFUl98NAnN4CC6i8BHiCb8gyacXNxRfeDv iRJs+hhaBx42ugYhRAQJEySThh3GIlqWuE1XDuEsFSxgMWbX2bgij7XESI22Z8NkzkV+ iY1G+W0L0WjI8X6WI4z8RWzIEiWEWSN+nPTiEBw66TzBy2iFRe4tF0PqqjNeMNkyCq7v 0nSM0JIBJHdqS8hAOGl0ikOFZbFNa3Mn+DYkvVMKWmNlL5FAjeOCK8g4M6jJaTedYdZB HKG644q07ckCVMLkHpefEpj+9CjzOjhi0x/wnMcLvzKS6My+tItp7ZUJnu1Lumz6qZ2+ GAzA== 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=k669vQMMk218ZpRWnUP6WOAw//EazWv7Xq/YbuLotsU=; b=WEyRvh9i1svWjwH9CsHWTuwkAbUxOaTI+laB7PBrlf/2T06e1S+DLJEs3pL+q6r2Z7 lCh7r7aX+NxKwvhDUvb0TMPQJQ3C5zDrYHPUBI8RYp9YRHPwnIqqgMt4axP+yk68yHPo +DA+9RyXcNZZH2kfS4lIsaz/EpcwhGdFmbHWYQPx1iOVMxrK/FW1lXHZXPtttMlT2VyZ 9dlfs2vjbHJv7vcSdm6OuFez91qg/tH6Rm0doxeoNoOCDayZHfy0atSLJC86u5r3u1Ns u3DCet21Lmmw8ukO+qvMI+RJPsjDH1ZIISZ0iALH4iR3dRL93nMgm5MrmdqQzd43WE1E 2JOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TIBJgUyx; 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 w3si16074416plb.385.2019.06.12.07.56.23; Wed, 12 Jun 2019 07:56:38 -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; dkim=pass header.i=@kernel.org header.s=default header.b=TIBJgUyx; 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 S2438147AbfFLLBK (ORCPT + 99 others); Wed, 12 Jun 2019 07:01:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:54740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438139AbfFLLBJ (ORCPT ); Wed, 12 Jun 2019 07:01:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 19A30215EA; Wed, 12 Jun 2019 11:01:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560337268; bh=Bc8DSSK/Q4dKW34UNtmlQQLvhF3WzSmicjElN1lBdIc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TIBJgUyxfRdK8s0b1w5SkuM6q5N1Um/kDz+QYCpUeiRYTuO6CePCfvhKplIO+U9dJ diqzVipkM5iRgMFDL9ILseL8+kifsW7fUvo+bAlQKYc9J9s3qcXP/KCy6mX3rjTmH8 ZkR4ZDd2vuLKSUA9dBjAARn+R5QOZ20Qfzi4zXmI= Date: Wed, 12 Jun 2019 13:01:05 +0200 From: Greg KH To: Thomas Gleixner 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 Message-ID: <20190612110105.GB22303@kroah.com> References: <1560304465-68966-1-git-send-email-zhangxiaoxu5@huawei.com> <20190612071534.GA14367@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 09:29:48AM +0200, Thomas Gleixner wrote: > 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. That wasn't obvious at all, and wasn't cc:ed to stable to start with... Anyway, I'll go queue this up to the 4.4.y tree if no one objects... thanks, greg k-h