Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp381521lqj; Sun, 2 Jun 2024 02:50:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMfCsCJvxGd1yxGbI492WeATyf65RFAU2X3INSLVP/aFSuzJCFslIhPhcigFCdnvBjy/o9wcUjRWSTFmo0Ty62qvafF+oWW1dR0gos1w== X-Google-Smtp-Source: AGHT+IHP07Tlod9Q3DqNvNM1uQnk+wBVHCXy05+NzfcALqhk6q4mh0CIrTW1ZfTi7UhEgtlGUi3g X-Received: by 2002:ae9:e306:0:b0:794:e074:449c with SMTP id af79cd13be357-794f5eceb1emr599039885a.74.1717321857895; Sun, 02 Jun 2024 02:50:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717321857; cv=pass; d=google.com; s=arc-20160816; b=ChREWympV9xzGW32j3nqtppTZNMM0CW1PuvIINhsq5n2kqh+gAuKFQK9yPTqPtTDxw tjkB05TslZG8H68FHeNhmmVSoEXqauD9cYm+U2SVA9fUbkLshRT0ltJG7/2W9rPFx1ej tw0qXdlAgl8o0H9yLCaLrtz/hjWaD7m0X9jFm5sarM3KlL1eNxKrFHYT5FD9g9euVCOP iHft5YqKf/9vezf2FWOf+fzm6ujv57Ci3gfXnFgN+71v72rU++o/BPoIkzMjVBdYV3S7 1ukpySQiuthKvm0yI/MrEQFkMaTfKUt3qmdyrsOT5ANxrY9FaXSlrRxZvEPyLnh45uO2 weYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=OYa0x8qs1WHM3PwRxABmOgiFTTumJdyRCqMJ9yrKPyg=; fh=T9dd7xSi16sisNwzu2EKMgKLBrHtOHJiOFRk6cII7fs=; b=i27Mopbo9LXak3VQWWBCxc/HoXZ/8h07nHYJIkMsMEvP7IRlyRp6z4970fy2+StMgU XIQwcCHRcgwvB4MtggclTvGm4CH/FcHLTETTcBzanGfn1XINIBJAPD8AeMN8r3H1WxQY rddb9PO6v85ZMTcqGoKAtv5rui8hz5gKOFCJTEraVnZuQaBLwoofdv2fN9AosDRPFxvL Q3hpAFWj96SV4iTgM2noLTAxFtQXHV5jwGE4nymSZA0bETfH/6cDGTvOm0M0t4dRP0g5 bihBmYV+PWbmqh0Egz/DGuWoflFezU7swWil0oxM/6D7ONZY46ulr1x5xHt5eVAyqIuQ lkLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-198188-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198188-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f3063048si502394785a.249.2024.06.02.02.50.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 02:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198188-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-198188-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198188-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 843E31C2110C for ; Sun, 2 Jun 2024 09:50:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 717993716D; Sun, 2 Jun 2024 09:50:52 +0000 (UTC) Received: from mail115-100.sinamail.sina.com.cn (mail115-100.sinamail.sina.com.cn [218.30.115.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E49E29CFB for ; Sun, 2 Jun 2024 09:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717321852; cv=none; b=d7vEn1B5Hdg8t84uIWWu9Zxnhr7rgC/zvK6vTb+jINRxwfsk5uNNj58ot37kUNDHbDNTHVwKhJdl6w32x0c17GPA5AR7HoBnsth3bvBmGZxKLSQWl0yZEMwkUXE1AV9CypHdS5nyeYO0HbDCA2VHps5cdgYWjjaNha8j+20Gn7o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717321852; c=relaxed/simple; bh=6Qk3EhFI6l02CTzu7dOTv1ZIxT/EvVODd1HgAUac3ok=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TuWiZ/rQNTQBdZXZcqwQKWMmhBi3AlckxZfH/tC7z3Xwj3UuewZgiVRsWaKWReLD9Tyg6YT2KelhuLBVPCUCq45tJL0n8LO/ulmHnY1nuOO9fXCPKoGApwk/FN9coj4tell4TgqnVOu2MxrqsY4l7uQRQYJlOBj6GmVJ/llQm8s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.51.183]) by sina.com (172.16.235.24) with ESMTP id 665C406A0000490E; Sun, 2 Jun 2024 17:50:36 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 53371945089237 X-SMAIL-UIID: C0900DA4704744BC98FB16A3F5398444-20240602-175036-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [gfs2?] BUG: corrupted list in gfs2_fill_super Date: Sun, 2 Jun 2024 17:50:24 +0800 Message-Id: <20240602095024.3791-1-hdanton@sina.com> In-Reply-To: <0000000000002501960619e2366b@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sat, 01 Jun 2024 23:20:21 -0700 > syzbot found the following issue on: > > HEAD commit: 9d99040b1bc8 Add linux-next specific files for 20240529 > git tree: linux-next > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=100817e6980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master --- x/fs/gfs2/ops_fstype.c +++ y/fs/gfs2/ops_fstype.c @@ -1137,6 +1137,7 @@ static int gfs2_fill_super(struct super_ struct gfs2_sbd *sdp; struct gfs2_holder mount_gh; int error; + int destroyed = 0; sdp = init_sbd(sb); if (!sdp) { @@ -1301,6 +1302,7 @@ fail_locking: fail_lm: complete_all(&sdp->sd_journal_ready); gfs2_gl_hash_clear(sdp); + destroyed = 1; gfs2_lm_unmount(sdp); fail_debug: gfs2_delete_debugfs_file(sdp); @@ -1308,7 +1310,8 @@ fail_debug: fail_delete_wq: destroy_workqueue(sdp->sd_delete_wq); fail_glock_wq: - destroy_workqueue(sdp->sd_glock_wq); + if (!destroyed) + destroy_workqueue(sdp->sd_glock_wq); fail_free: free_sbd(sdp); sb->s_fs_info = NULL; --