HomeFreeBSD

exec: Remove parameter 'segflg' from exec_copyin_args()

Description

exec: Remove parameter 'segflg' from exec_copyin_args()

In kern "copyin" means copy data from user address space to kernel
address space. But in the function exec_copyin_args() there is a
parameter 'segflg' that is used to specify the address space of the
parameter 'fname'. In the source code there are two places where
'segflg' are not UIO_USERSPACE. In both cases the 'fname' argument are
NULL so the argument 'segflg' are not important there. So it is safe to
remove the parameter 'segflg' from the function exec_copyin_args().

Reviewed by: markj, jhb
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1590

Details

Provenance
Wuyang Chung <wy-chung@outlook.com>Authored on Feb 5 2025, 6:54 AM
markjCommitted on Mon, Apr 21, 11:06 PM
Parents
rG199a2be029e8: sysctl.3: put KERN_PROC_RLIMIT_USAGE in the right spot
Branches
Unknown
Tags
Unknown