From owner-freebsd-bugs Tue Mar 21 6:50: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3CD6737B7F0 for ; Tue, 21 Mar 2000 06:50:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA05087; Tue, 21 Mar 2000 06:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A2A4137B8BA for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/17526: PB of frequency heuristic in uipc_socket.c in FreeBSD 3.4 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 21 06:50:02 PST 2000 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message