]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: fix broadcast packets reception
authorPaolo Abeni <pabeni@redhat.com>
Tue, 22 Mar 2016 08:19:38 +0000 (09:19 +0100)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:22:01 +0000 (17:22 -0500)
commit53efd1de47cbeeb84c1cae31f84156936179f565
treee4859364ebf8b703fb89f8a4bebc93a97d3e9b18
parentb130b6ba9c7c574b9f05e321947db1b8eee27792
ipv4: fix broadcast packets reception

Orabug: 25308060

[ Upstream commit ad0ea1989cc4d5905941d0a9e62c63ad6d859cef ]

Currently, ingress ipv4 broadcast datagrams are dropped since,
in udp_v4_early_demux(), ip_check_mc_rcu() is invoked even on
bcast packets.

This patch addresses the issue, invoking ip_check_mc_rcu()
only for mcast packets.

Fixes: 6e5403093261 ("ipv4/udp: Verify multicast group is ours in upd_v4_early_demux()")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 263a20bc8ce3c3cb2ad3078457dc7abd29bc9165)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
net/ipv4/udp.c