NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/61098: drm: missing fd type check in sync_file_get_fence
>Number: 61098
>Category: kern
>Synopsis: drm: missing fd type check in sync_file_get_fence
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 01 06:50:00 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11, 10
>Organization:
Acme Syncs and Fences, Inc.
>Environment:
>Description:
Missing fp->f_ops check here -- could be any fd:
216 if ((fp = fd_getfile(fd)) == NULL)
217 return NULL;
218 sf = fp->f_data;
219 fence = dma_fence_get(sf->sf_fence);
220 fd_putfile(fd);
https://nxr.netbsd.org/xref/src/sys/external/bsd/drm2/linux/linux_sync_file.c?r=1.3#216
>How-To-Repeat:
code inspection
>Fix:
check fp->f_ops
Home |
Main Index |
Thread Index |
Old Index