Re: [PATCH v2] kernel/fork.c: annotate data races for copy_process

2020-06-23 Thread Christian Brauner
On Tue, Jun 23, 2020 at 12:12:40PM +0800, Weilong Chen wrote: > KCSAN report there's a data race risk while using nr_threads. > But according to the comment above it: > ' > /* > * If multiple threads are within copy_process(), then this check > * triggers too late. This

[PATCH v2] kernel/fork.c: annotate data races for copy_process

2020-06-22 Thread Weilong Chen
KCSAN report there's a data race risk while using nr_threads. But according to the comment above it: ' /* * If multiple threads are within copy_process(), then this check * triggers too late. This doesn't hurt, the check is only there * to stop root fork bombs.