[Bug 262633] Missing mtx protecting variable prison->pr_prison_racct
Date: Fri, 18 Mar 2022 11:20:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262633 --- Comment #1 from firk@cantconnect.ru --- What can be done: 1) disable racct - obviously not the case 2) rollback commit https://svnweb.freebsd.org/base?view=revision&revision=221362 - seems also not the case 3) disable jail renaming when racct enabled - personally I don't see any problems with this (I'm not sure if jail renaming ever used by someone) 4) add protective lock for prison->pr_prison_racct It will works, but I don't think it is good idea. Currently, only protected proc->p_ucred needed to get related jail racct pointer. Requiring any additional locks to do this will make racct code more complicated. 5) very complicated jail-rename procedure, locking all processes inside before renaming and unlocking them after; this will lead to some performance loss, but since jail renaming never used, nobody will notice it; I'm not sure if this is needed -- You are receiving this mail because: You are the assignee for the bug.