Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp892979pxp; Wed, 16 Mar 2022 20:25:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxyiGBH9zQU+qrgeghFI3rXFmCLHu8DMBkCq80A2QNIN7OAz8Vd2HRu+2eVr2s9GRGOxGO X-Received: by 2002:a17:903:244c:b0:151:bb4d:d8d8 with SMTP id l12-20020a170903244c00b00151bb4dd8d8mr2496853pls.121.1647487504186; Wed, 16 Mar 2022 20:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647487504; cv=none; d=google.com; s=arc-20160816; b=EPenFSNwh+LyW/frtLlRekg1OmVYLyr5MINOupiXsDOqqlPV6Tle95UEE4+eypieFo EKiQ2PrxzyJE/pW3KasUNE/LLhFoM6Vm38hvRAwNOlIDb6zJa1g/Ezah5/DAoUY1fmTH +icxcXFtLRNJSd1a5ZNOJK1cyCX3xNMB1BlI/hFP0AkN3llM8dN2vRSwX7rDt+UQkr0Y 2JDRqB29Zw/QicNVmltqq9SYRePzQ/X9kNUCXZKkD1gKbXWwKhx0zrhXMVJceN1lce4H 3RAq+JDpZLnB3qBWZOMNFu8j0BsXtTwNUBIXMen3tYdD3q9gX8QCyaqZTmlXpOAMl+5f zntQ== 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; bh=0faxIqkGMkLqQujVzOazwmo70C9rXhnHatDI4pLX644=; b=eVBu41WmnRL19Kd0QbuyBd+ueUdtSGY59aWEmKen7Dl9CkTcDisBZ8H5I9SWTkZ3lh BpnKRf0x8JGzRemxvV6LufezAye+D8I+8qOMZogd51XAbALbK1iobpelbFk2cbLsQH9u 17bkGC9H32gdCnk8Dd/FNChcc6mkasUVfVgi23RECoGklh/W+aSXytoaZEnxujNI4/mz eNM6yhrDr7BFzjbxK3whwO2nXfLkx5epoLkfJAVKa37dkxo/R7i3JLdZm/+5zmbDCCvb /llMsLA9ol/ZJCT8Ne7hPuwz0gvP4X5ECUP0mgXaoTFwabsYWub22FlXzsoJLakCcOjv mMUw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v9-20020a63b949000000b0038182147333si994906pgo.26.2022.03.16.20.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:25:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 554542FFF5; Wed, 16 Mar 2022 20:24:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346063AbiCOIey (ORCPT + 99 others); Tue, 15 Mar 2022 04:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346140AbiCOIeo (ORCPT ); Tue, 15 Mar 2022 04:34:44 -0400 Received: from out199-12.us.a.mail.aliyun.com (out199-12.us.a.mail.aliyun.com [47.90.199.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 586A137BDA for ; Tue, 15 Mar 2022 01:33:26 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R221e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V7H.vfh_1647333200; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0V7H.vfh_1647333200) by smtp.aliyun-inc.com(127.0.0.1); Tue, 15 Mar 2022 16:33:23 +0800 Date: Tue, 15 Mar 2022 16:33:20 +0800 From: Gao Xiang To: Dongliang Mu Cc: Gao Xiang , Chao Yu , Dongliang Mu , syzkaller , linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs: erofs: remember if kobject_init_and_add was done Message-ID: References: <20220315075152.63789-1-dzm91@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220315075152.63789-1-dzm91@hust.edu.cn> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 15, 2022 at 03:51:52PM +0800, Dongliang Mu wrote: > From: Dongliang Mu > > Syzkaller hit 'WARNING: kobject bug in erofs_unregister_sysfs'. This bug > is triggered by injecting fault in kobject_init_and_add of > erofs_unregister_sysfs. > > Fix this by remembering if kobject_init_and_add is successful. > > Note that I've tested the patch and the crash does not occur any more. > > Reported-by: syzkaller > Signed-off-by: Dongliang Mu Thanks for the effort! Fixes: 168e9a76200c ("erofs: add sysfs interface") Reviewed-by: Gao Xiang Thanks, Gao Xiang