Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2651643pxb; Tue, 23 Feb 2021 12:02:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYkzAvtwvrK0j1vyIpapXfbx4cIndP56UaWACVpo2r869UhxnHj+g4SrGpwJEdWttpFF9S X-Received: by 2002:a17:906:71c7:: with SMTP id i7mr20210539ejk.401.1614110546585; Tue, 23 Feb 2021 12:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614110546; cv=none; d=google.com; s=arc-20160816; b=AQ8NaKj9QcarV7Fot3fzpC3YzcGyVILYXCooP8eYeR2v6yW7WztgMj0ibnK4eXQEJL pfaWyF+YR2rvKJ8G4emez5OW6gHGzJ1NfJZJPB+YX2jNAUWaXfKbQtQE0ZfbHu+Yg1AM P66+xVYo/S+T4GQ5vM7iYCUryDW9MHsbqqcAuADQVh69nBzk/GPs43qZWmJCz5hfyujm dJwlrtWbwlfstZoTw/w17OfH4fctYAiHgpG051DwzdYwRaUqHweJX+GvClfJOm3g7hBB eDD0FlyHyyaRKLjCEByWsBQtxP4OZSeoPFsCWy9fVmkoKbVSgFjwduBn6fANZCrUySaI LdAA== 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=FYEcHJs+qxbGagB7eb6hxPWr9DZw4ICXFKfUOfE7E+U=; b=pETAEg8h7iYE+WyaDrtth1h0CwQUBZ83Q6G7wA1lN+RDFFfMK+/mEGkNgGa/T/3Ffy ZPzw9Fvokczc2vstVe1badcXdg5tPuPkQi4nxQRpRjcoB0siXH3skf0yAHOe5cNl668k PWUCIF6mmgsB1JVp1UBB8/dLnNIMhoFbmkq0bPL+bCbVPG0m8jMCXeXq3sR3UIVjfrIf 0o/eUDwyYUaETcwz8JhX4dm9YXETltfG8SJfJvSn4JHbuTxDh70y9zPd278PZm2AKOwJ BxXXgVoISXoO/bvj9FfuSUcFQsnsaMDBWilnA5Hck5BS/AODLanHO/dP8RWG2ovojrMr sq4g== 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 o25si6756050eja.558.2021.02.23.12.02.02; Tue, 23 Feb 2021 12:02:26 -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 S233086AbhBWOgC (ORCPT + 99 others); Tue, 23 Feb 2021 09:36:02 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12946 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232466AbhBWOfy (ORCPT ); Tue, 23 Feb 2021 09:35:54 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DlM3m0rbZzjQf7; Tue, 23 Feb 2021 22:33:24 +0800 (CST) Received: from code-website.localdomain (10.175.127.227) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Tue, 23 Feb 2021 22:34:32 +0800 From: Zheng Yejian To: , , , CC: , , , Subject: [PATCH 4.9.y 0/1] Bugfix for 781691c797de ("futex: Avoid violating the 10th rule of futex") Date: Tue, 23 Feb 2021 22:41:50 +0800 Message-ID: <20210223144151.916675-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/?h=linux-4.9.y&id=5b1d078507bd33ebf6c2083fa363cf5832809c19 > 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.25.4