Re: [PATCH net-next] packet: fix match_fanout_group()

2015-10-12 Thread David Miller
From: Eric Dumazet Date: Fri, 09 Oct 2015 11:29:32 -0700 > From: Eric Dumazet > > Recent TCP listener patches exposed a prior af_packet bug : > match_fanout_group() blindly assumes it is always safe > to cast sk to a packet socket to compare fanout with af_packet_priv > > But SYNACK packets ca

[PATCH net-next] packet: fix match_fanout_group()

2015-10-09 Thread Eric Dumazet
From: Eric Dumazet Recent TCP listener patches exposed a prior af_packet bug : match_fanout_group() blindly assumes it is always safe to cast sk to a packet socket to compare fanout with af_packet_priv But SYNACK packets can be sent while attached to request_sock, which are smaller than a "struc