summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorShuangpeng Bai <shuangpeng.kernel@gmail.com>2026-08-16 00:45:10 -0400
committerLeon Romanovsky <leon@kernel.org>2026-09-01 10:03:27 -0400
commit1af874e9f4ce22ccf8b10ab5462f32c70d3be21a (patch)
tree8f3b43825e280269bb185a92660aec76917d8de0 /scripts/Makefile.thinlto
parenta44a3f175eaee7e5aeb6a8fed381c4a0d5f49236 (diff)
downloadlinux-1af874e9f4ce22ccf8b10ab5462f32c70d3be21a.tar.gz
linux-1af874e9f4ce22ccf8b10ab5462f32c70d3be21a.zip
IB/mlx4: Fix use-after-free on pkey sysfs registration failure
register_pkey_tree() ignores errors from register_one_pkey_tree() and continues registering the remaining slaves. The per-slave error path has already released the pkey parent kobjects, but their pointers remain stored in the device. A later device cleanup therefore passes the stale pointers to kobject_put(), causing a use-after-free. Clear the parent pointers after releasing a failed slave tree and skip unregistered trees during device cleanup. This preserves the existing best-effort registration behavior while preventing a second cleanup of the failed tree. Fixes: c1e7e466120b ("IB/mlx4: Add iov directory in sysfs under the ib device") Cc: stable@vger.kernel.org Signed-off-by: Shuangpeng Bai <shuangpeng.kernel@gmail.com> Link: https://patch.msgid.link/20260816044510.3848996-1-shuangpeng.kernel@gmail.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions