Re: [PATCH v2] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-25 Thread Steven Rostedt
On Tue, 24 Jul 2018 17:12:13 +0200 Snild Dolkow wrote: > There is a window for racing when printing directly to task->comm, > allowing other threads to see a non-terminated string. The vsnprintf > function fills the buffer, counts the truncated chars, then finally > writes the \0 at the end. >

Re: [PATCH v2] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-25 Thread Steven Rostedt
On Tue, 24 Jul 2018 17:12:13 +0200 Snild Dolkow wrote: > There is a window for racing when printing directly to task->comm, > allowing other threads to see a non-terminated string. The vsnprintf > function fills the buffer, counts the truncated chars, then finally > writes the \0 at the end. >

[PATCH v2] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-24 Thread Snild Dolkow
There is a window for racing when printing directly to task->comm, allowing other threads to see a non-terminated string. The vsnprintf function fills the buffer, counts the truncated chars, then finally writes the \0 at the end. creator other vsnprintf:

[PATCH v2] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-24 Thread Snild Dolkow
There is a window for racing when printing directly to task->comm, allowing other threads to see a non-terminated string. The vsnprintf function fills the buffer, counts the truncated chars, then finally writes the \0 at the end. creator other vsnprintf: