[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iL6T9pVT6EPdbDD1Q2Y42ZOQ-fGdPO1-zDqQ6TgfJ0fGQ@mail.gmail.com>
Date: Wed, 10 May 2023 13:31:41 +0200
From: Eric Dumazet <edumazet@...gle.com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Kuniyuki Iwashima <kuni1840@...il.com>, netdev@...r.kernel.org,
syzbot <syzkaller@...glegroups.com>
Subject: Re: [PATCH v1 net 1/2] af_unix: Fix a data race of sk->sk_receive_queue->qlen.
On Wed, May 10, 2023 at 2:35 AM Kuniyuki Iwashima <kuniyu@...zon.com> wrote:
>
> KCSAN found a data race of sk->sk_receive_queue->qlen where recvmsg()
> updates qlen under the queue lock and sendmsg() checks qlen under
> unix_state_sock(), not the queue lock, so the reader side needs
> READ_ONCE().
>
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Reported-by: syzbot <syzkaller@...glegroups.com>
> Signed-off-by: Kuniyuki Iwashima <kuniyu@...zon.com>
> ---
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists