Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
xen-pciback: Fix pcistub_device ref leak in pcistub_get_gsi_from_sbdf()
pcistub_get_gsi_from_sbdf() obtains the stub device with pcistub_device_find(), which returns it with its kref incremented, and returns psdev->gsi without dropping that reference again. The caller cannot release it either, so every lookup leaks one reference to the stub device. Release the reference after reading gsi. Fixes: 2fae6bb7be32 ("xen/privcmd: Add new syscall to get gsi from dev") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Reviewed-by: Juergen Gross <jgross@suse.com> Reviewed-by: Jiqian Chen <Jiqian.Chen@amd.com> Signed-off-by: Juergen Gross <jgross@suse.com> Message-ID: <20260916171141.2086627-1-vulab@iscas.ac.cn>
Author Wentao Liang Committer Juergen Gross Date (Oct 9, 2026, 8:34 AM UTC) Commit
Copy SHA
Parent 3b4854b6 3b4854b69ee70fffb2fa7acac09e715a7efcbae1