[LTP] sched_setattr01: Convert to new API

Andrea Cervesato andrea.cervesato@suse.com
Fri Sep 4 09:35:17 CEST 2026


> --- [PATCH 4/5] ---
> 
> > +#ifndef PR_SET_MM_MAP
> > +# define PR_SET_MM_MAP	14
> > +#endif
> 
> PR_SET_MM_MAP_SIZE is listed in the commit message but is not defined here.
> Add its UAPI value, 15, alongside PR_SET_MM_MAP.

Valid.

> 
> --- [PATCH 5/5] ---
> 
> > +	map.start_code = map.start_data = map.end_data =
> > +	map.start_brk = map.brk = map.start_stack = map.arg_start =
> > +	map.arg_end = map.env_start = map.env_end = (uint64_t)(uintptr_t)↦
> 
> PR_SET_MM_MAP copies these values into current->mm, so this sets the process
> break to a stack address before the test starts. Preserve the real break with
> sbrk(0), as waiter_fn() does, and supply valid current values for the other
> memory-map fields.
> 

Valid.

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list