Re: [BUG] KASAN: slab-use-after-free in pci_endpoint_test_ioctl

From: Shuangpeng

Date: Mon Jun 15 2026 - 16:07:07 EST




> On Jun 14, 2026, at 22:39, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Jun 14, 2026 at 06:16:39PM -0400, Shuangpeng Bai wrote:
>> Hi Kernel Maintainers,
>>
>> I hit the following report while testing current upstream kernel:
>>
>> KASAN: slab-use-after-free in pci_endpoint_test_ioctl
>>
>> I reproduced this on commit: e8c2f9fdadee7cbc75134dc463c1e0d856d6e5c7 (May 25 2026)
>>
>> The reproducer and .config files are here.
>> https://gist.github.com/shuangpengbai/1e03464adfefbb75fb5d8112691e38b3
>>
>> I'm happy to test debug patches or provide additional information.
>
> As we are drowning in real/fake/unknown bug reports, why not take the
> time to work on a patch to fix these issues as you have a reproducer for
> them? That way you get full credit for the fix.
>

Thanks for your suggestion.

I will try to look into this and understand the root cause.
If I can identify a proper fix, I will send a patch for review.

Thanks,
Shuangpeng


> thanks,
>
> greg k-h