Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1475115pxb; Mon, 22 Feb 2021 03:00:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/6gIBIkWAASX0yWi5qzTpr2GsGlRsONYoiDuk09NkP3yTDkEi7krbe58p9LEPDp0RqruM X-Received: by 2002:a17:906:5d15:: with SMTP id g21mr21120919ejt.373.1613991647690; Mon, 22 Feb 2021 03:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613991647; cv=none; d=google.com; s=arc-20160816; b=M19ILxFOmIZnN6Afw0Yyuc2/pOiwbhCssxs1EVvgNP4MUjnCEM8fE0EZelGC1FTf37 cP3B6fgfdRTBW0aGrpMLrpeccPS1HKptTOT7n/VzXVFuxgUrbWO0X+cdeRmggFTkUAwk 7joKee7Vh7z8xyCeOFFbdVavzRmxKcsCOTXfx2bOZnzIOJPowC3HB81TAYBDvfWxVSWO eqah+LnfIbfdDBIxz9QeHISMwfoTrWsbP6l8sIch8EEHaxlr1TDZziHIK0Fd7tJxakMj scpNjGV4hUhJFHg9Tc1HluixG2eXVy2/FlVp8/hRVD6vwcbNAaL1z4t03ngCK3IsLuS5 Ae2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=K/+2Y6FZanYeEJnpufOCUaLXeaZkOiVi0BByo1fgC2U=; b=rGy5qlZ/eKeJWbH3FeueoFwt52/7p9LfkUZLlV2wsPVDydC3LlM2bP7q3H5OAlDBF5 v7sLl50GYDtBlIuHXQdvcL+peyOAp31UqlDQ3N39Txru9T+LgIPqrowzqkp3MmLAus/5 q6pUP3dxg0U8h1v0GS01/06xi2kDeb9L0SG/1vRhSGV0NNnwaSe+7uSdKN+uDOQys9J6 0Fjv9Zht6+t4JkR1xDsnsLE6TKtLyYetmZovt1L2JSW5rB6RDnc1xuJidohI4djunoNV GPkFyOSFCdbklDqkk83QSOCg2WjlT1nfPm3lomA3O16gVJNyTyeZzOXVyhqSnzPnB4E/ v1VA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si9172472eja.482.2021.02.22.03.00.25; Mon, 22 Feb 2021 03:00:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbhBVK7Z (ORCPT + 99 others); Mon, 22 Feb 2021 05:59:25 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12935 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbhBVK7K (ORCPT ); Mon, 22 Feb 2021 05:59:10 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DkfJl5797zjPvL; Mon, 22 Feb 2021 18:57:11 +0800 (CST) Received: from code-website.localdomain (10.175.127.227) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Mon, 22 Feb 2021 18:58:22 +0800 From: Zheng Yejian To: , , CC: , , , Subject: [PATCH 4.9.257 0/1] Bugfix for 781691c797de ("futex: Avoid violating the 10th rule of futex") Date: Mon, 22 Feb 2021 19:05:41 +0800 Message-ID: <20210222110542.3531596-1-zhengyejian1@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch may fix the following bug: Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/kernel/futex.c?h=linux-4.9.y&id=282aeb477a10d09cc5c4d73c54bb996964723f96 > static int __fixup_pi_state_owner(u32 __user *uaddr, struct futex_q *q, > struct task_struct *argowner) > { > struct futex_pi_state *pi_state = q->pi_state; > struct task_struct *oldowner, *newowner; > u32 uval, curval, newval, newtid; > int err = 0; > > oldowner = pi_state->owner; > > /* Owner died? */ > if (!pi_state->owner) > newtid |= FUTEX_OWNER_DIED; Variable "newtid" is used without initialized. Peter Zijlstra (1): futex: Fix OWNER_DEAD fixup kernel/futex.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.25.4