Re: [PATCH v2 3/4] sysctl: Disallow part ial updates for erroneous sysctl vectors

Bradley Morgan <[email protected]>
Newsgroups org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm
Message-ID <[email protected]>
commit_conv_vec() writes the elements one by one, so a reader can
still see a mix of old and new values while the loop runs. Same as
before this series, so no regression, but the changelog could say
this doesn't make the write atomic either. Otherwise someone later
will expect the vector to change all at once.

The copy is limited by table->maxlen and only vectors pay for it.

Fine by me.

Reviewed-by: Bradley Morgan <[email protected]>
Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.