Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp687299pxf; Thu, 1 Apr 2021 10:56:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3BjeD6ggLx71hQSIKqkh+gjPp/Vkd1YXVuZvC13Xv2tqaicuHzfeMdCy00DoE6B47nq8o X-Received: by 2002:a02:ca13:: with SMTP id i19mr9122682jak.47.1617299760435; Thu, 01 Apr 2021 10:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299760; cv=none; d=google.com; s=arc-20160816; b=EiqLru4ic5OoyOuwfgsfvR86ULZL5JFOSXl65QNhDADYBG1cn2GbItbmGqtncNdLjb NpioPQ9yYv3m9dUqeCmGobD1eJpb/mPtx/ovAIw7kui6stcWcbLLXd/OfyaPi0Ci1CI1 cklZOQwiaGYAAKMCJSlg19MXzie3Y1Wq6T3Ga0i0LlDQxabzofsjp/FbRIJ2sDWIkqXE CMtIvKERPggGlXrBlC+3TGayiXfldO/eENETP5M6RN67f8azgeSSeJTTjG7U/XEUYBid kOpctBudgclu2uJwH+lOTw1g6SOAiuA4ugOyWLIvqRMkA6VnfgREqruivY3zJ++KT1yL pHhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=cOQkEvVXi2Xxj2vFnIZCPnx7wWvx3P8AA1oMc93LYSg=; b=g0JeQVQjzreS5fh/LS5doLqZdHHcJoe+8AVhQS2ubz5eyfFmjnoX2G4fvDkor4p49u 6pb6V/ePV03TqJP6TzBaOWmZEbd2fiohkCF8ifMSqBVf4a7eLrwTpYOoudj5ddFiW3+z uUeAHJuWv3uvvF49uNrQvQZVLrfeZ1lKve6ov+Sozpg23qt2sheVV1YcGT+OZ9DVt5Hi LpK363nRO8slpyjEbS4l1prUL6x1xoO1fOxKiPPf/4OCCZp7+52/tiHLaIdEqGRyOqVb lpdJadS4cyxvz0SepaNYU5Rkw95WymUBhb/icpxFVLEAVZg2PrqxH6Dyjqu+8QQVzZnb ek2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@mail.ustc.edu.cn header.s=dkim header.b=O6wPq+OU; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si4781757jaq.98.2021.04.01.10.55.46; Thu, 01 Apr 2021 10:56:00 -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; dkim=neutral (body hash did not verify) header.i=@mail.ustc.edu.cn header.s=dkim header.b=O6wPq+OU; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235240AbhDARw5 (ORCPT + 99 others); Thu, 1 Apr 2021 13:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234889AbhDARlC (ORCPT ); Thu, 1 Apr 2021 13:41:02 -0400 Received: from ustc.edu.cn (email6.ustc.edu.cn [IPv6:2001:da8:d800::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06FD5C022584; Thu, 1 Apr 2021 08:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ustc.edu.cn; s=dkim; h=Received:Date:From:To:Cc:Subject: In-Reply-To:References:Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID; bh=wmXPJkyyre8yO1CKTCpRZz7wLSxkpPRR5WXx /hPtxME=; b=O6wPq+OUGRCgMtesXvQuGSmHShhvPTLjDIyX5nTgJUupZw3E8LGR gTxfyFFCtH5BAVhDK9tHdGKkgcpsTKvuBuf1YB8Pkz6KmeQHu3/926K5wQHszJhQ Cg2E7yRLhostKVH6pb06B7B4KmZ5Z2y4vqVPTCvqvjV1tnLx1Zd0G0U= Received: by ajax-webmail-newmailweb.ustc.edu.cn (Coremail) ; Thu, 1 Apr 2021 23:17:27 +0800 (GMT+08:00) X-Originating-IP: [202.38.69.14] Date: Thu, 1 Apr 2021 23:17:27 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: lyl2019@mail.ustc.edu.cn To: lyl2019@mail.ustc.edu.cn Cc: =?UTF-8?Q?Christoph_B=C3=B6hmwalder?= , philipp.reisner@linbit.com, lars.ellenberg@linbit.com, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com Subject: Re: Re: Re: [Drbd-dev] [PATCH] drbd: Fix a use after free in get_initial_state X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT3.0.8 dev build 20190610(cb3344cf) Copyright (c) 2002-2021 www.mailtech.cn ustc-xl In-Reply-To: <5b14fa53.26b7e.1788dff8d13.Coremail.lyl2019@mail.ustc.edu.cn> References: <20210401115753.3684-1-lyl2019@mail.ustc.edu.cn> <5b14fa53.26b7e.1788dff8d13.Coremail.lyl2019@mail.ustc.edu.cn> X-SendMailWithSms: false Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <17336352.26b99.1788e02bf3d.Coremail.lyl2019@mail.ustc.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: LkAmygBnbkII5GVgfdWCAA--.3W X-CM-SenderInfo: ho1ojiyrz6zt1loo32lwfovvfxof0/1tbiA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