From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from r3-11.sinamail.sina.com.cn (r3-11.sinamail.sina.com.cn [202.108.3.11]) (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 39F3C261B71 for ; Sat, 30 May 2026 06:14:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.108.3.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780121683; cv=none; b=PazdTWmECaQHoVB0Q8YHYS6aRfRZouyvaaDbu14XGfOWaEeP2tSt3PE39Th8eMl6omclaJWkreF9O2ncxWDL3JTXLDL4xGYfJnxRZ8N+Wnd1Q9ihsGAhZqi6ZxDlofYYMpDXqQFhRWKSzniV0tNXzAFK1vdJjhJD5G0D3Fv/jHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780121683; c=relaxed/simple; bh=Ob4zStJStdRh4ot9SJy04lo3EsxnCro/Dt6COdOrwm0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OeDbD2ChXTuG6hy8rCwBiHe/RrNx2tLc4cyZHBwc3bDenAmZFtroV1Y33J6zhNEAOMW8isSrVKO0N8W2zl308qmdRVPm6r/P8y8EJgX1roaiCwS1ek62QP8Rs7ieivPs1ILxyXM3+PieVEFoNdoyEMyRlK8RQk9RaxtbVL9j9dQ= 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=RrnbtCmx; arc=none smtp.client-ip=202.108.3.11 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="RrnbtCmx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1780121679; bh=kINJ1BhqcjqZLtQbdmBmvPKDUNmO062MPSsVgQH4/qY=; h=From:Subject:Date:Message-ID; b=RrnbtCmxHIKqTmsoqsGkYLmm7vGLarOfR+t278kM+4yXxK7aeNJIgbO182F6TsmbH CRKOXvXFF7NdHxJmdwYrm43IbiJQmP0EA5jWo84tgK5EDKq1+rW3dViWhgr8+AymkS xJSK2cQT11RzDNv5MSWUuDKadeD+JwgBUPmvHcuU= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.62.144]) by sina.com (10.54.253.34) with ESMTP id 6A1A801D000074D0; Sat, 30 May 2026 14:13:51 +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: 041326291752 X-SMAIL-UIID: D1E7F921E06A4FCC82692B54EEEDDABA-20260530-141351-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [lsm?] KASAN: slab-use-after-free Read in security_inode_follow_link Date: Sat, 30 May 2026 14:13:37 +0800 Message-ID: <20260530061340.1284-1-hdanton@sina.com> In-Reply-To: <6a19f098.abb04025.19af7b.0004.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: Fri, 29 May 2026 13:01:28 -0700 [thread overview] > Hello, > > syzbot found the following issue on: > > HEAD commit: eb3f4b7426cf Merge tag 'nfsd-7.1-2' of git://git.kernel.or.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17dae52e580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=8118209836970b54 > dashboard link: https://syzkaller.appspot.com/bug?extid=0962e3a1af6d5e26a52c > compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14427ed2580000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=109e452e580000 #syz test --- x/fs/namei.c +++ y/fs/namei.c @@ -5561,7 +5561,6 @@ retry_deleg: goto exit_drop_write; } inode = dentry->d_inode; - ihold(inode); error = security_path_unlink(&path, dentry); if (error) goto exit_end_dirop; @@ -5569,7 +5568,6 @@ retry_deleg: dentry, &delegated_inode); exit_end_dirop: end_dirop(dentry); - iput(inode); /* truncate the inode here */ if (is_delegated(&delegated_inode)) { error = break_deleg_wait(&delegated_inode); if (!error) --