netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: possible bug in latest network tree
@ 2016-03-30 21:05 Light, John J
  2016-03-30 21:17 ` Eric Dumazet
  2016-03-31 22:34 ` Cong Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Light, John J @ 2016-03-30 21:05 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev@vger.kernel.org

David,

I see a recent change in inet_connection_sock.c that uses sysctl_tcp_synack_retries suspiciously.

Previously, sysctl_tcp_synack_retries was a global variable, and now it has been moved into the fragment (really netns_ipv4).

In reqsk_timer_handler (inet_connection_sock.c) near line 563 it is used as the default max_retries value in case icsk->icsk_syn_retries is not set.

Previously, other transports (dccp?) would use the TCP global variable as a default.  Now that the defaults come from the fragment, I suspect the fragment variable is not set for other transports.  (I can't find where it's set for dccp.)

Of course, this will only show in non-TCP transport protocols when the icsk retries value is not set, so it's a rare case.  Perhaps it's an unreachable case, since I don't know all the kernel paths.

Maybe the problem is that the default shouldn't be to a TCP value, but should be a 'transport' value.

This code is somewhat convoluted, so I am not sure of my analysis, but I wanted you to consider it.

John Light
Intel OTC comms

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-31 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 21:05 possible bug in latest network tree Light, John J
2016-03-30 21:17 ` Eric Dumazet
2016-03-31 22:34 ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).