Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13890761pxu; Mon, 4 Jan 2021 07:15:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjXVtd++cJhBOj5tx088diIVoTMRPBZUamSpy5YD2F3l7hVim1w35vqKSOrE1JezHzB+Wj X-Received: by 2002:a17:907:3e85:: with SMTP id hs5mr68910113ejc.548.1609773340665; Mon, 04 Jan 2021 07:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609773340; cv=none; d=google.com; s=arc-20160816; b=NcnfJ9fhr2EMVRnZOr0p9u3dpNglqK67vXW94Qe7DqiS1Gyf8bz3VBwO1bGlicpC4k Ti7d3EjXTQsOyAeGmBhz1okTD1lRRR37hd7zHVpwx6wfnkcnDmBWvlCm4ZHyOrFwPJiC C5UmBFb3g99/yiE3oCPb7oWiU0rB3PDOZMvL9D6J7zGuU+Sv29iDELXrNaKRtHLOMRhu teHMt/5baHHpJGWOe1QO6XrZspXGeFn/0ik2M1ar9adTMM73OENK0lvUTVNXExmTkN1X 8G3VmxIJdzPeiGeWAKl8yFortEQ1Ig7mbfsD3Y97I722F5s3IqHJQN5w+zTexTu69YhO 4S9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date; bh=sEvM2hc7DhBmVeWQ2A79nViuv8cKEzbsxhVCaJQE0Us=; b=zYLmystKz//ne/pChmcLiUmJ9YmRxiqT99QCDZbRi3rTsRsecgKabRKZ0aAh49oOYN jPlM1Vkkh1OWp+jDbnLA5MYZcGK4uxyeul2iV04BOiP0+6mRU/NGktsIdoMy0dXEuFtZ zQEkzXW6k2Zt1uC02xu+3+yUhUvTkftUTll2aZydlN6gXW7sL02334XhOpXLfssuytqM I7/6/3zdae62tk3K3uyscK8xuEE9pUjTiO28yfxaY3qHSBZ01KAH8PgKbKVYbZq0rTda l3S1mtZcg6EgnvksuBYhLNi/ULrRnW0BUwfXU3KYO0xiLJNlf+abrWXBVSQBArnhlEdz GnKA== 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 g3si30270573edu.11.2021.01.04.07.15.17; Mon, 04 Jan 2021 07:15:40 -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 S1727373AbhADPNo (ORCPT + 99 others); Mon, 4 Jan 2021 10:13:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:42508 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbhADPNn (ORCPT ); Mon, 4 Jan 2021 10:13:43 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2B1D5ACAF; Mon, 4 Jan 2021 15:13:02 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 98DEBDA882; Mon, 4 Jan 2021 16:11:13 +0100 (CET) Date: Mon, 4 Jan 2021 16:11:13 +0100 From: David Sterba To: Defang Bo Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] fs/btrfs: avoid null pointer dereference if reloc control has not been initialized Message-ID: <20210104151113.GG6430@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Defang Bo , clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <1609080931-4048864-1-git-send-email-bodefang@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1609080931-4048864-1-git-send-email-bodefang@126.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2020 at 10:55:31PM +0800, Defang Bo wrote: > Similar to commmit<389305b2>, Please use full commit reference like 389305b2aa68 ("btrfs: relocation: Only remove reloc rb_trees if reloc control has been initialized") > it turns out that fs_info::reloc_ctl can be NULL , Please describe how the NULL can get there.