Re: [syzbot] [kernfs?] KASAN: slab-use-after-free Read in kernfs_find_ns
From: syzbot
Date: Tue Nov 24 2026 - 10:02:31 EST
> #syz test
Patch testing via #syz test is temporarily disabled.
See https://github.com/google/syzkaller/issues/8122 for details.
>
> diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
> index 29af9fe860e2..f2a52af64718 100644
> --- a/drivers/infiniband/core/device.c
> +++ b/drivers/infiniband/core/device.c
> @@ -1030,12 +1030,13 @@ static void remove_one_compat_dev(struct ib_device *device, u32 id)
>
> mutex_lock(&device->compat_devs_mutex);
> cdev = xa_erase(&device->compat_devs, id);
> - mutex_unlock(&device->compat_devs_mutex);
> if (cdev) {
> ib_free_port_attrs(cdev);
> device_del(&cdev->dev);
> - put_device(&cdev->dev);
> }
> + mutex_unlock(&device->compat_devs_mutex);
> + if (cdev)
> + put_device(&cdev->dev);
> }
>
> static void remove_compat_devs(struct ib_device *device)