Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2348244pxb; Tue, 23 Feb 2021 05:06:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7UXM/CiAyiVuoFuGEEU4WahpdmNfgzssMocL/bPZWuBn1yjwke92rlNs9z1jv9vTvfeqN X-Received: by 2002:a17:906:f119:: with SMTP id gv25mr11037543ejb.293.1614085564669; Tue, 23 Feb 2021 05:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614085564; cv=none; d=google.com; s=arc-20160816; b=gvb6USB9PY3p8T9gnTPcW3OMJpUCT4sbExqVLtbfYJ7lnFQtsWdppzzr7DusAO18Bs lKXGn9RUC/SmtW9051hwKfGqjwtHhtBgyBvU4K6W4Q72OJsHlBskgEOtcAtqwJ9AILq7 Fwfa0ZHzkL4Vv6z0b/I6A/karVyVDSz/WUzrRgEOObbAVMeKw7ljQyqmpho8UuQiY1+0 Jlc8YxLj5n+f43dVdyJox6wyOivfJ54fWXAri1p5Hwk/c0Wyy9EShiDfAJDTGy5fYxV3 JZZp1TUsm4PxDV3j/qhPzMBJhfJzeZuFd2LXQSxbdzsqnBsOQbmd5KNGRUrZcqsxcUN+ JDng== 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=Y1nlscoUlAfPiCUvmVaQSC/ltNah0IXcq/nEbp/8+XY=; b=yF9TdGsTQRV9S00iJpLW+reQDfHo/0f18OieGGuI7knqx08LCNlO9bigZKsOrwMrb+ d1Cyj//bfMxUZElbAF+dMs1rncv2RphHSrWYdLpuz2OhpNjSFWOWr23Cx4HwDS/jHTKT CvuVpqf68y9EBTPLY+jvA5pVGYGXsniaoRHGI+EsKZtRjNb4AI9Xk3Q2nUuDwRMV65T7 +16RuGxraHxKll0SVRsPnhD3y/Go4f/TEqAEeX73Sc6hwncZiXB8ryaop5EBvghsgG7Q CKy2SltLE+Ty/xhwfnhh5RoPnAgDarmlphY4V2a6QoZTcPPJPpdPluPR6jNx9TPQJCV4 z9Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CuGjiL32; 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 6si13646829ejm.364.2021.02.23.05.05.36; Tue, 23 Feb 2021 05:06:04 -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=CuGjiL32; 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 S232833AbhBWNDm (ORCPT + 99 others); Tue, 23 Feb 2021 08:03:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:48144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232845AbhBWNBS (ORCPT ); Tue, 23 Feb 2021 08:01:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id EE6F36146D; Tue, 23 Feb 2021 13:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614085224; bh=jmhbM/Q86DGpet7rFtpBwvtw5vAoO8WhXHDnS9HOGZo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CuGjiL32Bmtk/nhFGkkkoUkSW2pGW5a7Q8SawW7dD81Ia8YznqVxu5oeeu+pbg+K8 dSAZniXVWK7ZE2gLZ8UehJnH+sd0Un4ju3HyTmEVA7YQFy7te6hSB5ZsYvLvx5MaHT PHXDNGgh3PMS2u3BY6MIrHi74KEwGLajj258rd5c= Date: Tue, 23 Feb 2021 14:00:22 +0100 From: Greg KH To: Xiaoming Ni Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, sashal@kernel.org, tglx@linutronix.de, wangle6@huawei.com, zhengyejian1@huawei.com Subject: Re: [PATCH stable-rc queue/4.9 1/1] futex: Provide distinct return value when owner is exiting Message-ID: References: <20210222070328.102384-1-nixiaoming@huawei.com> <20210222070328.102384-2-nixiaoming@huawei.com> <3bc570f6-f8af-b0a2-4d62-13ed4adc1f33@huawei.com> <76f6a446-41db-3b7a-dcab-a85d0841654f@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76f6a446-41db-3b7a-dcab-a85d0841654f@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 10:11:37PM +0800, Xiaoming Ni wrote: > On 2021/2/22 20:09, Greg KH wrote: > > On Mon, Feb 22, 2021 at 06:54:06PM +0800, Xiaoming Ni wrote: > > > On 2021/2/22 18:16, Greg KH wrote: > > > > On Mon, Feb 22, 2021 at 03:03:28PM +0800, Xiaoming Ni wrote: > > > > > From: Thomas Gleixner > > > > > > > > > > commit ac31c7ff8624409ba3c4901df9237a616c187a5d upstream. > > > > This commit is already in the 4.9 tree. If the backport was incorrect, > > > > say that here, and describe what went wrong and why this commit fixes > > > > it. > > > > > > > > Also state what commit this fixes as well, otherwise this changelog just > > > > looks like it is being applied again to the tree, which doesn't make > > > > much sense. > > > > > > > > thanks, > > > > > > > > greg k-h > > > > . > > > > > > I wrote a cover for it. but forgot to adjust the title of the cover: > > > > > > https://lore.kernel.org/lkml/20210222070328.102384-1-nixiaoming@huawei.com/ > > > > > > > > > I found a dead code in the queue/4.9 branch of the stable-rc repository. > > > > > > 2021-02-03: > > > commit c27f392040e2f6 ("futex: Provide distinct return value when > > > owner is exiting") > > > The function handle_exit_race does not exist. Therefore, the > > > change in handle_exit_race() is ignored in the patch round. > > > > > > 2021-02-22: > > > commit e55cb811e612 ("futex: Cure exit race") > > > Define the handle_exit_race() function, > > > but no branch in the function returns EBUSY. > > > As a result, dead code occurs in the attach_to_pi_owner(): > > > > > > int ret = handle_exit_race(uaddr, uval, p); > > > ... > > > if (ret == -EBUSY) > > > *exiting = p; /* dead code */ > > > > > > To fix the dead code, modify the commit e55cb811e612 ("futex: Cure exit > > > race"), > > > or install a patch to incorporate the changes in handle_exit_race(). > > > > > > I am unfamiliar with the processing of the stable-rc queue branch, > > > and I cannot find the patch mail of the current branch in > > > https://lore.kernel.org/lkml/?q=%22futex%3A+Cure+exit+race%22 > > > Therefore, I re-integrated commit ac31c7ff8624 ("futex: Provide distinct > > > return value when owner is exiting"). > > > And wrote a cover (but forgot to adjust the title of the cover): > > > > > > https://lore.kernel.org/lkml/20210222070328.102384-1-nixiaoming@huawei.com/ > > > > So this is a "fixup" patch, right? > > > > Please clearly label it as such in your patch description and resend > > this as what is here I can not apply at all. > > > > thanks, > > > > greg k-h > > . > > > Thank you for your guidance. > I have updated the patch description and resent the patch based on > v4.9.258-rc1 > https://lore.kernel.org/lkml/20210222125352.110124-1-nixiaoming@huawei.com/ Can you please try 4.9.258 and let me know if this is still needed or not? thanks, greg k-h