Re: [PATCH 7/7] sysvipc_find_ipc should increase position index

From: Vasily Averin
Date: Wed May 06 2020 - 01:04:31 EST


On 5/5/20 7:13 PM, Andreas Schwab wrote:
> I think this is causing this bug (seen on 5.6.8):

thank you for reporting,
yes, you are right, it's my fault
patch incorrectly updated *new_pos in case of found entry

> # ipcs -q
>
> ------ Message Queues --------
> key msqid owner perms used-bytes messages
> 0x7c982867 3 root 644 0 0
> 0x7c982867 3 root 644 0 0
> 0x7c982867 3 root 644 0 0
> 0x7c982867 3 root 644 0 0

Thank you,
Vasily Averin