From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp153-141.sina.com.cn (smtp153-141.sina.com.cn [61.135.153.141]) (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 6487E370D6D for ; Fri, 10 Apr 2026 12:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=61.135.153.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775822688; cv=none; b=LW2PVWhKwGZheJYQvrmLKAbBzFUX0R3lswCAeP9PLnfZi2bC0tGHSowKeVXvKh4jV67WYimUK/lmysbV9mBLPlBVhrMQR9ilv0qbKShXX/cMzvRm8aF+itvcoaMPkm0oY7hWTCzHPFCZculCJfDxQumDBBkXs+Uwzeqr/V4UYQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775822688; c=relaxed/simple; bh=QjU0xfFG5umCBb5pj91YL0UGVR1tHgBWqPDrH+1O66E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bKn9Kri1O17PfTwE37M71+A4fHDPK4FR2U0J+QukuzmEFksKLe/grtibP9rp/T/Ih/FDzA22K73dkoJ9tgiFuiL8UcLFI/D6H7SWFRy52ls/OjlFAH1XcCh/KFQj2UVJUG3BjrIwWliE1Fu4mEo8Y8BlhdVPiYDcFDTWATauPhM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b=vturYrsD; arc=none smtp.client-ip=61.135.153.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b="vturYrsD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1775822681; bh=flV+tMMM1TXQ/0zCcRqlsCSIMHv3J2oAstVO2KkJTuk=; h=From:Subject:Date:Message-ID; b=vturYrsDvIWmadeHdZ/byWM9gm7s+6f88mNDKcySnJv3GgF/L2UO0s7DZz673YhLG bDR+VoO6m3hxuV4GAV8i42iNnpVKmyC3J5nL0BCQKOFVmBC5Y4HYCMsC5qNGlCigAJ 3W+BhklBKcVrSEMqGvXZ8vXvsNqqrzAzm+52GIKc= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.62.144]) by sina.com (10.54.253.31) with ESMTP id 69D8E6C400005212; Fri, 10 Apr 2026 20:02:14 +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: 8477086816131 X-SMAIL-UIID: 2EBFD1CBED724206A5CC6D4C20E4B4E8-20260410-200214-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [cgroups?] KASAN: slab-use-after-free Read in pressure_write Date: Fri, 10 Apr 2026 20:02:01 +0800 Message-ID: <20260410120202.1689-1-hdanton@sina.com> In-Reply-To: <69d779b0.a00a0220.468cb.0018.GAE@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 > Date: Thu, 09 Apr 2026 03:04:32 -0700 [thread overview] > Hello, > > syzbot found the following issue on: > > HEAD commit: 591cd656a1bf Linux 7.0-rc7 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=114a36ba580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=45cb3c58fd963c27 > dashboard link: https://syzkaller.appspot.com/bug?extid=33e571025d88efd1312c > compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16cb33da580000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12648bd6580000 #syz test --- x/fs/kernfs/file.c +++ y/fs/kernfs/file.c @@ -775,9 +775,11 @@ static int kernfs_fop_release(struct ino if (kn->flags & KERNFS_HAS_RELEASE) { struct mutex *mutex; + mutex_lock(&of->mutex); mutex = kernfs_open_file_mutex_lock(kn); kernfs_release_file(kn, of); mutex_unlock(mutex); + mutex_unlock(&of->mutex); } kernfs_unlink_open_file(kn, of, false); --