[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150604.004658.541562931844276343.davem@davemloft.net>
Date: Thu, 04 Jun 2015 00:46:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: shawn.bohrer@...il.com
Cc: netdev@...r.kernel.org, Yurij.Plotnikov@...etlabs.ru,
Alexandra.Kossovsky@...etlabs.ru, eric.dumazet@...il.com,
oliver.e.graff@...il.com, sergei.shtylyov@...entembedded.com,
sbohrer@...advisors.com
Subject: Re: [PATCH v2] ipv4/udp: Verify multicast group is ours in
upd_v4_early_demux()
From: Shawn Bohrer <shawn.bohrer@...il.com>
Date: Wed, 3 Jun 2015 16:27:38 -0500
> From: Shawn Bohrer <sbohrer@...advisors.com>
>
> 421b3885bf6d56391297844f43fb7154a6396e12 "udp: ipv4: Add udp early
> demux" introduced a regression that allowed sockets bound to INADDR_ANY
> to receive packets from multicast groups that the socket had not joined.
> For example a socket that had joined 224.168.2.9 could also receive
> packets from 225.168.2.9 despite not having joined that group if
> ip_early_demux is enabled.
>
> Fix this by calling ip_check_mc_rcu() in udp_v4_early_demux() to verify
> that the multicast packet is indeed ours.
>
> Signed-off-by: Shawn Bohrer <sbohrer@...advisors.com>
> Reported-by: Yurij M. Plotnikov <Yurij.Plotnikov@...etlabs.ru>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists