HomeFreeBSD

lib9p: Remove potential buffer overwrite in l9p_puqids()

Description

lib9p: Remove potential buffer overwrite in l9p_puqids()

Structure l9p_f_wralk reserves at most L9P_MAX_WELEM entries
and that number actually set the maximum we can safely use.

Approved by: so
Security: FreeBSD-SA-22:12.lib9p
PR: 265385
Reviewed by: markj

(cherry picked from commit 2dd83b3f0507fc7bc64b908fb88f285a3b9663c8)
(cherry picked from commit c536045c51da78a85138e963d3b7e13a547713c9)

Details

Provenance
kjopek_gmail.comAuthored on Aug 8 2022, 4:25 PM
markjCommitted on Aug 9 2022, 8:00 PM
Parents
rGdd349089ff92: vm_fault: Shoot down shared mappings in vm_fault_copy_entry()
Branches
Unknown
Tags
Unknown