]> git.baikalelectronics.ru Git - kernel.git/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:57:01 +0000 (08:57 +0200)
commit9360c5050625a44d02819bb0e999e13978e25b6a
tree5a091d74826ecc50ce3122522c5377b043e6ad19
parentfec5f0fcfaa14e56cc0e6ce8c8596828fb51c239
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