Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-03-06 Thread chetan loke
On Mon, Mar 6, 2017 at 9:45 AM, Willem de Bruijn wrote: > On Mon, Mar 6, 2017 at 12:13 PM, chetan loke wrote: Gosh. Can we also replace this BUG() into something less aggressive ? >>> >>> >>> There are currently 5 of these WARN() + BUG() constructs and 1 BUG()-only >>> for the 'default'

Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-03-06 Thread Willem de Bruijn
> Gosh. Can we also replace this BUG() into something less aggressive ? There are currently 5 of these WARN() + BUG() constructs and 1 BUG()-only for the 'default' TPACKET version spread all over af_packet, so probably makes sense to rather make all of them less aggress

Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-03-06 Thread Willem de Bruijn
On Mon, Mar 6, 2017 at 12:13 PM, chetan loke wrote: >>> >>> Gosh. Can we also replace this BUG() into something less aggressive ? >> >> >> There are currently 5 of these WARN() + BUG() constructs and 1 BUG()-only >> for the 'default' TPACKET version spread all over af_packet, so probably >> makes

Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-03-06 Thread chetan loke
>> >> Gosh. Can we also replace this BUG() into something less aggressive ? > > > There are currently 5 of these WARN() + BUG() constructs and 1 BUG()-only > for the 'default' TPACKET version spread all over af_packet, so probably > makes sense to rather make all of them less aggressive. > > Very

Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-01-05 Thread Daniel Borkmann
On 01/05/2017 07:27 PM, Eric Dumazet wrote: On Thu, 2017-01-05 at 02:34 +0100, Daniel Borkmann wrote: [...] diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 7e39087..ddbda25 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -481,6 +481,9 @@ static __u32 __pac

Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-01-05 Thread Eric Dumazet
On Thu, 2017-01-05 at 02:34 +0100, Daniel Borkmann wrote: > When TX timestamping is in use with TPACKET_V3's TX ring, then we'll > hit the BUG() in __packet_set_timestamp() when ring buffer slot is > returned to user space via tpacket_destruct_skb(). This is due to v3 > being assumed as unreachable

Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-01-04 Thread David Miller
From: Daniel Borkmann Date: Thu, 5 Jan 2017 02:34:28 +0100 > When TX timestamping is in use with TPACKET_V3's TX ring, then we'll > hit the BUG() in __packet_set_timestamp() when ring buffer slot is > returned to user space via tpacket_destruct_skb(). This is due to v3 > being assumed as unreach

Re: [PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-01-04 Thread Sowmini Varadhan
On (01/05/17 02:34), Daniel Borkmann wrote: > When TX timestamping is in use with TPACKET_V3's TX ring, then we'll > hit the BUG() in __packet_set_timestamp() when ring buffer slot is > returned to user space via tpacket_destruct_skb(). This is due to v3 > being assumed as unreachable here, but sin

[PATCH net-next] packet: fix panic in __packet_set_timestamp on tpacket_v3 in tx mode

2017-01-04 Thread Daniel Borkmann
When TX timestamping is in use with TPACKET_V3's TX ring, then we'll hit the BUG() in __packet_set_timestamp() when ring buffer slot is returned to user space via tpacket_destruct_skb(). This is due to v3 being assumed as unreachable here, but since 7f953ab2ba46 ("af_packet: TX_RING support for TPA