Re: [net 1/1] tipc: fix skb truesize/datasize ratio control

2018-02-08 Thread David Miller
From: Jon Maloy Date: Thu, 8 Feb 2018 17:16:25 +0100 > From: Hoang Le > > In commit d618d09a68e4 ("tipc: enforce valid ratio between skb truesize > and contents") we introduced a test for ensuring that the condition > truesize/datasize <= 4 is true for a received buffer. Unfortunately this > te

[net 1/1] tipc: fix skb truesize/datasize ratio control

2018-02-08 Thread Jon Maloy
From: Hoang Le In commit d618d09a68e4 ("tipc: enforce valid ratio between skb truesize and contents") we introduced a test for ensuring that the condition truesize/datasize <= 4 is true for a received buffer. Unfortunately this test has two problems. - Because of the integer arithmetics the test