From: Gao Feng <redacted>
The original codes depend on that the function parameters are evaluated from
left to right. But the parameter's evaluation order is not defined in C
standard actually.
When flow_keys_have_l4(&keys) is invoked before ___skb_get_hash(skb, &keys,
hashrnd) with some compilers or environment, the keys passed to
flow_keys_have_l4 is not initialized.
Signed-off-by: Gao Feng <redacted>
---
net/core/flow_dissector.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
From: Eric Dumazet <hidden> Date: 2016-08-31 04:14:56
On Wed, 2016-08-31 at 10:56 +0800, fgao@ikuai8.com wrote:
From: Gao Feng <redacted>
The original codes depend on that the function parameters are evaluated from
left to right. But the parameter's evaluation order is not defined in C
standard actually.
When flow_keys_have_l4(&keys) is invoked before ___skb_get_hash(skb, &keys,
hashrnd) with some compilers or environment, the keys passed to
flow_keys_have_l4 is not initialized.
Signed-off-by: Gao Feng <redacted>
---
Good catch, please add
Fixes: 6db61d79c1e1 ("flow_dissector: Ignore flow dissector return value from ___skb_get_hash")
Acked-by: Eric Dumazet <edumazet@google.com>
On Wed, Aug 31, 2016 at 12:14 PM, Eric Dumazet [off-list ref] wrote:
On Wed, 2016-08-31 at 10:56 +0800, fgao@ikuai8.com wrote:
quoted
From: Gao Feng <redacted>
The original codes depend on that the function parameters are evaluated from
left to right. But the parameter's evaluation order is not defined in C
standard actually.
When flow_keys_have_l4(&keys) is invoked before ___skb_get_hash(skb, &keys,
hashrnd) with some compilers or environment, the keys passed to
flow_keys_have_l4 is not initialized.
Signed-off-by: Gao Feng <redacted>
---
Good catch, please add
Fixes: 6db61d79c1e1 ("flow_dissector: Ignore flow dissector return value from ___skb_get_hash")
Acked-by: Eric Dumazet <edumazet@google.com>
Add it into the description and resend the patch again?
Best Regards
Feng
On Wed, Aug 31, 2016 at 12:16 PM, Gao Feng [off-list ref] wrote:
On Wed, Aug 31, 2016 at 12:14 PM, Eric Dumazet [off-list ref] wrote:
quoted
On Wed, 2016-08-31 at 10:56 +0800, fgao@ikuai8.com wrote:
quoted
From: Gao Feng <redacted>
The original codes depend on that the function parameters are evaluated from
left to right. But the parameter's evaluation order is not defined in C
standard actually.
When flow_keys_have_l4(&keys) is invoked before ___skb_get_hash(skb, &keys,
hashrnd) with some compilers or environment, the keys passed to
flow_keys_have_l4 is not initialized.
Signed-off-by: Gao Feng <redacted>
---
Good catch, please add
Fixes: 6db61d79c1e1 ("flow_dissector: Ignore flow dissector return value from ___skb_get_hash")
Acked-by: Eric Dumazet <edumazet@google.com>
Add it into the description and resend the patch again?
Best Regards
Feng
Hi Eric,
I have sent the update "v2" patch which has the description "Fixes:
6db61d79c1e1 ("flow_dissector: Ignore flow dissector return value from
___skb_get_hash")".
Could you help review it again please?
Best Regards
Feng