The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: Igor Putko <igorpetindev@gmail.com>
Cc: Andreas Hindborg <a.hindborg@kernel.org>,
	linux-kernel@vger.kernel.org,  syzkaller-bugs@googlegroups.com,
	syzbot+6b16e3d085833cbf3e25@syzkaller.appspotmail.com
Subject: Re: [PATCH] configfs: fix slab-use-after-free in configfs_get_config_item()
Date: Thu, 30 Jul 2026 07:20:37 -0700	[thread overview]
Message-ID: <amtdX2pfOpz10IMg@gmail.com> (raw)
In-Reply-To: <20260730092502.5913-1-igorpetindev@gmail.com>

On Thu, Jul 30, 2026 at 12:25:02PM +0300, Igor Putko wrote:
> Fix this by taking configfs_dirent_lock inside configfs_get_config_item()
> and checking if the CONFIGFS_USET_DROPPING flag is set before taking a
> reference on the config_item.

How was this tested? 

With this applied, a plain rmdir of any configfs item oopses, because
configfs_rmdir() itself calls this helper on the dentry it is removing,
after it has already set CONFIGFS_USET_DROPPING.

	BUG: kernel NULL pointer dereference, address: 0000000000000040
	RIP: 0010:configfs_rmdir+0x23d/0x3a0
	Call Trace:
	vfs_rmdir+0xbb/0x200
	__x64_sys_rmdir+0x29/0x90


  reply	other threads:[~2026-07-30 14:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30  9:25 [PATCH] configfs: fix slab-use-after-free in configfs_get_config_item() Igor Putko
2026-07-30 14:20 ` Breno Leitao [this message]
2026-07-30 14:43 ` Igor Putko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=amtdX2pfOpz10IMg@gmail.com \
    --to=leitao@debian.org \
    --cc=a.hindborg@kernel.org \
    --cc=igorpetindev@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+6b16e3d085833cbf3e25@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox