ltp icon indicating copy to clipboard operation
ltp copied to clipboard

Write test for SCHED_RESET_ON_FORK

Open pevik opened this issue 3 years ago • 8 comments

Although we have basic sched_get_priority_{max,min}() tests, SCHED_RESET_ON_FORK deserves it's own test to detect children created by fork(2) do not inherit privileged scheduling policies.

https://man7.org/linux/man-pages/man2/sched_setscheduler.2.html https://man7.org/linux/man-pages/man7/sched.7.html https://lwn.net/Articles/335203/ https://lore.kernel.org/ltp/Ye615gN0Yv1%2FWskD@pevik/

pevik avatar Jan 25 '22 11:01 pevik

Hi, may I work on this?

fedeb95 avatar Oct 26 '22 20:10 fedeb95

@fedeb95 You're welcome.

pevik avatar Oct 31 '22 12:10 pevik

I've submitted a patch via email hopefully correctly (I'm using protonmail which I understand isn't really patch-friendly)

fedeb95 avatar Nov 10 '22 09:11 fedeb95

Base latest email this seems hold for a while and only need some small modification. How to continue this? @metan-ucw @pevik @fedeb95 https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/

coolgw avatar Aug 14 '23 02:08 coolgw

I have done some cleanup actions base v2 patch(add check base @metan-ucw 's feedback) and create v3 patch. https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/ Hope this patch can close this feature request.

coolgw avatar Sep 16 '23 12:09 coolgw

Sorry but I couldn't work on it and somehow missed the e-mails. Thanks for making a new version of the patch

fedeb95 avatar Sep 16 '23 15:09 fedeb95

Sorry but I couldn't work on it and somehow missed the e-mails. Thanks for making a new version of the patch

np : )

coolgw avatar Sep 17 '23 01:09 coolgw