]> git.itanic.dy.fi Git - linux-stable/commit
net: igmp: increase size of mr_ifc_count
authorEric Dumazet <edumazet@google.com>
Wed, 11 Aug 2021 19:57:15 +0000 (12:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 06:59:13 +0000 (08:59 +0200)
commit4344440d91b347bd2b1c7367a7a523e1d2afd8ba
tree7dc5c3f15ab461a592ea912c0493b5586dc64e3b
parent696afe28dc515f3987f4dc2ad071e8fc1e058ea8
net: igmp: increase size of mr_ifc_count

[ Upstream commit b69dd5b3780a7298bd893816a09da751bc0636f7 ]

Some arches support cmpxchg() on 4-byte and 8-byte only.
Increase mr_ifc_count width to 32bit to fix this problem.

Fixes: 4a2b285e7e10 ("net: igmp: fix data-race in igmp_ifc_timer_expire()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210811195715.3684218-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/inetdevice.h
net/ipv4/igmp.c