netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* possible kernel oops from user MSS
@ 2010-11-10 13:24 Steve Chen
  2010-11-10 20:41 ` David Miller
  0 siblings, 1 reply; 11+ messages in thread
From: Steve Chen @ 2010-11-10 13:24 UTC (permalink / raw)
  To: netdev

Hello

With commit f5fff5dc8a7a3f395b0525c02ba92c95d42b7390, a user program
can pass in TCP_MAXSEG of 12 (or TCPOLEN_TSTAMP_ALIGNED), and cause
kernel oops with division by 0
 in tcp_select_initial_window.  One way to prevent it is to change the
minimum value for TCP_MAXSEG in do_tcp_setsockopt from 8 to some value
over 12.  Two questions.

1.  Is this the right solution?
2.  If it is, what is a good minimum value?

Thanks,

Steve

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

end of thread, other threads:[~2010-11-24 19:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-10 13:24 possible kernel oops from user MSS Steve Chen
2010-11-10 20:41 ` David Miller
2010-11-11  5:15   ` Shan Wei
2010-11-11  5:33     ` David Miller
2010-11-11  5:36       ` David Miller
2010-11-11  5:37       ` Shan Wei
     [not found]   ` <AANLkTin-gXceUQxKvQeP8Nc8oXZDJnyjoFUjYD5x_g_y@mail.gmail.com>
2010-11-12 22:59     ` Min Zhang
2010-11-12 23:26       ` David Miller
2010-11-23  2:48         ` Li Yewang
2010-11-23  2:59           ` David Miller
2010-11-24 19:47       ` David Miller

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).