[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191108.123443.589945542624966129.davem@redhat.com>
Date: Fri, 08 Nov 2019 12:34:43 -0800 (PST)
From: David Miller <davem@...hat.com>
To: edumazet@...gle.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
syzkaller@...glegroups.com
Subject: Re: [PATCH net-next] net: icmp: fix data-race in cmp_global_allow()
From: Eric Dumazet <edumazet@...gle.com>
Date: Fri, 8 Nov 2019 10:34:47 -0800
> This code reads two global variables without protection
> of a lock. We need READ_ONCE()/WRITE_ONCE() pairs to
> avoid load/store-tearing and better document the intent.
>
> KCSAN reported :
> BUG: KCSAN: data-race in icmp_global_allow / icmp_global_allow
...
> Fixes: 4cdf507d5452 ("icmp: add a global rate limitation")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Reported-by: syzbot <syzkaller@...glegroups.com>
Applied, thanks Eric.
Powered by blists - more mailing lists