linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.3k stars 1.01k forks source link

Write test for SCHED_RESET_ON_FORK #905

Open pevik opened 2 years ago

pevik commented 2 years ago

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/

fedeb95 commented 1 year ago

Hi, may I work on this?

pevik commented 1 year ago

@fedeb95 You're welcome.

fedeb95 commented 1 year ago

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

coolgw commented 1 year ago

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/20221114225616.54212-1-federico.bonfiglio@protonmail.ch/

coolgw commented 11 months ago

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/20230916124919.31203-1-wegao@suse.com/ Hope this patch can close this feature request.

fedeb95 commented 11 months ago

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

coolgw commented 11 months ago

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 commented 3 months ago

This issue can be closed since patch get merged.