From: sashiko-bot@kernel.org
To: "Habil Eren Türker" <habilerenturker@hotmail.com>
Cc: "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH v2] RDMA/core: Fix slab-use-after-free in kernfs_find_ns()
Date: Sat, 28 Nov 2026 11:29:03 +0000 [thread overview]
Message-ID: <sashiko-outbox-238661@kernel.org> (raw)
In-Reply-To: <20261128112149.7118-1-habilerenturker@hotmail.com>
> In drivers/infiniband/core/device.c, remove_one_compat_dev() unlocks
> device->compat_devs_mutex immediately after erasing cdev from
> the xarray. device_del(&cdev->dev) is performed outside the lock.
>
> Function-ladder:
>
> Thread A (nldev_dellink) Thread B (cleanup_net)
> ======================== ======================
> nldev_dellink()
> ib_unregister_device_and_put()
> __ib_unregister_device()
> disable_device()
> remove_compat_devs()
> remove_one_compat_dev()
> mutex_lock()
> [ ... ]
>
> Fixes: 4e0f7b907072 ("RDMA/core: Implement compat device/sysfs tree in net namespace")
> Reported-by: syzbot+8c2fa00c27ecafd148f5@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=8c2fa00c27ecafd148f5
> Signed-off-by: Habil Eren Türker <habilerenturker@hotmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261128112149.7118-1-habilerenturker@hotmail.com?part=1
prev parent reply other threads:[~2026-11-28 11:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 11:21 [PATCH v2] RDMA/core: Fix slab-use-after-free in kernfs_find_ns() Habil Eren Türker
2026-11-28 11:29 ` sashiko-bot [this message]
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=sashiko-outbox-238661@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=habilerenturker@hotmail.com \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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