Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp322237ybg; Fri, 12 Jun 2020 02:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWJPvmM45qixlzmwx/3LCg342k+PVqDlu5Pi558TJQ3TfnTEEOuipGeo+oqT+OpSoBa+Uk X-Received: by 2002:a17:906:4a03:: with SMTP id w3mr12208416eju.154.1591954022184; Fri, 12 Jun 2020 02:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591954022; cv=none; d=google.com; s=arc-20160816; b=L/hzS5UlSWKsNbJWzEJbGxEifr8jUs0wayUQveaxgOKLwucQPJZGQYefIBQxEuYcNK nzdGBMWYtz0YaGmKf6H/Sg9SqbizeMAbSPyuTYXIo9wnBDhA1EchuDyNbfvFdMdaJdDh t0iM8UjoeWiQzBbjR4SxZmkJqxqMtvWLSRNN6VFcYUh3xScTR99VnNUBjUX4uUvGpKQd xTUuzpqFNgXXnbg1NcYvK8wzXXkqmzr+/WQK3KlDCAz+YSEdge4xVKAhi5twjOUTfC8g mZcV6zQWrAMAVCpWZ4JaN4rk+T0dq2Mjsl1eePoTSTDzdKLJNGA4QXNMknih/kmpbk+q vjcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=KUFUseFzvFXN0QKXn3grVbxgUV1SAJW33Guzmt98S3Y=; b=fUw4UGeqXNnw4DRSe1HNUAifF+yqqIwl+2yTMBSygkbFRD5BP1qqyobtMa55ILZX4A j+YNnM7XykEX9nYc2PzVVH870w/vzyT4n/rZd4X3ZRM2aAKNqij0kwd2GV4C3OkccOh2 WFl74wZ74IVHtnZW2OMx0xw4Rv5bnlDy003iJiCqaSYxrug3UgKbEMgvnwwYylLQfJwh ryFggD0yT5Fm3yp5VsRhgf6xq/sOX+LZb+/EMABDscyXRJ/UEXlbifCSs0kM4MPIJnj4 dU3liDtS0hLMPFOFm/0o74yTUAWK1abNEESvdfIjzwqWr2RAJrxLJxWcAtdDVsbiELfC im7w== 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 i24si3050985edb.577.2020.06.12.02.26.39; Fri, 12 Jun 2020 02:27:02 -0700 (PDT) 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 S1726448AbgFLJW5 (ORCPT + 99 others); Fri, 12 Jun 2020 05:22:57 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:44290 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726335AbgFLJW4 (ORCPT ); Fri, 12 Jun 2020 05:22:56 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D606CA52C38657261C74; Fri, 12 Jun 2020 17:22:54 +0800 (CST) Received: from [127.0.0.1] (10.166.215.205) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Fri, 12 Jun 2020 17:22:51 +0800 Subject: Re: [PATCH v2] 9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work To: Dominique Martinet CC: , , , , , References: <20200612090833.36149-1-wanghai38@huawei.com> <20200612091044.GA11129@nautica> From: "wanghai (M)" Message-ID: Date: Fri, 12 Jun 2020 17:22:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200612091044.GA11129@nautica> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.166.215.205] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/6/12 17:10, Dominique Martinet 写道: > Wang Hai wrote on Fri, Jun 12, 2020: >> p9_read_work and p9_fd_cancelled may be called concurrently. >> In some cases, req->req_list may be deleted by both p9_read_work >> and p9_fd_cancelled. >> >> We can fix it by ignoring replies associated with a cancelled >> request and ignoring cancelled request if message has been received >> before lock. >> >> Fixes: 60ff779c4abb ("9p: client: remove unused code and any reference to "cancelled" function") >> Reported-by: syzbot+77a25acfa0382e06ab23@syzkaller.appspotmail.com >> Signed-off-by: Wang Hai > Thanks! looks good to me, I'll queue for 5.9 as well unless you're in a > hurry. Ok, thanks.