Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4159961pxt; Tue, 10 Aug 2021 22:23:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1vTG4mKpbER6slXvdlRxnhHTb5LsW4PltR0hyDg8Br8LRouAS4DBkpxvgzi/JyBeQbLDz X-Received: by 2002:a92:d60a:: with SMTP id w10mr101962ilm.22.1628659396095; Tue, 10 Aug 2021 22:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628659396; cv=none; d=google.com; s=arc-20160816; b=X01lCOm6EXPsZo2yc2dog+VNxobqbrseSxLb2ATsvnqbxj08etn2Zh3g+yryzGwwSc 8iofVtgvayBbWhSK4PaMRABhobO0fzVd5c6OBDtouMI2zGxuLuhikhq8SBsnM6ajHwBK bsn5THfZenWOaEoaV2UVtfL4bEPPOUpG1Yqi7kkoUozETTNFq/nvesGLnMz+iyotk9RK HvF+pkx4Ezg9yP7b0NRArT/C9sKtXLNhsOBoNkzt5HWS+2+8LkHpTBxiNjNG3BV7uwao ZDvZ6p3jX8He1QqDbPuMGP/sSGlH9XOMFSNwZ7Rf1UXd8pSGn/1clDgp7XBmby3A1yZh +6HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vpzaQyEKrZmYpNp17799MlfevE7lZ5qGY4jkrsTFkd4=; b=jTU3yj7IRVt83SgrUBi6BolM5Lx3GgOL10kYH2ILk9eY6mCZvE6oDdYQAMSZ0SYtfG pJCEwWemH1oeg+Xnie/Ludo5PHIOWuxELoxA+9K7isLpD7vLuHW7KV2fDAXemjlU0Lbm PaFJHbVv+bR1+65IfTmGWUIiY6oBNTj71aOKbO+YJSkV4HK+DxMMVT2jSBIVyRNWKdal RChvv0L9ViZz9mTl/3IbHxg1V5Zl0ABL/fyiE19AIW/gAcAWY1aY++7F5JYG7lhn9qTk TMB1WQu/V69SR+roOM7xHZIB0P0rW5j/GltfUn+n5eXCitNuUOXg0Lt7L7YSHMpzN2AP 02tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=mFTzQwKJ; 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 m9si2795351jap.72.2021.08.10.22.23.04; Tue, 10 Aug 2021 22:23:16 -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=@infradead.org header.s=casper.20170209 header.b=mFTzQwKJ; 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 S233389AbhHKFWu (ORCPT + 99 others); Wed, 11 Aug 2021 01:22:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233813AbhHKFWt (ORCPT ); Wed, 11 Aug 2021 01:22:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9440BC061765; Tue, 10 Aug 2021 22:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vpzaQyEKrZmYpNp17799MlfevE7lZ5qGY4jkrsTFkd4=; b=mFTzQwKJPyhWj8LabAH5uU9j4b F3jWWlaCoCd0sPss8/w0SnqlNPJI8wu1qb8etX+TDJx06ZQIEe95hK5uiNHr+ZhTnAXAvc36eutjr UbVeSuHd0j043Sep41pznPLKjeFojPT1aLYAbLFWCP+N14Ye3aSlhLChPTP823Be/frDLeYT8osNN AXrRDcOs6rWJ06OHJ20PnCwFzsw5lZm+so3IHpxM0B7j6jHPlI97t7l6M7/ssihiqhFgvIaLJgAfH 6Z8R5icMjMtTLp4lRWUjNHk1TuSEbKpI7t2bdvPQj6geefGpzjrSJ+5NvezQLcXFn8cvsOISbXLSq PJE9ZZJw==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDgeG-00CzyX-HN; Wed, 11 Aug 2021 05:19:44 +0000 Date: Wed, 11 Aug 2021 06:19:28 +0100 From: Christoph Hellwig To: luomeng Cc: Luis Chamberlain , axboe@kernel.dk, hare@suse.de, bvanassche@acm.org, ming.lei@redhat.com, hch@infradead.org, jack@suse.cz, osandov@fb.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] block: replace incorrect uses of GENHD_FL_UP Message-ID: References: <20210720182048.1906526-1-mcgrof@kernel.org> <051ab019-5163-e691-43ed-052401b6b95a@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <051ab019-5163-e691-43ed-052401b6b95a@huawei.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 11, 2021 at 10:42:20AM +0800, luomeng wrote: > Hi: > When the fuzz test injected memory allocation failed, I had this BUG_ON: > kernel BUG at fs/sysfs/group.c:116. > The cause of the bug_ON is that the add_disk memory fails to be allocated > but no error processing is performed. > I find your patches add error processing. So what is your next step with > these patches. I have one more pending series on top of this one I need to submit here: http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/alloc_disk to make sure the disk always has a valid queue reference. After that Luis work to return an error from add_disk should be much easier bause we not have defined state.