From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail115-80.sinamail.sina.com.cn (mail115-80.sinamail.sina.com.cn [218.30.115.80]) (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 26986F4EB for ; Sat, 13 Jan 2024 01:51:09 +0000 (UTC) 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.118.64.30]) by sina.com (10.75.12.45) with ESMTP id 65A1EC5B0000762C; Sat, 13 Jan 2024 09:50:21 +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: 90088631457670 X-SMAIL-UIID: B13976DB0B9D4F018A34C556A2878719-20240113-095021-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [f2fs?] KASAN: slab-use-after-free Read in kill_f2fs_super Date: Sat, 13 Jan 2024 09:50:11 +0800 Message-Id: <20240113015011.581-1-hdanton@sina.com> In-Reply-To: <0000000000007ab192060ec3a224@google.com> References: <0000000000006cb174060ec34502@google.com> 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 Fri, 12 Jan 2024 10:14:27 -0800 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 70d201a40823 Merge tag 'f2fs-for-6.8-rc1' of git://git.ker.. > git tree: upstream > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16b910ede80000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/fs/f2fs/super.c +++ y/fs/f2fs/super.c @@ -4880,6 +4880,7 @@ free_sbi: if (sbi->s_chksum_driver) crypto_free_shash(sbi->s_chksum_driver); kfree(sbi); + sb->s_fs_info = NULL; /* give only one another chance */ if (retry_cnt > 0 && skip_recovery) { --