From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07AB443DA4C for ; Wed, 29 Jul 2026 08:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785315092; cv=none; b=r9uf1FbpswYIhIHhQBRg20KLXhqpYagLcOozs7YkWzxoPLy6Eh0uKIs8DUEAECKXyeKbBN+hvAs1G0hoDyIKYea0xI6C9LR7AZWHvJ1gHPhFXg9OKklci4OeCzTPcnJvW2scJv5cPjqeRVqpAMVtjqPqWBrRTsRmSjWrApKrfQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785315092; c=relaxed/simple; bh=Jv4rCWowDTcw6drmngeGRWTzEtydNVnweu2gItxEHiI=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=TLi9EAhiT+0CQYjEBwMqDjerjEwV1RFib9wbJ/1gy2GFSIT4k2AYompxHIzwjrhvrv1/tyJamDreBU2Ov0hkfLaqyf3A4MTFTdwVablpe1KSGb3wa0t1inWirPhVafPSQjq26yWVOU6nfFku32pMt+GkNe+XHVuLkZujwNat8VY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-49aa4525b82so781076b6e.1 for ; Wed, 29 Jul 2026 01:51:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785315083; x=1785919883; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=qC7sR/lMfK00NvClQPutM+ZQSOUslAr8En8VOyqn2cg=; b=mVtCUIyp1qWNQPfBI4xBkynhTLlDiA49u0w/DKulOm1P8CgGK2xMzvl/FIG9CDq/CW ghLOn9pbonCOZxuJGlUO5IkfDpYUqx2Co4bUx8tXpYjolJRms8xenJeuQLPUIpfB3zL6 q/OWnZKlp2TeLQNSeDATAz+6MYB3T+aK5hy7U2l9lqP57AndMDAzvwwebW7EQrrTzmS4 e+fAItjAiBhPWuxKk+MwNU95WqS+KpVbgRhyogVoWKyjYec5bL7FIYrdQigkXJF01IUt WLksBRToOSgnpIBPHsVWSauCbffhCesiEPqOG/EwCl5UK8dSmAFJZb8Dgy/LTO/WOzoi da/A== X-Gm-Message-State: AOJu0YwN30CTry0NDIgFPmWF/IjkunLD8yWKxkRfK87QoPfg8WuguOKd Oioo44PgKQgy9Go8efZ+GtjDlmteAkVtUeEXHlTEtx2ICjRMFAdDFjYi68widfuOCU6IIdOg05U 7L2n58LoeMzE4dVDwypDapxiMmibzN1GybjpMp75Gag7YgDqTXhc/t4TCqvc= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:1208:b0:495:e677:1332 with SMTP id 5614622812f47-4ad5bbee680mr3297112b6e.36.1785315083579; Wed, 29 Jul 2026 01:51:23 -0700 (PDT) Date: Wed, 29 Jul 2026 01:51:23 -0700 In-Reply-To: <6a69447e.6bd615f2.c0aa.0000.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a69bf0b.d9e86bb5.297b12.0058.GAE@google.com> Subject: Forwarded: [PATCH] Fix UAF in configfs From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [PATCH] Fix UAF in configfs Author: jeffinphilip14@gmail.com #syz test --- fs/configfs/configfs_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/configfs/configfs_internal.h b/fs/configfs/configfs_internal.h index acdeea8e2d69..337e313651e7 100644 --- a/fs/configfs/configfs_internal.h +++ b/fs/configfs/configfs_internal.h @@ -124,8 +124,9 @@ static inline struct config_item *configfs_get_config_item(struct dentry *dentry spin_lock(&dentry->d_lock); if (!d_unhashed(dentry)) { struct configfs_dirent * sd = dentry->d_fsdata; - item = config_item_get(sd->s_element); + item = config_item_get_unless_zero(sd->s_element); } + spin_unlock(&dentry->d_lock); return item; -- 2.55.0