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]>
On 17 August 2026 14:43:44 BST, Joel Granados <[email protected]>
wrote:
>On Sat, Aug 15, 2026 at 05:05:26PM +0100, Bradley Morgan wrote:
>> 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.
>
>Seems reasonable: here is what I added to the commit message:
>
>
>"
>... This (The staging vector) does **not** make the write atomic as a
>reader
>can still see a partially updated vector.
>

Good enough.


>...
>"
>
>Best
>
>Joel
>
>> 
>> The copy is limited by table->maxlen and only vectors pay for it.
>> 
>> Fine by me.
>> 
>> Reviewed-by: Bradley Morgan <[email protected]>
>> Thanks!
>

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.