Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1566953pxb; Thu, 4 Nov 2021 04:48:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3KFvf0DOOgvIfMmgAxQ1rTjsaaU8sL3xiHoCP9DxgNVW5lWt+ywL4Uw44Q/uDCEOdDpnd X-Received: by 2002:a05:6638:140f:: with SMTP id k15mr3438159jad.105.1636026512375; Thu, 04 Nov 2021 04:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636026512; cv=none; d=google.com; s=arc-20160816; b=U68l/kW0Rv7Ew0XkvdfSlKLbtxWSbgLO9uJi6254hIFqusiqmnF9dy3epi5u8jIZm8 6+fS4ffqKfGj80fCBBVZmEWHU7AqduAe9AhSvemfEjYmG2SWSWJwmvyjVWw5OOCDo0an fB8I4CDlCXm1R2uL6a5lx0oMa/6hH6vMFvmyrfzSCDN2jTA3goYSzNOOQ0aouEsFjRU0 7jUUirssrLV9+uCrPhbMmUVV0+mTUGwsBLjfhm1YXIY1CeY31rtkw9XYeUNdiI1oMvg8 0lHoP1dPYWmtgAgZ7UfePBHR4JUY5aS8oegiFGxJGPYRBnNwkZLKhRhi+mIYUypNP9s+ AqZA== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=S1qFS1jMjwj/T0yJQwZvrrHWJoJ7Nzy4g0iaJHKu/8U=; b=avbQ6PAaRIJhRUFVqVUl3clGvgKv6wvXCUXi4Dcxo6BZCNhIzxauxLtmbPdCbSaSST 2jOj3v5xPYkg5gqu1WFeMA7kvlG9wkcs4JEaJmvUv2pXpCJjpejyiJgj+rvgNZO5er2y dtj8HNU4aI0NrIQuXqSCmgS/Y0+YofkkNAUEs81In+UOC+EwRSadkUwydcQlcyDEhfrD q17zCODKRQ6FjVRUzkBAHpz1Jx4uYHs2EutNJb5kJlDSHrZfoSitwHaK2Rd4vn7NbO1i uhPxsMSy+5keECNtFr4j1NytP83yMceq7j6NwoJ59UXEkP0lfbU0+jc04Xdgy4Q7AHKi phog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Kd3s6O7C; 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 m20si8905649iow.110.2021.11.04.04.48.19; Thu, 04 Nov 2021 04:48:32 -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=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Kd3s6O7C; 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 S231423AbhKDLse (ORCPT + 99 others); Thu, 4 Nov 2021 07:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbhKDLs3 (ORCPT ); Thu, 4 Nov 2021 07:48:29 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CF74C061714 for ; Thu, 4 Nov 2021 04:45:52 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id k1so5844187ilo.7 for ; Thu, 04 Nov 2021 04:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=S1qFS1jMjwj/T0yJQwZvrrHWJoJ7Nzy4g0iaJHKu/8U=; b=Kd3s6O7ChYxD9JC6o9s9ReXrYG1jiSKr+18sYKuUvK89lUyVpf0eG7b+uSXK34Gjf7 h1WOCyJp3hLuBR6JE4DrkqZ+l+SJdVtnPtx7iTdRTdzeQAHoU+ZV0RuzzA/0MhcP5Lqb oihE40aHorH9SIPFZQThFxbYXzQbwzfBCD9gnA4z9aXbbIMQNf/A3rG83aPprvRbGGGY KCsWxxH6Jlb2I0cGChxp2trAmEFOmfDJSMH/1RGdUSh4WeQJBAZy1nVnhcmGLHUoTdnk qFASVJhNjRtKqYiVmmTyVo5llX2i0tNIwn2jkZNMHA5nny/1Kb4ohSFFph+Qy1R7uvuu kDtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=S1qFS1jMjwj/T0yJQwZvrrHWJoJ7Nzy4g0iaJHKu/8U=; b=kxpQlS0k0qNXobVVPrHjgnx/FsF4aOAENvq+XCh7c/mA9NcF7pJvnNNGuamm4XJ8h7 5hk3PLalC0EJcAywl4mdi2sN/xIQNg/wV//ShGj0TM7Z+Gc0pWUtxCiyD72Ax3nrttkr yTPFzrp+6r00gxls1LvhCvPtvwQSHehgphpDtkRPuRJhKicdiPtW0SuzxAT7XaNNS2RN ifZBJVlT04dSJqIk20yqF001vWgb/Pj+k4Nas48VUGHSMMy/fovgotVQNntAB67OSrmT H0ufbEtH9wZ3Hhun8hSgud3PNY6Si6faZfTrnFE2ZlNbJ1ePzCjk38+GRWJBwHA5x5m0 HKKQ== X-Gm-Message-State: AOAM5339Pcj2qbd1VjcDCEVovNGNlEqHmkv16KdMlr0NA/7bIJe8RqBr GP8NSuIAeZ+R3XedCSMSyJGGpw== X-Received: by 2002:a05:6e02:1646:: with SMTP id v6mr36447239ilu.282.1636026351484; Thu, 04 Nov 2021 04:45:51 -0700 (PDT) Received: from [127.0.1.1] ([66.219.217.159]) by smtp.gmail.com with ESMTPSA id c4sm2395231ioo.48.2021.11.04.04.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 04:45:51 -0700 (PDT) From: Jens Axboe To: lars.ellenberg@linbit.com, Wu Bo Cc: linux-kernel@vger.kernel.org, mcgrof@kernel.org, linfeilong@huawei.com, linux-block@vger.kernel.org In-Reply-To: <1636013229-26309-1-git-send-email-wubo40@huawei.com> References: <1636013229-26309-1-git-send-email-wubo40@huawei.com> Subject: Re: [PATCH] drbd: Fix double free problem in drbd_create_device Message-Id: <163602635079.21562.17386310945369487784.b4-ty@kernel.dk> Date: Thu, 04 Nov 2021 05:45:50 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Nov 2021 16:07:09 +0800, Wu Bo wrote: > In drbd_create_device(), the 'out_no_io_page' lable has called > blk_cleanup_disk() when return failed. > > So remove the 'out_cleanup_disk' lable to avoid double free the > disk pointer. > > > [...] Applied, thanks! [1/1] drbd: Fix double free problem in drbd_create_device commit: 27548088ac628109f70eb0b1eb521d035844dba8 Best regards, -- Jens Axboe