From ahd@kew.com  Thu Mar 13 20:13:52 1997
Received: from fantasy-factory.net.kew.com (ahd@fantasy-factory.net.kew.com [204.96.41.103])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA14538
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Mar 1997 20:13:47 -0800 (PST)
Received: (from ahd@localhost)
	by fantasy-factory.net.kew.com (8.8.5/8.8.5) id XAA01521;
	Thu, 13 Mar 1997 23:13:12 -0500 (EST)
Message-Id: <199703140413.XAA01521@fantasy-factory.net.kew.com>
Date: Thu, 13 Mar 1997 23:13:12 -0500 (EST)
From: Drew Derbyshire <ahd@kew.com>
Reply-To: ahd@kew.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: serial console speed goes to hell during boot
X-Send-Pr-Version: 3.2

>Number:         2984
>Category:       i386
>Synopsis:       serial port console only prints ~ 1 char per second
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 13 20:20:02 PST 1997
>Closed-Date:    Sun Apr 19 12:43:53 PDT 1998
>Last-Modified:  Thu Aug  8 22:30:00 UTC 2013
>Originator:     Drew Derbyshire
>Release:        FreeBSD 2.2-970225-GAMMA i386
>Organization:
Kendra Electronic Wonderworks
>Environment:

	Northgate 386/33 Slimline Cache
	16M RAM
	250M Quantum IDE hard drive
	387 FPU
	Two motherboard resident 14450 serial ports (SIO0, SIO2)
	Motherboard resident LPT0
	Zoom 28.8 modem (SIO3)
	IBM 14.4 modem (SIO4)
	(no ethernet, keyboard, or video card during test)

>Description:

	When booting the 2.2 GAMMA release using a serial console
	the output (to an IBM PS/1 previously successfully used
	for a serial console for 2.1.5-RELEASE for another 386),
	output is normal 9600 bps output until about the time the
	NPU is detected.  Then, output slows to a crawl (~ 1
	character/second) until shutdown ... the last two lines
	before reboot are printed at a normal speed (again), implying
	the hardware is (still) fine.

	This is a severe impact on the boot process if too many
	messages are issued and buffering is not possible, delaying
	the processes run at the end of the boot by as much as 15
	minutes.

	Important note is that I also seeing stray IRQ 7's about
	the time of the impacted performance; I recongize this
	could be a hardware problem interacting with the serial
	ports, but I don't know of what type -- in previous lives
	running OS/2 and Win 3.1, the machine performed fine.

	Sample log ...

   athena /kernel: Copyright (c) 1992-1996 FreeBSD Inc.
   athena /kernel: Copyright (c) 1982, 1986, 1989, 1991, 1993
   athena /kernel: 	The Regents of the University of California.  All rights reserved.
   athena /kernel: 
   athena /kernel: FreeBSD 2.2-970225-GAMMA #5: Sat Mar  8 15:55:41 EST 1997
   athena /kernel:     ahd@sonata.hh.kew.com:/usr/src/sys/compile/ATHENA
   athena /kernel: Calibrating clock(s) relative to mc146818A clock ... i8254 clock: 1193168 Hz
   athena /kernel: CPU: i386DX (386-class CPU)
   athena /kernel: real memory  = 16646144 (16256K bytes)
   athena /kernel: avail memory = 14991360 (14640K bytes)
   athena /kernel: Probing for devices on the ISA bus:
   athena /kernel: ed0 at 0x280-0x29f irq 10 maddr 0xd8000 msize 16384 on isa
   athena /kernel: ed0: address 00:00:c0:bd:80:d0, type SMC8216/SMC8216C (16 bit) 
   athena /kernel: sio0 at 0x3f8-0x3ff irq 4 on isa
   athena /kernel: sio0: type 16450
   athena /kernel: sio1 at 0x2f8-0x2ff irq 3 on isa
   athena /kernel: sio1: type 16450
   athena /kernel: sio2 at 0x3e8-0x3ef irq 5 on isa
   athena /kernel: sio2: type 16550A
   athena /kernel: sio3 at 0x2e8-0x2ef irq 9 on isa
   athena /kernel: sio3: type 16550A
   athena /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
   athena /kernel: wdc0 at 0x1f0-0x1f7 irq 14 on isa
   athena /kernel: wdc0: unit 0 (wd0): <QUANTUM LP240A GM240A01X>
   athena /kernel: wd0: 234MB (479349 sectors), 723 cyls, 13 heads, 51 S/T, 512 B/S
   athena /kernel: npx0 at 0xf0-0xff irq 13 on motherboard
   athena /kernel: stray irq 7
   athena last message repeated 4 times
   athena /kernel: too many stray irq 7's; not logging any more

>How-To-Repeat:

	Consistently happens every reboot on the specified machine.
	Machine configuration (input to config) can be supplied on
	request.

	I do have source loaded, and can test changes if requested.

>Fix:
	
	Unknown cause and therefore fix.

	Workaround is to declare dummy VGA console and perform blind
	boot.

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: ahd@kew.com, FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: Re: i386/2984: serial console speed goes to hell during boot
Date: Fri, 14 Mar 1997 16:53:03 +1100

 >	When booting the 2.2 GAMMA release using a serial console
 >	the output (to an IBM PS/1 previously successfully used
 >	for a serial console for 2.1.5-RELEASE for another 386),
 >	output is normal 9600 bps output until about the time the
 >	NPU is detected.  Then, output slows to a crawl (~ 1
 >	character/second) until shutdown ... the last two lines
 >	before reboot are printed at a normal speed (again), implying
 >	the hardware is (still) fine.
 
 Check that nothing in /etc/rc.serial touches the console port.
 
 Bruce
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sun Apr 19 12:43:53 PDT 1998 
State-Changed-Why:  
timed out 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: i386/2984: commit references a PR
Date: Thu,  8 Aug 2013 22:26:11 +0000 (UTC)

 Author: delphij
 Date: Thu Aug  8 22:26:03 2013
 New Revision: 254106
 URL: http://svnweb.freebsd.org/changeset/base/254106
 
 Log:
   Integrate OpenSSL commit 9fe4603b8245425a4c46986ed000fca054231253:
   Author: David Woodhouse <dwmw2@infradead.org>
   Date:   Tue Feb 12 14:55:32 2013 +0000
   
       Check DTLS_BAD_VER for version number.
   
       The version check for DTLS1_VERSION was redundant as
       DTLS1_VERSION > TLS1_1_VERSION, however we do need to
       check for DTLS1_BAD_VER for compatibility.
   
       PR:2984
       (cherry picked from commit d980abb22e22661e98e5cee33d760ab0c7584ecc)
   
   Approved by:	benl
 
 Modified:
   vendor-crypto/openssl/dist/ssl/s3_cbc.c
 
 Modified: vendor-crypto/openssl/dist/ssl/s3_cbc.c
 ==============================================================================
 --- vendor-crypto/openssl/dist/ssl/s3_cbc.c	Thu Aug  8 22:09:46 2013	(r254105)
 +++ vendor-crypto/openssl/dist/ssl/s3_cbc.c	Thu Aug  8 22:26:03 2013	(r254106)
 @@ -148,7 +148,7 @@ int tls1_cbc_remove_padding(const SSL* s
  	unsigned padding_length, good, to_check, i;
  	const unsigned overhead = 1 /* padding length byte */ + mac_size;
  	/* Check if version requires explicit IV */
 -	if (s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION)
 +	if (s->version >= TLS1_1_VERSION || s->version == DTLS1_BAD_VER)
  		{
  		/* These lengths are all public so we can test them in
  		 * non-constant time.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
