From nobody@FreeBSD.org  Tue Mar 21 06:40:13 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id A2A4137B8BA
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Mar 2000 06:40:12 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id GAA69316;
	Tue, 21 Mar 2000 06:40:12 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003211440.GAA69316@freefall.freebsd.org>
Date: Tue, 21 Mar 2000 06:40:12 -0800 (PST)
From: elemiere@matra-ms2i.fr
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: PB of frequency heuristic in uipc_socket.c in FreeBSD 3.4
X-Send-Pr-Version: www-1.0

>Number:         17526
>Category:       i386
>Synopsis:       PB of frequency heuristic in uipc_socket.c in FreeBSD 3.4
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 21 06:50:02 PST 2000
>Closed-Date:    Mon Mar 12 17:40:59 PST 2001
>Last-Modified:  Mon Mar 12 17:43:12 PST 2001
>Originator:     Eric Lemiere
>Release:        FreeBSD 3.4
>Organization:
MS&I
>Environment:
>Description:
Here it is:
When configuring my kernel with the option
HZ = 1000
instead of
HZ = 100
, the following lines in uipc_socket.c lead to a systematic error.
----------------------------------------------
  case SO_RCVTIMEO:
   error = sooptcopyin(sopt, &tv, sizeof tv,
         sizeof tv);
   if (error)
    goto bad;

   if (tv.tv_sec > SHRT_MAX / hz - hz) {
    error = EDOM;
    goto bad;
   }
----------------------------------------------

Would you please chagne your heuristic, so as to change to 1000Hz?
Thanks
>How-To-Repeat:
Kernel configuration
>Fix:
changed the heuristic, but don't know the overall impact...

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Wed Mar 22 01:51:44 PST 2000 
State-Changed-Why:  
YOu should have a look at the code on the RELENG_4 branch, which 
is quite different. 
State-Changed-From-To: feedback->closed 
State-Changed-By: des 
State-Changed-When: Mon Mar 12 17:40:59 PST 2001 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17526 
>Unformatted:
