Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/kernel-validname-error/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


let validaddr send a note and raise an error so resources can be freed 
on waserror() instead of calling pexit. the validaddr call in validname0
was removed, as the first byte should be already validated by the caller
(from syscalls). vmemchr will validate all following pages of the name
if it spans pages. let sysexec validnamedup() a save copy of the file
argument. the rest of the changes are simplifications of the error
handling mostly.

this patch replaces: kernel-sysexec-validnamedup, kernel-sysfile-validaddr,
kernel-segattach-validnamedup and kernel-namec-validaddr. removing the validaddr
calls for the string arguments doesnt work as the user can pass kernel
addresses!

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].