From owner-freebsd-bugs Sun Nov 16 03:46:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA13208 for bugs-outgoing; Sun, 16 Nov 1997 03:46:50 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from jkh.cdrom.com (jkh.cdrom.com [204.216.27.61]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA13200 for ; Sun, 16 Nov 1997 03:46:43 -0800 (PST) (envelope-from jkh@jkh.cdrom.com) Received: from jkh.cdrom.com (localhost.cdrom.com [127.0.0.1]) by jkh.cdrom.com (8.8.6/8.8.5) with ESMTP id DAA05178; Sun, 16 Nov 1997 03:46:07 -0800 (PST) Message-Id: <199711161146.DAA05178@jkh.cdrom.com> To: Evan Champion cc: Steve Price , freebsd-bugs@hub.freebsd.org Subject: Re: misc/5054: /tmp not nuked on reboot In-reply-to: Your message of "Sat, 15 Nov 1997 21:27:30 EST." Date: Sun, 16 Nov 1997 03:46:07 -0800 From: "Jordan K. Hubbard" Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I know that this is something that a lot of people like and a lot of > people hate. Fortunately, that is why /etc/rc.conf exists, so that you > can configure what _you_ want the system to do. What I'd like to see is > for this to become an option in /etc/rc.conf. That way those who want it > can and those who don't just don't set that option. Seams reasonable to me, just so long as POLA is respected and it's off by default. :) Jordan From owner-freebsd-bugs Sun Nov 16 04:07:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA14126 for bugs-outgoing; Sun, 16 Nov 1997 04:07:12 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from elvis.vnet.net (elvis.vnet.net [166.82.1.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA14121 for ; Sun, 16 Nov 1997 04:07:10 -0800 (PST) (envelope-from rivers@dignus.com) Received: from ponds.dignus.com (ponds.vnet.net [166.82.177.48]) by elvis.vnet.net (8.8.5/8.8.4) with ESMTP id HAA28335; Sun, 16 Nov 1997 07:06:29 -0500 (EST) Received: from lakes.dignus.com (lakes [10.0.0.3]) by ponds.dignus.com (8.8.5/8.8.5) with ESMTP id HAA19496; Sun, 16 Nov 1997 07:23:45 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.8.7/8.6.9) id HAA05945; Sun, 16 Nov 1997 07:11:42 -0500 (EST) Date: Sun, 16 Nov 1997 07:11:42 -0500 (EST) From: Thomas David Rivers Message-Id: <199711161211.HAA05945@lakes.dignus.com> To: evanc@synapse.net, jkh@jkh.cdrom.com Subject: Re: misc/5054: /tmp not nuked on reboot Cc: freebsd-bugs@hub.freebsd.org, sprice@hiwaay.net Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > I know that this is something that a lot of people like and a lot of > > people hate. Fortunately, that is why /etc/rc.conf exists, so that you > > can configure what _you_ want the system to do. What I'd like to see is > > for this to become an option in /etc/rc.conf. That way those who want it > > can and those who don't just don't set that option. > > Seams reasonable to me, just so long as POLA is respected and > it's off by default. :) > > Jordan > > Yes, but please add the other suggestion I made in bug 4982; so the X server comes up correctly on a reboot. Even though we don't delete all of /tmp; there's _some_ of /tmp that needs to be deleted no matter what... - Dave Rivers - From owner-freebsd-bugs Sun Nov 16 04:56:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA16705 for bugs-outgoing; Sun, 16 Nov 1997 04:56:34 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from steve@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA16679; Sun, 16 Nov 1997 04:56:27 -0800 (PST) (envelope-from steve) Date: Sun, 16 Nov 1997 04:56:27 -0800 (PST) From: Steve Price Message-Id: <199711161256.EAA16679@hub.freebsd.org> To: rivers@dignus.com, steve, freebsd-bugs Subject: Re: misc/4982 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: On reboot; /tmp/.X* can be left causing X to fail. State-Changed-From-To: open-closed State-Changed-By: steve State-Changed-When: Sun Nov 16 04:55:38 PST 1997 State-Changed-Why: Fixed in -current in rev 1.139 of rc. From owner-freebsd-bugs Sun Nov 16 04:57:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA16864 for bugs-outgoing; Sun, 16 Nov 1997 04:57:33 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from steve@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA16835; Sun, 16 Nov 1997 04:57:29 -0800 (PST) (envelope-from steve) Date: Sun, 16 Nov 1997 04:57:29 -0800 (PST) From: Steve Price Message-Id: <199711161257.EAA16835@hub.freebsd.org> To: evanc@synapse.net, steve, freebsd-bugs Subject: Re: misc/5054 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: /tmp not nuked on reboot State-Changed-From-To: open-closed State-Changed-By: steve State-Changed-When: Sun Nov 16 04:56:39 PST 1997 State-Changed-Why: Fixed in -current in rev 1.139 of rc and rev 1.134 of rc.conf. From owner-freebsd-bugs Sun Nov 16 05:29:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA21098 for bugs-outgoing; Sun, 16 Nov 1997 05:29:38 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from steve@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA21078; Sun, 16 Nov 1997 05:29:35 -0800 (PST) (envelope-from steve) Date: Sun, 16 Nov 1997 05:29:35 -0800 (PST) From: Steve Price Message-Id: <199711161329.FAA21078@hub.freebsd.org> To: jhs@FreeBSD.ORG, steve, freebsd-bugs Subject: Re: bin/4954 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Extension of manual State-Changed-From-To: open-closed State-Changed-By: steve State-Changed-When: Sun Nov 16 05:28:58 PST 1997 State-Changed-Why: Slightly modified patch applied to -current. Thanks! From owner-freebsd-bugs Sun Nov 16 12:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA12739 for bugs-outgoing; Sun, 16 Nov 1997 12:30:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA12727; Sun, 16 Nov 1997 12:30:01 -0800 (PST) (envelope-from gnats) Date: Sun, 16 Nov 1997 12:30:01 -0800 (PST) Message-Id: <199711162030.MAA12727@hub.freebsd.org> To: freebsd-bugs Cc: From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: misc/5001: During installation sc0 device is required, but you can disable it Reply-To: j@uriah.heep.sax.de (J Wunsch) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR misc/5001; it has been noted by GNATS. From: j@uriah.heep.sax.de (J Wunsch) To: anthony@pinkworks.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: misc/5001: During installation sc0 device is required, but you can disable it Date: Sun, 16 Nov 1997 20:57:22 +0100 As anthony@pinkworks.com wrote: > I think that is should not be possible to disable to sc0 device. There might be good reasons why you want to be able to disable the sc0 device, for example if you're booting from a serial console and don't have the appropriate video hardware installed at all. (Yes, about 80 or such percent of the PeeCees do know how to handle this situation.) Unfortunately, the configuration screen at first-time boot is the same as for any further boot (basically), so generally disabling to shoot into your foot is not an option. Ideally, one should be able to install from a serial console, mind you, but it indeed takes a new system installation tool in order to allow *this*. :-) If all goes well with Jordan's intentions, FreeBSD 3.0 might have that tool. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Sun Nov 16 23:48:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA20557 for bugs-outgoing; Sun, 16 Nov 1997 23:48:37 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from ghpc8.ihf.rwth-aachen.de (ghpc8.ihf.RWTH-Aachen.DE [134.130.90.8]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA20546 for ; Sun, 16 Nov 1997 23:48:30 -0800 (PST) (envelope-from thomas@ghpc8.ihf.rwth-aachen.de) Received: from ghpc6.ihf.rwth-aachen.de (ghpc6.ihf.rwth-aachen.de [134.130.90.6]) by ghpc8.ihf.rwth-aachen.de (8.8.7/8.8.6) with ESMTP id IAA20964; Mon, 17 Nov 1997 08:48:20 +0100 (CET) Received: (from thomas@localhost) by ghpc6.ihf.rwth-aachen.de (8.8.7/8.8.5) id IAA11770; Mon, 17 Nov 1997 08:48:19 +0100 (CET) To: Stephen Roome Cc: freebsd-bugs@hub.freebsd.org Subject: Re: gnu/5039: libdialog fails to resore terminal References: <199711141510.HAA05386@hub.freebsd.org> From: Thomas Gellekum Date: 17 Nov 1997 08:48:18 +0100 In-Reply-To: Stephen Roome's message of Fri, 14 Nov 1997 07:10:01 -0800 (PST) Message-ID: <87wwi8m059.fsf@ghpc6.ihf.rwth-aachen.de> Lines: 21 X-Mailer: Gnus v5.4.37/XEmacs 19.16 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Stephen Roome writes: > Ok, usually I do the following: > > 1) start a clean xterm or rxvt > [There's no problem with syscons, not tried console vt220] > > 2) rlogin [same problem locally though] > 3) Run dialog or sysinstall or something like that. > 4) press cursor up to get my last command (zsh thing) > 5) Find that my terminal is printing 'A' instead of giving me my > previous command. > 6) type reset and then re-reverse my xterm colours. That means that zsh (and pdksh, btw) sets the cursor keys to the `application keypad' mode and leaving the dialog (and any other ncurses-based) application resets to `cursor keypad' mode. This is really annoying, just as bad as resetting the console to white on black when you had changed the colors to black on white. tg From owner-freebsd-bugs Mon Nov 17 02:20:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA00362 for bugs-outgoing; Mon, 17 Nov 1997 02:20:50 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from bagpuss.visint.co.uk (bagpuss.visint.co.uk [194.207.134.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA00357 for ; Mon, 17 Nov 1997 02:20:46 -0800 (PST) (envelope-from steve@visint.co.uk) Received: from dylan.visint.co.uk (dylan.visint.co.uk [194.207.134.180]) by bagpuss.visint.co.uk (8.7.5/8.7.3) with SMTP id KAA21942; Mon, 17 Nov 1997 10:20:37 GMT Date: Mon, 17 Nov 1997 10:20:37 +0000 (GMT) From: Stephen Roome To: Thomas Gellekum cc: freebsd-bugs@hub.freebsd.org Subject: Re: gnu/5039: libdialog fails to resore terminal In-Reply-To: <87wwi8m059.fsf@ghpc6.ihf.rwth-aachen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 17 Nov 1997, Thomas Gellekum wrote: > Stephen Roome writes: > > > Ok, usually I do the following: > > > > 1) start a clean xterm or rxvt > > [There's no problem with syscons, not tried console vt220] > > > > 2) rlogin [same problem locally though] > > 3) Run dialog or sysinstall or something like that. > > 4) press cursor up to get my last command (zsh thing) > > 5) Find that my terminal is printing 'A' instead of giving me my > > previous command. > > 6) type reset and then re-reverse my xterm colours. > > That means that zsh (and pdksh, btw) sets the cursor keys to the > `application keypad' mode and leaving the dialog (and any other > ncurses-based) application resets to `cursor keypad' mode. This is > really annoying, just as bad as resetting the console to white on > black when you had changed the colors to black on white. So it's still a case of the application failing to restore the values that had been set by it's parent shell? (I thought ncurses would handle this by resetting to the values that it started with, not exitting to what it thinks is best.) Steve. -- Steve Roome - Vision Interactive Ltd. Tel:+44(0)117 9730597 Home:+44(0)976 241342 WWW: http://dylan.visint.co.uk/ From owner-freebsd-bugs Mon Nov 17 03:10:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA03071 for bugs-outgoing; Mon, 17 Nov 1997 03:10:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA03065; Mon, 17 Nov 1997 03:10:02 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 17 Nov 1997 03:10:02 -0800 (PST) Resent-Message-Id: <199711171110.DAA03065@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, Studded@dal.net Received: from dt5h1n61.san.rr.com (dt5h1n61.san.rr.com [204.210.31.97]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA02883 for ; Mon, 17 Nov 1997 03:06:39 -0800 (PST) (envelope-from dougdougdougdoug@dt5h1n61.san.rr.com) Received: (from dougdougdougdoug@localhost) by dt5h1n61.san.rr.com (8.8.8/8.8.7) id DAA06211; Mon, 17 Nov 1997 03:06:31 -0800 (PST) (envelope-from dougdougdougdoug) Message-Id: <199711171106.DAA06211@dt5h1n61.san.rr.com> Date: Mon, 17 Nov 1997 03:06:31 -0800 (PST) From: Studded@dal.net Reply-To: Studded@dal.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5068: Patches for ipfw "default allow" choice in -Stable Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5068 >Category: kern >Synopsis: Patches to import the IPFIREWALL_DEFAULT_TO_ACCEPT option from -Current >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 17 03:10:01 PST 1997 >Last-Modified: >Originator: Studded@dal.net >Organization: Just me >Release: FreeBSD 2.2-971111-SNAP i386 >Environment: Any -Stable system with ipfw >Description: After long discussions with Alex Nash regarding my long battle to allow some flexibility in the default ipfw setup, I determined that the best option would be to back port the IPFIREWALL_DEFAULT_TO_ACCEPT option from -Current. Many many thanks to Alex for his patience and advice. I of course take all blame for what I'm sending here. >How-To-Repeat: Build and use ipfw >Fix: Enclosed below are diff's to version 1.51.2.5 of /usr/src/sys/netinet/ip_fw.c, and 1.286.2.33 of LINT. To get the diff for LINT, I just copied the stuff exactly from the -Current LINT file. The patch for ip_fw.c is a diff between the version in -Current (1.65) and the one in -Stable, minus the malloc and divert changes. I made two small improvements. The first is just a spelling change on the line in LINT that has the actual option, default instead of defalt. The other is the addition of a printf which states that the default rule is closed, similar to the change made in current to show that the default rule is open if the option is selected. I've built and used kernels both with and without the option, and both work as expected. I think this small change would be of tremendous benefit to the users of -Stable. Thanks, Doug --- LINT.Dist Sat Nov 15 21:33:51 1997 +++ LINT Sat Nov 15 22:36:51 1997 @@ -333,6 +333,21 @@ # logged packets to the system logger. IPFIREWALL_VERBOSE_LIMIT # limits the number of times a matching entry can be logged. # +# WARNING: IPFIREWALL defaults to a policy of "deny ip from any to any" +# and if you do not add other rules during startup to allow access, +# YOU WILL LOCK YOURSELF OUT. It is suggested that you set firewall=open +# in /etc/rc.conf when first enabling this feature, then refining the +# firewall rules in /etc/rc.firewall after you've tested that the new kernel +# feature works properly. +# +# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to +# allow everything. Use with care, if a cracker can crash your +# firewall machine, they can get to your protected machines. However, +# if you are using it as an as-needed filter for specific problems as +# they arise, then this may be for you. Changing the default to 'allow' +# means that you won't get stuck if the kernel and /sbin/ipfw binary get +# out of sync. +# # IPDIVERT enables the divert IP sockets, used by ``ipfw divert'' # # TCPDEBUG is undocumented. @@ -343,6 +358,7 @@ options IPFIREWALL_VERBOSE #print information about # dropped packets options "IPFIREWALL_VERBOSE_LIMIT=100" #limit verbosity +options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default options IPDIVERT #divert sockets options TCPDEBUG --- ip_fw.c.Dist Sat Nov 15 21:07:55 1997 +++ ip_fw.c Sat Nov 15 22:06:10 1997 @@ -938,18 +938,23 @@ void ip_fw_init(void) { - struct ip_fw deny; + struct ip_fw default_rule; ip_fw_chk_ptr = ip_fw_chk; ip_fw_ctl_ptr = ip_fw_ctl; LIST_INIT(&ip_fw_chain); - bzero(&deny, sizeof deny); - deny.fw_prot = IPPROTO_IP; - deny.fw_number = (u_short)-1; - deny.fw_flg |= IP_FW_F_DENY; - deny.fw_flg |= IP_FW_F_IN | IP_FW_F_OUT; - if (check_ipfw_struct(&deny) == NULL || add_entry(&ip_fw_chain, &deny)) + bzero(&default_rule, sizeof default_rule); + default_rule.fw_prot = IPPROTO_IP; + default_rule.fw_number = (u_short)-1; +#ifdef IPFIREWALL_DEFAULT_TO_ACCEPT + default_rule.fw_flg |= IP_FW_F_ACCEPT; +#else + default_rule.fw_flg |= IP_FW_F_DENY; +#endif + default_rule.fw_flg |= IP_FW_F_IN | IP_FW_F_OUT; + if (check_ipfw_struct(&default_rule) == NULL || + add_entry(&ip_fw_chain, &default_rule)) panic(__FUNCTION__); printf("IP packet filtering initialized, " @@ -957,6 +962,11 @@ "divert enabled, "); #else "divert disabled, "); +#endif +#ifdef IPFIREWALL_DEFAULT_TO_ACCEPT + printf("default to accept, "); +#else + printf("default to deny, "); #endif #ifndef IPFIREWALL_VERBOSE printf("logging disabled\n"); >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Nov 17 05:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA10723 for bugs-outgoing; Mon, 17 Nov 1997 05:30:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA10714; Mon, 17 Nov 1997 05:30:02 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 17 Nov 1997 05:30:02 -0800 (PST) Resent-Message-Id: <199711171330.FAA10714@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, peter@taronga.com Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA10371 for ; Mon, 17 Nov 1997 05:24:44 -0800 (PST) (envelope-from pds@FreeBSD.org) Received: (from pds@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id FAA03624; Mon, 17 Nov 1997 05:21:48 -0800 (PST) Message-Id: <199711171321.FAA03624@freefall.freebsd.org> Date: Mon, 17 Nov 1997 05:21:48 -0800 (PST) From: Peter da Silva Reply-To: peter@taronga.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: gnu/5069: gdb is broken on 2.2 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5069 >Category: gnu >Synopsis: floating point broken in gdb in 2.2 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 17 05:30:01 PST 1997 >Last-Modified: >Originator: Peter da Silva >Organization: Self >Release: FreeBSD 2.2-STABLE i386 >Environment: FreeBSD 2.2 and later. >Description: gdb doesn't recognise floating point numbers. >How-To-Repeat: On 2.1.5 and earlier: (gdb) print 1e2+1 $1 = 101 On 2.2-STABLE (gdb) print 1e2+1 $1 = 1 >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Nov 17 05:56:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA12583 for bugs-outgoing; Mon, 17 Nov 1997 05:56:10 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from alex@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA12563; Mon, 17 Nov 1997 05:56:07 -0800 (PST) (envelope-from alex) Date: Mon, 17 Nov 1997 05:56:07 -0800 (PST) From: Alex Nash Message-Id: <199711171356.FAA12563@hub.freebsd.org> To: alex, freebsd-bugs, alex Subject: Re: kern/5068 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Patches to import the IPFIREWALL_DEFAULT_TO_ACCEPT option from -Current Responsible-Changed-From-To: freebsd-bugs->alex Responsible-Changed-By: alex Responsible-Changed-When: Mon Nov 17 05:53:33 PST 1997 Responsible-Changed-Why: Guilt by association with the PR. From owner-freebsd-bugs Mon Nov 17 06:10:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA13199 for bugs-outgoing; Mon, 17 Nov 1997 06:10:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA13193; Mon, 17 Nov 1997 06:10:01 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 17 Nov 1997 06:10:01 -0800 (PST) Resent-Message-Id: <199711171410.GAA13193@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, wosch@cs.tu-berlin.de Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA12845 for ; Mon, 17 Nov 1997 06:02:37 -0800 (PST) (envelope-from wosch@cs.tu-berlin.de) Received: from panke.panke.de (anonymous214.ppp.cs.tu-berlin.de [130.149.17.214]) by mail.cs.tu-berlin.de (8.8.6/8.8.7) with ESMTP id OAA18127 for ; Mon, 17 Nov 1997 14:58:34 +0100 (MET) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id OAA01110; Mon, 17 Nov 1997 14:56:45 +0100 (MET) Message-Id: <199711171356.OAA01110@panke.panke.de> Date: Mon, 17 Nov 1997 14:56:45 +0100 (MET) From: Wolfram Schneider Reply-To: wosch@cs.tu-berlin.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/5070: new FAQ entries Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5070 >Category: docs >Synopsis: new FAQ entries >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 17 06:10:01 PST 1997 >Last-Modified: >Originator: Wolfram Schneider >Organization: >Release: FreeBSD 2.2-RELEASE i386 >Environment: X. Who do I download the current FAQ? X. Who do I download the current Handbook? X. The Handbook is not plain text X. How to become a FreeBSD Web Mirror? X. I want translate the Handbook into friesian. How much do you pay? X. How big is a full FreeBSD FTP mirror? X. How big is the 2.2.5 Release? X. Redirect ftp requests from one machine to another machine X. Does FreeBSD 2.2.x support SMP? X. Does FreeBSD support user names longer than 8 characters? X. What is MFC? X. How to I disable alt-ctl-del keys for a reboot? X. Maximum RAM? X. Maximum Filesystem size? X. DOS to Unix formater? X. How kill processes by name? X. Who do I download the current FAQ? The up-to-date FAQ is available from the FreeBSD Web Server or any mirror as PostScript and plain text (7 bit ASCII and 8-bit latin1). As PostScript (~344KB) from the main Web Server fetch http://www.freebsd.org/FAQ/FAQ.ps from the german Web mirror fetch -h www.de.freebsd.org -f /FAQ/FAQ.ps As plain ASCII text (208KB) fetch http://www.freebsd.org/FAQ/FAQ.ascii As plain ISO 8859-1 text (208KB) fetch http://www.freebsd.org/FAQ/FAQ.latin1 X. Who do I download the current Handbook? The up-to-date handbook is available from the FreeBSD Web Server or any mirror as PostScript and plain text (7 bit ASCII and 8-bit latin1) As PostScript (1.7MB) from the main Web Server fetch http://www.freebsd.org/handbook/handbook.ps from the german Web mirror fetch -h www.de.freebsd.org -f /handbook/handbook.ps As plain ASCII text (1048KB) fetch http://www.freebsd.org/handbook/handbook.ascii As plain ISO 8859-1 text (1048KB) fetch http://www.freebsd.org/handbook/handbook.latin1 X. The Handbook is not plain text The file is not straight text (extranious overprint, backspace, etc characters). This may makes it difficult to RTFM under DOS. To make a clean ascii copy: $ col -b < inputfile > outputfile X. How to become a FreeBSD Web Mirror? See http://www.freebsd.org/mirror.html X. I want translate the Handbook into friesian. How much do you pay? Translation always welcome. But you don't get money. FreeBSD is a non-commercial project. Ask Jordan for a free CD-ROM copy or a t-shirt if want. X. How big is a full FreeBSD FTP mirror? 6GB (?) X. How big is the 2.2.5 Release? 4 x CD-ROMs, total 2.4GB. X. Redirect ftp requests from one machine to another machine You can redirect ftp requests with the socket(1) program. Replace the ftp entry in foo.com:/etc/inetd.conf with socket. E.g. ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp and restart inetd: killall -HUP inetd socket(1) is a FreeBSD Port, see /usr/ports/sysutils/socket. X. Does FreeBSD 2.2.x support SMP? No. Never. See the "SMP support page" FreeBSD 3.0-current support SMP. Try -current or install a 3.0 SNAP X. Does FreeBSD support user names longer than 8 characters? Yes, in -current. But not in 2.2.x. X. What is MFC? The acronym MFC as seen in the cvs-* lists is an abbreviation for "merged from -current" X. How to I disable alt-ctl-del keys for a reboot? a) define your own keymap table b) disable the function shutdown_nice in src/sys/i386/isa/syscons.c X. Maximum RAM? Theoretically 4Gigabyte. There are some servers which runs with 1 Gibgbyte RAM. X. Maximum Filesystem size? A maximum of 8TB filesizes. It's actually bugs in the filesystem code that causes the limit to be further restricted to 1TB (loss of precision when doing blockno calculations). X. DOS to Unix formater? perl -i.bak -pe 's/\r\n/\n/g' file ... X. How kill processes by name? See killall(1) >Description: >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Nov 17 07:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA17810 for bugs-outgoing; Mon, 17 Nov 1997 07:30:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA17798; Mon, 17 Nov 1997 07:30:01 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 17 Nov 1997 07:30:01 -0800 (PST) Resent-Message-Id: <199711171530.HAA17798@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, archer@lucky.net Received: from burka.carrier.kiev.ua ([195.145.31.17]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA17620 for ; Mon, 17 Nov 1997 07:27:39 -0800 (PST) (envelope-from archer@burka.carrier.kiev.ua) Received: (from archer@localhost) by burka.carrier.kiev.ua (8.8.6/8.Who.Cares) id RAA01984 for ; Mon, 17 Nov 1997 17:27:10 +0200 (EET) Message-Id: <199711171527.RAA01984@burka.carrier.kiev.ua> Date: Mon, 17 Nov 1997 17:27:10 +0200 (EET) From: archer@lucky.net Reply-To: archer@lucky.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5071: 2.2.5-STABLE crashes under heavy network loads Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5071 >Category: kern >Synopsis: 2.2.5-STABLE crashes under heavy network loads >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 17 07:30:01 PST 1997 >Last-Modified: >Originator: Alexander Litvin >Organization: Lucky Net Ltd., ISP, Ukraine >Release: FreeBSD 2.2.5-STABLE >Environment: Output of dmesg: ----------------------------------------------------------------------- Copyright (c) 1992-1997 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2.5-STABLE #0: Sat Nov 15 17:47:19 EET 1997 archer@zebra.carrier.kiev.ua:/usr/local/squid/src/sys/compile/zebra.s CPU: Pentium Pro (267.27-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x633 Stepping=3 Features=0x80f9ff,MTRR,PGE,MCA,CMOV> real memory = 134217728 (131072K bytes) avail memory = 129630208 (126592K bytes) Probing for devices on PCI bus 0: chip0 rev 3 on pci0:0 chip1 rev 3 on pci0:1 chip2 rev 1 on pci0:4:0 pci0:4:1: Intel Corporation, device=0x7111, class=storage (ide) [no driver assigned] pci0:4:2: Intel Corporation, device=0x7112, class=0x0c, subclass=0x03 int d irq 11 [no driver assigned] chip3 rev 1 on pci0:4:3 fxp0 rev 1 int a irq 12 on pci0:10 fxp0: Ethernet address 00:a0:c9:1c:a3:3f vga0 rev 227 int a irq 14 on pci0:11 ahc0 rev 0 int a irq 15 on pci0:12 ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs (ahc0:0:0): "IBM DCAS-34330W S61A" type 0 fixed SCSI 2 sd0(ahc0:0:0): Direct-Access 4134MB (8467200 512 byte sectors) sd0(ahc0:0:0): with 8205 cyls, 6 heads, and an average 171 sectors/track (ahc0:1:0): "IBM DCAS-34330W S61A" type 0 fixed SCSI 2 sd1(ahc0:1:0): Direct-Access 4134MB (8467200 512 byte sectors) sd1(ahc0:1:0): with 8205 cyls, 6 heads, and an average 171 sectors/track (ahc0:2:0): "IBM DCAS-34330W S61A" type 0 fixed SCSI 2 sd2(ahc0:2:0): Direct-Access 4134MB (8467200 512 byte sectors) sd2(ahc0:2:0): with 8205 cyls, 6 heads, and an average 171 sectors/track Probing for devices on PCI bus 1: Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 not found at 0x280 ed1 not found at 0x300 ed2 not found at 0x320 sio0 not found at 0x3f8 fdc0: direction bit not set fdc0: cmd 3 failed at out byte 1 of 3 fdc0 not found at 0x3f0 npx0 flags 0x7 on motherboard npx0: INT 16 interface ccd0-3: Concatenated disk drivers ----------------------------------------------------------------------- Kernel config file: ----------------------------------------------------------------------- machine "i386" ident zerba maxusers 256 options "MAXDSIZ=(256*1024*1024)" options "DFLDSIZ=(256*1024*1024)" options FAILSAFE options INCLUDE_CONFIG_FILE # Include this file in kernel config kernel root on sd0 dumps on sd0 cpu "I686_CPU" # aka Pentium Pro(tm) #new math emulator options "COMPAT_43" options SYSVSHM options SYSVSEM options SYSVMSG options "MD5" options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options INET #Internet communications protocols pseudo-device ether #Generic Ethernet pseudo-device loop #Network loopback device # dropped packets options FFS #Fast filesystem options PROCFS #Process filesystem options NSWAPDEV=4 options QUOTA #enable disk quotas controller scbus0 #base SCSI code device sd0 #SCSI disks options SCSI_REPORT_GEOMETRY pseudo-device pty 32 #Pseudo ttys - can go as high as 256 pseudo-device speaker #Play IBM BASIC-style noises out your speaker pseudo-device log #Kernel syslog interface (/dev/klog) pseudo-device gzip #Exec gzipped a.out's pseudo-device vn #Vnode driver (turns a file into a device) pseudo-device snp 3 #Snoop device - to look at pty/vty/etc.. pseudo-device ccd 4 #Concatenated disk driver controller isa0 #options "AUTO_EOI_1" options "MAXMEM=(128*1024)" #options BROKEN_KEYBOARD_RESET device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr options MAXCONS=16 # number of virtual consoles device npx0 at isa? port "IO_NPX" iosiz 0x0 flags 0x7 irq 13 vector npxintr controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr #DDB, if available. device ed0 at isa? port 0x280 net irq 5 iomem 0xd8000 vector edintr device ed1 at isa? port 0x300 net irq 5 iomem 0xd8000 vector edintr device ed2 at isa? port 0x320 net irq 5 iomem 0xd8000 vector edintr controller pci0 controller ahc0 device fxp0 device vx0 --------------------------------------------------------------------------- >Description: Busy proxy server crashes constantly at random periouds, with the same simpthoms. Output of "(kgdb)bt": -------------------- IdlePTD 1c3000 current pcb at 1ac9d0 panic: page fault #0 boot (howto=260) at ../../kern/kern_shutdown.c:266 266 dumppcb.pcb_cr3 = rcr3(); (kgdb) bt #0 boot (howto=260) at ../../kern/kern_shutdown.c:266 #1 0xf01116e2 in panic (fmt=0xf017b84f "page fault") at ../../kern/kern_shutdown.c:390 #2 0xf017c3b6 in trap_fatal (frame=0xf01a0dc4) at ../../i386/i386/trap.c:742 #3 0xf017bea4 in trap_pfault (frame=0xf01a0dc4, usermode=0) at ../../i386/i386/trap.c:653 #4 0xf017bb7f in trap (frame={tf_es = -266731504, tf_ds = -267255792, tf_edi = 0, tf_esi = -161442560, tf_ebp = -266727920, tf_isp = -266727956, tf_ebx = -158123136, tf_edx = 0, tf_ecx = -162092544, tf_eax = -158123264, tf_trapno = 12, tf_err = 0, tf_eip = -267186362, tf_cs = 8, tf_eflags = 66118, tf_esp = 0, tf_ss = -158123136}) at ../../i386/i386/trap.c:311 #5 0xf0130f46 in vget (vp=0xf6933b80, lockflag=1) at ../../kern/vfs_subr.c:817 #6 0xf015cd3c in ffs_sync (mp=0xf6573600, waitfor=2, cred=0xf3c17880, p=0xf01b7c94) at ../../ufs/ffs/ffs_vfsops.c:819 #7 0xf0132407 in sync (p=0xf01b7c94, uap=0x0, retval=0x0) at ../../kern/vfs_syscalls.c:360 #8 0xf01112ed in boot (howto=256) at ../../kern/kern_shutdown.c:199 #9 0xf01116e2 in panic (fmt=0xf017b84f "page fault") at ../../kern/kern_shutdown.c:390 #10 0xf017c3b6 in trap_fatal (frame=0xf01a0f48) at ../../i386/i386/trap.c:742 #11 0xf017bea4 in trap_pfault (frame=0xf01a0f48, usermode=0) at ../../i386/i386/trap.c:653 #12 0xf017bb7f in trap (frame={tf_es = -154664944, tf_ds = -267059184, tf_edi = -1073741824, tf_esi = -1073741824, tf_ebp = -266727540, tf_isp = -266727568, tf_ebx = -265166040, tf_edx = 172511825, tf_ecx = -159965440, tf_eax = 87502848, tf_trapno = 12, tf_err = 0, tf_eip = -267083713, tf_cs = 8, tf_eflags = 66054, tf_esp = -266715032, tf_ss = -266714668}) at ../../i386/i386/trap.c:311 #13 0xf014a03f in tcp_fasttimo () at ../../netinet/tcp_timer.c:111 #14 0xf0124677 in pffasttimo (arg=0x0) at ../../kern/uipc_domain.c:234 #15 0xf01090fc in softclock () at ../../kern/kern_clock.c:715 ---------- Last three lines are always the same. The only source of network load is squid-1.NOVM.17 and named (caching only). Squid gets more then 50'000 requests per hour at peeks. >How-To-Repeat: I was able to force it to crash by loading proxy with a requests from "webjamma" started at 7 machines at the local network, each of them making up to 200 concurrent requests. >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Nov 17 08:10:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA21046 for bugs-outgoing; Mon, 17 Nov 1997 08:10:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA21039; Mon, 17 Nov 1997 08:10:02 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 17 Nov 1997 08:10:02 -0800 (PST) Resent-Message-Id: <199711171610.IAA21039@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, watanabe@komadori.planet.kobe-u.ac.jp Received: from crayon.planet.kobe-u.ac.jp (crayon.planet.kobe-u.ac.jp [133.30.53.130]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA20360 for ; Mon, 17 Nov 1997 08:00:00 -0800 (PST) (envelope-from watanabe@crayon.planet.kobe-u.ac.jp) Received: (from watanabe@localhost) by crayon.planet.kobe-u.ac.jp (8.8.6/3.5Wpl7-mx) id BAA29855; Tue, 18 Nov 1997 01:00:25 +0900 (JST) Message-Id: <199711171600.BAA29855@crayon.planet.kobe-u.ac.jp> Date: Tue, 18 Nov 1997 01:00:25 +0900 (JST) From: watanabe@komadori.planet.kobe-u.ac.jp Reply-To: watanabe@komadori.planet.kobe-u.ac.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5072: /usr/bin/fetch parses a URL incorrectly Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5072 >Category: bin >Synopsis: /usr/bin/fetch parses a URL incorrectly >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 17 08:10:01 PST 1997 >Last-Modified: >Originator: Takeshi WATANABE >Organization: Kobe University, Kobe, Japan >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: I found a bug on 2.2.2-RELEASE and 2.2.5-RELEASE. I don't know on other versions. >Description: According to RFC-1738 and RFC-1808, a HTTP URL has the following format. http://:/? The part cannot contain the colon character (":"), but the part can. Therefore, the following URL is valid. http://www.host.name/foo:bar/file.html "www.host.name" is , and "/foo:bar/file.html" is /. : is omitted; which means ":80". However, /usr/bin/fetch cannot accept this URL. prompt> fetch http://www.host.name/foo:bar/file.html fetch: `http://www.host.name/foo:bar/file.html': invalid port in URL: Undefined error: 0 So, /usr/bin/fetch parses ":bar" to :. This parsing is incorrect. This problem is not so critical, because we avoid this bug to use the following format. prompt> fetch http://www.host.name:80/foo:bar/file.html /usr/bin/fetch can accept this URL. However, it is clear that this is a bug of /usr/bin/fetch. >How-To-Repeat: Always when we use /usr/bin/fetch with a HTTP URL that contains the colon character (":") in the path name. >Fix: Apply the following patch. --- /usr/src/usr.bin/fetch/http.c.orig Mon Mar 10 16:12:51 1997 +++ /usr/src/usr.bin/fetch/http.c Tue Nov 18 00:21:52 1997 @@ -152,7 +152,7 @@ strncat(hostname, p, q - p); p = slash; - if (colon && colon + 1 != slash) { + if (q == colon && colon + 1 != slash) { unsigned long ul; char *ep; >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Nov 17 10:09:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA29514 for bugs-outgoing; Mon, 17 Nov 1997 10:09:49 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA28278 for freebsd-bugs@freebsd.org; Mon, 17 Nov 1997 10:00:20 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 17 Nov 1997 10:00:20 -0800 (PST) Message-Id: <199711171800.KAA28278@hub.freebsd.org> From: FreeBSD bugmaster To: FreeBSD bugs list Subject: Current problem reports Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Current FreeBSD problem reports The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. Bugs can be in one of several states: o - open A problem report has been submitted, no sanity checking performed. a - analyzed The report has been examined by a team member and evaluated. f - feedback The problem has been solved, and the originator has been given a patch or a fix has been committed. The PR remains in this state pending a response from the originator. s - suspended Work on the problem has been postponed. This happens if a timely solution is not possible or is not cost-effective at the present time. The PR continues to exist, though a solution is not being actively sought. If the problem cannot be solved at all, it will be closed, rather than suspended. c - closed A problem report is closed when any changes have been integrated, documented, and tested. Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- a [1995/01/11] i386/105 bde Distributed libm (msun) has non-standard o [1995/02/14] kern/216 davidg /kernel: panic: ffs_alloccg: map corrupte a [1996/01/22] kern/965 bde 2.0.5: system crashes daily because of "m o [1996/04/06] kern/1121 dyson System crashes on boot up just after the o [1996/05/07] kern/1177 dyson Machine hangs with message "vm_fork: no p o [1996/06/05] kern/1293 brian Fatal trap 12: page fault while in kernel a [1996/07/15] bin/1387 davidn Group file errors cause absolute havoc a [1996/08/09] kern/1487 bde bug in exec(2) o [1996/09/11] kern/1599 panic: locking against myself s [1996/09/13] conf/1608 FreeBSD's bug tracking system does not re o [1996/09/30] kern/1698 sup from around 21:51 GMT 28th very unsta o [1996/10/08] kern/1744 run queue or proc list smashed 4 times in o [1996/10/13] kern/1790 access to /dev/kmem panics system f [1996/10/28] kern/1919 se access to files/directories fails, gives o [1996/11/01] kern/1940 TCP doesn't time out of FIN_WAIT_1 and fl o [1996/11/29] kern/2121 MAXBSIZE in param.h causes kernel panic i o [1996/12/14] i386/2218 cy.c XON/XOFF handling crashes kernel o [1996/12/20] bin/2258 wollman route add/delete [network] xxx.yyy.zzz.0 f [1997/01/01] ports/2352 torstenb wu-ftp port does not work with DES crypte o [1997/01/03] conf/2367 gibbs Buslogic SCSI driver bad probe of 742A EI f [1997/01/04] kern/2371 gibbs SCSI disk corruption o [1997/02/11] kern/2717 Panic with daily script (find) o [1997/02/14] bin/2740 wpaul root-fs full erases password table ! o [1997/02/21] misc/2795 Cyclades 8YO -- Not working under 2.1.6-S o [1997/03/04] kern/2877 Fatal Trap 12: page fault while in kernel o [1997/03/05] kern/2890 System panic after kernel compiled for 12 o [1997/03/08] kern/2923 panic: vm_fault: fault on nofault entry, o [1997/03/13] kern/2980 2.2 crashes after accessing DAT-tape. bot o [1997/03/15] kern/3000 Kernel Panic in 2.2-CURRENT Kernel o [1997/03/17] kern/3017 panic: page fault as of March 11th v2.2 o [1997/03/23] misc/3070 Cannot do post install mods to UNIX from o [1997/03/23] kern/3072 Kernel Page Fault During Install of 2.1.7 o [1997/03/25] kern/3103 vi large_file --> reboot without panic o [1997/03/26] ports/3106 torstenb pidentd exits with signal 6 o [1997/03/30] kern/3150 Cyrix 6x86L-P200+ crashes w/ page fault o [1997/04/08] kern/3234 ipfilter.shar - integration complete o [1997/04/12] kern/3267 dyson mtime/ctime sometimes updated when a prog o [1997/04/28] kern/3404 frequent kernel panics o [1997/05/01] i386/3462 yokota using a PS/2 mouse causes kernel trap in o [1997/05/12] misc/3586 The boot.flp file is too large to image t o [1997/05/13] kern/3594 EAGAIN and garbage data when reading sock o [1997/05/16] kern/3609 fs on remote host is mounted via NFS, rec o [1997/05/17] misc/3615 Error in /usr/src/lib/libc/gen/sigsetops. o [1997/05/21] bin/3650 Ypserv dumps core randomly. o [1997/05/23] kern/3671 SCSI tape drive with AHA 2940 locks up sy o [1997/05/24] kern/3674 NFS in 2.2 RELEASE hangs. o [1997/05/27] kern/3696 kernel panic during wd hard disk probe if o [1997/05/27] misc/3700 FPE error in "normal" math code o [1997/05/30] kern/3721 kernel panic with netatalk o [1997/06/01] kern/3752 NFS dirs under -current still have proble o [1997/06/01] kern/3753 "make" hangs when building in an NFS dir o [1997/06/02] kern/3761 Inlel EtherExpress pro/100B more than on o [1997/06/14] ports/3872 ports Enter key not working properly in trn por o [1997/06/16] kern/3887 fxp driver looses packets o [1997/06/17] i386/3895 False FPE (floating point exception) sign o [1997/06/25] kern/3949 sos The WD controller probe can fail when it o [1997/06/26] misc/3959 files in /usr/local/etc are randomly beco o [1997/07/02] bin/4018 Will not install in 2nd partition of my C o [1997/07/03] kern/4021 Local mount of a local NFS exported direc o [1997/07/10] kern/4074 Kernel panics when accessing a ccd device o [1997/07/11] kern/4076 Adaptec 2940 and non-wide devices o [1997/07/31] kern/4200 "vm_fault: fault on nofault entry" when r o [1997/08/11] kern/4273 kernel page faults with heavy disk access o [1997/08/12] kern/4289 kernel panic: vm_fault: fault on nofault f [1997/08/13] kern/4301 fenner adding a default route lags all network f o [1997/08/17] kern/4328 Degenerate network performance o [1997/08/18] kern/4332 gibbs System crash after SCSI DAT tape access. o [1997/08/18] bin/4333 gibbs Dump backup utility completely crashes th o [1997/08/20] kern/4345 Kernel panic is caused by passing file de o [1997/09/02] kern/4453 2.2.2 lockup on restart with ASUS-TX97 mo o [1997/09/03] ports/4458 sanpei Japanese MH's packf command dumps core o [1997/09/07] bin/4491 combination of null-FS , NFS and chroot c f [1997/09/24] kern/4619 ix0: ifconfig causes kernel panic o [1997/09/25] ports/4626 torstenb inn port, active file contains control ch o [1997/09/26] kern/4633 Software unstability under 2.2-STABLE (as o [1997/09/29] kern/4653 In v2.2.2, install fails with "cannot cre o [1997/10/01] kern/4673 Two panics, now crash dumps, always in re o [1997/10/03] kern/4684 crash on very heavy disk activity. o [1997/10/06] kern/4713 dfr NFS inconsistencies resulting from change o [1997/10/06] bin/4714 aautomatic AMD mounts fail on first try, f [1997/10/13] bin/4761 fsuk dumps core o [1997/10/14] kern/4764 gibbs adaptec driver in 2.2-stable causes timeo o [1997/10/16] ports/4787 jfitz www/p5-Apache port is out of date o [1997/10/17] kern/4793 Boot Floppy Kernel panics on boot o [1997/10/20] kern/4813 ed0 (SMC Elite 16) won't work o [1997/10/24] kern/4841 de driver still broken in 2.2.5 o [1997/10/24] kern/4844 VM lookup, endless loop in vm_map_lookup_ o [1997/10/25] kern/4849 2.2.5-RELEASE does not detect TI PCI-1130 o [1997/10/25] kern/4851 adaptec 2940U hangs system if scsi tape d o [1997/10/27] kern/4864 Boot Failure in FreeBSD 2.2.5 RELEASE, ma o [1997/10/28] misc/4876 SCSI hard disks die too often o [1997/10/30] i386/4902 Please add support for Promise Ultra33 UD o [1997/10/30] kern/4903 Network Speed Glacial using 3Com Etherlin o [1997/10/31] i386/4906 yokota Using a PS/2 Mouse w/XFree86 3.9[m,s] sta o [1997/11/05] ports/4953 jfitz net/p5-Net-DNS out of date. o [1997/11/07] kern/4968 No flow control setting seems to make the o [1997/11/07] kern/4970 Spontaneous reboots with 2.2.5, AMD K6 an o [1997/11/09] kern/4995 atalk.diff.2.2 patch to 2.2.5-RELEASE bre o [1997/11/10] kern/4996 NFS crash, possibly related to file bigge o [1997/11/15] bin/5053 Closing xterm leaves /bin/sh sucking 100% 100 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [1995/03/02] misc/229 bde acos() core dump a [1995/03/20] kern/260 davidg msync and munmap don't bother to update m s [1995/04/01] kern/291 se PCI devices still probe/attach after bein o [1995/05/16] kern/425 wollman arp entries not getting removed when inte a [1995/06/17] kern/527 dufault dump causes assertion in ncr.c o [1995/06/23] kern/546 pci_bus_config() does not init parent poi o [1995/07/02] kern/579 bde sio: RS_IBUFSIZE at 256 bytes serial line s [1995/07/21] i386/631 if_ix does not support bpf, nor does it a s [1995/07/29] kern/638 Transmitted packets not passed to bpf in f [1995/08/11] gnu/672 Nor all ph headers get created f [1995/09/20] kern/730 gibbs 3Com 3C5x9 probe problem o [1995/10/18] bin/786 wpaul Problem with NIS and large group maps o [1995/11/12] kern/820 gibbs scsi tape problems f [1995/11/16] bin/826 mpp tcpmux listener in inetd does not work o [1995/12/20] i386/906 davidg /sys/i386/boot/netboot/nb8390.com cannot o [1996/01/01] bin/926 Mounting nfs disks before starting mountd o [1996/02/12] kern/1020 .Boca 16-port board still hangs a [1996/02/17] bin/1030 steve /bin/sh does not pass environment variabl s [1996/03/06] kern/1067 panic: ufs_lock: recursive lock not expec o [1996/03/09] bin/1073 telnet -8 does not work with SunOS or Sol o [1996/03/23] kern/1098 File system corruption (2 cases) f [1996/05/14] kern/1204 umount -f after SCSI reset -> reboot o [1996/05/24] misc/1247 bde Conflicting header files f [1996/05/26] i386/1251 aha0 and bt0(eisa) conflicts again. o [1996/05/26] kern/1256 ZNYX 314 mysterously looses packets o [1996/05/28] kern/1271 phk Kernel panic using PLIP in 27/05 current o [1996/05/31] kern/1284 dyson panic: vm_page_free: freeing busy page o [1996/06/02] i386/1288 bde wdgetctlr (wd.c) return incorrect number o [1996/06/07] kern/1301 davidg DEC FDDI/PCI Adapter: halt code = 6 (DMA o [1996/06/10] kern/1308 dyson vm_page_free: wire count > 1 in 960501-SN a [1996/06/12] bin/1315 ls(1) a [1996/06/18] kern/1333 davidg free vnode isn't: another -stable coredum f [1996/07/03] bin/1364 ps(1) bugs o [1996/07/19] docs/1402 steve sh(1) manual f [1996/07/24] kern/1423 wollman route causes kernel page fault. o [1996/07/25] bin/1429 steve sh(1) and getopts f [1996/08/01] bin/1454 steve /bin/sh bug handling <<[n] FD processing a [1996/08/02] docs/1457 ache ed(1) man o [1996/08/03] bin/1461 Incorrect address binding of Kerberized r o [1996/08/04] kern/1467 gibbs scsi_prevent causing tape problems on clo o [1996/08/18] kern/1512 dyson Use of madvise may may cause bad memory m o [1996/08/22] kern/1533 dyson Machine can be panicked by a userland pro f [1996/09/05] kern/1570 Setting SHMALL > 35000 causes panic o [1996/09/14] kern/1610 dyson mmap() of unassociated memory + mlock() c o [1996/09/16] i386/1626 MUSTEK Scanner hangs NCR SCSI controller f [1996/09/18] kern/1637 mss driver causes feedback (squeal) on so o [1996/09/19] bin/1650 telnet encryption with char-mode and asci o [1996/09/21] kern/1661 ft driver hangs uninterruptably at "bavai o [1996/09/29] kern/1689 wollman TCP extensions throttles distant connecti o [1996/09/29] kern/1692 Page fault while in kernel modem fatal tr o [1996/10/01] bin/1702 phk installing of tcl manpages fails from mak o [1996/10/03] kern/1715 le driver non-reentrant o [1996/10/04] kern/1723 gibbs kernel fault when doing scsi reprobe o [1996/10/04] kern/1724 gibbs HP colorado T4000S tape drive hangs syste o [1996/10/04] kern/1726 panic in kmem_malloc (dump available) o [1996/10/10] kern/1754 netbooted machines freeze with ifconfig a o [1996/10/13] gnu/1787 markm Diffs with Index: lines are not honored f o [1996/10/15] bin/1810 fsck -p does not check pass 0 filesystems o [1996/10/15] kern/1812 dyson vnodes are left in a locked state o [1996/10/15] kern/1814 cy driver gets deadlocked sometimes o [1996/10/20] kern/1848 breakpoints may be set in shared librarie o [1996/10/21] kern/1856 read-only nfs mount: panic leaf should be a [1996/10/22] ports/1866 wosch popclient flushes remote mailbox even wit o [1996/10/24] kern/1880 kernel crash during boot when using 512 M o [1996/10/26] bin/1892 install(1) removes target file o [1996/10/29] bin/1927 User CPU time getting accounting as syste o [1996/11/07] bin/1973 jmg pppd uses /etc/ppp/options.tty after comm o [1996/11/08] gnu/1981 ypserv handles null key incorrectly o [1996/11/13] ports/2000 asami obsolete software in distfiles directory a [1996/11/13] bin/2001 vi confused about lines to display o [1996/11/13] i386/2002 sio doesn't detect com port on Compaq Con o [1996/11/14] misc/2013 'make world' fails on read-only /usr/src a [1996/11/14] kern/2014 sos Console keyboard lockup problem o [1996/11/15] bin/2016 static libtcl references symbols that are o [1996/11/15] gnu/2035 peter deque bug, local gnu changes to deque hea o [1996/11/18] kern/2053 de0 driver don't work at 100M for Compex o [1996/11/24] kern/2094 wd1: interrupt timeout: o [1996/11/26] bin/2107 problem building a system from cdrom. s [1996/12/03] kern/2142 FP mask not saved for signal handlers o [1996/12/03] kern/2144 kernel panic (page fault) running chgrp o [1996/12/08] kern/2181 2.2-ALPHA flickers/wavers part of the upp o [1996/12/10] bin/2191 syslogd stops logging after several hours o [1996/12/13] bin/2206 NIS Makefile can't manage appletalk entri o [1996/12/17] kern/2232 MSDOSFS corrupts MSDOS partitions > 500Mb o [1996/12/18] kern/2248 Mitsumi CD-ROM driver has "timeout" probl s [1996/12/22] ports/2268 ports libc from linux emulator does not use /et o [1996/12/22] kern/2270 Hayes ESP serial card locks system as of a [1996/12/25] misc/2283 ache setlocale() in libxpg4 always returns NUL o [1996/12/29] bin/2318 /usr/libexec/rlogind doesn't work after t a [1996/12/30] kern/2325 quota.user enlarged, no boot on 2.2-BETA o [1996/12/30] kern/2330 changing root device to sd0a - ncr0: abor o [1997/01/01] kern/2351 panic:timeout table full o [1997/01/07] gnu/2394 tar will extract files even if -C command o [1997/01/08] kern/2425 amd driver does not reprobe devices. o [1997/01/08] conf/2426 At end of install, panic: Going nowhere w o [1997/01/09] bin/2430 mountd stops on loading if subnet mask is o [1997/01/09] i386/2431 panic: get_pv_entry: cannot get a pv_entr o [1997/01/12] i386/2471 Sound: Reset failed - Can't reopen device o [1997/01/13] misc/2479 sos NEC CD-ROM NOT RECOGNIZED; MATROX MISTIQU o [1997/01/13] bin/2489 gnats mangles sections o [1997/01/16] kern/2507 Renaming DOS directories with "mv" causes o [1997/01/18] kern/2521 kernel from 2.1.6 install CD doesn't acce o [1997/01/20] kern/2538 worm burning suddenly broken o [1997/01/20] bin/2541 cd (using /bin/sh) may leave you in the w o [1997/01/20] kern/2545 se < sd0(ncr0:6:0): COMMAND FAILED ==> Not a [1997/01/21] bin/2549 sos cdcontrol refuses to play audio CDs from f [1997/01/21] misc/2551 davidn limit too small for user root o [1997/01/23] kern/2569 route -iface breaks inet behaivour f [1997/01/24] kern/2570 fenner arpresolve: cant allocate llinfo o [1997/01/25] bin/2591 sh coredumps when passing an argv of a ce o [1997/01/26] bin/2597 everything stops when the new ld.so is in o [1997/01/29] misc/2614 make reinstall does not work o [1997/01/29] bin/2616 Installs very irratically from the same c o [1997/01/31] bin/2633 fsck -p in /etc/rc fails with cannot allo o [1997/02/02] kern/2640 2.2-RELENG leaks memory (router/pppd serv s [1997/02/03] kern/2647 changing existing route to -static crashe o [1997/02/05] kern/2667 wollman bpfattach can hang the system f [1997/02/05] bin/2670 fetch fails with HTTP_PROXY o [1997/02/05] bin/2671 Run-away processes using all CPU time a [1997/02/06] kern/2675 lkmcioctl() is not consistent and careful o [1997/02/07] kern/2690 asami When Using ccd in a mirror mode, file cre o [1997/02/08] kern/2695 sio1 (16540 serial port) is not recognize o [1997/02/09] kern/2698 After rewind I cannot read a tape; blocks o [1997/02/12] kern/2719 added support for magneto-optical SCSI di o [1997/02/14] kern/2732 mcopy 3.0 causes kernel hang o [1997/02/14] bin/2736 No boot block if no FreeBSD partitions on o [1997/02/15] kern/2742 panic: leaf should be empty o [1997/02/15] bin/2747 davidn cannot submit at jobs from within an at j o [1997/02/16] gnu/2749 peter cvs export using remote cvs fails - CVS/T o [1997/02/17] kern/2751 asami 2GB limitation on CCD device partitions s o [1997/02/18] bin/2762 Precedence mistake in libncurses o [1997/02/19] kern/2768 ktrace(1) -i dumps corrupted trace data o [1997/02/19] bin/2769 fsck needs several runs to clean up bad/d o [1997/02/19] kern/2770 panic: vm_fault: fault on nofault entry o [1997/02/19] kern/2771 panic: bad dir f [1997/02/19] kern/2772 gibbs panic: %s:%c:%d: Target did not send an I o [1997/02/19] kern/2773 bad dir panic o [1997/02/20] misc/2784 brian userland PPP rises load to 1.00 o [1997/02/20] bin/2785 wpaul callbootd uses an unitialized variable o [1997/02/20] gnu/2786 gcc version 2.7.2.1 C compiler slows down o [1997/02/21] misc/2793 libc_r make fscanf failure o [1997/02/22] kern/2800 DDS large data writing probrem o [1997/02/25] kern/2815 Custom Kernel crashes o [1997/02/28] bin/2832 w treats corrupted utmp as fatal error o [1997/03/01] kern/2840 mlock+minherit+fork+munlock causes panics o [1997/03/03] i386/2853 sos syscons beeps even if beeping screen is n o [1997/03/03] kern/2858 dfr FreeBSD NFS client can't mount filesystem o [1997/03/04] kern/2873 the od0 devies does not handle a Maxoptix o [1997/03/07] bin/2915 the "-fstype ufs" option of "find" seems o [1997/03/07] ports/2918 ports Unable to pass 8+ command line arguments o [1997/03/08] kern/2919 vm_fault: fault on nofault entry, addr: f o [1997/03/09] bin/2925 non-priviledged user can crash FreeBSD!! o [1997/03/11] bin/2948 can't dump 640MB optical disks f [1997/03/11] ports/2956 ports New Port: xgospel-1.10d in ftp.freebsd.or o [1997/03/12] kern/2965 st0 hang/fail on reading 4mm DAT tape for o [1997/03/12] bin/2969 csh and/or builtin printf has problems wi o [1997/03/12] bin/2973 output of iostat is wrong. o [1997/03/15] kern/2991 RTF_LLINFO routes remain when interface i a [1997/03/15] ports/2994 ports xpm port does not build for the first tim o [1997/03/18] kern/3021 panic after sync during reboot o [1997/03/21] kern/3054 OPL3 sound off by one note o [1997/03/21] bin/3055 umount -f does not work o [1997/03/24] i386/3082 keyboard locks up unexpectedly o [1997/03/24] i386/3083 Toshiba XM-5702B ATAPI CDROM not detected o [1997/03/27] conf/3123 /stand/sysintstall does not perform to up s [1997/03/27] bin/3126 Install with mcd0 still broken. o [1997/03/28] i386/3130 Dell Latitude keyboard lock up o [1997/03/28] misc/3133 TIOCSETD error with Cyclades 8Yo o [1997/03/30] gnu/3149 patch-2.1: files possibly created in wron o [1997/03/31] bin/3158 seg faults and cannot update links using f [1997/04/01] kern/3162 2.2 kernel from mar 25th crashes on nfs s o [1997/04/01] bin/3170 vi freaks and dump core if user doesn't e f [1997/04/04] i386/3195 gibbs ahc panic o [1997/04/05] kern/3201 de0 not re-enabled after hub down o [1997/04/05] ports/3205 jmz Mtools-3.0 attempts to flock() a disk par f [1997/04/05] kern/3209 dyson 3.0-current panics on shutdown/reboot/hal o [1997/04/06] kern/3216 panic: pmap_zero_page: CMAP busy o [1997/04/06] kern/3219 sppp or arnet gets looped after connectio o [1997/04/09] kern/3244 ipfw flush closes connections o [1997/04/10] bin/3246 mtree -c should escape whitespace and spe o [1997/04/12] kern/3263 troubles with digiboard o [1997/04/13] kern/3278 mounting MFS uses up swap space o [1997/04/15] bin/3305 Can't do encrypted rlogin into self f [1997/04/16] bin/3307 Unable to Route to a different Class C wi o [1997/04/18] bin/3325 brian http request over ijppp hangs o [1997/04/18] kern/3327 using gdb may cause hanging processes. f [1997/04/18] kern/3328 dyson another kernel panic o [1997/04/19] kern/3351 Scsi bus timeouts in 2.1.7.1 (adaptec 294 o [1997/04/19] bin/3355 se ncrcontrol fails when -DFAILSAFE in kerne o [1997/04/25] kern/3384 telldir-seekdir can cause livelock o [1997/04/28] bin/3406 rich Fresh Internet Install - Permissions on f o [1997/05/01] gnu/3441 C++ exceptions don't work in shared libra o [1997/05/01] misc/3460 Lots of stuff still refernces /etc/syscon o [1997/05/01] kern/3463 netstat -I packet count increase on sl0 w o [1997/05/02] kern/3468 Panic - page fault in kernel mode o [1997/05/02] gnu/3470 fail to use standart ANSI C++ string clas o [1997/05/03] bin/3478 pwd_mkdb and passwd o [1997/05/04] kern/3495 _thread_fd_table is not initialized with o [1997/05/04] i386/3502 Merge of if_ix* and if_ie* broke EE/16 su o [1997/05/06] bin/3524 rlogin doesn't read $HOSTALIASES for non- o [1997/05/07] conf/3526 Bug in config(8) mechanism o [1997/05/07] kern/3527 if_de.c doesn't recognize Kingston card p o [1997/05/08] misc/3544 Uprgade problem with schg flags o [1997/05/09] kern/3564 using MPU401 driver pagefaults kernel o [1997/05/09] kern/3569 ex0 driver doesn't work with EtherExpress o [1997/05/11] misc/3578 defining CXXFLAGS in /etc/make.conf or en o [1997/05/12] kern/3579 de driver doesn't support newer SMC 9332 o [1997/05/12] kern/3581 intermittent trap 12 in lockstatus() o [1997/05/12] kern/3582 panic: bad dir (mangled entry) in 2.2-STA o [1997/05/12] kern/3583 'syctl kern' dumps core when displaying c o [1997/05/13] conf/3591 parts in rc.local have no effects in rc.* o [1997/05/18] bin/3622 gethostbyname fails for file descriptors o [1997/05/19] kern/3633 description of interface flags in ep(4) m o [1997/05/20] kern/3646 kernel built with "options NETATALK" fail o [1997/05/21] kern/3661 System locked up while editing rc.conf, w o [1997/05/23] bin/3670 make fails in libc o [1997/05/25] kern/3685 panic: fdesc attr o [1997/05/29] gnu/3714 gdb -w -k /kernel /dev/mem != gdb --wcore o [1997/05/30] conf/3725 Cirrus Logic PCMCIA Controller Support o [1997/05/30] kern/3726 process hangs in 2.2-stable when working o [1997/05/30] kern/3727 SCSI II tape support broken o [1997/06/01] kern/3744 Inability to edit memory area for ed0 pre o [1997/06/01] kern/3745 Use of ed0 with buff addr of C8000 causes o [1997/06/01] bin/3746 daemon screen saver missing o [1997/06/01] conf/3750 phk Potential improvements to rc.firewall o [1997/06/02] i386/3760 Inlel EtherExpress pro/100B !!! o [1997/06/02] bin/3763 df hangs uninterruptably when nfs mount f o [1997/06/03] kern/3771 NFS hangs when writing to local FS re-mou o [1997/06/04] i386/3779 changing cursor to blinking block causes o [1997/06/07] conf/3807 mitsumi cd-rom fx800 (8x cd-rom) is not r o [1997/06/08] gnu/3810 cvs can't handle multiple multiple-path d o [1997/06/09] ports/3822 asami ports-current Xaw3d doesn't compile o [1997/06/09] kern/3827 fopen/freopen fails on some binary files. o [1997/06/13] i386/3857 bios screensaver screws up screen f [1997/06/13] bin/3862 I dont seem to get a login prompt.... o [1997/06/16] misc/3883 @+netgroup entries break +NIS-user entrie o [1997/06/18] kern/3899 df while unmounting floppy crashes 2.2.2 o [1997/06/19] kern/3909 joerg A patch supporting some new worm drivers o [1997/06/19] gnu/3910 sort(1) of 2.2.1R doesn't work in special f [1997/06/22] kern/3925 SO_SNDLOWAT of 0 causes kernel to use 99% o [1997/06/28] misc/3980 access via NFS fails during mount-operati o [1997/06/29] bin/3982 /usr/include/arpa/tftp.h has bug preventi o [1997/06/29] bin/3986 rdist seg faults when target machine is d o [1997/07/01] i386/4006 panic: ahc_intr: AWAITING_MSG for an SCB o [1997/07/02] kern/4012 2.2-RELEASE/Digital UNIX NFSv3 0 length f o [1997/07/02] misc/4013 boot floppy hangs if IDE ZIP Drive presen o [1997/07/03] kern/4022 Fatal double fault using vn device o [1997/07/04] kern/4032 gibbs During recovery from scsi errors, incorre o [1997/07/04] gnu/4033 peter cvs clears default branch when adding a f s [1997/07/06] gnu/4042 gdb stackframe in static library shows no o [1997/07/06] docs/4043 man page for directory ops is misleading o [1997/07/07] ports/4050 jfitz mrtg: rateup dumps core with malloc_optio o [1997/07/09] kern/4071 Accessing /dev/rst0 causes `DMA beyond en o [1997/07/12] bin/4078 sos Typed password to log in on console and i o [1997/07/17] kern/4107 ch.c does not use bounce buffers o [1997/07/17] gnu/4111 send-pr doesn't se that Category is actua o [1997/07/17] kern/4115 SunOS NFS file has wrong owner if creator f [1997/07/19] kern/4119 brian can't connect to Win NT 4.0 RAS using MS o [1997/07/20] ports/4129 obrien New port uploaded to incoming/sane.tar.gz o [1997/07/26] bin/4171 fetch(1): poor error handling in http mod o [1997/07/26] bin/4176 restore gets confused when run over pipe o [1997/07/27] ports/4178 jdp The cvsup port cannot be built on a non X o [1997/07/27] ports/4179 fenner lmbench-1.1 dumps core after asking for m o [1997/07/28] kern/4186 nfsiod, panic, page fault in kernel mode o [1997/07/30] kern/4194 kernel pci driver for Digital 21041 Ether f [1997/07/31] bin/4202 pwd_mkdb trashes .db o [1997/08/04] i386/4226 Floating point exception for double preci o [1997/08/05] bin/4231 ipfw no more returns error when deleting o [1997/08/06] kern/4233 pca driver does not support A-law encodin o [1997/08/06] bin/4234 ncurses programs broken, won't work in re o [1997/08/06] kern/4240 kernel fails to recognise 2nd serial port o [1997/08/06] bin/4241 send-pr aborts when emacs is editor o [1997/08/07] kern/4242 Remounting devfs causes panic o [1997/08/08] conf/4252 peter sendmail doesn't use smrsh by default o [1997/08/09] bin/4254 steve make in free(): warning: chunk is already o [1997/08/09] kern/4256 gibbs ahc driver: kernel goes to strange state o [1997/08/10] kern/4260 EOF handling in st(4) is broken o [1997/08/10] kern/4265 Panic in dsinit when multiple FreeBSD sli o [1997/08/10] kern/4270 ch driver does not use bounce buffers a [1997/08/11] kern/4271 sos System crashed caused by moving mouse poi o [1997/08/11] bin/4276 Security problem with DNS resolution o [1997/08/12] kern/4284 le0 goes OACTIVE after some time o [1997/08/13] kern/4295 SL/IP difficulties between 2.2.1 & 2.2.2 o [1997/08/16] kern/4312 arp table gets messed up, syslog "gateway o [1997/08/17] kern/4327 NFS over TCP reconnect problem o [1997/08/19] kern/4338 New device driver o [1997/08/21] bin/4353 fetch -m changes modified date o [1997/08/22] bin/4357 wosch bug in adduser script causes duplicate UI o [1997/08/23] bin/4366 bad144 crashes if checking over 2gb o [1997/08/24] bin/4376 pthread_join does not return the values s o [1997/08/25] docs/4381 mount -t msdos causes panic:vm_fault o [1997/08/25] kern/4382 CURRENT kernel has a "free vnode isn't" p o [1997/08/27] ports/4405 jfitz ascend-radius port is out-of-date a [1997/08/29] kern/4416 syscons: problem with font a [1997/08/29] kern/4417 syscons: mouse pointer destroys character o [1997/09/02] kern/4454 X drops characters/locks up keyboard when o [1997/09/03] bin/4460 lpd hangs exiting (IE in ps table) o [1997/09/06] bin/4476 fetch puzzled while getting files when ma o [1997/09/06] bin/4477 vidcontrol fails to change videomode on s o [1997/09/07] kern/4487 Kernel panic executing a directory o [1997/09/08] bin/4497 Reverse DNS fails for some CIDR *.IN-ADDR o [1997/09/08] kern/4498 Files corrupted when written to Iomega Zi o [1997/09/09] kern/4505 Support for Gravis UltraSound PnP card o [1997/09/10] kern/4508 nfs3 data integrity problems o [1997/09/11] kern/4513 System lockup appears to be VM related. o [1997/09/14] i386/4533 Server with Cyclom-Y PCI card rebooted at o [1997/09/14] kern/4544 Linux emulator problems when MAXDSIZ is i o [1997/09/16] bin/4554 pthread_cond_wait() doesn't wait for pthr o [1997/09/18] bin/4568 simple /bin/sh script produces wrong resu o [1997/09/18] misc/4576 mfs does not mount requested size from /e o [1997/09/19] bin/4582 integer overflow in 'sa -km' o [1997/09/19] bin/4585 termcap search fails too early o [1997/09/20] kern/4588 NFS access locks up o [1997/09/21] bin/4599 mktemp is too smart, accesses the path gi o [1997/09/21] kern/4600 nfs lookups might give incorrect result f [1997/09/22] kern/4609 Heavy HTTP load causes "out of memory buf o [1997/09/25] kern/4630 buffer_map might become corrupted o [1997/09/26] conf/4634 Sendmail Problem o [1997/09/27] bin/4638 telnet tries to resolve numerical IP addr o [1997/09/29] kern/4657 faulting to probe DSI modem in LoadSoftMo o [1997/09/30] ports/4662 ports Ports Additions: upsd-2.0 o [1997/09/30] kern/4663 checkalias panic o [1997/09/30] kern/4665 Machine reboots self often. Second probl o [1997/10/01] kern/4666 dfr umount -f doesn't seem to work o [1997/10/01] bin/4672 rdist does not do hard links right when t o [1997/10/01] kern/4676 signals delivered slowly on 3.0-CURRENT/S o [1997/10/02] bin/4678 amd does not treat multiple interfaces on o [1997/10/03] bin/4683 restore doesn't correctly handle "sparse" o [1997/10/05] docs/4691 no documentation for mk_cmds(1) o [1997/10/05] bin/4692 steve make core dump / SUFFIXES f [1997/10/06] ports/4708 stb netatalk is broke. no authorization. o [1997/10/06] ports/4711 jfitz mail/p5-Mail-Folder runtime requirement m o [1997/10/07] ports/4724 ports teTeX-0.4 port, make install fails - not o [1997/10/14] misc/4766 Simple changes to make ipfw safer and eas o [1997/10/14] kern/4768 netatalk won't start with multicast error o [1997/10/15] kern/4772 ATAPI CD (bootable) causes kernel panic o [1997/10/16] ports/4773 Error in posting news items to INN server o [1997/10/16] kern/4774 trying to use IBCS2 shared libraries cras o [1997/10/16] kern/4776 netatalk broken in 2.2-STABLE o [1997/10/16] bin/4780 /usr/sbin/sysctl not available when /usr o [1997/10/16] ports/4781 ports installation of teTeX overwrites the mp e o [1997/10/16] kern/4782 Under certain conditions, several krsh's o [1997/10/18] bin/4795 glitch in /bin/sh cd command o [1997/10/18] docs/4797 confusion in worm(4) manpage o [1997/10/18] ports/4798 jmz setuid-root Xserver problem o [1997/10/19] ports/4803 ports xgrabsc dies with "bus error" after selec o [1997/10/19] misc/4804 < periodic does not build locate database o [1997/10/19] bin/4805 NFSv3 server readonly file permission pro o [1997/10/20] ports/4814 jmz :cd-write-1.4 requires mkisofs o [1997/10/21] bin/4822 login.conf can't deal with NFS-mounted ho o [1997/10/22] i386/4826 libc_r, buggy setjmp implementation (rook o [1997/10/24] kern/4843 48 meg double fault moved to 64 meg in 2. o [1997/10/24] ports/4846 ports Install option for HTML docs does not wor o [1997/10/25] bin/4850 Named crashes with "rm_datum: DB_F_ACTIVE o [1997/10/26] kern/4859 SMP kernel panics with timeout table full o [1997/10/27] ports/4865 ports xdm doesn't set env variables o [1997/10/27] i386/4873 INSTALLATION o [1997/10/28] kern/4875 NFS v3 from FreeBSD to Alpha/OSF3.2 has w o [1997/10/28] misc/4881 Make buildworld and make world fail o [1997/10/28] bin/4884 the version of amd in 2.2.5-RELEASE appea o [1997/10/30] kern/4893 FreeBSD-stable kernel will not compile o [1997/10/31] bin/4907 Oct 33* Daylight Savings Time ends; clock o [1997/10/31] kern/4909 de ethernet driver is crazy on 100base o [1997/10/31] bin/4910 tftpd does not log when chroot is enabled o [1997/11/01] bin/4913 Large mail messages can cause mail.local o [1997/11/01] bin/4917 Bad parameters to ifconfig cause kernel p o [1997/11/02] bin/4918 Make fails to correctly substitute "Autom o [1997/11/02] kern/4921 sio0/sio1 not found - probe test 5 and 8 o [1997/11/02] bin/4922 man & more do not work with being suspend o [1997/11/03] kern/4927 kernel does not check any quota and permi o [1997/11/03] gnu/4930 Year 2000 problems in groff macros (from o [1997/11/03] misc/4931 Keyboard lockup during floppy install o [1997/11/04] bin/4939 uuxqt unable to execute rnews program o [1997/11/04] bin/4943 After running /stand/sysinstall from comm o [1997/11/05] conf/4944 make world of FreeBSD-stable fails o [1997/11/05] kern/4945 continued failure to use the Adaptec 1460 o [1997/11/05] bin/4949 rpc.rquotad stat()s fs with quota file in o [1997/11/05] i386/4950 no multicast support for zp - 3c589 o [1997/11/05] i386/4951 keyboard adapeters will not allow install o [1997/11/06] kern/4956 Machine boots when mounting /dev/sd0[ac] o [1997/11/08] ports/4983 erich Upgrade xmorph port o [1997/11/09] kern/4990 NFS hangs under FastEthernet. 1024 Bytes o [1997/11/10] bin/4998 mail and more do not work well with being o [1997/11/10] misc/5001 During installation sc0 device is require o [1997/11/10] misc/5002 Novice Installation gets confused if you o [1997/11/10] misc/5005 f2c is buggy and seriously outdated (agai o [1997/11/10] kern/5007 can not compile /usr/src/sys/pci/brooktre o [1997/11/11] bin/5008 libc_r not working at static linking o [1997/11/13] misc/5032 something strange o [1997/11/14] bin/5041 brian natd drops aliases o [1997/11/14] bin/5043 malloc/realloc/free (unacceptably) dog-sl o [1997/11/14] i386/5044 Linux emul: Missing offset assignment in o [1997/11/14] bin/5046 gdb doesn't understand exponential notati o [1997/11/15] ports/5061 pst ports/mail/imap-uw does *partial* install o [1997/11/15] conf/5062 login.access not evaluated correctly o [1997/11/15] kern/5063 Kernel Panic - seems to be always associa o [1997/11/17] gnu/5069 floating point broken in gdb in 2.2 o [1997/11/17] kern/5071 2.2.5-STABLE crashes under heavy network 398 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- a [1994/12/01] kern/35 mount -t union -o -b : lower layer not se o [1995/01/14] bin/115 systat iostat display doesn't scale high o [1995/01/22] kern/176 peter EIDRM not defined in errno.h o [1995/04/20] misc/355 policy on /usr/local permission in base r o [1995/05/13] bin/401 wollman Add REMOTE_* variables a [1995/05/23] i386/440 sos want vidcontrol option to apply settings a [1995/05/27] gnu/450 scrappy tar --exclude -c doesn't work o [1995/06/15] bin/517 wpaul Bad group change with 'install' o [1995/07/05] bin/591 phk SPAP request REJexted in stead of NAKed o [1995/07/09] misc/605 wpaul NIS: get*bynis routine problems f [1995/08/03] kern/652 Multiple addresses on one interface inter s [1995/08/05] gnu/655 jdp ld -r of shared objects worked in 1.1.5, o [1995/08/07] bin/658 ifconfig alias has to be separately given f [1995/08/12] kern/677 dyson X gets a bus error when calling mmap() o [1995/08/13] bin/680 2.0.5's tip using termios doesn't act the o [1995/08/18] kern/700 fenner The comments in /sys/net/if.h are confusi o [1995/09/26] kern/742 dyson syslog errors accessing Mac hard disks [p o [1995/10/03] kern/765 phk umount -f can`t umount a NFS filesystem i o [1995/11/20] kern/831 one minor complaint about the kernel visu o [1995/11/27] bin/841 stale nfs mounts cannot be umounted o [1995/11/30] bin/854 dyson swapinfo shows incorrect information for o [1995/12/17] kern/900 dyson ext2fs triggers divide by zero trap in vn a [1995/12/29] misc/922 From line handling incorrect in mail.loca a [1995/12/31] kern/924 EISA devices have disappeared from vmstat o [1996/01/21] bin/961 'more $file', incorrect CRLF compacting. o [1996/01/28] kern/975 bde getrusage returns negative deltas a [1996/01/30] bin/981 fenner clnt_broadcast() is not aware of aliases s [1996/02/03] bin/993 peter g++ complains about /usr/include/machine/ o [1996/02/07] bin/999 peter /usr/share/mk/sys.mk missing common $(RM) o [1996/02/12] bin/1021 phk pppd doesn't handle PAP-only authenticati o [1996/02/25] i386/1042 bde Warning from sio driver reports wrong dev o [1996/02/26] misc/1043 dyson vm_bounce_alloc error on 2.1 install with o [1996/03/20] kern/1090 iostat displays incorrect sps count o [1996/03/20] bin/1093 wollman route's diagnostic is weird o [1996/04/06] kern/1119 dyson Mounted EXT2FS partition is not cleanly u a [1996/04/15] kern/1144 sig{add, del}set and sigismember fns don' a [1996/04/22] bin/1154 Configure tunN device for ip-over-ip tunn o [1996/04/23] bin/1155 systat or top display disagreeing informa o [1996/05/09] bin/1184 scrappy ls + xterm + nvi + columns != 80 + ^Z = m o [1996/05/15] bin/1206 steve /bin/sh + emacs + ^G = ruined terminal o [1996/06/11] bin/1312 automounter hangs on boot o [1996/06/12] conf/1319 muldi3 is not included into kernel's Make a [1996/06/13] bin/1320 gpalmer dump limits blocksize to 32K o [1996/06/18] i386/1331 phk changes and bug in ft driver f [1996/06/18] bin/1332 changes to amd and possible nfs lkm bug? f [1996/07/04] misc/1369 Need SC_MORE_LUS for Emulex MD23 also a [1996/07/07] bin/1375 Extraneous warning from mv(1) f [1996/07/07] misc/1376 if_tun.c does not set if_ibytes and if_ob o [1996/07/18] kern/1399 dyson invoking setuid programs over NFS case vn o [1996/07/21] ports/1416 ports cflow(1) doesn't parse GNU C __attribute_ s [1996/07/23] kern/1421 Non-bug in sosend() o [1996/07/24] misc/1428 ncurses doesn't always display ALTCHARSET o [1996/08/03] kern/1462 nfsstat doesn't work if using LKM'ed vers a [1996/08/07] ports/1470 asami need more info in the ports structure o [1996/08/17] kern/1501 vmstat reports impossible avm after start o [1996/08/17] bin/1502 vmstat 'avm' field merges with procs 'w' o [1996/08/17] kern/1508 sos syscons should protect against useless DD o [1996/08/19] kern/1514 dyson mlock fails on readonly regions o [1996/08/20] kern/1516 dyson vm_fault.c contains dead code or too many o [1996/08/21] ports/1520 erich sudo dosn't recognise certain passwords a o [1996/08/21] bin/1523 "cvs update -d -P" prunes unchecked-in di o [1996/08/24] misc/1538 enhanced /etc/security script a [1996/09/04] bin/1565 Moving a file to it's link completely rem o [1996/09/06] bin/1577 mail -f foo does not look in current dire o [1996/09/08] bin/1589 ftp fails to flush output o [1996/09/11] bin/1598 tip leaves OPOST set on controlling termi o [1996/09/12] bin/1607 dfr unmount fails for a NFS fs mounted withou o [1996/09/14] gnu/1611 phk groff should use "system-wide" papersize o [1996/09/14] kern/1614 Attempt to mount an NTFS partition causes f [1996/09/18] kern/1636 mss driver extension to broaden support a [1996/09/18] bin/1642 pkg_install Makefiles could be simplified o [1996/09/19] kern/1654 In procfs, vattr doesn't contain correct o [1996/09/20] kern/1658 ktrace/kdump flaky - corrupted ktrace.out o [1996/09/23] i386/1671 s2 map in pcvt isn't ISO 8859-1 and claim o [1996/09/29] kern/1690 apm and sbxvi inappropriately probe as co o [1996/09/29] docs/1691 brian ppp server doc submission o [1996/10/02] misc/1708 monthly login accounting o [1996/10/02] kern/1711 joerg kernel logging of signaled processes shou o [1996/10/03] misc/1717 Use of ntohl causes lint to complain o [1996/10/04] bin/1721 /sbin/route incorrectly installs routes w o [1996/10/04] kern/1725 visual config redraws bits of the screen f [1996/10/08] misc/1738 Install floppy returns random geometry wi o [1996/10/11] conf/1777 sysctl called in /etc/netstart before /us s [1996/10/13] kern/1788 wollman netstat gives negative numbers for tcp by o [1996/10/13] misc/1791 syslimits.h does not allow overriding def o [1996/10/13] bin/1793 steve /bin/sh return w/o exitstatus in a functi o [1996/10/14] bin/1804 pkg_create hangs if the packing list has o [1996/10/16] bin/1827 add support of Glidepoint trackpad "tap/d o [1996/10/20] bin/1849 gdb sets library breakpoints on the wrong o [1996/10/20] misc/1853 Syscons font mapping semms not to work pr o [1996/10/20] docs/1855 joerg Addition to LINT o [1996/10/22] kern/1868 system knows it has no keyboard but compl o [1996/10/23] misc/1871 incorrect '===> item' when making world o [1996/10/23] bin/1872 automounter (amd) cannot ls directories w o [1996/10/24] bin/1881 file(1) misidentifies Sun3/m68k executabl o [1996/10/26] bin/1897 Sendmail 8.8.2 requires /etc/sendmail.cw o [1996/10/27] bin/1904 /usr/bin/su is not careful enough in veri o [1996/10/29] bin/1924 if lpd is not running, lpc will say ``no o [1996/10/30] i386/1931 Mitsumi CDrom works well under 2.1.x, fai o [1996/11/01] bin/1941 wtmp and monthly rotation o [1996/11/01] bin/1943 route(8) args o [1996/11/02] bin/1945 Out of date code/comments in dd o [1996/11/04] i386/1953 sos syscons savers have no default timeout o [1996/11/04] gnu/1961 uucp logging files are in /var/spool/uucp o [1996/11/06] bin/1968 FreeBSD has no rdate(8), here's one o [1996/11/06] bin/1970 csh limtail() bug o [1996/11/09] bin/1985 pkg_delete outputs confusing message when o [1996/11/13] kern/2004 route add -link panic o [1996/11/13] bin/2005 Poor command line argument checking and b o [1996/11/14] bin/2008 kerberos tickets from login all have the o [1996/11/15] kern/2022 Switching from X display to virtual conso o [1996/11/16] bin/2036 cpio size wraparound o [1996/11/16] ports/2038 torstenb sshd dies on FreeBSD machines if run as a f [1996/11/18] ports/2051 andreas HDF library port o [1996/11/19] bin/2061 DEBUG_FLAGS in bsd.lib.mk is broken o [1996/11/19] bin/2065 wollman in tzsetup/sysinstall, allow user to type o [1996/11/19] misc/2068 Unstable keyboard mappings on the main tt o [1996/11/20] kern/2072 ZIP drive support is available for FreeBS o [1996/11/22] docs/2087 ifconfig.8 does not document how to remov o [1996/11/22] bin/2090 clients may bind to FreeBSD ypserv refusi o [1996/11/25] misc/2105 bsd.lib.mk has problems with STRIP and IN o [1996/11/26] bin/2106 Byte order problem in -current routed o [1996/11/26] i386/2108 sos [ATAPI] wcd driver may hang under certain o [1996/11/28] kern/2118 sos writing to virtual consoles fails to disp o [1996/11/28] bin/2119 mount lies to child about argv0, which ca o [1996/12/01] bin/2133 netstat -s overflows to negative o [1996/12/02] bin/2137 vm statistics are bad o [1996/12/02] kern/2140 FreeBSD leaves EtherExpress 16 net card i o [1996/12/03] ports/2145 ache qpopper bulletin support broken o [1996/12/03] conf/2146 brian wrong /dev for COM2 during installation v o [1996/12/07] ports/2169 pst zephyr port does not completely compile f [1996/12/08] ports/2182 ports FreeBSD's and X-32's list of locales do n o [1996/12/08] bin/2184 sendmail has lots of trouble with local d a [1996/12/10] ports/2190 asami need cross-reference to xpdf from X11 por o [1996/12/12] kern/2199 joerg Got a lots of "Target Busy" messages with o [1996/12/14] kern/2214 File System gets corrupted when mounting o [1996/12/14] bin/2216 Ada specs not being compiled into cc/gcc o [1996/12/16] bin/2227 FreeBSD does not recognize WD7000-ASC dri o [1996/12/17] i386/2234 fbsdboot.exe does not turn off floppy dri o [1996/12/17] i386/2239 some interrupts take too long (i.e. BT946 o [1996/12/18] misc/2242 Suggest add optional mt blocksize 512 o [1996/12/18] bin/2247 imp getopt should return -1 rather than EOF f [1996/12/20] bin/2260 brian PPP logins using PAP to Nortel/Shiva syst o [1996/12/21] ports/2264 jmz latex* ports need updating a [1996/12/21] bin/2265 guido su(1) does not call skeyaccess() o [1996/12/24] kern/2273 dufault support for POSIX.4 / POSIX.1a RT-schedul o [1996/12/25] conf/2284 Termcap ibm3163 entry has arrow keys wron o [1996/12/26] bin/2291 race condition in /etc/master.passwd lock o [1996/12/27] kern/2298 Support for DSR/DCD swapping on serial po a [1996/12/27] misc/2302 markm new crypt() including SHS and an extendab o [1996/12/28] misc/2309 Thread safe fixes to malloc, localtime, l o [1996/12/28] ports/2313 torstenb pidentd fails in 2.2-BETA o [1996/12/29] bin/2315 tail segfaults on NFS permission denied o [1996/12/29] misc/2323 FreeBSD.FAQ file in ftp.freebsd.org is lo o [1996/12/30] kern/2327 `Green' saver for pcvt o [1997/01/01] docs/2353 Changes to FAQ o [1997/01/03] bin/2366 libc does not consult /etc/services to fi o [1997/01/03] bin/2368 serial line logins "freeze" during login o [1997/01/06] bin/2382 curses.h / -lcurses incompatible with C++ o [1997/01/06] bin/2383 Inconsistent tputs(3) prototypes in curse o [1997/01/06] misc/2386 patches for new socket credential firewal o [1997/01/06] bin/2387 virtual hosting patches for inetd o [1997/01/06] kern/2390 Some CDROM drives stop audio on cdcontrol o [1997/01/07] kern/2393 filesystems not unmounted following shutd o [1997/01/07] misc/2407 dirent.h does not include sys/types.h o [1997/01/07] bin/2410 pppd(8): failing PAP doesn't force line d o [1997/01/07] kern/2412 Wine does not work o [1997/01/07] ports/2413 peter Cannot redirect "top" output o [1997/01/08] kern/2424 Pressing ALT-Fn during boot -c leave bell o [1997/01/09] kern/2429 Driver for AIMS Lab RadioTrack radio card o [1997/01/10] bin/2437 minor nits on text in 2.2-BETA install o [1997/01/10] bin/2442 davidn setusershell()/endusershell() missing o [1997/01/10] bin/2443 Fetch cannot find the correct boundary be o [1997/01/11] bin/2448 semctl() not portable -- freebsd requires o [1997/01/11] docs/2455 no description "option COMCONSOLE" MLEN o [1997/01/26] misc/2596 dd refuses to respond to SIGkill o [1997/01/26] i386/2598 ep0 in EISA mode hangs if ep0-device (ISA o [1997/01/28] bin/2603 dufault Added POSIX.4/POSIX.1b constants in unist o [1997/01/28] bin/2604 dufault Added POSIX.4/POSIX.1b shm_open()/shm_unl o [1997/01/28] ports/2607 max New port: Gopher-2.3 o [1997/01/29] misc/2617 Utility submission - upsmon - UPS monitor o [1997/01/30] kern/2621 Patch to support Cogent EM110 fast-ethern o [1997/01/30] docs/2623 ipfirewall(4) man page is way out of date o [1997/01/30] bin/2624 kdump unaware of semsys and several other o [1997/01/31] bin/2630 xargs does excessive and inconsistent arg o [1997/02/02] gnu/2637 tar dumped core with -g option. a [1997/02/02] bin/2641 wpaul login_access.c doesn't work with NIS by d o [1997/02/04] bin/2657 ypserv thinks there is no computers in ne o [1997/02/04] bin/2660 When selecting BSD to boot from system ha o [1997/02/04] bin/2665 port 22 isn't being converted to ".ssh" i o [1997/02/05] bin/2668 modification suggested for rarpd o [1997/02/05] bin/2672 Problem with telnetd s [1997/02/07] ports/2684 torstenb ircII port upgrade; 2.9_roof -> 2.9alpha1 o [1997/02/07] kern/2686 struct igmpmsg in s o [1997/02/10] bin/2703 vipw doesn't allow you to edit master.pas o [1997/02/10] kern/2704 Occasional failure to detect wdc1 on boot o [1997/02/11] conf/2709 FBSD 2.1.6 X-Server installation setup ut o [1997/02/11] bin/2713 ftp daemon processes don't terminate, eve o [1997/02/11] kern/2715 MSDOS-FS 1024/2048 byte/sector media supp o [1997/02/11] kern/2716 od.c/sd.c non 512 byte/sector support imp o [1997/02/13] i386/2729 "make tags" in sys/kern produces barely u o [1997/02/14] bin/2734 jkh pkg_* uses relative paths to executables o [1997/02/14] bin/2735 jkh Add signature support (both MD5 and PGP) o [1997/02/14] bin/2737 yppasswd fails to change password on a su o [1997/02/15] misc/2745 fenner PR querry web form doesn't sort correctly o [1997/02/20] docs/2780 Description of Linux emulation is out of o [1997/02/20] bin/2782 err man page is slightly wrong o [1997/02/21] misc/2789 na.phone update o [1997/02/22] ports/2797 obrien New Port: qmail o [1997/02/23] kern/2806 new kernel tags script o [1997/02/25] i386/2813 hard reference to /usr/src breaks make wo o [1997/02/26] conf/2819 /etc/rc does not execute 'uname' when con o [1997/02/26] conf/2822 ftp install specifying URL confusing o [1997/02/27] gnu/2827 after make world genclass is not installe o [1997/02/28] docs/2833 Repeated topics on FAQ entry hardware com o [1997/03/02] docs/2850 init(8) man page does not document secure o [1997/03/02] bin/2851 script(1) sets argv[0] of the started she o [1997/03/03] kern/2857 DE500 board exhibits capture effect o [1997/03/03] bin/2859 /usr/bin/quota seems to choke on long gro o [1997/03/03] kern/2865 dfr NFS client hangs on umount, ls, df when N o [1997/03/03] bin/2871 showmount -e returns error o [1997/03/04] misc/2882 Duplicate line in /etc/services? o [1997/03/05] kern/2886 fenner mbuf leak in multicast code o [1997/03/06] docs/2897 steve send-pr categories should be explained so o [1997/03/06] bin/2898 fenner arp -a -n buglet a [1997/03/06] ports/2905 fenner Fixed port: xshisen-1.36 o [1997/03/09] i386/2924 sos syscons X keyboard gets stuck in capsmode o [1997/03/09] ports/2926 jmb xmgt-2.31 port, now in pub/incoming on ft o [1997/03/10] bin/2934 sh(1) has problems with $ENV o [1997/03/10] bin/2938 Add -b, -l, and -f options to du(1) o [1997/03/11] ports/2949 asami bsd.port.mk needs something like FETCH_EN o [1997/03/11] misc/2955 pkg_add failed on xemacs via sysintall o [1997/03/13] ports/2974 ports updated Makefile and patch-ab of jp-dvi2p o [1997/03/13] bin/2977 After enabling moused and vidcontrol and o [1997/03/13] bin/2979 GCC complains about stmt. expr. when comp o [1997/03/13] i386/2984 serial port console only prints ~ 1 char o [1997/03/14] ports/2988 joerg vga font is not built o [1997/03/15] ports/2993 obrien qmail-port-take2-proff.tar.gz in incoming o [1997/03/15] kern/3001 soundblaster8 card does not work correctl o [1997/03/16] misc/3009 packages-2.2/x11/fvwm-1.24r.tgz corrupt o o [1997/03/17] ports/3012 obrien qmailanalog port in incoming o [1997/03/18] conf/3023 By default users have no write permission o [1997/03/18] misc/3024 make reinstall in /usr/src requires writa o [1997/03/18] bin/3025 mv to / trailed dirs prints odd error mes o [1997/03/18] bin/3028 sos add support for Glidepoint pointing devic a [1997/03/21] ports/3052 ports /usr/ports/lang/expect does not find tkCo o [1997/03/22] kern/3061 route does not accept -genmask o [1997/03/24] misc/3075 2.2-R install "features" (non critical) o [1997/03/24] ports/3090 torstenb ircii-2.9-roof does not run. o [1997/03/26] misc/3113 make libraries failed. a [1997/03/28] misc/3136 rc.firewall should be run after interface o [1997/03/29] bin/3139 qcamcontrol has a bug where I/O errors ar o [1997/03/29] misc/3140 display message is broken on boot.flp o [1997/03/30] docs/3147 /usr/share/misc/au.postcodes o [1997/03/31] gnu/3157 Patches to gas and gdb to support MMX ext a [1997/04/01] bin/3164 view copies the file into vi.recover o [1997/04/01] ports/3169 ports nn port broken o [1997/04/01] kern/3172 CS4232 support trouble for mss0 o [1997/04/03] bin/3190 RISCom N2 card driver problem? o [1997/04/04] bin/3194 2.2.1-RELEASE hangs when using /stand/sys o [1997/04/06] bin/3211 ctm uses mktemp()> o [1997/04/06] bin/3212 the pkg_* tools use mktemp() o [1997/04/07] bin/3221 rpc.rusersd : can't communicate with SunO o [1997/04/07] misc/3225 uucpd.c should normalize host names as lo o [1997/04/08] bin/3232 XFree86 installation Problem with non-Mic a [1997/04/08] bin/3233 wosch adduser(8) doesn't add users to the wheel o [1997/04/08] misc/3237 SCRIPTS addition to bsd.prog.mk a [1997/04/09] bin/3241 times(3) returns only stime o [1997/04/09] bin/3242 incorrect prototype for initgroups o [1997/04/09] bin/3245 variable substitution "a=${a:=}" in /bin/ o [1997/04/10] bin/3251 xsysinfo stops refreshing and wastes CPU o [1997/04/10] kern/3253 scsiconf.c: make ZIP disks use optical dr o [1997/04/13] conf/3272 $@ is deprecated I believe, so use ${.TAR o [1997/04/14] kern/3281 errors when "rm -r"-ing in a mounted ext2 o [1997/04/14] kern/3282 ext2fs causes fs-unmount at shutdown/rebo o [1997/04/14] bin/3284 symorder(1): -t option doesn´t work at al o [1997/04/14] bin/3285 date option for pom(6) (phase of the moon o [1997/04/14] bin/3286 missing error checking in mount_mfs(8) ak o [1997/04/14] kern/3287 missing symbols in /usr/src/sys/i386/i386 o [1997/04/14] bin/3289 login(1) does not check /etc/skey.access o [1997/04/15] kern/3299 /dev/console hangs f [1997/04/15] kern/3302 msdos FS bogus error o [1997/04/17] bin/3314 /etc/daily did not run on April 6, 1997 o [1997/04/17] kern/3317 odd TUBA_INCLUDE use in tcp_input.c o [1997/04/17] ports/3318 ports New port: jigsaw (Java-based HTTP server) o [1997/04/18] ports/3322 markm setlocale problem in lang/perl5 a [1997/04/19] ports/3335 ports new port request of korean/hanemacs o [1997/04/20] ports/3358 asami XFMail-1.1 has been released f [1997/04/23] kern/3375 Consistent 10 min. delay at boot with REL o [1997/04/25] ports/3383 ports kaffe core dumps if LD_LIBRARY_PATH not s o [1997/04/25] bin/3386 kernel 'config' wrapper 'doconfig' ala Di o [1997/04/27] bin/3399 mv of symbolic link can move directory in o [1997/04/27] docs/3400 MAXMEM uses maths in LINT o [1997/04/27] conf/3401 jkh sysinstall sends empty FreeBSD user regis o [1997/04/29] bin/3416 ibcs emulation problems o [1997/04/29] bin/3418 pkg_create doesn't always create gzip'ed o [1997/05/01] ports/3455 jmz mtools-3.6.tgz could have a better mtools o [1997/05/02] kern/3475 gdb(ptrace?) cause create/modify times on o [1997/05/03] misc/3476 Please add support for .cpp suffix to sta o [1997/05/05] i386/3504 New features (and manpage) for netboot o [1997/05/05] bin/3506 more did not show iso-8859-n characters o [1997/05/05] bin/3508 FreeBSD 2.2.1 do not view SCSI disk at sw o [1997/05/06] docs/3522 Man pages close(2) misses fcntl lock info o [1997/05/07] bin/3528 fsck fails to detect some illegal block n o [1997/05/08] kern/3546 ktrace works even if no read permission o [1997/05/08] gnu/3552 the -L option of tar does not work proper o [1997/05/09] bin/3556 Bug with -i option in /usr/bin/lpr o [1997/05/09] bin/3558 make reinstall collapses on install-info o [1997/05/09] kern/3560 Timeout counter bug in /sys/i386/isa/wd.c o [1997/05/09] kern/3571 Mounted ext2 prevents umount of filesyste o [1997/05/11] conf/3577 eBones and OBJLINK=yes fails to build o [1997/05/12] kern/3584 cleanup TCP_REASS macro in tcp_input.c o [1997/05/13] conf/3590 Difference in ttys and FAQ f [1997/05/14] ports/3597 ports jp-groff-0.99 port macro update o [1997/05/16] bin/3608 Telnet in linemode will break apart long o [1997/05/17] kern/3611 Internal CPU cache on CyrixiInstead DX2 d o [1997/05/18] gnu/3616 permissions of /usr/libexec/uucp/uuxqt no f [1997/05/19] ports/3634 andreas fvwm95-2.0.43a-i18n-port.tar.gz was put o [1997/05/19] docs/3636 No mention is made in relevant manpages a o [1997/05/20] bin/3638 /bin/w can't handle long /dev/{tty,cua}xx o [1997/05/20] bin/3639 ac doesn't know about FreeBSD's pty names o [1997/05/20] docs/3645 TCP_wrappers package doesn't mention wher o [1997/05/21] bin/3648 find(1) extension for file flags o [1997/05/21] ports/3657 ports Port of NCSA HyperNews submitted as p5-hy o [1997/05/22] i386/3663 Unable to get system printer to work o [1997/05/22] kern/3667 patches to modularize vnode driver o [1997/05/24] conf/3673 no ddp line in /etc/protocols o [1997/05/25] kern/3678 bug in IPDIVERT code in -current o [1997/05/27] misc/3695 compiled termcap.db not in distribution o [1997/05/28] bin/3705 jkh /stand/sysinstall hangs. pkg_add also ha o [1997/05/29] conf/3713 installation floppy bug o [1997/05/30] kern/3720 Addition for supported Hardware o [1997/05/31] ports/3729 scrappy pgsql dies when initiated o [1997/05/31] kern/3731 Addition of a PCI Bridge f [1997/05/31] bin/3733 davidn getty with 'to' option causes pppd to die o [1997/06/01] kern/3738 Byte and packet counters in ipfw overflow o [1997/06/01] kern/3739 pause key not disabled; weird stuff when o [1997/06/01] conf/3751 Improvements to /etc/rc{,.network,.pccard o [1997/06/02] ports/3759 tg xtem-5.23 (X11 TEx Menu) port submitted ( o [1997/06/02] bin/3762 dufault Bogus return values from rtprio(1) o [1997/06/02] docs/3764 systat(1) -vmstat description seems to be o [1997/06/04] conf/3775 Time Zone for Sri Lanka - LKT o [1997/06/04] bin/3778 ypbind -S domainname,server1,... does not o [1997/06/07] bin/3805 single process tftpd o [1997/06/09] docs/3819 davidn man (5) login.conf specifies passwordtime o [1997/06/09] bin/3826 KerberosIV sometimes hangs rcp o [1997/06/10] kern/3836 Cannot remove HUGE directory o [1997/06/10] bin/3837 dufault new feature for rtprio o [1997/06/12] kern/3853 netboot/ns8390.c breaks NS datasheet o [1997/06/12] i386/3856 Improvement to autodetection logic o [1997/06/13] bin/3859 Setting the $0 variable in perl dosnt do o [1997/06/14] bin/3866 rcs2log fails with eastern timezones f [1997/06/14] ports/3870 ports Upgrade tkdesk 1.0b3 --> 1.0b4 o [1997/06/15] kern/3879 Can't export mounted ext2fs via NFS o [1997/06/16] conf/3886 install does not build sendmail host stat o [1997/06/17] ports/3888 torstenb port net/wu-ftpd: tiny bug that is wu-ftp o [1997/06/17] ports/3892 itojun new port: www/webxref (cross-reference ge o [1997/06/17] gnu/3894 manpath segfaults if it dosen't understan o [1997/06/18] kern/3901 Multicast for Intel 10/100 Ethernet Card o [1997/06/19] misc/3912 ctags(1) cannot trace some macro correctl o [1997/06/20] gnu/3918 vi dosnt wrap lines when called from send o [1997/06/22] ports/3928 ports New port: jp-pgp-2.6.3ia (language) o [1997/06/23] kern/3938 Problem about mmap() over NFS o [1997/06/23] ports/3939 ports new port: latex2html_icon_server o [1997/06/23] ports/3940 fenner port of latex2html-96.1 o [1997/06/24] kern/3944 if_le doesnt receive ether multicast pack o [1997/06/25] kern/3948 nonworking t/tcp server side a [1997/06/25] kern/3953 kern-config: options PANIC_REBOOT_WAIT_TI o [1997/06/25] ports/3955 torstenb -kpassive_ftp=true fails on socket connec o [1997/06/26] bin/3957 Makefile dependency error in amd o [1997/06/26] ports/3958 jmz a2ps fails if used according to man o [1997/06/26] i386/3962 print disk internal cache size during pro o [1997/06/27] kern/3968 Hardware probes die on Peak SBCs. o [1997/06/29] ports/3983 ports New port: psf toolkit o [1997/06/30] ports/3991 ports set of OffiX ports a [1997/07/01] bin/4004 moused(8) + international language text = o [1997/07/02] ports/4014 ports package/port installation obeys roots uma o [1997/07/03] i386/4024 sos Patch to add dead key support to syscons o [1997/07/03] ports/4025 ports New port - jp-ebw3 o [1997/07/05] kern/4037 boot.flp panics after kernel load if >2 s o [1997/07/06] kern/4039 2940UW and DCAS 32160 -- hungs if 40 MB/s o [1997/07/07] kern/4051 pppd connect 'chat ...' broken o [1997/07/07] kern/4052 VJ compression drops packets with IP+TCP o [1997/07/08] ports/4061 obrien new port: xklock o [1997/07/08] misc/4063 2.2.2R Installation fails if Jaz drive sp o [1997/07/09] ports/4067 ports wrong formats of files in offix.tar o [1997/07/13] ports/4083 ache netscape wrapper doesn't hand off args co o [1997/07/14] bin/4087 nameservice terminates after ndc restart o [1997/07/16] ports/4103 ports Should I or should I not ? o [1997/07/17] ports/4109 ports New port: xcopilot o [1997/07/17] kern/4112 PPSCLOCK kernel diffs o [1997/07/17] kern/4113 Processes shouldn't get SIGIO when the tt o [1997/07/18] bin/4116 davidn Kerberized login as .root fails to f [1997/07/18] ports/4118 ports New Port: bind 8.1.1 o [1997/07/19] bin/4120 Partition sysid prevents extended DOS par o [1997/07/20] ports/4127 ache netscape-3.01: get rid of bogus error mes o [1997/07/20] ports/4133 chuckr new port: mpich.tar.gz o [1997/07/21] misc/4138 /etc/rc and sudo : chg to rm -rf /var/run o [1997/07/22] ports/4142 ports Hugs port to FreeBSD 2.2.1 a [1997/07/23] bin/4152 davidg pstat -T o [1997/07/23] kern/4153 New tcp initial send sequence number code f [1997/07/23] bin/4154 wish /bin/sleep handled fractions of a se o [1997/07/24] bin/4157 netstat atalk output should print symboli o [1997/07/24] bin/4163 ftp core dumps after hitting control-C f [1997/07/25] bin/4165 fetch gone to interminable query cycle af o [1997/07/26] bin/4172 link goes down for too long -- transfer f o [1997/07/27] bin/4182 netstat should always print the interface o [1997/07/27] bin/4183 How about upgrading bc to 1.04? o [1997/07/28] kern/4184 minor nits in sys/netatalk o [1997/07/28] bin/4187 The w command should have a larger tty fi o [1997/07/30] ports/4192 ports New port: Amulet o [1997/07/31] conf/4201 Installing only X-User does not install c o [1997/07/31] bin/4204 ac printed wrong report about tty users o [1997/08/01] misc/4208 sos New syscons font o [1997/08/02] bin/4216 dlsym returns null o [1997/08/03] kern/4221 Kernel mode pppd doesen't update wtmp on o [1997/08/04] ports/4227 ports cops perl script produces errors o [1997/08/04] conf/4229 Ethernet interface unreachable on bootup o [1997/08/06] ports/4232 scrappy Boot-time start of postgressql postmaster o [1997/08/06] misc/4235 asami /usr/share/mk/bsd.ports.mk and GNU config o [1997/08/06] bin/4238 chpass only occasionally works in conjunc o [1997/08/07] kern/4243 file locking doesn't work for pipe o [1997/08/07] bin/4247 modification to /etc/security for FreeBSD o [1997/08/08] ports/4248 ports Port submission of Chimera 2.0a2 X-WWW Br o [1997/08/08] misc/4249 wpaul ypchsh doesn't care about changing a user a [1997/08/09] kern/4255 SMP kernel freezes on machines with >2 CP a [1997/08/09] kern/4257 itojun scsi RESERVATION CONFLICT support needed o [1997/08/10] ports/4263 ports new ports: jp-vfxdvik-18f (dvi viewer for o [1997/08/10] ports/4264 ports mftp get a Segmentation fault o [1997/08/12] ports/4281 ports Compress pcl graphics files - this is an o [1997/08/12] misc/4285 SDL RISCom/N2 (ISA) o [1997/08/12] ports/4287 jfitz mail/p5-Mail-Folder is broke a [1997/08/13] gnu/4290 ache man wrong viewed koi8-r manpages and neqn o [1997/08/13] kern/4297 dufault SIGEV_NONE and SIGEV_SIGNAL go in signal. f [1997/08/13] bin/4298 joerg Is there any support for using the scsi C o [1997/08/13] i386/4300 msmith The initial timeout on open("/dev/lpt0".. o [1997/08/14] ports/4304 ports Recommendation re. Ports Collection f [1997/08/15] bin/4308 FreeBSD uses an out of date version of vi o [1997/08/17] misc/4316 pthread_cleanup_{push|pop} nonexistent o [1997/08/17] docs/4320 function prototype in pthread_detach man f [1997/08/17] bin/4323 Initial routing tables incomplete o [1997/08/18] kern/4329 read(2) from /dev/bktr0 hangs o [1997/08/18] ports/4330 ports new ports for rxvt with big5 support o [1997/08/22] ports/4356 erich sudo shouldn't block signals in tgetpass( s [1997/08/22] ports/4360 ports new port of Amaya-1.0b o [1997/08/23] ports/4362 ports submit new port chinese/rxvt o [1997/08/23] conf/4363 kernel build depend on make obj o [1997/08/24] bin/4369 dump can calculate wrong estimate times w o [1997/08/25] ports/4377 ports bkpupsd [device] o [1997/08/25] ports/4384 ports New port display-1.0 o [1997/08/25] gnu/4385 un- and unclearly documented options in t o [1997/08/26] ports/4391 ports New port: VPCE o [1997/08/26] misc/4395 if exists(secure) in /usr/src/Makefile is o [1997/08/27] ports/4402 ports Port submission: math::MatrixReal o [1997/08/28] ports/4412 ports New port: YaTeX (in print and japanese) o [1997/08/29] kern/4413 No way to unmount a floppy that goes bad o [1997/08/29] misc/4414 be.iso.kbd errors in mapping o [1997/08/29] bin/4419 man can display the same man page twice o [1997/08/29] bin/4420 find -exedir doesn't chdir for first entr o [1997/08/30] docs/4439 davidn man pages wrong regarding login.conf o [1997/08/30] kern/4441 3com Etherlink III card not working while o [1997/08/31] conf/4444 Can't seem to configure for a DEC VRT17-H o [1997/09/02] bin/4452 wpaul /etc/ethers and NIS: Bad comment parser o [1997/09/03] bin/4459 bde No prototype for moncontrol(3) and monsta o [1997/09/04] kern/4463 When using ipfw, all I get is the followi o [1997/09/04] misc/4468 dlopen is not available from static execu o [1997/09/04] misc/4470 libc_r deviates from the pthread standard o [1997/09/04] docs/4472 manpage for /usr/bin/printf is not comple o [1997/09/07] misc/4482 jdp A bug in dynamic loader design o [1997/09/07] bin/4484 peter sendmail is barfing o [1997/09/07] kern/4485 boot fials if root fs blocksize is not 8k o [1997/09/08] ports/4496 fenner new port of latex2html-97.1.tar.gz o [1997/09/08] ports/4499 jraynard Update of slurp port o [1997/09/12] ports/4521 ports 'Joe' editor does not show control-chars o [1997/09/13] kern/4528 processes hang if the mount_portal proces o [1997/09/14] ports/4534 ports replace gimp with gimp-devel a [1997/09/14] i386/4538 sos byteswapped ATAPI id strings o [1997/09/14] docs/4542 jkh Slovene WWW and FTP mirrors of FreeBSD o [1997/09/14] bin/4545 f77 will only call `cc', no com-line opti o [1997/09/15] i386/4547 asc.c and pcaudio.c should use selrecord o [1997/09/16] bin/4553 man fails to open manpage if ./man exists o [1997/09/16] misc/4556 make can't build executable from single F o [1997/09/16] ports/4557 ports New ports: xjig 2.4 o [1997/09/16] misc/4560 XFree86 3.3.1 fails to install properly i o [1997/09/17] ports/4565 ports News port: ircII-current (ircII-2.9a8/col o [1997/09/18] conf/4572 /etc/rc.network loads ipfirewall lkm rega o [1997/09/18] ports/4580 ports new port of tycoon, x11 desktop stuff o [1997/09/20] ports/4591 ports Port submission: xtide o [1997/09/21] ports/4595 ports Lynx tarball missing from ftp.freebsd.org o [1997/09/21] ports/4596 ports nas port fails build on 2.2-STABLE o [1997/09/21] kern/4597 Patch to pass NPX status word in signal c o [1997/09/21] kern/4601 Contrib: userconfig patch to edit SCSI co f [1997/09/22] conf/4603 brian configure ddr between FreeBSD host and Ci o [1997/09/22] ports/4605 max New port ja-vftool-1.2(japanese/vftool). o [1997/09/22] ports/4606 ports New port: Hugs 1.4 (hugs-1.4.tar.gz in /p o [1997/09/22] ports/4608 obrien The packing list for the mutt port is inc a [1997/09/24] ports/4620 ports update xinetd to 2.2.1 o [1997/09/24] ports/4621 ports New port: xtris [category games] o [1997/09/25] bin/4629 calendar doesn't print all dates sometime o [1997/09/25] ports/4631 ports New port: ncurses-1.9.9g o [1997/09/26] i386/4635 sos syscons mouse cut&paste inserts trailing o [1997/09/27] ports/4640 ports Enabled I18n code of transfig-3.2 with no o [1997/09/28] ports/4643 ports new port - japanese-english dictionary o [1997/09/28] ports/4644 ports This is a new port xfig -international ba o [1997/09/28] misc/4646 Can't fixit with an NFS-mounted CD. o [1997/09/29] conf/4654 Need to do post-ifconfig commands o [1997/09/29] ports/4656 ports New port: sidplay (category emulators) o [1997/09/30] ports/4658 ports yet another X11 utility added -- XDiary o [1997/09/30] ports/4664 ports New port sendfile-1.6 (category net) o [1997/10/01] ports/4667 ports Ocaml port does not install reference man o [1997/10/02] misc/4679 xtend(8) doesn't handle the "dump" comman o [1997/10/02] kern/4680 lkm version of vn.c o [1997/10/02] misc/4682 magic file entries for tcpdump save files o [1997/10/03] kern/4685 Some SCSI retry messages formatted differ o [1997/10/04] bin/4688 peter sys/utsname.h SYS_NMLN 32 too small o [1997/10/05] bin/4695 pstat error o [1997/10/05] bin/4696 ping hangs on certain unresolvable hosts o [1997/10/05] bin/4697 make doesn't handle dependencies with for o [1997/10/05] docs/4698 Handbook's script for making repair flopp o [1997/10/05] conf/4702 ipfw should pass all lo0 traffic, not jus o [1997/10/06] ports/4707 ports new-port : ja-mtools-3.6 (manipulating MS o [1997/10/06] kern/4717 si driver names tty lines oddly o [1997/10/07] misc/4723 /etc/rc complains during boot when sudo w o [1997/10/08] ports/4726 ports new port developed(X11 japanese font) o [1997/10/08] ports/4729 jfitz Fix for Cyrus port o [1997/10/08] ports/4731 ache wwwcount-2.3 port compile error o [1997/10/09] bin/4732 ac command works incorrect with old wtmp o [1997/10/09] ports/4733 ports new port of cfengine o [1997/10/09] ports/4734 ports Ports of NDTPD-1.0.2 and BookView-1.0.4 o [1997/10/12] ports/4744 ports New port: pnmtopng o [1997/10/12] kern/4746 Yamaha CDR support o [1997/10/12] gnu/4748 cc -Wformat too sensitive o [1997/10/13] ports/4759 ports New port: ja-xnetmaj o [1997/10/14] ports/4762 ports New port: aalib-1.0 o [1997/10/14] ports/4767 ports New port: cftp-0.7 o [1997/10/14] ports/4769 ports msql-2.0.3 ported o [1997/10/15] ports/4770 ports New port: Xitami HTTP Server o [1997/10/15] gnu/4771 diff to correct misleading total bytes in o [1997/10/16] ports/4777 ports New port: le-1.4.0 o [1997/10/16] docs/4778 manual page for mail(1) misses sendmail o o [1997/10/16] bin/4779 Missing BINDIR in sendmail 8.8.7 Makefile o [1997/10/16] bin/4783 make dumps core on some incorrectly forma o [1997/10/17] ports/4788 ports New port xd-2.3(misc/xd). o [1997/10/17] ports/4791 ports i can't make install on mc-4.1 port o [1997/10/17] ports/4792 ports New ports for INN 1.5.1sec2 & 1.6 Beta 3 o [1997/10/17] bin/4794 mount -p does not reflect noatime flag o [1997/10/18] misc/4796 screensaver daemon_saver_mod.o missing on o [1997/10/19] ports/4808 andreas Broken password.c in backend/libpq for Fr o [1997/10/19] ports/4809 ports Update port: tkdesk 1.03b -> 1.04b o [1997/10/19] kern/4810 Access checks in msdosfs_mount() o [1997/10/20] ports/4811 ports patch-file corrections for faces and xfac o [1997/10/20] misc/4812 ctags(1) write to buffer beyond the end o o [1997/10/20] i386/4816 FreeBSD driver for Industrial Computer So o [1997/10/21] ports/4819 ports New port: libhelp o [1997/10/21] ports/4820 ports New port: seabattle-1.0 o [1997/10/22] bin/4825 routed discards the first character of th o [1997/10/22] bin/4828 ypxfr makes false assumption about RPC ca o [1997/10/22] bin/4829 ftpd does not check user's gid for groups o [1997/10/23] docs/4833 Manual page missing for pccardc o [1997/10/23] kern/4836 PCI support for si o [1997/10/23] kern/4837 bad error return from rmdir() with msdos o [1997/10/23] ports/4839 ports New port - spin - Verification system for o [1997/10/24] bin/4840 fsck dumps core when it can't read super o [1997/10/24] i386/4842 2.2.5-RELEASE biosboot make problem o [1997/10/24] kern/4845 Boot complains about disk slices in FAT p o [1997/10/24] kern/4847 pccard stuff fails after running Win95 wi o [1997/10/25] kern/4856 netatalk cannot register own host o [1997/10/26] bin/4858 Missing :np: in local.9600 entry in getty o [1997/10/27] docs/4866 Man pages for basename(1) and dirname(1) o [1997/10/27] ports/4870 ports New port p5-Gtk o [1997/10/28] ports/4878 ports Apache w/FrontPage Module Port o [1997/10/28] bin/4882 uudecode can't handle whitespace in filen o [1997/10/29] ports/4885 ports Create a new ports about cqcam-0.45.tar.g o [1997/10/29] ports/4889 ports new port for ntimelord-1.0 o [1997/10/30] bin/4899 Telnet is not transparent even with -8E o [1997/10/30] ports/4900 ports New port - zh-samba 1.9.17p4 o [1997/10/31] kern/4904 The pthread implementation seems not cont o [1997/10/31] misc/4908 pthread_cond_wait doesn't o [1997/11/01] bin/4915 NFS mounts to linux machine can hang syst o [1997/11/02] ports/4919 ports -s option description is present twice in o [1997/11/02] ports/4920 ports New math port: METIS o [1997/11/02] bin/4923 vi leaves the screen in standout mode o [1997/11/02] bin/4924 /etc/daily should use full hostname o [1997/11/02] bin/4925 sendmail ignores user quotas o [1997/11/03] ports/4928 asami no 'update' target in /usr/ports/Makefile o [1997/11/04] ports/4933 ports New port: cgihtml library o [1997/11/04] ports/4935 ports audio/nas port fails build + fix o [1997/11/04] ports/4937 ports A looks-nice audio level meter port is no o [1997/11/04] misc/4938 addgroup script calls for tclsh; tcl not o [1997/11/04] ports/4941 ports New port: nslint 2.0a2 o [1997/11/05] bin/4947 ps(1) output is not parsable and -Ortprio o [1997/11/05] ports/4952 ports New port: texi2html o [1997/11/06] bin/4957 /bin/top doesn't sort idle processes corr o [1997/11/06] ports/4958 ports installing mutt port failes if sgmlfmt is o [1997/11/06] docs/4960 xman(1) and sgmls(1) buglets o [1997/11/07] bin/4966 boot.flp file is too big to image on to f o [1997/11/07] ports/4967 ports I have ported Carl DeClerck's mserver-0.2 o [1997/11/07] bin/4969 cdcontrol plays incorrect audio tracks in o [1997/11/07] ports/4974 ports New port: YODL, Yet Oneother Document Lan o [1997/11/08] bin/4975 quotaon while server very busy causes loc o [1997/11/08] ports/4979 ports port for Eval-113 o [1997/11/08] ports/4980 ports NEW PORT: netscape3-us (Netscape Nav with o [1997/11/09] ports/4985 ports NEW PORT: www/htmlpp htmlpp-3.9, a WWW au o [1997/11/09] ports/4986 ports NEW PORT: comms/atp - ATP 1.50, a BBS QWK o [1997/11/09] kern/4989 NE2100 ethernet card (lnc1) gives poor pe o [1997/11/09] kern/4992 SCSI disk scheduling disabled in 2.2.5 o [1997/11/10] kern/4997 DDB_UNATTENDED doesn't always work o [1997/11/10] misc/4999 Entering '?' at first boot prompt in inst o [1997/11/11] kern/5009 ibcs2 emulation o [1997/11/11] ports/5010 ache UPDATED Port: patch up to adcomplain-2.78 o [1997/11/11] kern/5011 rndcontrol -s 8 causes kernel panic o [1997/11/11] ports/5012 pst tkgoodstuff requires executable fvwm2 not o [1997/11/11] ports/5013 erich Update xmorph to current version o [1997/11/11] ports/5014 ports Mysql package does not install correctly o [1997/11/11] docs/5015 typo in man page for ceil o [1997/11/11] docs/5016 make -j4 fails in share/doc/usd/13.viref o [1997/11/12] bin/5018 eBones/kinit: kinit.c and kinit.1 our of o [1997/11/12] i386/5019 Noisey debugging code in sb_dsp.c o [1997/11/12] ports/5020 ports patch-aa AND checksum for xmysql 1.5 are o [1997/11/12] kern/5021 New /sys/i386/isa/si_jet.c o [1997/11/12] ports/5025 ports Change Freefonts' ftp site o [1997/11/13] bin/5031 lpr does not remove original file if -s i o [1997/11/13] kern/5034 blocked write on named pipe sticks in uni o [1997/11/14] kern/5038 FreeBSD can't read MS Joliet CDs. o [1997/11/14] gnu/5039 libdialog fails to resore terminal o [1997/11/14] kern/5040 Support for "SCSI-0" devices o [1997/11/14] ports/5042 ports New port: unpost-2.3.4 o [1997/11/14] ports/5045 ports freebsd.ftp.markers for xearth is out of o [1997/11/14] bin/5047 ipfw(8) IP address resolving problem if o o [1997/11/14] kern/5048 Calling shutdown(fd,1) multiple times wil o [1997/11/14] ports/5049 torstenb ctwm port out of date o [1997/11/15] bin/5051 Upgrade tcl to release version o [1997/11/15] bin/5052 upgrade BIND o [1997/11/15] i386/5058 Driver for Low Cost ISA, 12Bit Analog Inp o [1997/11/15] kern/5059 mountd, nfsd, etc. fail when lp0 defined o [1997/11/15] kern/5060 Kernel doesn't compile with mss o [1997/11/15] misc/5064 A dos2bsd conversion utility in C. o [1997/11/15] docs/5065 Wrong explanation `tag=.' for supfile in o [1997/11/17] kern/5068 alex Patches to import the IPFIREWALL_DEFAULT_ o [1997/11/17] docs/5070 new FAQ entries o [1997/11/17] bin/5072 /usr/bin/fetch parses a URL incorrectly 665 problems total. From owner-freebsd-bugs Mon Nov 17 10:10:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA29570 for bugs-outgoing; Mon, 17 Nov 1997 10:10:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA29561; Mon, 17 Nov 1997 10:10:02 -0800 (PST) (envelope-from gnats) Date: Mon, 17 Nov 1997 10:10:02 -0800 (PST) Message-Id: <199711171810.KAA29561@hub.freebsd.org> To: freebsd-bugs Cc: From: Uwe Laubenstein Subject: Re: kern/5009: ibcs2 emulation Reply-To: Uwe Laubenstein Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/5009; it has been noted by GNATS. From: Uwe Laubenstein To: freebsd-gnats-submit@freebsd.org, dada@sbox.tu-graz.ac.at Cc: Subject: Re: kern/5009: ibcs2 emulation Date: Mon, 17 Nov 1997 19:03:51 +0100 Hello, I've tried the solution proposed in the FAQ but it doesn't solve the problem. Now the error does not occur on opening /dev/socksys (the FAQ suggests linking /dev/socksys to /dev/null) but a little bit later in a SCO-function "ipc_open" (if I remember the name correctly). What I do not understand is why the program tries to open /dev/socksys when I run the 2.2.5R kernel and not when I boot the 2.2.2R kernel. I'll try to investigate it further but at the moment I don't have much time. Thank you for your quick response, Uwe From owner-freebsd-bugs Mon Nov 17 14:20:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA20185 for bugs-outgoing; Mon, 17 Nov 1997 14:20:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA20176; Mon, 17 Nov 1997 14:20:01 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 17 Nov 1997 14:20:01 -0800 (PST) Resent-Message-Id: <199711172220.OAA20176@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, xaa@stack.nl Received: from alterego.xaa.iaehv.nl (alterego.xaa.IAEhv.nl [194.151.75.9]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA20112 for ; Mon, 17 Nov 1997 14:19:51 -0800 (PST) (envelope-from xaa@xaa.xaa.iaehv.nl) Received: from xaa.xaa.iaehv.nl (xaa.xaa.iaehv.nl [194.151.75.10]) by alterego.xaa.iaehv.nl (8.8.7/8.8.7) with ESMTP id XAA15804 for ; Mon, 17 Nov 1997 23:19:33 +0100 (MET) (envelope-from xaa@xaa.xaa.iaehv.nl) Received: (from xaa@localhost) by xaa.xaa.iaehv.nl (8.8.8/8.8.2) id XAA06205; Mon, 17 Nov 1997 23:19:42 +0100 (MET) Message-Id: <199711172219.XAA06205@xaa.xaa.iaehv.nl> Date: Mon, 17 Nov 1997 23:19:42 +0100 (MET) From: xaa@stack.nl Reply-To: xaa@stack.nl To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5073: 'host -t mx' coredumps Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5073 >Category: bin >Synopsis: 'host -t mx' coredumps >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 17 14:20:00 PST 1997 >Last-Modified: >Originator: Mark Huizer >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: Tested on FreeBSD 2.2.stable, current, 2.1.5-alike >Description: host -t mx should report a missing argument, but instead coredumps (sigsegv) >How-To-Repeat: host -t mx >Fix: probably check the source for some forgotten check or whatever >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Nov 17 18:20:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA06521 for bugs-outgoing; Mon, 17 Nov 1997 18:20:13 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA06470; Mon, 17 Nov 1997 18:20:03 -0800 (PST) (envelope-from gnats) Date: Mon, 17 Nov 1997 18:20:03 -0800 (PST) Message-Id: <199711180220.SAA06470@hub.freebsd.org> To: freebsd-bugs Cc: From: Sean Eric Fagan Subject: Re: bin/5073 Reply-To: Sean Eric Fagan Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/5073; it has been noted by GNATS. From: Sean Eric Fagan To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: bin/5073 Date: Mon, 17 Nov 1997 18:10:33 -0800 (PST) This patch should fix it; I've submitted it to Paul Vixie, so hopefully it'll be incorporated. Remember, kids: getopt(3) is your friend. Index: host.c =================================================================== RCS file: /usr/cvs/src/contrib/bind/tools/host.c,v retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1.2.1 host.c --- host.c 1997/06/28 07:36:45 1.1.1.1.2.1 +++ host.c 1997/11/18 01:59:45 @@ -79,6 +79,7 @@ #include #include +#include #include #include #include @@ -135,63 +136,52 @@ register waitmode = 0; char *oldcname; int ncnames; + int o; res_init(); _res.retrans = 5; - if (c < 2) { - fprintf(stderr, "Usage: host [-w] [-v] [-r] [-d] [-t querytype] [-c class] [-a] host [server]\n -w to wait forever until reply\n -v for verbose output\n -r to disable recursive processing\n -d to turn on debugging output\n -t querytype to look fo r a specific type of information\n -c class to look for non-Internet data\n -a is equivalent to '-v -t *'\n"); - exit(1); + while ((o = getopt(c, v, "wvrdt:c:a")) != EOF) { + switch (o) { + default: + fprintf(stderr, "Usage: host [-w] [-v] [-r] [-d] [-t querytype] " + "[-c class] [-a] host [server]\n -w to wait forever " + "until reply\n -v for verbose output\n -r to disable " + "recursive processing\n -d to turn on debugging output" + "\n -t querytype to look for a specific type of infor" + "mation\n -c class to look for non-Internet data\n " + "-a is equivalent to '-v -t *'\n"); + exit(1); + case 'w': + _res.retry = 1; _res.retrans = 15; + waitmode = 1; + break; + case 'r': + _res.options &= ~RES_RECURSE; + break; + case 'd': + _res.options |= RES_DEBUG; + break; + case 'v': + verbose = 1; + break; + case 'l': + list = 1; + break ; + case 't': + gettype = parsetype(optarg); + break; + case 'c': + getclass = parseclass(optarg); + break; + case 'a': + verbose = 1; + gettype = T_ANY; + break; + } } - while (c > 2 && v[1][0] == '-') { - if (strcmp (v[1], "-w") == 0) { - _res.retry = 1; - _res.retrans = 15; - waitmode = 1; - v++; - c--; - } - else if (strcmp (v[1], "-r") == 0) { - _res.options &= ~RES_RECURSE; - v++; - c--; - } - else if (strcmp (v[1], "-d") == 0) { - _res.options |= RES_DEBUG; - v++; - c--; - } - else if (strcmp (v[1], "-v") == 0) { - verbose = 1; - v++; - c--; - } - else if (strcmp (v[1], "-l") == 0) { - list = 1; - v++; - c--; - } - else if (strncmp (v[1], "-t", 2) == 0) { - v++; - c--; - gettype = parsetype(v[1]); - v++; - c--; - } - else if (strncmp (v[1], "-c", 2) == 0) { - v++; - c--; - getclass = parseclass(v[1]); - v++; - c--; - } - else if (strcmp (v[1], "-a") == 0) { - verbose = 1; - gettype = T_ANY; - v++; - c--; - } - } + c -= optind; + v += optind; if (c > 2) { s = v[2]; server_specified++; From owner-freebsd-bugs Mon Nov 17 18:30:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA07451 for bugs-outgoing; Mon, 17 Nov 1997 18:30:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA07442; Mon, 17 Nov 1997 18:30:02 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 17 Nov 1997 18:30:02 -0800 (PST) Resent-Message-Id: <199711180230.SAA07442@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, mph@pobox.com Received: from mph124.rh.psu.edu (hunt@MPH124.rh.psu.edu [128.118.126.83]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA07102 for ; Mon, 17 Nov 1997 18:26:10 -0800 (PST) (envelope-from hunt@mph124.rh.psu.edu) Received: (from hunt@localhost) by mph124.rh.psu.edu (8.8.7/8.8.7) id VAA05897; Mon, 17 Nov 1997 21:26:08 -0500 (EST) (envelope-from hunt) Message-Id: <199711180226.VAA05897@mph124.rh.psu.edu> Date: Mon, 17 Nov 1997 21:26:08 -0500 (EST) From: mph@pobox.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5074: fetch cannot retrieve a URL Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5074 >Category: bin >Synopsis: fetch cannot retrieve a URL >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 17 18:30:01 PST 1997 >Last-Modified: >Originator: Matthew Hunt >Organization: none >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: $Id: fetch.h,v 1.3.2.2 1997/09/15 08:07:04 jkh Exp $ $Id: file.c,v 1.1.2.2 1997/11/12 04:40:45 obrien Exp $ $Id: ftp.c,v 1.3.2.5 1997/10/08 18:44:07 fenner Exp $ $Id: http.c,v 1.4.2.5 1997/11/08 22:24:45 obrien Exp $ $Id: main.c,v 1.26.2.8 1997/09/15 08:07:06 jkh Exp $ $Id: uri.c,v 1.1 1997/01/30 21:43:43 wollman Exp $ $Id: util.c,v 1.5 1997/02/11 20:46:06 wollman Exp $ >Description: fetch cannot retrieve the URL: $ fetch http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz fetch: reading reply from www.geocities.com: Connection reset by peer $ tcpdump -tp host www.geocities.com tcpdump: listening on ed0 mph124.rh.psu.edu.4174 > 209.1.224.11.http: SP 3332479440:3332479540(100) win 16728 (DF) 209.1.224.11.http > mph124.rh.psu.edu.4174: S 1234567:1234567(0) ack 3332479441 win 2048 mph124.rh.psu.edu.4174 > 209.1.224.11.http: FP 101:166(65) ack 1 win 16728 (DF) 209.1.224.11.http > mph124.rh.psu.edu.4174: R 1:1(0) ack 102 win 2048 This problem is relevant to /usr/ports/print/c2ps. wget and lynx can both retreive the URL. >How-To-Repeat: fetch http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz >Fix: Unknown, sorry. :-( >Audit-Trail: >Unformatted: From owner-freebsd-bugs Mon Nov 17 19:50:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA13351 for bugs-outgoing; Mon, 17 Nov 1997 19:50:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA13344; Mon, 17 Nov 1997 19:50:01 -0800 (PST) (envelope-from gnats) Date: Mon, 17 Nov 1997 19:50:01 -0800 (PST) Message-Id: <199711180350.TAA13344@hub.freebsd.org> To: freebsd-bugs Cc: From: Marc Slemko Subject: Re: bin/5074: fetch cannot retrieve a URL Reply-To: Marc Slemko Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/5074; it has been noted by GNATS. From: Marc Slemko To: mph@pobox.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/5074: fetch cannot retrieve a URL Date: Mon, 17 Nov 1997 20:38:33 -0700 (MST) On Mon, 17 Nov 1997 mph@pobox.com wrote: > >Description: > > fetch cannot retrieve the URL: > > $ fetch http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz > fetch: reading reply from www.geocities.com: Connection reset by peer > > $ tcpdump -tp host www.geocities.com > tcpdump: listening on ed0 > mph124.rh.psu.edu.4174 > 209.1.224.11.http: SP 3332479440:3332479540(100) win 16728 (DF) > 209.1.224.11.http > mph124.rh.psu.edu.4174: S 1234567:1234567(0) ack 3332479441 win 2048 > mph124.rh.psu.edu.4174 > 209.1.224.11.http: FP 101:166(65) ack 1 win 16728 (DF) > 209.1.224.11.http > mph124.rh.psu.edu.4174: R 1:1(0) ack 102 win 2048 The server is broken. Use the -t option to fetch to work around it. I tried to contact them months ago to see what broken monstrosity they were using for an OS, but (predictably) got no response. Not sure if there is a nice way to have a port automatically add this... hmm... From owner-freebsd-bugs Mon Nov 17 20:00:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA14239 for bugs-outgoing; Mon, 17 Nov 1997 20:00:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA14194; Mon, 17 Nov 1997 20:00:02 -0800 (PST) (envelope-from gnats) Date: Mon, 17 Nov 1997 20:00:02 -0800 (PST) Message-Id: <199711180400.UAA14194@hub.freebsd.org> To: freebsd-bugs Cc: From: Matthew Hunt Subject: Re: bin/5074: fetch cannot retrieve a URL Reply-To: Matthew Hunt Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/5074; it has been noted by GNATS. From: Matthew Hunt To: Marc Slemko Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/5074: fetch cannot retrieve a URL Date: Mon, 17 Nov 1997 22:57:49 -0500 On Mon, Nov 17, 1997 at 08:38:33PM -0700, Marc Slemko wrote: > The server is broken. Use the -t option to fetch to work around it. I > tried to contact them months ago to see what broken monstrosity they were > using for an OS, but (predictably) got no response. Thanks, verified. > Not sure if there is a nice way to have a port automatically add this... > hmm... Reading /usr/share/mk/bsd.port.mk, it looks like there are knobs for arguments to fetch; it shouldn't be a problem. This PR may be closed, thanks for the help. Matthew -- Matthew Hunt * Think locally, act globally. finger hunt@mph124.rh.psu.edu for PGP public key. From owner-freebsd-bugs Mon Nov 17 20:58:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA18519 for bugs-outgoing; Mon, 17 Nov 1997 20:58:24 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from fenner@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA18498; Mon, 17 Nov 1997 20:58:17 -0800 (PST) (envelope-from fenner) Date: Mon, 17 Nov 1997 20:58:17 -0800 (PST) From: Bill Fenner Message-Id: <199711180458.UAA18498@hub.freebsd.org> To: mph@pobox.com, fenner, freebsd-bugs Subject: Re: bin/5074 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: fetch cannot retrieve a URL State-Changed-From-To: open-feedback State-Changed-By: fenner State-Changed-When: Mon Nov 17 20:55:33 PST 1997 State-Changed-Why: This appears to be a symptom of the buggy T/TCP interaction that the "-b" flag was designed to work around. Can you re-try the fetch with "-b"? From owner-freebsd-bugs Mon Nov 17 21:02:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA19029 for bugs-outgoing; Mon, 17 Nov 1997 21:02:11 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from mph124.rh.psu.edu (hunt@MPH124.rh.psu.edu [128.118.126.83]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA19006; Mon, 17 Nov 1997 21:01:55 -0800 (PST) (envelope-from hunt@mph124.rh.psu.edu) Received: (from hunt@localhost) by mph124.rh.psu.edu (8.8.7/8.8.7) id AAA10900; Tue, 18 Nov 1997 00:01:53 -0500 (EST) (envelope-from hunt) Message-ID: <19971118000152.31048@mph124.rh.psu.edu> Date: Tue, 18 Nov 1997 00:01:52 -0500 From: Matthew Hunt To: Bill Fenner Cc: freebsd-bugs@hub.freebsd.org Subject: Re: bin/5074 References: <199711180458.UAA18498@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 In-Reply-To: <199711180458.UAA18498@hub.freebsd.org>; from Bill Fenner on Mon, Nov 17, 1997 at 08:58:17PM -0800 Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, Nov 17, 1997 at 08:58:17PM -0800, Bill Fenner wrote: > This appears to be a symptom of the buggy T/TCP interaction that > the "-b" flag was designed to work around. Can you re-try the > fetch with "-b"? That's a negative: $ fetch -b http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz fetch: reading reply from www.geocities.com: Connection reset by peer Using "-t" as suggested by Marc Slemko succeeds. $ fetch -t http://www.geocities.com/SiliconValley/Park/2055/c2ps-40.tgz Receiving c2ps-40.tgz (48137 bytes): 100% 48137 bytes transfered in 1.2 seconds (37.93 Kbytes/s) From owner-freebsd-bugs Mon Nov 17 21:20:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA20435 for bugs-outgoing; Mon, 17 Nov 1997 21:20:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA20370 for ; Mon, 17 Nov 1997 21:19:59 -0800 (PST) (envelope-from fenner@parc.xerox.com) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <52066(2)>; Mon, 17 Nov 1997 21:19:27 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177476>; Mon, 17 Nov 1997 21:19:20 -0800 To: Matthew Hunt cc: Bill Fenner , freebsd-bugs@hub.freebsd.org Subject: Re: bin/5074 In-reply-to: Your message of "Mon, 17 Nov 97 21:01:52 PST." <19971118000152.31048@mph124.rh.psu.edu> Date: Mon, 17 Nov 1997 21:19:10 PST From: Bill Fenner Message-Id: <97Nov17.211920pst.177476@crevenia.parc.xerox.com> Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Gosh, all these differently-broken TCP implementations, it's so hard to keep track... Bill From owner-freebsd-bugs Mon Nov 17 21:20:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA20453 for bugs-outgoing; Mon, 17 Nov 1997 21:20:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA20411; Mon, 17 Nov 1997 21:20:01 -0800 (PST) (envelope-from gnats) Date: Mon, 17 Nov 1997 21:20:01 -0800 (PST) Message-Id: <199711180520.VAA20411@hub.freebsd.org> To: freebsd-bugs Cc: From: Bill Fenner Subject: Re: bin/5074: fetch cannot retrieve a URL Reply-To: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/5074; it has been noted by GNATS. From: Bill Fenner To: Marc Slemko Cc: freebsd-gnats-submit@freebsd.org Subject: Re: bin/5074: fetch cannot retrieve a URL Date: Mon, 17 Nov 1997 21:18:07 PST > Not sure if there is a nice way to have a port automatically add this... Use FETCH_BEFORE_ARGS= . Bill From owner-freebsd-bugs Mon Nov 17 23:55:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA01224 for bugs-outgoing; Mon, 17 Nov 1997 23:55:42 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from rumor.research.att.com (rumor.research.att.com [192.20.225.9]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA01213 for ; Mon, 17 Nov 1997 23:55:36 -0800 (PST) (envelope-from ji@research.att.com) Received: from research.att.com ([135.207.30.100]) by rumor; Tue Nov 18 02:51:38 EST 1997 Received: from amontillado.research.att.com ([135.207.24.32]) by research-clone; Tue Nov 18 02:51:12 EST 1997 Received: from bual.research.att.com (bual.research.att.com [135.207.24.19]) by amontillado.research.att.com (8.8.7/8.8.7) with ESMTP id CAA00755 for ; Tue, 18 Nov 1997 02:51:09 -0500 (EST) Received: (from ji@localhost) by bual.research.att.com (8.7.5/8.7) id CAA18970; Tue, 18 Nov 1997 02:51:09 -0500 (EST) Date: Tue, 18 Nov 1997 02:51:09 -0500 (EST) Message-Id: <199711180751.CAA18970@bual.research.att.com> From: John Ioannidis To: freebsd-bugs@freebsd.org Subject: FreeBSD-stable usr.bin/printf/printf.c problem Reply-To: ji@research.att.com Organization: AT&T Labs - Research Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I just cvsupped the last week's worth of updates of FreeBSD-stable; one of the twenty or so files supped was usr.bin/printf/printf.c. When I do a "make" in /usr/src (I had already done a "make buildworld" when I did the first cvsup) I get the following output: ===> bin/sh cc -O -DSHELL -I. -I/usr/cvsrc/src/bin/sh -c /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:139: macro `warnx' used with just one arg /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:188: macro `warnx' used with just one arg /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:229: macro `warnx' used with only 2 args /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:362: macro `warnx' used with only 2 args *** Error code 1 What broke? Thanks, /ji From owner-freebsd-bugs Tue Nov 18 05:00:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA19400 for bugs-outgoing; Tue, 18 Nov 1997 05:00:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA19377; Tue, 18 Nov 1997 05:00:02 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 18 Nov 1997 05:00:02 -0800 (PST) Resent-Message-Id: <199711181300.FAA19377@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, newton@atdot.dotat.org Received: from atdot.dotat.org (atdot.dotat.org [203.23.150.35]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA18993 for ; Tue, 18 Nov 1997 04:55:17 -0800 (PST) (envelope-from newton@atdot.dotat.org) Received: (from newton@localhost) by atdot.dotat.org (8.8.7/8.7) id XAA08658; Tue, 18 Nov 1997 23:23:31 +1030 (CST) Message-Id: <199711181253.XAA08658@atdot.dotat.org> Date: Tue, 18 Nov 1997 23:23:31 +1030 (CST) From: newton@atdot.dotat.org Reply-To: newton@atdot.dotat.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/5081: 971006-SNAP Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5081 >Category: misc >Synopsis: sysinstall glitches >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 18 05:00:00 PST 1997 >Last-Modified: >Originator: Mark Newton >Organization: Defenestrating the 'net since 1987! >Release: FreeBSD 3.0-971006-SNAP i386 >Environment: Upgrade from 2.2.2-RELEASE to 3.0-971006-SNAP. >Description: Some glitches hit which made it not quite as smooth as some other previous upgrades. According to /pub/FreeBSD/FreeBSD-current, some of this stuff has been fixed already; it's probably a good citizen gesture to notify people anyway. * sysinstall left zero-length "kernel.config" in root directory * old pre-upgrade kernel left in /kernel (which made mounting filesystems a bit interesting -- /kernel.GENERIC to the rescue!) * ijppp was severely broken: -ddial gave EINTR in OpenModem(), normal mode failed CHAP authentication for no apparent reason. Used CVS CD from the snapshot distribution to check-out a 970701 version of ijppp which worked, enabling me to ftp -current's ijppp which also worked. To be expected on a snapshot CD, I suppose :-) * union_mod.o was out of date. Rebuilt copy worked fine. Was painless apart from all that >How-To-Repeat: Upgrade from 2.2.2-RELEASE to October's SNAP. >Fix: See above. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Tue Nov 18 05:10:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA20083 for bugs-outgoing; Tue, 18 Nov 1997 05:10:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA20075; Tue, 18 Nov 1997 05:10:01 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 18 Nov 1997 05:10:01 -0800 (PST) Resent-Message-Id: <199711181310.FAA20075@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, newton@atdot.dotat.org Received: from atdot.dotat.org (atdot.dotat.org [203.23.150.35]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA19721 for ; Tue, 18 Nov 1997 05:03:24 -0800 (PST) (envelope-from newton@atdot.dotat.org) Received: (from newton@localhost) by atdot.dotat.org (8.8.7/8.7) id XAA08783; Tue, 18 Nov 1997 23:31:46 +1030 (CST) Message-Id: <199711181301.XAA08783@atdot.dotat.org> Date: Tue, 18 Nov 1997 23:31:46 +1030 (CST) From: Mark Newton Reply-To: newton@atdot.dotat.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/5082: RFE for sysinstall Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5082 >Category: misc >Synopsis: Permit upgrade of multi-disk system, or document workaround >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Nov 18 05:10:00 PST 1997 >Last-Modified: >Originator: Mark Newton >Organization: >Release: FreeBSD 3.0-971006-SNAP i386 >Environment: System with OS distributed over more than one disk >Description: sysinstall does not provide the opportunity to automatically upgrade a system with more than one disk. One of my systems features / and /usr on one disk, and /var on another (deals with lots of mail, no space on main disk for /var!). sysinstall does not provide the opportunity to select more than one disk during an upgrade in a way similar to its ability to select more than one disk during an installation. >How-To-Repeat: Duplicate the setup described above. >Fix: During an initial installation, sysinstall prompts the user for a list of disks for the installation. Although it (silently!) limits the number of disks that can be chosen, it does permit more than one. If more than one disk is selected, the partitioning tool and the disklabel editor allow multiple disk selections. Theoretically, sysinstall could use the same dialog box prior to displaying the disklabel editor during an upgrade. Perhaps an easier-to-implement solution would be to document the procedure need to upgrade a multi-disk system: After the disklabel editor is finished, sysinstall starts the holographic shell and prompts for installation media. It is possible to switch to the shell, mount all filesystems needed during the upgrade, and then switch back to select installation media. Granted, this isn't as clean, but it works. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Tue Nov 18 06:00:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA22759 for bugs-outgoing; Tue, 18 Nov 1997 06:00:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA22731; Tue, 18 Nov 1997 06:00:02 -0800 (PST) (envelope-from gnats) Date: Tue, 18 Nov 1997 06:00:02 -0800 (PST) Message-Id: <199711181400.GAA22731@hub.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: misc/5081: 971006-SNAP Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR misc/5081; it has been noted by GNATS. From: Bruce Evans To: FreeBSD-gnats-submit@FreeBSD.ORG, newton@atdot.dotat.org Cc: Subject: Re: misc/5081: 971006-SNAP Date: Wed, 19 Nov 1997 00:55:09 +1100 > Upgrade from 2.2.2-RELEASE to 3.0-971006-SNAP. > * sysinstall left zero-length "kernel.config" in root directory OK for a null (boot-time) kernel config. > * union_mod.o was out of date. Rebuilt copy worked fine. It can only work if kernel is compiled with option UNION, and then you don't need it. It is no longer built from the top level Makefile, so the out of date one is probably garbage that the SNAP neither overwrote nore removed. Bruce From owner-freebsd-bugs Tue Nov 18 11:02:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA13671 for bugs-outgoing; Tue, 18 Nov 1997 11:02:18 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA13660 for ; Tue, 18 Nov 1997 11:02:14 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.7/8.8.7) with ESMTP id LAA18482; Tue, 18 Nov 1997 11:01:55 -0800 (PST) (envelope-from jdp) Message-Id: <199711181901.LAA18482@austin.polstra.com> To: ji@research.att.com Subject: Re: FreeBSD-stable usr.bin/printf/printf.c problem In-Reply-To: <199711180751.CAA18970@bual.research.att.com> References: <199711180751.CAA18970@bual.research.att.com> Organization: Polstra & Co., Seattle, WA Cc: bugs@freebsd.org Date: Tue, 18 Nov 1997 11:01:54 -0800 From: John Polstra Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199711180751.CAA18970@bual.research.att.com>, John Ioannidis wrote: > I just cvsupped the last week's worth of updates of FreeBSD-stable; > one of the twenty or so files supped was usr.bin/printf/printf.c. When > I do a "make" in /usr/src (I had already done a "make buildworld" when > I did the first cvsup) I get the following output: > > ===> bin/sh > cc -O -DSHELL -I. -I/usr/cvsrc/src/bin/sh -c > /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c > /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:139: macro `warnx' > used with just one arg > /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:188: macro `warnx' > used with just one arg > /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:229: macro `warnx' > used with only 2 args > /usr/cvsrc/src/bin/sh/../../usr.bin/printf/printf.c:362: macro `warnx' > used with only 2 args > *** Error code 1 > > What broke? I broke it last night, but it's fixed now. I didn't realize that sh was reaching way up and over into printf's tree for its sources. Sorry for the hassle. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth From owner-freebsd-bugs Tue Nov 18 13:40:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA25547 for bugs-outgoing; Tue, 18 Nov 1997 13:40:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA25507; Tue, 18 Nov 1997 13:40:02 -0800 (PST) (envelope-from gnats) Date: Tue, 18 Nov 1997 13:40:02 -0800 (PST) Message-Id: <199711182140.NAA25507@hub.freebsd.org> To: freebsd-bugs Cc: From: Bill Fenner Subject: Re: bin/5073 Reply-To: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/5073; it has been noted by GNATS. From: Bill Fenner To: Sean Eric Fagan Cc: freebsd-gnats-submit@hub.freebsd.org Subject: Re: bin/5073 Date: Tue, 18 Nov 1997 10:03:46 PST Sean Eric Fagan wrote: > Remember, kids: getopt(3) is your friend. Remember also, kids, POSIX says that getopt(3) returns -1, not EOF. BUGS The getopt() function was once specified to return EOF instead of -1. This was changed by IEEE Std1003.2-1992 (``POSIX.2'') to decouple getopt() from . Bill From owner-freebsd-bugs Wed Nov 19 07:30:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA22473 for bugs-outgoing; Wed, 19 Nov 1997 07:30:09 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA22451; Wed, 19 Nov 1997 07:30:06 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 19 Nov 1997 07:30:06 -0800 (PST) Resent-Message-Id: <199711191530.HAA22451@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, semen@iclub.nsu.ru Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA16223 for ; Wed, 19 Nov 1997 05:34:24 -0800 (PST) (envelope-from semen@iclub.nsu.ru) Received: (from semen@localhost) by iclub.nsu.ru (8.8.7/8.8.5) id QAA08722; Wed, 19 Nov 1997 16:58:25 +0600 (NS) Message-Id: <199711191058.QAA08722@iclub.nsu.ru> Date: Wed, 19 Nov 1997 16:58:25 +0600 (NS) From: Semen.Ustimenko@iclub.nsu.ru Reply-To: semen@iclub.nsu.ru To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5090: Driver for SMC9432TX Fast Ethernet Board Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5090 >Category: kern >Synopsis: Driver for SMC9432TX Fast Ethernet Board >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: support >Submitter-Id: current-users >Arrival-Date: Wed Nov 19 07:30:04 PST 1997 >Last-Modified: >Originator: Ustimeko Semen >Organization: none >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: >Description: There is no driver for SMC9432TX Fast Ethernet board. >How-To-Repeat: >Fix: For now driver does not support many useful things, but it works. Following shar archive contains to files, that must be placed in ./pci subdirectory of kernel source tree. The string: pci/if_tx.c optional tx device-driver should be added to ./conf/files file and option 'device tx0' to kernel config file. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # smc83c170.h # if_tx.c # echo x - smc83c170.h sed 's/^X//' >smc83c170.h << 'END-of-smc83c170.h' X/*- X * Copyright (c) 1997 Semen Ustimenko X * All rights reserved. X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X */ X X/* X * smc83c170.h X */ X X/* X * Configuration X */ X#define EPIC_MAX_DEVICES 4 X/*#define RX_TO_MBUF 1*/ X/*#define FAKE_TIMEOUT 1*/ X#define TX_RING_SIZE 128 X#define RX_RING_SIZE 32 X X/* Shall be moved to ../net/if_mib.h */ X#define dot3VendorSMC 8 X#define dot3ChipSetSMC83c170 1 X X/* PCI identification */ X#define SMC_VENDORID 0x10B8 X#define CHIPID_83C170 0x0005 X#define PCI_VENDORID(x) ((x) & 0xFFFF) X#define PCI_CHIPID(x) (((x) >> 16) & 0xFFFF) X X/* PCI configuration */ X#define PCI_CFID 0x00 /* Configuration ID */ X#define PCI_CFCS 0x04 /* Configurtion Command/Status */ X#define PCI_CFRV 0x08 /* Configuration Revision */ X#define PCI_CFLT 0x0c /* Configuration Latency Timer */ X#define PCI_CBIO 0x10 /* Configuration Base IO Address */ X#define PCI_CBMA 0x14 /* Configuration Base Memory Address */ X#define PCI_CFIT 0x3c /* Configuration Interrupt */ X#define PCI_CFDA 0x40 /* Configuration Driver Area */ X X#define PCI_CONF_WRITE(r, v) pci_conf_write(config_id, (r), (v)) X#define PCI_CONF_READ(r) pci_conf_read(config_id, (r)) X X/* EPIC's registers ( from Donald Becker ) */ X#define COMMAND 0x0000 X#define INTSTAT 0x0004 /* Interrupt status. See below */ X#define INTMASK 0x0008 /* Interrupt mask. See below */ X#define GENCTL 0x000C X#define NVCTL 0x0010 X#define EECTL 0x0014 /* EEPROM control **/ X#define TEST1 0x001C /* XXXXX */ X#define CRCCNT 0x0020 /* CRC error counter */ X#define ALICNT 0x0024 /* FrameTooLang error counter */ X#define MPCNT 0x0028 /* MissedFrames error counters */ X#define MIICtrl 0x0030 X#define MIIData 0x0034 X#define MIICfg 0x0038 X#define LAN0 0x0040 /* MAC address */ X#define MC0 0x0050 /* Multicast filter table */ X#define RxCtrl 0x0060 X#define TxCtrl 0x0070 X#define TxSTAT 0x0074 X#define PRxCDAR 0x0084 /* RxRing bus address */ X#define RxSTAT 0x00A4 X#define EarlyRx 0x00B0 X#define PTxCDAR 0x00C4 /* TxRing bus address */ X#define TxThresh 0x00DC X X/* Tx threshold */ X#define TX_FIFO_THRESH 0x40 /* 0x40 or 0x10 */ X X/* Interrupt register bits ( from Donald Becker ) */ X#define TxIdle 0x40000 X#define RxIdle 0x20000 X#define CntFull 0x0200 X#define TxUnderrun 0x0100 X#define TxEmpty 0x0080 X#define TxDone 0x0020 X#define RxError 0x0010 X#define RxOverflow 0x0008 X#define RxFull 0x0004 X#define RxHeader 0x0002 X#define RxDone 0x0001 X X/* X * Structures definition and Functions prototypes X */ X X/* EPIC's descriptors ( from Donald Becker ) */ Xstruct epic_tx_desc { X u_int16_t status; X u_int16_t txlength; X u_int32_t bufaddr; X u_int16_t buflength; X u_int16_t control; X u_int32_t next; X}; Xstruct epic_rx_desc { X u_int16_t status; X u_int16_t rxlength; X u_int32_t bufaddr; X u_int32_t buflength; X u_int32_t next; X}; X Xstruct epic_rx_buffer { X struct epic_rx_desc desc; /* EPIC's descriptor */ X caddr_t data; /* Rx buffer address */ X#if !defined(RX_TO_MBUF) X caddr_t pool; /* Pool, allocated for buffer */ X#else X struct mbuf * mbuf; /* Or mbuf structure */ X#endif X}; X Xstruct epic_tx_buffer { X struct epic_tx_desc desc; /* EPIC's descriptor */ X caddr_t data; /* Tx buffer address */ X caddr_t pool; /* Pool, allocated for buffer */ X}; X Xtypedef struct { X int unit; X struct arpcom epic_ac; X struct epic_rx_buffer rx_buffer[RX_RING_SIZE]; X struct epic_tx_buffer tx_buffer[TX_RING_SIZE]; X u_int32_t cur_tx; X u_int32_t cur_rx; X u_int32_t pending_txs; X u_int32_t iobase; X u_int32_t irq; X struct ifmib_iso_8802_3 dot3stats; X} epic_softc_t; X X#define epic_if epic_ac.ac_if X#define epic_macaddr epic_ac.ac_enaddr X X//extern epic_softc_t *epics[]; X//extern u_long epic_pci_count; X Xstatic void epic_intr_normal(void *); Xstatic void epic_rx_done(epic_softc_t *); Xstatic void epic_tx_done(epic_softc_t *); Xstatic void epic_ifstart(struct ifnet *); Xstatic void epic_ifwatchdog(struct ifnet *); X Xstatic char* epic_pci_probe(pcici_t, pcidi_t); Xstatic void epic_pci_attach(pcici_t, int); Xstatic void epic_init(epic_softc_t * const); X Xstatic void epic_init_rings(epic_softc_t *); X Xstatic int epic_read_eeprom(u_int16_t,u_int16_t); Xstatic void epic_output_eepromw(u_int16_t, u_int16_t); Xstatic u_int16_t epic_input_eepromw(u_int16_t); Xstatic u_int8_t epic_eeprom_clock(u_int16_t,u_int8_t); Xstatic void epic_write_eepromreg(u_int16_t,u_int8_t); Xstatic u_int8_t epic_read_eepromreg(u_int16_t); END-of-smc83c170.h echo x - if_tx.c sed 's/^X//' >if_tx.c << 'END-of-if_tx.c' X/*- X * Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru) X * All rights reserved. X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X */ X X/* X * SMC9432TX Fast Ethernet (tx0) X * X * Written by Semen Ustimenko. As i have no description on SMC9432 board, X * Linux driver by Donald Becker was used as reference. X */ X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X X#include "pci.h" X#if NPCI > 0 X#include X#include X#endif X X/* X * Global variables X */ Xstatic u_long epic_pci_count; Xstatic epic_softc_t * epics[EPIC_MAX_DEVICES]; Xstruct pci_device txdevice = { "tx", epic_pci_probe, epic_pci_attach, &epic_pci_count, NULL }; X X/* X * Append this driver to pci drivers list X */ XDATA_SET ( pcidevice_set, txdevice ); X X/* X * IFSTART function X */ Xstatic void Xepic_ifstart(struct ifnet * const ifp){ X epic_softc_t *sc = ifp->if_softc; X X while( sc->pending_txs < TX_RING_SIZE ){ X int entry = sc->cur_tx % TX_RING_SIZE; X struct epic_tx_buffer * buf = sc->tx_buffer + entry; X struct mbuf *m,*m0; X int len; X X if( buf->desc.status ) { X int i; X /* Find free descriptor */ X for(i=0;itx_buffer[i].desc.status == 0 ){ X sc->cur_tx = entry = i; X buf = sc->tx_buffer + entry; X break; X } X } X if( i >= TX_RING_SIZE ) break; /* no free descriptors */ X } X X IF_DEQUEUE( &(sc->epic_if.if_snd), m ); X X if( NULL == m ) return; X X m0 = m; X X for (len = 0; m != 0; m = m->m_next) { X bcopy(mtod(m, caddr_t), buf->data + len, m->m_len); X len += m->m_len; X } X X buf->desc.txlength = max(len,ETHER_MIN_LEN-ETHER_CRC_LEN); X buf->desc.control = 0x14; /* Interrupt when done */ X buf->desc.status = 0x8000; /* Pass ownership to the chip */ X X /* Trigger an immediate transmit demand. */ X outl(sc->iobase + COMMAND, 0x0004); X X /* Set watchdog timer */ X ifp->if_timer = 2; X X m_freem( m0 ); X X sc->cur_tx = ( sc->cur_tx + 1 ) % TX_RING_SIZE; X sc->pending_txs++; X#if defined(FAKE_TIMEOUT) X if( (ifp->if_opackets % 10000) == 0 ) sc->pending_txs++; X#endif X } X X /* X * TxRing overflowed X */ X sc->epic_if.if_flags |= IFF_OACTIVE; X X return; X X} X X/* X * IFWATCHDOG function X */ Xstatic void Xepic_ifwatchdog( X struct ifnet *ifp) X{ X epic_softc_t *sc = ifp->if_softc; X X printf("tx%d: device timeout %d packets\n",sc->unit,sc->pending_txs); X ifp->if_oerrors+=sc->pending_txs; X X epic_init( sc ); X} X X/* X * Interrupt function X */ Xstatic void Xepic_intr_normal( X void *arg) X{ X epic_softc_t * sc = (epic_softc_t *) arg; X int iobase = sc->iobase; X int status; X int i; X X status = inl(iobase + INTSTAT); X X /* Acknowledge all of the current interrupt sources ASAP. */ X outl( iobase + INTSTAT, status & 0x00007fff); X X /* X * UPDATE statistics X */ X if (status & (CntFull | TxUnderrun | RxOverflow | RxError)) { X /* X * update dot3 Rx statistics X */ X sc->dot3stats.dot3StatsMissedFrames += inb(iobase + MPCNT); X sc->dot3stats.dot3StatsFrameTooLongs += inb(iobase + ALICNT); X sc->dot3stats.dot3StatsFCSErrors += inb(iobase + CRCCNT); X X /* X * update if Rx statistics X */ X if (status & (RxOverflow | RxError)) X sc->epic_if.if_ierrors++; X X /* Tx FIFO underflow. */ X if (status & TxUnderrun) { X sc->dot3stats.dot3StatsInternalMacTransmitErrors++; X sc->epic_if.if_oerrors++; X outl(iobase + COMMAND, 0x0080);/* Restart the transmit process. */ X } X X /* Clear all error sources. */ X outl(iobase + INTSTAT, status & 0x7f18); X } X X if( status & RxDone ) X epic_rx_done( sc ); X X if( status & TxDone ) X epic_tx_done( sc ); X X /* If no packets are pending, thus no timeouts */ X if( sc->pending_txs == 0 ) sc->epic_if.if_timer = 0; X X /* We should clear all interrupt sources. */ X outl(iobase + INTSTAT, 0x0001ffff ); X X return; X} X Xvoid Xepic_rx_done( epic_softc_t *sc ){ X int i = 0; X u_int16_t len; X struct epic_rx_buffer * buf; X struct mbuf *m; X struct ether_header *eh; X X while( !(sc->rx_buffer[sc->cur_rx].desc.status & 0x8000) && i++ < RX_RING_SIZE ){ X X buf = sc->rx_buffer + sc->cur_rx; X X if( buf->desc.status & 0x2006 ){ X sc->epic_if.if_ierrors++; X goto rxerror; X } X X len = buf->desc.rxlength - ETHER_CRC_LEN; X X#if !defined(RX_TO_MBUF) X /* X * Copy data to new allocated mbuf X */ X MGETHDR(m, M_DONTWAIT, MT_DATA); X if( NULL == m ) goto rxerror; X if( (len+2) > MHLEN ){ X MCLGET(m,M_DONTWAIT); X if( NULL == (m->m_flags & M_EXT) ){ X m_freem( m ); X goto rxerror; X } X } X m->m_data += 2; X X memcpy( mtod(m,void*), buf->data, len ); X#else X m = buf->mbuf; X X buf->mbuf = NULL; X X MGETHDR(buf->mbuf,M_DONTWAIT,MT_DATA); X if( NULL == buf->mbuf ) X panic("tx: low mbufs"); X MCLGET(buf->mbuf,M_DONTWAIT); X if( NULL == buf->mbuf ) X panic("tx: low mbufs"); X X buf->data = mtod( buf->mbuf, caddr_t ); X buf->desc.bufaddr = vtophys( buf->data ); X buf->desc.status = 0x8000; X#endif X X /* X * First mbuf in packet holds the X * ethernet and packet headers X */ X eh = mtod( m, struct ether_header * ); X m->m_pkthdr.rcvif = &(sc->epic_if); X m->m_pkthdr.len = m->m_len = len - sizeof(struct ether_header); X m->m_data += sizeof( struct ether_header ); X X ether_input(&sc->epic_if, eh, m); X X sc->epic_if.if_ipackets++; X Xrxerror: X /* X * Mark descriptor as free X */ X buf->desc.rxlength = 0; X buf->desc.status = 0x8000; X X sc->cur_rx = (sc->cur_rx+1) % RX_RING_SIZE; X } X X outl( sc->iobase + INTSTAT, RxDone ); X} X Xvoid Xepic_tx_done( epic_softc_t *sc ){ X int i = 0; X u_int32_t if_flags=0; X int coll; X u_int16_t stt; X X for(i=0; itx_buffer + i; X u_int16_t len = buf->desc.txlength; X stt = buf->desc.status; X X if( stt & 0x8000 ) continue; /* being Txed */ X X if( stt == 0 ){ /* free */ X if_flags = ~IFF_OACTIVE; X continue; X } X X if( stt & 0x0001 ){ X sc->pending_txs--; X sc->epic_if.if_opackets++; X } X X coll = (stt >> 8) & 0xF; /* number of collisions*/ X X if( stt & 0x1058 ){ X if(stt & 0x0008) X sc->dot3stats.dot3StatsCarrierSenseErrors++; X X if(stt & 0x1050) X sc->dot3stats.dot3StatsInternalMacTransmitErrors++; X X if(stt & 0x1000) coll = 16; X X sc->epic_if.if_oerrors++; X } X X if ( (stt & 0x0002) != 0) sc->dot3stats.dot3StatsDeferredTransmissions++; X X sc->epic_if.if_collisions += coll; X X switch( coll ){ X case 0: X break; X case 16: X sc->dot3stats.dot3StatsExcessiveCollisions++; X sc->dot3stats.dot3StatsCollFrequencies[15]++; X break; X case 1: X sc->dot3stats.dot3StatsSingleCollisionFrames++; X sc->dot3stats.dot3StatsCollFrequencies[0]++; X break; X default: X sc->dot3stats.dot3StatsMultipleCollisionFrames++; X sc->dot3stats.dot3StatsCollFrequencies[coll-1]++; X break; X } X X buf->desc.status = 0; X buf->desc.txlength = 0; X X if_flags = ~IFF_OACTIVE; X X } X X sc->epic_if.if_flags &= if_flags; X X outl( sc->iobase + INTSTAT, TxDone ); X X} X X/* X * Probe function X */ Xstatic char* Xepic_pci_probe( X pcici_t config_id, X pcidi_t device_id) X{ X if (PCI_VENDORID(device_id) != SMC_VENDORID) X return NULL; X X if (PCI_CHIPID(device_id) == CHIPID_83C170) X return "SMC 83c170"; X X return NULL; X} X X/* X * PCI_Attach function X */ Xstatic void Xepic_pci_attach( X pcici_t config_id, X int unit) X{ X struct ifnet * ifp; X epic_softc_t *sc; X u_int32_t iobase; X u_int32_t irq; X int i; X int s; X int phy, phy_idx; X X /* X * Get iobase and irq level X */ X irq = PCI_CONF_READ(PCI_CFIT) & (0xFF); X if (!pci_map_port(config_id, PCI_CBIO,(u_short *) &iobase)) X return; X X /* X * Allocate and preinitialize softc structure X */ X sc = (epic_softc_t *) malloc(sizeof(epic_softc_t), M_DEVBUF, M_NOWAIT); X if (sc == NULL) return; X epics[ unit ] = sc; X X /* X * Zero softc structure X */ X bzero(sc, sizeof(epic_softc_t)); X X /* X * Initialize softc X */ X sc->unit = unit; X sc->iobase = iobase; X sc->irq = irq; X X /* Bring the chip out of low-power mode. */ X outl( iobase + GENCTL, 0x0200); X X /* Magic?! If we don't set this bit the MII interface won't work. */ X outl( iobase + TEST1, 0x0008 ); X X /* This could also be read from the EEPROM. */ X for (i = 0; i < ETHER_ADDR_LEN / sizeof( u_int16_t); i++) X ((u_int16_t *)sc->epic_macaddr)[i] = inw(iobase + LAN0 + i*4); X X printf("tx%d:",sc->unit); X printf(" address %02x:%02x:%02x:%02x:%02x:%02x,",sc->epic_macaddr[0],sc->epic_macaddr[1],sc->epic_macaddr[2],sc->epic_macaddr[3],sc->epic_macaddr[4],sc->epic_macaddr[5]); X printf(" SMC9432TX Fast Ethernet\n"); X X /* X * Dump EEPROM X */ X #if defined(DUMP_EEPROM) X printf("tx%d: EEPROM contents\n", sc->unit); X for (i = 0; i < 64; i++) X printf(" %04x%s", epic_read_eeprom(iobase, i), i % 16 == 15 ? "\n" : ""); X #endif X X /* X * Map interrupt X */ X if (!pci_map_int(config_id, epic_intr_normal, (void*) sc, &net_imask)) { X printf("tx%d: couldn't map interrupt\n",unit); X return; X } X X /* X * Fill ifnet structure X */ X s = splimp(); X X ifp = &sc->epic_if; X X ifp->if_unit = unit; X ifp->if_name = "tx"; X ifp->if_softc = sc; X ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST; X ifp->if_ioctl = (void *)ether_ioctl; X ifp->if_start = epic_ifstart; X ifp->if_watchdog = epic_ifwatchdog; X ifp->if_init = (if_init_f_t*)epic_init; X ifp->if_timer = 0; X ifp->if_output = ether_output; X ifp->if_linkmib = &sc->dot3stats; X ifp->if_linkmiblen = sizeof(struct ifmib_iso_8802_3); X X sc->dot3stats.dot3StatsEtherChipSet = X DOT3CHIPSET(dot3VendorSMC, X dot3ChipSetSMC83c170); X X sc->dot3stats.dot3Compliance = DOT3COMPLIANCE_COLLS; X X /* X * Attach to if manager X */ X if_attach(ifp); X ether_ifattach(ifp); X X splx(s); X X return; X} X X/* X * IFINIT function X */ Xstatic void Xepic_init( X epic_softc_t * const sc) X{ X struct ifnet *ifp = &sc->epic_if; X int iobase = sc->iobase; X int i; X X /* Soft reset the chip. */ X outl(iobase + GENCTL, 0x0001 ); X X /* Wake up */ X outl( iobase + GENCTL, 0x0200); X X /* This next line by Ken Yamaguchi.. ?? (the same is in NT driver) */ X outl( iobase + TEST1, 0x0008); X X /* Initialize rings */ X epic_init_rings( sc ); X X /* Put node address to EPIC */ X outl( iobase + LAN0 + 0x0, ((u_int16_t *)sc->epic_macaddr)[0] ); X outl( iobase + LAN0 + 0x4, ((u_int16_t *)sc->epic_macaddr)[1] ); X outl( iobase + LAN0 + 0x8, ((u_int16_t *)sc->epic_macaddr)[2] ); X X /* Enable interrupts, and set for PCI read multiple. */ X outl( iobase + GENCTL, 0x0512 ); /* possibly better 0x112 */ X X /* Set transmit threshold */ X outl( iobase + TxThresh, TX_FIFO_THRESH ); X X /* Start the chip's Rx process. */ X outl( iobase + RxCtrl, 0x0004 ); X outl( iobase + COMMAND, 0x000A ); X X /* Enable interrupts by setting the interrupt mask. */ X outl( iobase + INTMASK, CntFull | TxUnderrun | TxDone X | RxError | RxOverflow | RxFull | RxHeader | RxDone); X X /* Mark interface running ... */ X if( ifp->if_flags & IFF_UP ) ifp->if_flags |= IFF_RUNNING; X else ifp->if_flags &= ~IFF_RUNNING; X X /* ... and free */ X ifp->if_flags &= ~IFF_OACTIVE; X X} X X/* X * Initialize Rx ad Tx rings and give them to EPIC X * X * If RX_TO_MBUF option is enabled, mbuf cluster is allocated instead of X * static buffer. X */ Xstatic void Xepic_init_rings( X epic_softc_t * sc) X{ X int i; X struct mbuf *m; X X sc->cur_rx = sc->cur_tx = sc->pending_txs = 0; X X for (i = 0; i < RX_RING_SIZE; i++) { X struct epic_rx_buffer *buf = sc->rx_buffer + i; X X buf->desc.status = 0x0000; /* Owned by Epic chip */ X buf->desc.buflength = 0; X buf->desc.bufaddr = 0; X buf->desc.next = vtophys(&(sc->rx_buffer[(i+1)%RX_RING_SIZE].desc) ); X X buf->data = NULL; X X#if !defined(RX_TO_MBUF) X if( buf->pool ){ X free( buf->pool, M_DEVBUF ); X buf->pool = buf->data = 0; X } X buf->pool = malloc(ETHER_MAX_LEN + 0x10, M_DEVBUF, M_NOWAIT); X if( buf->pool == NULL ){ X printf("tx%d: malloc failed\n",sc->unit); X continue; X } X buf->data = (caddr_t)((u_int32_t)(buf->pool + 3) & (~0x3)); X#else X if( buf->mbuf ){ X m_freem( buf->mbuf ); X buf->mbuf = NULL; X } X MGETHDR(buf->mbuf,M_DONTWAIT,MT_DATA); X if( NULL == buf->mbuf ) continue; X MCLGET(buf->mbuf,M_DONTWAIT); X if( NULL == (buf->mbuf->m_flags & M_EXT) ){ X m_freem( buf->mbuf ); X continue; X } X X buf->data = mtod( buf->mbuf, caddr_t ); X#endif X buf->desc.bufaddr = vtophys( buf->data ); X buf->desc.buflength = ETHER_MAX_LEN; X buf->desc.status = 0x8000; X X } X X for (i = 0; i < TX_RING_SIZE; i++) { X struct epic_tx_buffer *buf = sc->tx_buffer + i; X X buf->desc.status = 0x0000; X buf->desc.buflength = 0; X buf->desc.bufaddr = 0; X buf->desc.control = 0; X buf->desc.next = vtophys(&(sc->tx_buffer[(i+1)%TX_RING_SIZE].desc) ); X X if( buf->pool ){ X free( buf->pool, M_DEVBUF ); X buf->pool = buf->data = 0; X } X X buf->pool = malloc(ETHER_MAX_LEN + 4, M_DEVBUF, M_NOWAIT); X X if( buf->pool == NULL ){ X printf("tx%d: malloc failed\n",sc->unit); X continue; X } X X /* align on 4 bytes */ X buf->data = (caddr_t)((u_int32_t)(buf->pool + 3) & (~0x3)); X X buf->desc.bufaddr = vtophys( buf->data ); X buf->desc.buflength = ETHER_MAX_LEN; X } X X /* Give rings to EPIC */ X outl( sc->iobase + PRxCDAR, vtophys(&(sc->rx_buffer[0].desc)) ); X outl( sc->iobase + PTxCDAR, vtophys(&(sc->tx_buffer[0].desc)) ); X X} X X/* X * EEPROM operation functions X */ Xstatic void epic_write_eepromreg(u_int16_t regaddr, u_int8_t val){ X u_int16_t i; X X outb( regaddr, val ); X X for( i=0;i<0xFF; i++) X if( !(inb( regaddr ) & 0x20) ) break; X X return; X} X Xstatic u_int8_t epic_read_eepromreg(u_int16_t regaddr){ X return inb( regaddr ); X} X Xstatic u_int8_t epic_eeprom_clock( u_int16_t ioaddr, u_int8_t val ){ X X epic_write_eepromreg( ioaddr + EECTL, val ); X epic_write_eepromreg( ioaddr + EECTL, (val | 0x4) ); X epic_write_eepromreg( ioaddr + EECTL, val ); X X return epic_read_eepromreg( ioaddr + EECTL ); X} X Xstatic void epic_output_eepromw(u_int16_t ioaddr, u_int16_t val){ X int i; X for( i = 0xF; i >= 0; i--){ X if( (val & (1 << i)) ) epic_eeprom_clock( ioaddr, 0x0B ); X else epic_eeprom_clock( ioaddr, 3); X } X} X Xstatic u_int16_t epic_input_eepromw(u_int16_t ioaddr){ X int i; X int tmp; X u_int16_t retval = 0; X X for( i = 0xF; i >= 0; i--) { X tmp = epic_eeprom_clock( ioaddr, 0x3 ); X if( tmp & 0x10 ){ X retval |= (1 << i); X } X } X return retval; X} X Xstatic int epic_read_eeprom(u_int16_t ioaddr, u_int16_t loc){ X int i; X u_int16_t dataval; X u_int16_t read_cmd; X X epic_write_eepromreg(ioaddr + EECTL , 3); X X if( epic_read_eepromreg(ioaddr + EECTL) & 0x40 ) X read_cmd = ( loc & 0x3F ) | 0x180; X else X read_cmd = ( loc & 0xFF ) | 0x600; X X epic_output_eepromw( ioaddr, read_cmd ); X X dataval = epic_input_eepromw( ioaddr ); X X epic_write_eepromreg( ioaddr + EECTL, 1 ); X X return dataval; X} X Xstatic void epic_put_node_address( epic_softc_t * sc ){ X} END-of-if_tx.c exit >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Nov 19 07:30:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA22488 for bugs-outgoing; Wed, 19 Nov 1997 07:30:13 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA22472; Wed, 19 Nov 1997 07:30:09 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 19 Nov 1997 07:30:09 -0800 (PST) Resent-Message-Id: <199711191530.HAA22472@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, ehm@cris.com Received: (from nobody@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA19552; Wed, 19 Nov 1997 06:39:38 -0800 (PST) (envelope-from nobody) Message-Id: <199711191439.GAA19552@hub.freebsd.org> Date: Wed, 19 Nov 1997 06:39:38 -0800 (PST) From: ehm@cris.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: misc/5091: "xman" missing from FreeBSD 2.2.5 (XFree86 3.3.1) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5091 >Category: misc >Synopsis: "xman" missing from FreeBSD 2.2.5 (XFree86 3.3.1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: support >Submitter-Id: current-users >Arrival-Date: Wed Nov 19 07:30:08 PST 1997 >Last-Modified: >Originator: Erik Moe >Organization: >Release: 2.2.5 >Environment: >Description: This issue will probably need to be addressed by the XFree group, but the "xman" client has disappeared between XFree86 3.2 and XFree86 3.3.1, i.e.: FreeBSD 2.2.2 and FreeBSD 2.2.5 >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Nov 19 08:40:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA27996 for bugs-outgoing; Wed, 19 Nov 1997 08:40:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA27981; Wed, 19 Nov 1997 08:40:01 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 19 Nov 1997 08:40:01 -0800 (PST) Resent-Message-Id: <199711191640.IAA27981@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, aryder@bestweb.net Received: (from nobody@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA27233; Wed, 19 Nov 1997 08:30:27 -0800 (PST) (envelope-from nobody) Message-Id: <199711191630.IAA27233@hub.freebsd.org> Date: Wed, 19 Nov 1997 08:30:27 -0800 (PST) From: aryder@bestweb.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: i386/5092: sio2 (com3) doesnt work Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5092 >Category: i386 >Synopsis: sio2 (com3) doesnt work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 19 08:40:00 PST 1997 >Last-Modified: >Originator: Andrew Ryder >Organization: >Release: 2.2.5 RELEASE >Environment: FreeBSD opal.eblan.com 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Tue Nov 18 18:38:05 EST 1997 root@opal.eblan.com:/usr/src/sys/compile/OPAL i386 >Description: The sio2 (com3) driver seems to be broken. It doesnt seem to be found. I also had another person I know running 2.2.5-REL say the same: heres the output from dmesg sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A sio2 not found at 0x3e8 >How-To-Repeat: Dont know.. looks to be a broken driver >Fix: none.. looks just to be a broken kernel driver >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Nov 19 14:20:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA05877 for bugs-outgoing; Wed, 19 Nov 1997 14:20:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA05846; Wed, 19 Nov 1997 14:20:02 -0800 (PST) (envelope-from gnats) Date: Wed, 19 Nov 1997 14:20:02 -0800 (PST) Message-Id: <199711192220.OAA05846@hub.freebsd.org> To: freebsd-bugs Cc: From: "Daniel O'Callaghan" Subject: Re: i386/5092: sio2 (com3) doesnt work Reply-To: "Daniel O'Callaghan" Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR i386/5092; it has been noted by GNATS. From: "Daniel O'Callaghan" To: aryder@bestweb.net Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: i386/5092: sio2 (com3) doesnt work Date: Thu, 20 Nov 1997 09:11:22 +1100 (EST) On Wed, 19 Nov 1997 aryder@bestweb.net wrote: > FreeBSD opal.eblan.com 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Tue Nov 18 18:38:05 EST 1997 root@opal.eblan.com:/usr/src/sys/compile/OPAL i386 > >Description: > The sio2 (com3) driver seems to be broken. It doesnt seem to be found. > I also had another person I know running 2.2.5-REL say the same: heres the output from dmesg > sio0 at 0x3f8-0x3ff irq 4 on isa > sio0: type 16550A > sio1 at 0x2f8-0x2ff irq 3 on isa > sio1: type 16550A > sio2 not found at 0x3e8 The sio drivers need both the port address (0x3e8) and the irq to be correct before the serial port will be found. Please check the irq setting on the card, and match it using '-c' switch at the boot: prompt. Please let me know the result. Danny From owner-freebsd-bugs Wed Nov 19 17:40:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA23471 for bugs-outgoing; Wed, 19 Nov 1997 17:40:03 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA23451; Wed, 19 Nov 1997 17:40:01 -0800 (PST) (envelope-from gnats) Date: Wed, 19 Nov 1997 17:40:01 -0800 (PST) Message-Id: <199711200140.RAA23451@hub.freebsd.org> To: freebsd-bugs Cc: From: Brian Somers Subject: Re: i386/5092: sio2 (com3) doesnt work Reply-To: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR i386/5092; it has been noted by GNATS. From: Brian Somers To: aryder@bestweb.net Cc: freebsd-gnats-submit@freebsd.org Subject: Re: i386/5092: sio2 (com3) doesnt work Date: Wed, 19 Nov 1997 23:43:33 +0000 > > >Number: 5092 > >Category: i386 > >Synopsis: sio2 (com3) doesnt work [.....] > The sio2 (com3) driver seems to be broken. It doesnt seem to be found. > I also had another person I know running 2.2.5-REL say the same: heres the output from dmesg > sio0 at 0x3f8-0x3ff irq 4 on isa > sio0: type 16550A > sio1 at 0x2f8-0x2ff irq 3 on isa > sio1: type 16550A sio2 not found at 0x3e8 What, no "sio2 not found" message ? Is it enabled in your kernel (boot with -c and have a poke around) ? -- Brian , , Don't _EVER_ lose your sense of humour.... From owner-freebsd-bugs Wed Nov 19 20:20:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA05168 for bugs-outgoing; Wed, 19 Nov 1997 20:20:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA05140; Wed, 19 Nov 1997 20:20:02 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 19 Nov 1997 20:20:02 -0800 (PST) Resent-Message-Id: <199711200420.UAA05140@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, matt@zigg.com Received: (from nobody@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA04483; Wed, 19 Nov 1997 20:10:10 -0800 (PST) (envelope-from nobody) Message-Id: <199711200410.UAA04483@hub.freebsd.org> Date: Wed, 19 Nov 1997 20:10:10 -0800 (PST) From: matt@zigg.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/5098: running out of swap space causes junk pointers in inetd Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5098 >Category: bin >Synopsis: running out of swap space causes junk pointers in inetd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 19 20:20:01 PST 1997 >Last-Modified: >Originator: Matt Behrens >Organization: International Followers of Matt Behrens, LLC >Release: 2.2-STABLE >Environment: FreeBSD megaweapon.zigg.com 2.2-STABLE FreeBSD 2.2-STABLE #0: Wed Oct 22 20:30:22 EDT 1997 matt@megaweapon.zigg.com:/usr/src/sys/compile/MEGAWEAPON i386 >Description: After a few heavy-duty compilation sessions that caused swap space to run out, the following message appears upon telnet: inetd in realloc(): warning: junk pointer, too low to make sense. This problem does not go away until the system is rebooted. It seems to not affect anything, however. I've received this message on two separate systems, both 486's with 32M swap; one with 20M real mem, one with 32M real mem. >How-To-Repeat: Run out of swap space a few times, then try to telnet in. >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Nov 19 20:50:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA06881 for bugs-outgoing; Wed, 19 Nov 1997 20:50:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA06874; Wed, 19 Nov 1997 20:50:01 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 19 Nov 1997 20:50:01 -0800 (PST) Resent-Message-Id: <199711200450.UAA06874@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, jamil@trojanhorse.ml.org Received: from trojanhorse.ml.org (mdean.vip.best.com [206.86.94.101]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA06714 for ; Wed, 19 Nov 1997 20:47:41 -0800 (PST) (envelope-from jamil@trojanhorse.ml.org) Received: (from jamil@localhost) by trojanhorse.ml.org (8.8.8/8.8.5) id UAA02591; Wed, 19 Nov 1997 20:47:31 -0800 (PST) Message-Id: <199711200447.UAA02591@trojanhorse.ml.org> Date: Wed, 19 Nov 1997 20:47:31 -0800 (PST) From: jamil@trojanhorse.ml.org Reply-To: jamil@trojanhorse.ml.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: i386/5099: New Driver: alog (Industrial Computer Source AIO8-P) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5099 >Category: i386 >Synopsis: New Driver: alog (Industrial Computer Source AIO8-P) >Confidential: yes >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 19 20:50:00 PST 1997 >Last-Modified: >Originator: Jamil J. Weatherbee >Organization: >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD i386 environment, ISA bus >Description: Efficient implementation of low cost interrrupt driver analog input. Using the $195 Industrial computer source AIO8-P board. Direct support for multiplexing up to 128 inputs per board. Multichannel perforrmace with this driver is in the 7.5ks/sec range on a 386. And 15ks/sec range for single channel input. Theoretical limit is 30ks/s for this board but realistically limited by the systems interrupt latency. Put input cost is about 26$ for a multiplexed system. The inputs with AT16-P are signal conditioned and differential with full support for RTDs etc. >How-To-Repeat: Buy an AIO8-P and run freebsd >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # alog.4 # alog.c # alogio.h # echo x - Makefile sed 's/^X//' >Makefile << 'END-of-Makefile' X# Make file to install the alog driver files in their proper places X Xinstall: X install -c -o root -g wheel -m 0644 alog.c /sys/i386/isa X install -c -o root -g bin -m 0644 alogio.h /sys/sys X install -c -o bin -g bin -m 0444 alogio.h /usr/include/sys X install -c -o bin -g bin -m 444 alog.4 /usr/share/man/man4/ X gzip -f /usr/share/man/man4/alog.4 X install -c -o bin -g bin -m 444 alog.4 /usr/share/man/man4/i386/ X gzip -f /usr/share/man/man4/i386/alog.4 END-of-Makefile echo x - alog.4 sed 's/^X//' >alog.4 << 'END-of-alog.4' X.\" X.\" Copyright (c) 1997 Jamil J. Weatherbee X.\" All rights reserved. X.\" X.\" X.\" Redistribution and use in source and binary forms, with or without X.\" modification, are permitted provided that the following conditions X.\" are met: X.\" 1. Redistributions of source code must retain the above copyright X.\" notice, this list of conditions and the following disclaimer X.\" in this position and unchanged. X.\" 2. Redistributions in binary form must reproduce the above copyright X.\" notice, this list of conditions and the following disclaimer in the X.\" documentation and/or other materials provided with the distribution. X.\" 3. The name of the author may not be used to endorse or promote products X.\" derived from this software without specific prior written permission X.\" X.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X.\" X.\" Industrial Computer Source model AIO8-P X.\" 8 channel, moderate speed analog to digital converter board with X.\" 128 channel MUX capability via daisy-chained AT-16P units X.\" alog.c, character device driver, last revised November 19 1997 X.\" See http://www.indcompsrc.com/products/data/html/aio8g-p.html X.\" X.\" Written by: Jamil J. Weatherbee X.\" X.\" X.Dd November 19, 1997 X.Dt ALOG 4 i386 X.Os FreeBSD X.Sh NAME X.Nm alog X.Nd XIndustrial Computer Source AIO8-P driver X.Sh SYNOPSIS X.Cd "device alog0 at isa? port 0x260 tty irq 5 vector alogintr" X.Sh DESCRIPTION XThis driver supports the Industrial Computer Source \fIAIO8-P 8-Channel X12-Bit Analog Input board\fP. X.Pp XThis board provides 8 12 bit, single-ended analog input ports. XThe driver also directly provides support for up to 8 daisy chained X\fIAT16-P Programmable Analog Multiplexers with 16 Differential Inputs\fP. XThis makes it possible to sample up to 128 differential channels with a single Xinterface board. XUse of at least one \fIAT16-P\fP is highly recommended as the \fIAIO8-P\fP Xoffers no signal conditioning options and only operates in a -5 to +5 Volt Xinput range. However, if you wish to use the \fIAIO8-P\fP standalone, Xinsert the following into your kernel X.Xr config 8 Xfile: X.Bd -literal -offset indent Xoptions ALOG_CHANNELS=8 X.Ed X.Pp XSelection of the input port is through the minor number: X.Pp X.Bd -literal -offset indent XThe 8 bit minor number format is UCCCCMMM, where X U: board unit (0-1) XCCCC: external multiplexer channel (0-15) (on AT-16P units) X MMM: internal multiplexer channel (0-7) (on AIO8-P card) X.Ed X.Pp X.Xr devfs 5 Xdevice node names are of the form: alog[0-1][a-p][0-7] X.Pp X.Sh IOCTL XThe following X.Xr ioctl 2 Xcalls apply to X.Nm Xdevices. Their declaration can be found in the header files X.Pa Xand X.Pa X.Bl -tag -width AD_MICRO_PERIOD_SET X.It Dv AD_MICRO_PERIOD_SET XTakes a pointer to a long argument specifying the number of microseconds Xbetween samples. Half of this is used as the external multiplexer Xsettling time and the other half as conversion time. X.It Dv AD_MICRO_PERIOD_GET XTakes a pointer to a long argument and returns the current number of Xmicroseconds between samples. X.It Dv AD_NCHANS_GET XTakes a pointer to an integer and returns the number of channels the board Xsupports. This should be 8 for a standalone \fIAIO8-P\fP or 128 for any Xother setup. X.It Dv AD_FIFOSIZE_GET XTakes a pointer to an integer and returns the size of the fifo in Xentries. The compile time option ALOG_FIFOSIZE is by default set to 64. X.It Dv AD_FIFO_TRIGGER_GET XTakes a pointer to an integer and returns the minimum number of entries a Xfifo must contain to cause X.Xr select 2 Xto return. This by default is set to 1. X.It Dv AD_FIFO_TRIGGER_SET XTakes a pointer to an integer specifying the minimum number of entries a Xfifo must contain to cause X.Xr select 2 Xto return. X.It Dv AD_START XStarts the clocked accumulation of sample values into a channel's driver fifo. XWhen a channel is first opened its software fifo is initialized in the Xstopped state. This is to prevent high sample clocks from overrunning the Xfifos before the user is ready to read from the channel. The driver Xautomatically performs an AD_START when the user issues the first read, Xexcept for channels opened with the O_NONBLOCK flag which must explicitly Xhave an AD_START issued. X.It Dv AD_STOP XStops the clocked accumulation of sample values into a channel's driver fifo. X.Sh BUGS XOn the \fIAIO8-P\fP, interrupt driven conversion (the only type Xsupported by the X.Nm Xdriver) is facilitated through 8253 timer #2. In order for interrrupts to Xbe generated you must connect line 6 to line 24 (counter 2 output to Xinterrupt input) and line 23 to line 29 (counter 2 gate to +5VDC). XThe design of the \fIAIO8-P\fP precludes the use of programmable Xgain control. X.Pp XUse the combination of non-blocking i/o, X.Xr select 2 Xand a custom fifo trigger Xwherever possible, especially with large numbers of open channels. XUsing this method, multichannel sample rates as high as 16,000 samples/sec Xhave been observed. X.Pp XSample rates lower than 32 Hz are not supported. X.Sh SEE ALSO X.Bd -literal Xhttp://www.indcompsrc.com/products/data/html/aio8g-p.html Xhttp://www.indcompsrc.com/products/data/html/at16-p.html X.Ed X.Sh AUTHOR XJamil J. Weatherbee . END-of-alog.4 echo x - alog.c sed 's/^X//' >alog.c << 'END-of-alog.c' X/* X * Copyright (c) 1997 Jamil J. Weatherbee X * All rights reserved. X * X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer X * in this position and unchanged. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. The name of the author may not be used to endorse or promote products X * derived from this software without specific prior written permission X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X * X * Industrial Computer Source model AIO8-P X * 8 channel, moderate speed analog to digital converter board with X * 128 channel MUX capability via daisy chained AT-16P units X * alog.c, character device driver, last revised November 19 1997 X * See http://www.indcompsrc.com/products/data/html/aio8g-p.html X * http://www.indcompsrc.com/products/data/html/at16-p.html X * X * Written by: Jamil J. Weatherbee X * X */ X X X/* Include Files */ X X#include "alog.h" X#if NALOG > 0 X X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X X#ifdef DEVFS X#include X#endif X X/* Local Defines */ X X/* Tests have shown that increasing the fifo size X * beyond 64 entries for this particular piece of hardware is X * unproductive */ X X#ifdef ALOG_FIFOSIZE X#define FIFOSIZE ALOG_FIFOSIZE X#else X#define FIFOSIZE 64 X#endif X X#ifdef ALOG_CHANNELS X#define NUMCHANNELS ALOG_CHANNELS X#else X#define NUMCHANNELS 128 X#endif X X#ifdef ALOG_TIMO X#define READTIMO ALOG_TIMO X#else X#define READTIMO (MAX_MICRO_PERIOD*NUMCHANNELS/500000*hz) X#endif X X#define CDEV_MAJOR 86 X#define NUMPORTS 8 X#define MAXUNITS 2 X#define NUMIMUXES 8 X X#define ADLOW 0x0 X#define ADHIGH 0x1 X#define STATUS 0x2 X#define CNTR0 0x4 X#define CNTR1 0x5 X#define CNTR2 0x6 X#define CNTRCNTRL 0x7 X X#define DEVFORMAT "alog%d%c%d" X#define CLOCK2FREQ 4.165 X#define MIN_MICRO_PERIOD 25 X#define MAX_MICRO_PERIOD (65535/CLOCK2FREQ*PRIMARY_STATES) X#define DEFAULT_MICRO_PERIOD MAX_MICRO_PERIOD X#define DEFAULT_FIFO_TRIGGER 1 X#define READMAXTRIG 0.75*FIFOSIZE X#define READPRI PRIBIO X#define READMSG "alogio" X X#define PRIMARY_STATES 2 /* Setup and conversion are clock tick consuming */ X#define STATE_SETUP 0 X#define STATE_CONVERT 1 X#define STATE_READ 2 X X/* Notes on interrupt driven A/D conversion: X * On the AIO8-P, interrupt driven conversion (the only type supported by this X * driver) is facilitated through 8253 timer #2. In order for interrrupts to X * be generated you must connect line 6 to line 24 (counter 2 output to X * interrupt input) and line 23 to line 29 (counter 2 gate to +5VDC). X * Due to the design of the AIO8-P this precludes the use of programmable X * gain control. X */ X X/* mode bits for the status register */ X X#define EOC 0x80 X#define IEN 0x08 X#define IMUXMASK 0x07 X#define EMUXMASK 0xf0 X X/* mode bits for counter controller */ X X#define LD2MODE4 0xb8 X X/* Minor allocations: X * UCCCCMMM X * U: board unit (0-1) X * CCCC: external multiplexer channel (0-15) (on AT-16P units) X * MMM: internal multiplexer channel (0-7) (on AIO8-P card) X */ X X#define UNIT(dev) ((minor(dev) & 0x80) >> 7) X#define CHANNEL(dev) (minor(dev) & 0x7f) X#define EMUX(chan) ((chan & 0x78) >> 3) X#define EMUXMAKE(chan) ((chan & 0x78) << 1) X#define IMUX(chan) (chan & 0x07) X#define LMINOR(unit, chan) ((unit << 7)+chan) X X/* port statuses */ X X#define STATUS_UNUSED 0 X#define STATUS_INUSE 1 X#define STATUS_STOPPED 2 X#define STATUS_INIT 3 X X/* Type definitions */ X Xtypedef struct X{ X short status; /* the status of this chan */ X struct selinfo readselect; /* the select() polling info */ X u_short fifo[FIFOSIZE]; /* fifo for this chan */ X int fifostart, fifoend; /* the ptrs showing where info is stored in fifo */ X int fifosize, fifotrig; /* the current and trigger size of the fifo */ X void *devfs_token; /* the devfs token for this chan */ X int nextchan; X} talog_chan; X Xtypedef struct X{ X struct isa_device *isaunit; /* ptr to isa device information */ X talog_chan chan[NUMCHANNELS]; /* the device nodes */ X int curchan; /* the current chan being intr handled */ X int firstchan; /* the first chan to go to in list */ X int state; /* is the node in setup or convert mode */ X long microperiod; /* current microsecond period setting */ X u_char perlo, perhi; /* current values to send to clock 2 after every intr */ X X} talog_unit; X X/* Function Prototypes */ X Xstatic int alog_probe (struct isa_device *idp); /* Check for alog board */ Xstatic int alog_attach (struct isa_device *idp); /* Take alog board */ Xstatic int sync_clock2 (int unit, long period); /* setup clock 2 period */ Xstatic __inline int putfifo (talog_chan *pchan, u_short fifoent); Xstatic int alog_open (dev_t dev, int oflags, int devtype, struct proc *p); Xstatic int alog_close (dev_t dev, int fflag, int devtype, struct proc *p); Xstatic int alog_ioctl (dev_t dev, int cmd, caddr_t data, X int fflag, struct proc *p); Xstatic int alog_read (dev_t dev, struct uio *uio, int ioflag); Xstatic int alog_select (dev_t dev, int which, struct proc *p); X X/* Global Data */ X Xstatic int alog_devsw_installed = 0; /* Protect against reinit multiunit */ Xstatic talog_unit *alog_unit[NALOG]; /* data structs for each unit */ X X/* Character device switching structure */ Xstatic struct cdevsw alog_cdevsw = { alog_open, alog_close, alog_read, X nowrite, alog_ioctl, nostop, noreset, X nodevtotty, alog_select, nommap, X nostrategy, "alog", NULL, -1 }; X X/* Structure expected to tell how to probe and attach the driver X * Must be published externally (cannot be static) */ Xstruct isa_driver alogdriver = { alog_probe, alog_attach, "alog", 0 }; X X X/* handle the ioctls */ Xstatic int alog_ioctl (dev_t dev, int cmd, caddr_t data, X int fflag, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X X switch (cmd) X { X case AD_NCHANS_GET: *(int *)data = NUMCHANNELS; X return 0; X case AD_FIFOSIZE_GET: *(int *)data = FIFOSIZE; X return 0; X X case AD_FIFO_TRIGGER_GET: s = spltty(); X *(int *)data = info->chan[chan].fifotrig; X splx(s); X return 0; X X case AD_FIFO_TRIGGER_SET: X s = spltty(); X if ((*(int *)data < 1) || (*(int *)data > FIFOSIZE)) X { X splx(s); X return EPERM; X } X info->chan[chan].fifotrig = *(int *)data; X splx(s); X return 0; X X case AD_STOP: s = spltty(); X info->chan[chan].status = STATUS_STOPPED; X splx(s); X return 0; X X case AD_START: s = spltty(); X info->chan[chan].status = STATUS_INUSE; X splx(s); X return 0; X X case AD_MICRO_PERIOD_SET: X s = spltty(); X if (sync_clock2 (unit, *(long *) data)) X { X splx(s); X return EPERM; X } X splx(s); X return 0; X X case AD_MICRO_PERIOD_GET: s = spltty(); X *(long *)data = info->microperiod; X splx(s); X return 0; X X } X X return ENOTTY; X} X X X/* handle select() based read polling */ Xstatic int alog_select (dev_t dev, int which, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X X s = spltty(); X if (which == FREAD) X if (info->chan[chan].fifosize >= info->chan[chan].fifotrig) X { X splx(s); X return 1; /* ready for read */ X } X else X { X /* record this request */ X selrecord (p, &(info->chan[chan].readselect)); X splx(s); X return 0; /* not ready, yet */ X } X X splx(s); X return 0; /* not ready (any I never will be) */ X} X X X/* how to read from the board */ Xstatic int alog_read (dev_t dev, struct uio *uio, int ioflag) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s, oldtrig, terr, toread, err = 0; X X s = spltty(); X X oldtrig = info->chan[chan].fifotrig; /* save official trigger value */ X while (uio->uio_resid >= sizeof(u_short)) /* while uio has space */ X { X if (!info->chan[chan].fifosize) /* if we have an empty fifo */ X { X if (ioflag & IO_NDELAY) break; /* exit if we are non-blocking */ X /* Start filling fifo on first blocking read */ X if (info->chan[chan].status == STATUS_INIT) X info->chan[chan].status = STATUS_INUSE; X /* temporarily adjust the fifo trigger to be optimal size */ X info->chan[chan].fifotrig = X min (READMAXTRIG, uio->uio_resid / sizeof(u_short)); X /* lets sleep until we have some io available or timeout */ X terr = tsleep (&(info->chan[chan].fifo), READPRI | PCATCH, READMSG, X info->chan[chan].fifotrig*READTIMO); X if (terr == EWOULDBLOCK) X { printf (DEVFORMAT ": read timeout\n", unit, X 'a'+EMUX(chan), IMUX(chan)); X err = ETIMEDOUT; X break; /* were outta here */ X } X if (terr) break; /* if caught a signal then just break out */ X } X X /* ok, now if we got here there is something to read from the fifo */ X X /* calculate how many entries we can read out from the fifostart X * pointer */ X toread = min (uio->uio_resid / sizeof(u_short), X min (info->chan[chan].fifosize, X FIFOSIZE - info->chan[chan].fifostart)); X /* perform the move, if there is an error then exit */ X if (err = uiomove((caddr_t) X &(info->chan[chan].fifo[info->chan[chan].fifostart]), X toread * sizeof(u_short), uio)) break; X info->chan[chan].fifosize -= toread; /* fifo this much smaller */ X info->chan[chan].fifostart += toread; /* we got this many more */ X if (info->chan[chan].fifostart == FIFOSIZE) X info->chan[chan].fifostart = 0; /* wrap around fifostart */ X X } X info->chan[chan].fifotrig = oldtrig; /* restore trigger changes */ X splx(s); X return err; X} X X X/* open a channel */ Xstatic int alog_open (dev_t dev, int oflags, int devtype, struct proc *p) X{ X int unit = UNIT(dev); /* get unit no */ X int chan = CHANNEL(dev); /* get channel no */ X talog_unit *info; X int s; /* priority */ X int cur; X X if ((unit >= NALOG) || (unit >= MAXUNITS) || (chan >= NUMCHANNELS)) X return ENXIO; /* unit and channel no ok ? */ X if (!alog_unit[unit]) return ENXIO; /* unit attached */ X info = alog_unit[unit]; /* ok, this is valid now */ X X if (info->chan[chan].status) return EBUSY; /* channel busy */ X if (oflags & FREAD) X { X s=spltty(); X info->chan[chan].status = STATUS_INIT; /* channel open, read waiting */ X info->chan[chan].fifostart = info->chan[chan].fifoend = X info->chan[chan].fifosize = 0;/* fifo empty */ X info->chan[chan].fifotrig = DEFAULT_FIFO_TRIGGER; X if (info->firstchan < 0) /* if empty chain */ X { X info->firstchan = info->curchan = chan; /* rev up the list */ X info->chan[chan].nextchan = -1; /* end of the list */ X } X else /* non empty list must insert */ X { X if (chan < info->firstchan) /* this one must become first in list */ X { X info->chan[chan].nextchan = info->firstchan; X info->firstchan = chan; X } X else /* insert this one as second - last in chan list */ X { X cur = info->firstchan; X X /* traverse list as long as cur is less than chan and cur is X * not last in list */ X while ((info->chan[cur].nextchan < chan) && X (info->chan[cur].nextchan >= 0)) X cur = info->chan[cur].nextchan; X X /* now cur should point to the entry right before yours */ X info->chan[chan].nextchan = info->chan[cur].nextchan; X info->chan[cur].nextchan = chan; /* insert yours in */ X } X } X splx(s); X return 0; /* open successful */ X } X return EPERM; /* this is a read only device */ X} X X X/* close a channel */ Xstatic int alog_close (dev_t dev, int fflag, int devtype, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X int cur; X X s = spltty(); X info->chan[chan].status = STATUS_UNUSED; X X /* what if we are in the middle of a conversion ? X * then smoothly get us out of it: */ X if (info->curchan == chan) X { /* if we are last in list set curchan to first in list */ X if ((info->curchan = info->chan[chan].nextchan) < 0) X info->curchan = info->firstchan; X X info->state = STATE_SETUP; X } X X /* if this is the first channel, then make the second channel the first X * channel (note that if this is also the only channel firstchan becomes X * -1 and so the list is marked as empty */ X X if (chan == info->firstchan) X info->firstchan = info->chan[chan].nextchan; X else /* ok, so there must be at least 2 channels (and it is not the first) */ X { X cur = info->firstchan; X X /* find the entry before it (which must exist if you are closing) */ X while (info->chan[cur].nextchan < chan) X cur = info->chan[cur].nextchan; X /* at this point we must have the entry before ours */ X info->chan[cur].nextchan = info->chan[chan].nextchan; /* give our link */ X X } X X splx(s); X X return 0; /* close always successful */ X} X X X/* The probing routine - returns number of bytes needed */ Xstatic int alog_probe (struct isa_device *idp) X{ X int unit = idp->id_unit; /* this device unit number */ X int iobase = idp->id_iobase; /* the base address of the unit */ X int addr; X X if ((unit < 0) || (unit >= NALOG) || (unit >= MAXUNITS)) X { X printf ("alog: invalid unit number (%d)\n", unit); X return 0; X } X X /* the unit number is ok, lets check if used */ X if (alog_unit[unit]) X { X printf ("alog: unit (%d) already attached\n", unit); X return 0; X } X X if (inb (iobase+STATUS) & EOC) return 0; /* End of conv bit should be 0 */ X for (addr=0; addr MAX_MICRO_PERIOD) || (period < MIN_MICRO_PERIOD)) X return -1; /* error period too long */ X info->microperiod = period; /* record the period */ X clockper = (CLOCK2FREQ * period) / PRIMARY_STATES; X info->perlo = clockper & 0xff; /* least sig byte of clock period */ X info->perhi = ((clockper & 0xff00) >> 8); /* most sig byte of clock period */ X return 0; X} X X X/* The attachment routine - returns true on success */ Xstatic int alog_attach (struct isa_device *idp) X{ X int unit = idp->id_unit; /* this device unit number */ X int iobase = idp->id_iobase; /* the base address of the unit */ X talog_unit *info; /* pointer to driver specific info for unit */ X int chan; /* the channel used for creating devfs nodes */ X X if (!(info = malloc(sizeof(*info), M_DEVBUF, M_NOWAIT))) X { X printf ("alog%d: cannot allocate driver storage\n", unit); X return 0; X } X alog_unit[unit] = info; /* make sure to save the pointer */ X bzero (info, sizeof(*info)); /* clear info structure to all false */ X info->isaunit = idp; /* store ptr to isa device information */ X sync_clock2 (unit, DEFAULT_MICRO_PERIOD); /* setup perlo and perhi */ X info->firstchan = -1; /* channel lists are empty */ X X /* insert devfs nodes */ X X#ifdef DEVFS X for (chan=0; chanchan[chan].devfs_token = X devfs_add_devswf(&alog_cdevsw, LMINOR(unit, chan), DV_CHR, X UID_ROOT, GID_WHEEL, 0400, DEVFORMAT, X unit, 'a'+EMUX(chan), IMUX(chan)); X#endif X X alogintr (unit); /* start the periodic interrupting process */ X return 1; /* obviously successful */ X} X X X/* Unit interrupt handling routine (interrupts generated by clock 2) */ Xvoid alogintr (int unit) X{ X talog_unit *info = alog_unit[unit]; X int iobase = info->isaunit->id_iobase; X u_short fifoent; X X X if (info->firstchan >= 0) /* ? is there even a chan list to traverse */ X switch (info->state) X { X case STATE_READ: X if (info->chan[info->curchan].status == STATUS_INUSE) X { X if (inb (iobase+STATUS) & EOC) /* check that conversion finished */ X printf (DEVFORMAT ": incomplete conversion\n", unit, X 'a'+EMUX(info->curchan), IMUX(info->curchan)); X else /* conversion is finished (should always be) */ X { X fifoent = (inb (iobase+ADHIGH) << 8) + X inb (iobase+ADLOW); X if (putfifo(&(info->chan[info->curchan]), fifoent)) X { X printf (DEVFORMAT ": fifo overflow\n", unit, X 'a'+EMUX(info->curchan), IMUX(info->curchan)); X } X if (info->chan[info->curchan].fifosize >= X info->chan[info->curchan].fifotrig) X { X /* if we've reached trigger levels */ X selwakeup (&(info->chan[info->curchan].readselect)); X wakeup (&(info->chan[info->curchan].fifo)); X } X } X } X /* goto setup state for next channel on list */ X if ((info->curchan = info->chan[info->curchan].nextchan) < 0) X info->curchan = info->firstchan; X /* notice lack of break here this implys a STATE_SETUP */ X case STATE_SETUP: /* set the muxes and let them settle */ X#if NUMCHANNELS > NUMIMUXES /* only do this if using external muxes */ X outb (iobase+STATUS, X EMUXMAKE(info->curchan) | IMUX(info->curchan) | IEN); X info->state = STATE_CONVERT; X break; X#endif X case STATE_CONVERT: X outb (iobase+STATUS, X EMUXMAKE(info->curchan) | IMUX(info->curchan) | IEN); X outb (iobase+ADHIGH, 0); /* start the conversion */ X info->state = STATE_READ; X break; X } X else /* this is kind of like an idle mode */ X { X outb (iobase+STATUS, IEN); /* no list keep getting interrupts though */ X /* since we have no open channels spin clock rate down to X * minimum to save interrupt overhead */ X outb (iobase+CNTRCNTRL, LD2MODE4); /* counter 2 to mode 4 strobe */ X outb (iobase+CNTR2, 0xff); /* longest period we can generate */ X outb (iobase+CNTR2, 0xff); X return; X } X outb (iobase+CNTRCNTRL, LD2MODE4); /* counter 2 to mode 4 strobe */ X outb (iobase+CNTR2, info->perlo); /* low part of the period count */ X outb (iobase+CNTR2, info->perhi); /* high part of the period count */ X} X X X/* this will put an entry in fifo, returns 1 if the first item in X * fifo was wiped (overflow) or 0 if everything went fine */ Xstatic int __inline putfifo (talog_chan *pchan, u_short fifoent) X{ X pchan->fifo[pchan->fifoend] = fifoent; /* insert the entry in */ X pchan->fifoend++; /* one more in fifo */ X if (pchan->fifoend == FIFOSIZE) pchan->fifoend = 0; /* wrap around */ X /* note: I did intend to write over the oldest entry on overflow */ X if (pchan->fifosize == FIFOSIZE) /* overflowing state already */ X { X pchan->fifostart++; X if (pchan->fifostart == FIFOSIZE) pchan->fifostart = 0; X return 1; /* we overflowed */ X } X pchan->fifosize++; /* actually one bigger, else same size */ X return 0; /* went in just fine */ X} X X X/* Driver initialization */ Xstatic void alog_drvinit (void *unused) X{ X dev_t dev; /* Type for holding device major/minor numbers (int) */ X X if (!alog_devsw_installed) X { X dev = makedev (CDEV_MAJOR, 0); /* description of device major */ X cdevsw_add (&dev, &alog_cdevsw, NULL); /* put driver in cdev table */ X alog_devsw_installed=1; X } X} X X/* System initialization call instance */ X XSYSINIT (alogdev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR, X alog_drvinit,NULL); X X#endif END-of-alog.c echo x - alogio.h sed 's/^X//' >alogio.h << 'END-of-alogio.h' X/* X * Copyright (c) 1997 Jamil J. Weatherbee X * All rights reserved. X * X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer X * in this position and unchanged. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. The name of the author may not be used to endorse or promote products X * derived from this software without specific prior written permission X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X * X * Industrial Computer Source model AIO8-P X * 128 channel MUX capability via daisy chained AT-16P units X * alogio.h, definitions for alog ioctl(), last revised November 19 1997 X * See http://www.indcompsrc.com/products/data/html/aio8g-p.html X * http://www.indcompsrc.com/products/data/html/at16-p.html X * X * Written by: Jamil J. Weatherbee X * X */ X X#ifndef _SYS_ALOGIO_H_ X#define _SYS_ALOGIO_H_ X X#ifndef KERNEL X#include X#endif X#include X X/* Note: By default A/D conversions are started when a channel is open */ X X/* Halt clocked A/D conversion on an open channel */ X#define AD_STOP _IO('A', 100) X/* Restart clocked A/D conversion on an open channel */ X#define AD_START _IO('A', 101) X/* Get the number of entries the fifo for this channel will hold */ X#define AD_FIFOSIZE_GET _IOR('A', 102, int) X/* Set the minimum number of entries a fifo must contain before it X * notifies a select() or read() that is waiting for it to fill */ X#define AD_FIFO_TRIGGER_SET _IOW('A', 103, int) X/* This gets the the fifo trigger setting */ X#define AD_FIFO_TRIGGER_GET _IOR('A', 104, int) X X#endif END-of-alogio.h exit >Audit-Trail: >Unformatted: From owner-freebsd-bugs Wed Nov 19 22:50:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA14811 for bugs-outgoing; Wed, 19 Nov 1997 22:50:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA14785; Wed, 19 Nov 1997 22:50:02 -0800 (PST) (envelope-from gnats) Date: Wed, 19 Nov 1997 22:50:02 -0800 (PST) Message-Id: <199711200650.WAA14785@hub.freebsd.org> To: freebsd-bugs Cc: From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: kern/5063: Kernel Panic - seems to be always associated with a Cron job running Reply-To: j@uriah.heep.sax.de (J Wunsch) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/5063; it has been noted by GNATS. From: j@uriah.heep.sax.de (J Wunsch) To: srinivas@hybrid.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: kern/5063: Kernel Panic - seems to be always associated with a Cron job running Date: Wed, 19 Nov 1997 18:41:36 +0100 As srinivas@hybrid.com wrote: > >Description: > We have a freeBSD 2.0 crashing in the interval of once a week at a > customer site. The last crash indicated that it happenned in our > driver interrupt routines. But the interesting thing is that on two > occasions it happneed while the weekly cron job was running at the > same time aand the last incident happenned when the atrun job was > the current process. Sorry, but without any further information about what panic, a kernel stack trace etc., there's no chance to even remotely guess what your problem might be. Btw., if this is really FreeBSD 2.*0*, then please update it within a second. This release was considered to be rather beta-quality only, so it's very likely that your problem has been fixed for ages now. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Wed Nov 19 22:50:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA14827 for bugs-outgoing; Wed, 19 Nov 1997 22:50:08 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA14801; Wed, 19 Nov 1997 22:50:04 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 19 Nov 1997 22:50:04 -0800 (PST) Resent-Message-Id: <199711200650.WAA14801@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, mburgett@awen.com Received: (from nobody@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA14355; Wed, 19 Nov 1997 22:47:04 -0800 (PST) (envelope-from nobody) Message-Id: <199711200647.WAA14355@hub.freebsd.org> Date: Wed, 19 Nov 1997 22:47:04 -0800 (PST) From: mburgett@awen.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/5100: Repeated nfs mounts succeed, creating multiple instances in 'df' ; umount -ft nfs doesn't succeed if network is down Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5100 >Category: bin >Synopsis: Repeated nfs mounts succeed, creating multiple instances in 'df' ; umount -ft nfs doesn't succeed if network is down >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 19 22:50:03 PST 1997 >Last-Modified: >Originator: Mike Burgett >Organization: None >Release: 2.2-stable (~15 Nov 97) >Environment: FreeBSD dragon.awen.com 2.2.5-STABLE FreeBSD 2.2.5-STABLE #0: Sat Nov 15 22:02:21 PST 1997 mburgett@dragon.awen.com:/usr/src/sys/compile/DRAGON i386 FreeBSD draco.awen.com 2.2.5-STABLE FreeBSD 2.2.5-STABLE #0: Tue Nov 18 21:15:53 PST 1997 mburgett@dragon.awen.com:/usr/src/sys/compile/MOBILE i386 >Description: mount seems happy to repeatedly mount nfs partitions, even after they've already been mounted. It gets really interesting when umounting, since you need to umount the same number of times you mounted, to get rid of all entries. Especially interesting is the fact that the mounts are indeed good, after umounting the first time... Shouldn't mount_nfs be returning an error if the requested mount is aready in place (like mounting local filesystems do) and refuse to create the second entry in the table? Conversely, umount -ft nfs won't succeed if the network is down ( error returned is 'nfs send error 50' ) if the network is down. When the network has disappeared, umount_nfs should probably go ahead and tear down the mount points quietly, if requested. I've marked this 'serious', because I believe it is, for laptop use. In order to be able to script nfs mounts/umounts cleanly in pccard.conf this needs to work somewhat as described, since the pcmcia card being removed is what triggers the remove scripts, which is the first logical chance the system gets to remove the nfs mount points, unless a user would be required to run a script before removing the card, therefore defeating some of the intent behind the pccard.conf script lines. >How-To-Repeat: # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0a 49231 28459 16834 63% / /dev/wd0s1f 1076975 312816 678001 32% /usr /dev/wd0s1e 49231 2497 42796 6% /var procfs 4 4 0 100% /proc dragon:/usr/home 1677668 644385 899070 42% /usr/home dragon:/usr/src 1677668 644385 899070 42% /usr/src dragon:/export 996755 276783 640232 30% /export dragon:/export/obj 996755 276783 640232 30% /usr/obj # # mount -vat nfs dragon:/usr/home on /usr/home dragon:/usr/src on /usr/src dragon:/export on /export dragon:/export/obj on /usr/obj # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0a 49231 28459 16834 63% / /dev/wd0s1f 1076975 312816 678001 32% /usr /dev/wd0s1e 49231 2497 42796 6% /var procfs 4 4 0 100% /proc dragon:/usr/home 1677668 644385 899070 42% /usr/home dragon:/usr/src 1677668 644385 899070 42% /usr/src dragon:/export 996755 276783 640232 30% /export dragon:/export/obj 996755 276783 640232 30% /usr/obj dragon:/usr/home 1677668 644385 899070 42% /usr/home dragon:/usr/src 1677668 644385 899070 42% /usr/src dragon:/export 996755 276783 640232 30% /export dragon:/export/obj 996755 276783 640232 30% /usr/obj # ls /export bench majorcool mmx_stuff buildworld.log makeworld.diff obj cachechk makeworld.diff1 test cpucheck makeworld.diff2 testit cyberian makeworld.log testit.c dns makeworld.log.1 testit.s fiftp makeworld.log.2 tmp ftp makeworld.log.master www lost+found makeworld.log.prev m4test makeworld.manual.log # umount -vat nfs /export/obj: unmount from /usr/obj /export: unmount from /export /usr/src: unmount from /usr/src /usr/home: unmount from /usr/home # ls /export bench majorcool mmx_stuff buildworld.log makeworld.diff obj cachechk makeworld.diff1 test cpucheck makeworld.diff2 testit cyberian makeworld.log testit.c dns makeworld.log.1 testit.s fiftp makeworld.log.2 tmp ftp makeworld.log.master www lost+found makeworld.log.prev m4test makeworld.manual.log # umount -vat nfs /export/obj: unmount from /usr/obj /export: unmount from /export /usr/src: unmount from /usr/src /usr/home: unmount from /usr/home umount: /usr/home: Device busy # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0a 49231 28459 16834 63% / /dev/wd0s1f 1076975 312816 678001 32% /usr /dev/wd0s1e 49231 2497 42796 6% /var procfs 4 4 0 100% /proc dragon:/usr/home 1677668 644385 899070 42% /usr/home # ls /export # >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 00:50:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA21810 for bugs-outgoing; Thu, 20 Nov 1997 00:50:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA21804; Thu, 20 Nov 1997 00:50:02 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 00:50:02 -0800 (PST) Resent-Message-Id: <199711200850.AAA21804@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, vasim@uddias.diaspro.com Received: from uddias.diaspro.com (uddias.diaspro.com [194.84.211.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA21645 for ; Thu, 20 Nov 1997 00:47:18 -0800 (PST) (envelope-from vasim@uddias.diaspro.com) Received: (from vasim@localhost) by uddias.diaspro.com (8.8.7/8.8.7) id NAA24914; Thu, 20 Nov 1997 13:47:02 +0500 (ES) Message-Id: <199711200847.NAA24914@uddias.diaspro.com> Date: Thu, 20 Nov 1997 13:47:02 +0500 (ES) From: Vasim Valejev Reply-To: vasim@uddias.diaspro.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/5101: make release use vn0 device (default device for swap-file) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5101 >Category: misc >Synopsis: make release use vn0 device (default device for swap-file) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 00:50:01 PST 1997 >Last-Modified: >Originator: Vasim Valejev >Organization: DiasPro >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD-3.0 CURRENT swap file on vn0b (line 'swap="/var/cache/swap"' in /etc/rc.conf) >Description: I builds my own release FreeBSD-3.0 CURRENT with 'make release' from /usr/src/release . It uses /dev/vn0c in build process and crashes my system (/etc/rc uses same device for add swap-file) :( . >How-To-Repeat: turn on swap-file in /etc/rc.conf and try make release >Fix: Change 'vn0c' to 'vn1c' in /usr/src/release/Makefile ? >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 01:00:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA22462 for bugs-outgoing; Thu, 20 Nov 1997 01:00:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA22439; Thu, 20 Nov 1997 01:00:01 -0800 (PST) (envelope-from gnats) Date: Thu, 20 Nov 1997 01:00:01 -0800 (PST) Message-Id: <199711200900.BAA22439@hub.freebsd.org> To: freebsd-bugs Cc: From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: bin/5100: Repeated nfs mounts succeed, creating multiple instances in 'df' ; umount -ft nfs doesn't succeed if network is down Reply-To: j@uriah.heep.sax.de (J Wunsch) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/5100; it has been noted by GNATS. From: j@uriah.heep.sax.de (J Wunsch) To: mburgett@awen.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/5100: Repeated nfs mounts succeed, creating multiple instances in 'df' ; umount -ft nfs doesn't succeed if network is down Date: Thu, 20 Nov 1997 09:46:55 +0100 As mburgett@awen.com wrote: > ... Shouldn't mount_nfs be > returning an error if the requested mount is aready in place (like > mounting local filesystems do) and refuse to create the second entry in > the table? No, all 4.4BSD mounts can be stacked on the same mountpoint. UFS mounts only don't succeed in this since the resource (partition) is busy, and cannot be mounted again anywhere else. This is not the case for MFS mounts, or mounts of other (non-device) resources. mount -a should, however, be modified to not blindly mount something that's already mounted. This is indeed a bug. I'm not sure whether there's already an existing PR for it, but i think so. You apparently didn't bother to check the open PRs either, did you? :-) > Conversely, umount -ft nfs won't succeed if the network is down ( error > returned is 'nfs send error 50' ) if the network is down. There's an open PR for it. Our NFS maintainer is, unfortunately, out to lunch. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-bugs Thu Nov 20 02:20:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA26765 for bugs-outgoing; Thu, 20 Nov 1997 02:20:08 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA26723; Thu, 20 Nov 1997 02:20:03 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 02:20:03 -0800 (PST) Resent-Message-Id: <199711201020.CAA26723@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dk@farm.org Received: from nirvana.genesyslab.com (nirvana.genesyslab.com [204.94.142.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA26615 for ; Thu, 20 Nov 1997 02:18:55 -0800 (PST) (envelope-from dk@dao.genesyslab.com) Received: from dao.genesyslab.com (Dao.genesyslab.com [204.94.142.146]) by nirvana.genesyslab.com (Guinness/Extra Stout) with ESMTP id CAA23227 for ; Thu, 20 Nov 1997 02:18:48 -0800 (PST) Received: (from dk@localhost) by dao.genesyslab.com (8.8.5/8.7.3) id CAA20081; Thu, 20 Nov 1997 02:18:49 -0800 (PST) Message-Id: <199711201018.CAA20081@dao.genesyslab.com> Date: Thu, 20 Nov 1997 02:18:49 -0800 (PST) From: dk@farm.org Reply-To: dk@farm.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5102: we can crash netapp by weird mount options Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5102 >Category: kern >Synopsis: freebsd NFS client with obscure mount options crash netapp server >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 02:20:01 PST 1997 >Last-Modified: >Originator: Dmitry Kohmanyuk >Organization: FARM Computing Association >Release: FreeBSD 2.2-STABLE i386 >Environment: I use 2.2-stable with NFS in kernel. the same bug should exist in 3.0 (the code fragment didn't change). >Description: quote mail message: <<< this is only relevant to those using NetApp NFS file servers. background: there are 2 versions of NFS in town, v2 and v3. In v3, one of things introduced was ability to read names of files in directory with stat(2)ing them at the same time; the procedure name is readdirplus. It can be used to speed up programs like ls(1). Apparently, NFS code in FreeBSD 2.2 (derived from 4.4BSD code, so perhaps this applies to all of modern BSD systems here) allow client to specify this in mount options without using NFS v3. This meaningless set of options panics NetApp file server. >>> >How-To-Repeat: fstab entry: filer:/dir /nfs/dir nfs noauto,rw,nodev,-2,-l,-i,-b 0 0 of those, the combination of -2 and -l (ell) is important. of course, this is not our problem that the server crashes. the problem is that the client sends illegal requests using NFS v2. using the same mount flags with SunOS 4.1.x results in no files visible in mounted directory. >Fix: tested on 2.2, should apply on -current too (this code fragment didn't change) --- nfs_bio.c.ok Wed Nov 5 20:11:17 1997 +++ nfs_bio.c Wed Nov 5 20:14:06 1997 @@ -1031,6 +1031,8 @@ case VDIR: nfsstats.readdir_bios++; uiop->uio_offset = ((u_quad_t)bp->b_lblkno) * NFS_DIRBLKSIZ; + if (!(nmp->nm_flag & NFSMNT_NFSV3)) + nmp->nm_flag &= ~NFSMNT_RDIRPLUS; /* dk@farm.org */ if (nmp->nm_flag & NFSMNT_RDIRPLUS) { error = nfs_readdirplusrpc(vp, uiop, cr); if (error == NFSERR_NOTSUPP) >Audit-Trail: >Unformatted: Dmitry Kohmanyuk From owner-freebsd-bugs Thu Nov 20 02:42:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA27976 for bugs-outgoing; Thu, 20 Nov 1997 02:42:17 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA27970 for ; Thu, 20 Nov 1997 02:42:14 -0800 (PST) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.6.9) id VAA03206; Thu, 20 Nov 1997 21:38:20 +1100 Date: Thu, 20 Nov 1997 21:38:20 +1100 From: Bruce Evans Message-Id: <199711201038.VAA03206@godzilla.zeta.org.au> To: freebsd-bugs@hub.freebsd.org, j@uriah.heep.sax.de Subject: Re: bin/5100: Repeated nfs mounts succeed, creating multiple instances in 'df' ; umount -ft nfs doesn't succeed if network is down Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > mount -a should, however, be modified to not blindly mount something > that's already mounted. This is indeed a bug. I'm not sure whether > there's already an existing PR for it, but i think so. You apparently > didn't bother to check the open PRs either, did you? :-) This seems to be fixed in -current: RCS file: /home/ncvs/src/sbin/mount/mount.c ... --- revision 1.19 date: 1997/08/24 21:02:49; author: steve; state: Exp; lines: +67 -17 Try to avoid mounting filesystems multiple times. Also while I'm here do some -Wall cleaning. PR: kern/1839 Reviewed and corrected by: joerg --- PR prematurely closed by:-) mpp Needs memory upgrade:-) joerg Bruce From owner-freebsd-bugs Thu Nov 20 04:40:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA02345 for bugs-outgoing; Thu, 20 Nov 1997 04:40:03 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA02339; Thu, 20 Nov 1997 04:40:01 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 04:40:01 -0800 (PST) Resent-Message-Id: <199711201240.EAA02339@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dillon@best.net Received: from flea.best.net (root@flea.best.net [206.184.139.131]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA02062 for ; Thu, 20 Nov 1997 04:32:08 -0800 (PST) (envelope-from dillon@flea.best.net) Received: (from dillon@localhost) by flea.best.net (8.8.7/8.7.3) id EAA01449; Thu, 20 Nov 1997 04:31:21 -0800 (PST) Message-Id: <199711201231.EAA01449@flea.best.net> Date: Thu, 20 Nov 1997 04:31:21 -0800 (PST) From: Matt Dillon Reply-To: dillon@best.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5103: FreeBSD kernel lockup from spoofed TCP packet Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5103 >Category: kern >Synopsis: It appears to be possible to lockup a FreeBSD box with a spoofed TCP packet. Two of our shell machines were attacked tonight. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 04:40:01 PST 1997 >Last-Modified: >Originator: Matt Dillon >Organization: Best Internet Communications >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD 2.2.5 running on PPro 200's >Description: Two of our machines were locked up tonight by what looks like a spoofed TCP packet. The characteristics of the packet were that both the source and destination address were set to the machine's ethernet IP address, and the same tcp port was used for both source and destination. We were able to core both machines from the debugger. Both kernels were stuck in an endless ip_intr loop. It appeared that the tcp stack transmitted a packet which caused the higher level ip_intr to loop on tcp_input. An infinite loop ensued. >How-To-Repeat: Not sure. >Fix: not sure about this. I hacked our kernels to discard any packet where ti_src.s_addr == ti_dst.s_addr && ti_sport == ti_dport. I am hoping this will prevent the attack from looping the code. -Matt >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 05:36:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA04869 for bugs-outgoing; Thu, 20 Nov 1997 05:36:52 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from iskh122.haninge.kth.se (pwd@iskh122.haninge.kth.se [130.237.83.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA04863 for ; Thu, 20 Nov 1997 05:36:44 -0800 (PST) (envelope-from dev.random@dev.random.nu) From: dev.random@dev.random.nu Received: from localhost (random@localhost) by iskh122.haninge.kth.se (8.8.7/8.8.7) with SMTP id OAA23216 for ; Sun, 2 Nov 1997 14:35:04 +0100 (CET) (envelope-from dev.random@dev.random.nu) Date: Sun, 2 Nov 1997 14:35:04 +0100 (CET) X-Sender: random@iskh122.haninge.kth.se To: freebsd-bugs@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk subscribe dev.random@dev.random.nu From owner-freebsd-bugs Thu Nov 20 05:51:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA05773 for bugs-outgoing; Thu, 20 Nov 1997 05:51:25 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from norden1.com (norden1.com [192.153.35.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA05767 for ; Thu, 20 Nov 1997 05:51:21 -0800 (PST) (envelope-from hometeam@techpower.net) Received: from techpower.net (hometeam@techpower.net [206.244.73.241]) by norden1.com (8.8.8/8.8.8) with ESMTP id IAA02449 for ; Thu, 20 Nov 1997 08:52:22 -0500 (EST) Received: from localhost (hometeam@localhost) by techpower.net (8.8.8/8.8.5) with SMTP id IAA13840 for ; Thu, 20 Nov 1997 08:55:51 GMT Date: Thu, 20 Nov 1997 08:55:50 +0000 (GMT) From: homey To: freebsd-bugs@hub.freebsd.org Subject: subscribe Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk subscribe freebsd-bugs@hub.freebsd.org hometeam@techpower.net --We cannot all be masters, nor all masters Cannot be truly follow'd-- -----BEGIN PGP MESSAGE----- Version: 2.6.2 owEBqwBU/4kAlQMFADRCxNWhsddKSTR+6QEBelED/jzeC3btZfqSdIfrNoCgwUJJ iNQ33UQoMyJ2ygkfl72xP5J79yml/F4P73GnNaDVbaMOmOG2NNAi5ElE73wRh54U 17kH+n5XnYeqekV8T2TG2Q6ex3UotXPyZ1vvrCrSxapOz6a4hh0GQeA55rcwLy2W ROHwxfvaVsrX5iVOkRoerBFiC21lc3NhZ2UudHh0AAAAAA== =jCvF -----END PGP MESSAGE----- From owner-freebsd-bugs Thu Nov 20 07:10:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA10295 for bugs-outgoing; Thu, 20 Nov 1997 07:10:46 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from itp.ac.ru (itp.ac.ru [193.233.32.4]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA10266; Thu, 20 Nov 1997 07:10:33 -0800 (PST) (envelope-from ks@itp.ac.ru) Received: from speecart.chg.ru (speecart.chg.ru [193.233.46.2]) by itp.ac.ru (8.8.3/8.8.3) with SMTP id SAA25605; Thu, 20 Nov 1997 18:32:15 +0300 (MSK) Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 20 Nov 1996 17:54:02 +0300 (MSK) Organization: Landau Institute for Theoretical Physics From: "Sergey S. Kosyakov" To: freebsd-ports@freebsd.org, freebsd-bugs@freebsd.org, freebsd-hackers@freebsd.org Subject: Is gmake so buggy? Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi all! I'm trying to compile one packet (namely the last version of postgresql). The compilation needs gmake. The files tree have modification time = now (GMT + 3 + light saving time) and it seems to be that gmake do not undestand localtime - it tells that files have modification time in future. (May be I should establish some environmental variable for gmake?) I use FreeBSD-3.0-SNAP, computer's CMOS clock eq. localtime, timezone MSK PS. Please reply to: ks@itp.ac.ru (i'm subscribed freebsd-hardware only) --- ---------------------------------- Sergey Kosyakov Laboratory of Distributed Computing Department of High-Performance Computing and Applied Network Research Landau Institute for Theoretical Physics E-Mail: Sergey S. Kosyakov Date: 20-Nov-96 Time: 17:54:02 ---------------------------------- From owner-freebsd-bugs Thu Nov 20 09:40:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA20642 for bugs-outgoing; Thu, 20 Nov 1997 09:40:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA20623; Thu, 20 Nov 1997 09:40:02 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 09:40:02 -0800 (PST) Resent-Message-Id: <199711201740.JAA20623@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, jthom@xnet.com Received: (from nobody@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA20111; Thu, 20 Nov 1997 09:31:16 -0800 (PST) (envelope-from nobody) Message-Id: <199711201731.JAA20111@hub.freebsd.org> Date: Thu, 20 Nov 1997 09:31:16 -0800 (PST) From: jthom@xnet.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/5105: mount_cd9660 or mount -t cd9660 fails to mount Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5105 >Category: bin >Synopsis: mount_cd9660 or mount -t cd9660 fails to mount >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 09:40:01 PST 1997 >Last-Modified: >Originator: John Thomlinson >Organization: >Release: 2.2.2-RELEASE >Environment: FreeBSD hera.tekdoc.com 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Wed Sep 3 11:03:51 CDT 1997 root@hera.tekdoc.com:/usr/src/sys/compile/KERNEL-2.2.2 i386 >Description: CD disk fails to mount. command line: mount_cd9660 /dev/mcd0a /cdrom (system error output?): mcd0: timeout read data mcd0: retrying mcd0: timeout read data mcd0: retrying mcd0: timeout read data mcd0: retrying mcd0: timeout read data mcd0: retrying mcd0: timeout read data mcd0: retrying mcd0: timeout read data command line result returned: mount_cd9660: /dev/mcd0a: Input/output error This is the only CD I have encountered (so far ;) ) that does not mount. It mounts OK on a Debian Linux 2.0.29 box. Other CDs mount on FBSD 2.2.2 OK. I have built the kernel only once. The CD ROM setup info from dmesg is: mcd0: type Mitsumi LU006S, version info: M 15 mcd0 at 0x634-0x637 irq 15 on isa Interestingly I cannot redirect the output from the command. Not with "tee". Not with 2>1&>filename. But, perhaps I should not be able to redirect? The above listings were obtained by cut & paste. Would it be helpful for me to email a dd output from the start of the CD? I could use my Debian box to get this. However, I am unfamiliar with CD filestructures and do not know how much to include. I have checked PRs: kern/4735, kern/750, bin/4564. The latest file in /usr/src/sys/isofs/cd9660 is iso.h dated May 7, 1997; filesize 10624 bytes. /lkm/cd9660_mod.o is dated May 20, 1997 If I can help in any way, please email. Best Regards, JohnT >How-To-Repeat: Any invocation of mount_cd9660 or mount -t cd9660 produces the same result. Attempting "mount -o -s=0 -t cd9660 /dev/mcd0a /cdrom" results in "cd9660: illegal option -s". Attempting to mount /dev/mcd0c, the raw device, produces the same results. >Fix: None. :( >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 12:00:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02004 for bugs-outgoing; Thu, 20 Nov 1997 12:00:09 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA01979; Thu, 20 Nov 1997 12:00:02 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 12:00:02 -0800 (PST) Resent-Message-Id: <199711202000.MAA01979@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dillon@best.net Received: from flea.best.net (root@flea.best.net [206.184.139.131]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA01512 for ; Thu, 20 Nov 1997 11:54:14 -0800 (PST) (envelope-from dillon@flea.best.net) Received: (from dillon@localhost) by flea.best.net (8.8.7/8.7.3) id LAA04207; Thu, 20 Nov 1997 11:53:34 -0800 (PST) Message-Id: <199711201953.LAA04207@flea.best.net> Date: Thu, 20 Nov 1997 11:53:34 -0800 (PST) From: Matt Dillon Reply-To: dillon@best.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5108: Kernel panic in pmap_release during wait4 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5108 >Category: kern >Synopsis: pmap_release panics with 'freeing held page table page' >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 12:00:01 PST 1997 >Last-Modified: >Originator: Matt Dillon >Organization: Best Internet Communications >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD 2.2.5 on PPro 200, medium to heavily loaded systems >Description: We got a kernel panic 'pmap_release: freeing held page table page'. We got a core. The backtrace showed: ... #7 0xf01be634 in trap (frame={tf_es = 0x10, tf_ds = 0x10, tf_edi = 0xf97cc000, tf_esi = 0xf01bb38a, tf_ebp = 0xefbffe94, tf_isp = 0xefbffe78, tf_ebx = 0x100, tf_edx = 0xf01b5051, tf_ecx = 0x3f9, tf_eax = 0x12, tf_trapno = 0x3, tf_err = 0x0, tf_eip = 0xf01b5089, tf_cs = 0x8, tf_eflags = 0x256, tf_esp = 0xf01b5041, tf_ss = 0xf01131f8}) at ../../i386/i386/trap.c:403 #8 0xf01b5089 in Debugger (msg=0xf01131f8 "panic") at ../../i386/i386/db_interface.c:254 #9 0xf011325a in panic ( fmt=0xf01bb38a "pmap_release: freeing held page table page") at ../../kern/kern_shutdown.c:388 #10 0xf01bb455 in pmap_release_free_page (pmap=0xf2d3d864, p=0xf0aead08) at ../../i386/i386/pmap.c:1072 #11 0xf01bb69f in pmap_release (pmap=0xf2d3d864) at ../../i386/i386/pmap.c:1260 #12 0xf01a6708 in vmspace_free (vm=0xf2d3d800) at ../../vm/vm_map.c:262 #13 0xf01bf33d in cpu_wait (p=0xf288b800) at ../../i386/i386/vm_machdep.c:650 #14 0xf010cef5 in wait1 (q=0xf2392000, uap=0xefbfff94, retval=0xefbfff84, compat=0x0) at ../../kern/kern_exit.c:460 #15 0xf010cd23 in wait4 (p=0xf2392000, uap=0xefbfff94, retval=0xefbfff84) at ../../kern/kern_exit.c:357 #16 0xf01bf077 in syscall (frame={tf_es = 0x27, tf_ds = 0x27, tf_edi = 0xefbfdd8c, tf_esi = 0xa168, tf_ebp = 0xefbfdca8, tf_isp = 0xefbfffe4, tf_ebx = 0x20084060, tf_edx = 0x13, tf_ecx = 0x0, tf_eax = 0x7, tf_trapno = 0x7, tf_err = 0x7, tf_eip = 0x2004e0a1, tf_cs = 0x1f, tf_eflags = 0x216, tf_esp = 0xefbfdc90, tf_ss = 0x27}) at ../../i386/i386/trap.c:890 It appears that inetd was trying to do a wait4 on a telnetd sub process when the crash occured. There were around 40 telnetd processes running at the time. At a guess I would say vmspace_free has a race with other telnetd's that might be exiting orforking at the same time. I dunno. >How-To-Repeat: no idea. >Fix: no idea. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 12:00:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02019 for bugs-outgoing; Thu, 20 Nov 1997 12:00:16 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA01996; Thu, 20 Nov 1997 12:00:09 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 12:00:09 -0800 (PST) Resent-Message-Id: <199711202000.MAA01996@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dchapes@golden.net Received: from ymris.ddm.on.ca (cisco7-156.cas.golden.net [207.216.76.156]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA01842 for ; Thu, 20 Nov 1997 11:58:29 -0800 (PST) (envelope-from dchapes@golden.net) Received: from squigy.ddm.on.ca (squigy.ddm.on.ca [209.47.139.138]) by ymris.ddm.on.ca (8.8.7/8.8.7) with ESMTP id OAA04959 for ; Thu, 20 Nov 1997 14:58:19 -0500 (EST) Received: (from dchapes@localhost) by squigy.ddm.on.ca (8.8.7/8.8.7) id OAA02139; Thu, 20 Nov 1997 14:58:18 -0500 (EST) Message-Id: <199711201958.OAA02139@squigy.ddm.on.ca> Date: Thu, 20 Nov 1997 14:58:18 -0500 (EST) From: dchapes@golden.net Reply-To: dchapes@golden.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5109: patch to ftpd, new option to limit number of ftpd sessions Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5109 >Category: bin >Synopsis: patch to ftpd, new option to limit number of ftpd sessions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 12:00:04 PST 1997 >Last-Modified: >Originator: Dave Chapeskie >Organization: DDM Consulting >Release: FreeBSD 2.2-STABLE i386 >Environment: >Description: FreeBSD's ftpd(8) has no way to limit the number of ftp clients allowed at one time so I spent a few minutes to add and test a new "-C maxchildren" option to ftpd to do this (when used with the existing -D option). It would be nice if someone with commit privileges could commit this. The following patch is relative to FreeBSD-2.2.5 (actually 2.2-STABLE shortly after 2.2.5) but should apply to -current as well. >How-To-Repeat: >Fix: Index: ftpd.8 =================================================================== RCS file: /cvs/FreeBSD/src/libexec/ftpd/ftpd.8,v retrieving revision 1.9.2.8 diff -u -r1.9.2.8 ftpd.8 --- ftpd.8 1997/05/10 19:48:12 1.9.2.8 +++ ftpd.8 1997/11/20 19:18:13 @@ -50,6 +50,7 @@ .Op Fl t Ar timeout .Op Fl a Ar address .Op Fl p Ar file +.Op Fl C Ar maxchildren .Sh DESCRIPTION .Nm Ftpd is the @@ -137,6 +138,16 @@ .Ar file . .It Fl A Allow only anonymous ftp access +.It Fl C +When +.Fl D +is specified, limit the number of concurrent ftp sessions to +.Ar maxchildren . +If the file +.Pa /etc/ftptoomany +exists, +.Nm +displays it before exiting. .El .Pp The file @@ -429,6 +440,8 @@ Welcome notice. .It Pa /etc/ftpmotd Welcome notice after login. +.It Pa /etc/ftptoomany +Displayed when there are too many ftp sessions. .It Pa /etc/nologin Displayed and access refused. .It Pa /var/log/ftpd Index: ftpd.c =================================================================== RCS file: /cvs/FreeBSD/src/libexec/ftpd/ftpd.c,v retrieving revision 1.25.2.11 diff -u -r1.25.2.11 ftpd.c --- ftpd.c 1997/09/05 12:45:29 1.25.2.11 +++ ftpd.c 1997/11/20 19:28:59 @@ -128,6 +128,8 @@ int debug; int timeout = 900; /* timeout after 15 minutes of inactivity */ int maxtimeout = 7200;/* don't allow idle time to be set beyond 2 hours */ +int maxchildren = 0; +int children = 0; int logging; int restricted_data_ports = 1; int paranoid = 1; /* be extra careful about security */ @@ -287,7 +289,7 @@ bind_address.s_addr = htonl(INADDR_ANY); - while ((ch = getopt(argc, argv, "AdlDSURt:T:u:va:p:")) != -1) { + while ((ch = getopt(argc, argv, "AdlDSURt:T:u:va:p:C:")) != -1) { switch (ch) { case 'D': daemon_mode++; @@ -353,6 +355,10 @@ debug = 1; break; + case 'C': + maxchildren = atoi(optarg); + break; + default: warnx("unknown flag -%c ignored", optopt); break; @@ -441,6 +447,7 @@ while (1) { addrlen = sizeof(his_addr); fd = accept(ctl_sock, (struct sockaddr *)&his_addr, &addrlen); + children++; if (fork() == 0) { /* child */ (void) dup2(fd, 0); @@ -518,6 +525,23 @@ reply(530, "System not available."); exit(0); } + + /* If there are too many ftpd's */ + if (maxchildren && children > maxchildren) { + if ((fd = fopen(_PATH_FTPTOOMANY,"r")) != NULL) { + while (fgets(line, sizeof(line), fd) != NULL) { + if ((cp = strchr(line, '\n')) != NULL) + *cp = '\0'; + lreply(530, "%s", line); + } + (void) fflush(stdout); + (void) fclose(fd); + } else { + reply(530, "Too many ftp users, try again later."); + } + exit(0); + } + #ifdef VIRTUAL_HOSTING if ((fd = fopen(thishost->welcome, "r")) != NULL) { #else @@ -537,6 +561,14 @@ fatal("Ran out of memory."); (void) gethostname(hostname, MAXHOSTNAMELEN); #endif + if (daemon_mode) { + if (maxchildren) { + lreply(220, "There are currently %d users out of " + "%d possible.", children, maxchildren); + } else { + lreply(220, "There are currently %d users.", children); + } + } reply(220, "%s FTP server (%s) ready.", hostname, version); (void) setjmp(errcatch); for (;;) @@ -2222,7 +2254,9 @@ reapchild(signo) int signo; { - while (wait3(NULL, WNOHANG, NULL) > 0); + while (wait3(NULL, WNOHANG, NULL) > 0) { + children--; + } } #ifdef OLD_SETPROCTITLE Index: pathnames.h =================================================================== RCS file: /cvs/FreeBSD/src/libexec/ftpd/pathnames.h,v retrieving revision 1.6.2.2 diff -u -r1.6.2.2 pathnames.h --- pathnames.h 1997/04/29 12:55:33 1.6.2.2 +++ pathnames.h 1997/11/20 18:40:15 @@ -42,3 +42,4 @@ #define _PATH_FTPHOSTS "/etc/ftphosts" #define _PATH_FTPDSTATFILE "/var/log/ftpd" #define _PATH_LS "/bin/ls" +#define _PATH_FTPTOOMANY "/etc/ftptoomany" >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 12:10:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02926 for bugs-outgoing; Thu, 20 Nov 1997 12:10:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02913; Thu, 20 Nov 1997 12:10:02 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 12:10:02 -0800 (PST) Resent-Message-Id: <199711202010.MAA02913@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dillon@best.net Received: from flea.best.net (root@flea.best.net [206.184.139.131]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA02442 for ; Thu, 20 Nov 1997 12:06:19 -0800 (PST) (envelope-from dillon@flea.best.net) Received: (from dillon@localhost) by flea.best.net (8.8.7/8.7.3) id MAA05616; Thu, 20 Nov 1997 12:06:06 -0800 (PST) Message-Id: <199711202006.MAA05616@flea.best.net> Date: Thu, 20 Nov 1997 12:06:06 -0800 (PST) From: Matt Dillon Reply-To: dillon@best.net To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5110: kernel page fault / crash in pmap_testbit Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5110 >Category: kern >Synopsis: kernel crash & core in pmap_testbit during pageout >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 12:10:01 PST 1997 >Last-Modified: >Originator: Matt Dillon >Organization: Best Internet Communications >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD 2.2.5 running on PPro 200's >Description: We had a kernel panic in the pagedaemon as shown below ... #12 0xf01014e2 in db_command_loop () at ../../ddb/db_command.c:462 #13 0xf0103c28 in db_trap (type=0xc, code=0x0) at ../../ddb/db_trap.c:73 #14 0xf01b4e8b in kdb_trap (type=0xc, code=0x0, regs=0xefbffec4) at ../../i386/i386/db_interface.c:126 #15 0xf01bedbf in trap_fatal (frame=0xefbffec4) at ../../i386/i386/trap.c:738 #16 0xf01be8b8 in trap_pfault (frame=0xefbffec4, usermode=0x0) at ../../i386/i386/trap.c:653 #17 0xf01be557 in trap (frame={tf_es = 0xf09a0010, tf_ds = 0xf0aa0010, tf_edi = 0x7fffffff, tf_esi = 0x80000000, tf_ebp = 0xefbfff0c, tf_isp = 0xefbffeec, tf_ebx = 0xf0c2c914, tf_edx = 0xf0a14120, tf_ecx = 0x40, tf_eax = 0x0, tf_trapno = 0xc, tf_err = 0x0, tf_eip = 0xf01bcde1, tf_cs = 0x8, tf_eflags = 0x10296, tf_esp = 0xf0acc444, tf_ss = 0xf01e63e4}) at ../../i386/i386/trap.c:311 #18 0xf01bcde1 in pmap_testbit (pa=0x7016000, bit=0x40) at ../../i386/i386/pmap.c:2692 #19 0xf01bd191 in pmap_is_modified (pa=0x7016000) at ../../i386/i386/pmap.c:2908 #20 0xf01ad10d in vm_page_test_dirty (m=0xf0acc444) at ../../vm/vm_page.c:1262 #21 0xf01ae288 in vm_pageout_scan () at ../../vm/vm_pageout.c:644 #22 0xf01aeaf0 in vm_pageout () at ../../vm/vm_pageout.c:1013 #23 0xf010907a in kproc_start (udata=0xf01e3480) at ../../kern/init_main.c:244 #24 0xf0109018 in main (framep=0xefbfffb8) at ../../kern/init_main.c:194 Additional information: in frame #21 (kgdb) print m $3 = (struct vm_page *) 0xf0acc444 (kgdb) print *m $4 = { pageq = { tqe_next = 0xf0acc410, tqe_prev = 0xf0ab8c78 }, hashq = { tqe_next = 0x0, tqe_prev = 0xf0acc418 }, listq = { tqe_next = 0x0, tqe_prev = 0xf0acc420 }, object = 0xf2265280, pindex = 0x7, phys_addr = 0x7016000, queue = 0x81, flags = 0x24, pc = 0x16, wire_count = 0x0, hold_count = 0x0, act_count = 0x0, busy = 0x0, valid = 0xff, dirty = 0x0 } (kgdb) print *m->object $6 = { object_list = { tqe_next = 0xf2265400, tqe_prev = 0xf2266800 }, cached_list = { tqe_next = 0x0, tqe_prev = 0x0 }, shadow_head = { tqh_first = 0xf28be280, tqh_last = 0xf2770518 }, shadow_list = { tqe_next = 0x0, tqe_prev = 0xf2265410 }, memq = { tqh_first = 0xf0acc478, tqh_last = 0xf0acc454 }, type = OBJT_SWAP, size = 0x9, ref_count = 0x8, shadow_count = 0x7, pg_color = 0x1f, flags = 0x180, paging_in_progress = 0x0, behavior = 0x0, resident_page_count = 0x9, paging_offset = 0x0000000000000000, backing_object = 0x0, backing_object_offset = 0x0000000000000000, last_read = 0x0, page_hint = 0xf0acc374, pager_object_list = { tqe_next = 0xf2266280, tqe_prev = 0xf22657e4 }, handle = 0x0, un_pager = { vnp = { vnp_size = 0x0000004800000002 }, devp = { devp_pglist = { tqh_first = 0x2, tqh_last = 0x48 } }, swp = { swp_nblocks = 0x2, swp_allocsize = 0x48, swp_blocks = 0xf29b4580, swp_poip = 0x0 } } } >How-To-Repeat: no idea >Fix: no idea >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 12:10:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02958 for bugs-outgoing; Thu, 20 Nov 1997 12:10:12 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02925; Thu, 20 Nov 1997 12:10:06 -0800 (PST) (envelope-from gnats) Date: Thu, 20 Nov 1997 12:10:06 -0800 (PST) Message-Id: <199711202010.MAA02925@hub.freebsd.org> To: freebsd-bugs Cc: From: Garrett Wollman Subject: kern/5103: FreeBSD kernel lockup from spoofed TCP packet Reply-To: Garrett Wollman Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/5103; it has been noted by GNATS. From: Garrett Wollman To: freebsd-gnats-submit@freebsd.org Cc: Subject: kern/5103: FreeBSD kernel lockup from spoofed TCP packet Date: Thu, 20 Nov 1997 15:08:52 -0500 (EST) < said: > not sure about this. I hacked our kernels to discard any packet > where ti_src.s_addr == ti_dst.s_addr && ti_sport == ti_dport. I > am hoping this will prevent the attack from looping the code. I added this quick hack to tcp_input.c in rev. 1.66, and changed the PR's state to `serious'. There is still an underlying bug, since self-connect not only should work, but once did. The same hack should be brought into -stable once it is verified to solve the problem (and it certainly should). -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick From owner-freebsd-bugs Thu Nov 20 13:20:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA08488 for bugs-outgoing; Thu, 20 Nov 1997 13:20:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA08428; Thu, 20 Nov 1997 13:20:02 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 13:20:02 -0800 (PST) Resent-Message-Id: <199711202120.NAA08428@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, jamil@trojanhorse.ml.org Received: from trojanhorse.ml.org (mdean.vip.best.com [206.86.94.101]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA08137 for ; Thu, 20 Nov 1997 13:16:19 -0800 (PST) (envelope-from jamil@trojanhorse.ml.org) Received: (from jamil@localhost) by trojanhorse.ml.org (8.8.8/8.8.5) id NAA00298; Thu, 20 Nov 1997 13:16:07 -0800 (PST) Message-Id: <199711202116.NAA00298@trojanhorse.ml.org> Date: Thu, 20 Nov 1997 13:16:07 -0800 (PST) From: jamil@trojanhorse.ml.org Reply-To: jamil@trojanhorse.ml.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5113: New Driver: Industrial Computer Source AIO-P (alog) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5113 >Category: kern >Synopsis: New Driver: Industrial Computer Source AIO8-P (alog) >Confidential: yes >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 13:20:00 PST 1997 >Last-Modified: >Originator: Jamil J. Weatherbee >Organization: >Release: FreeBSD 2.2.5-STABLE i386 >Environment: i386 FreeBSD, ISA Bus, AIO8-P Card, optionally AT16-P muxes >Description: Efficient Interrupt Driver 12-Bit Analog Data Acquisition on up to 128 channels, at aggregrate frequencies approaching 20,000 samples/sec for a cost of about 26 US dollars per channel. >How-To-Repeat: See environment section. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # alog.4 # alog.c # alogio.h # echo x - Makefile sed 's/^X//' >Makefile << 'END-of-Makefile' X# Make file to install the alog driver files in their proper places X Xinstall: X install -c -o root -g wheel -m 0644 alog.c /sys/i386/isa X install -c -o root -g bin -m 0644 alogio.h /sys/sys X install -c -o bin -g bin -m 0444 alogio.h /usr/include/sys X install -c -o bin -g bin -m 444 alog.4 /usr/share/man/man4/ X gzip -f /usr/share/man/man4/alog.4 X install -c -o bin -g bin -m 444 alog.4 /usr/share/man/man4/i386/ X gzip -f /usr/share/man/man4/i386/alog.4 END-of-Makefile echo x - alog.4 sed 's/^X//' >alog.4 << 'END-of-alog.4' X.\" X.\" Copyright (c) 1997 Jamil J. Weatherbee X.\" All rights reserved. X.\" X.\" X.\" Redistribution and use in source and binary forms, with or without X.\" modification, are permitted provided that the following conditions X.\" are met: X.\" 1. Redistributions of source code must retain the above copyright X.\" notice, this list of conditions and the following disclaimer X.\" in this position and unchanged. X.\" 2. Redistributions in binary form must reproduce the above copyright X.\" notice, this list of conditions and the following disclaimer in the X.\" documentation and/or other materials provided with the distribution. X.\" 3. The name of the author may not be used to endorse or promote products X.\" derived from this software without specific prior written permission X.\" X.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X.\" X.\" Industrial Computer Source model AIO8-P X.\" 8 channel, moderate speed analog to digital converter board with X.\" 128 channel MUX capability via daisy-chained AT-16P units X.\" alog.c, character device driver, last revised November 19 1997 X.\" See http://www.indcompsrc.com/products/data/html/aio8g-p.html X.\" X.\" Written by: Jamil J. Weatherbee X.\" X.\" X.Dd November 19, 1997 X.Dt ALOG 4 i386 X.Os FreeBSD X.Sh NAME X.Nm alog X.Nd XIndustrial Computer Source AIO8-P driver X.Sh SYNOPSIS X.Cd "device alog0 at isa? port 0x260 tty irq 5 vector alogintr" X.Sh DESCRIPTION XThis driver supports the Industrial Computer Source \fIAIO8-P 8-Channel X12-Bit Analog Input board\fP. X.Pp XThis board provides 8 12 bit, single-ended analog input ports. XThe driver also directly provides support for up to 8 daisy chained X\fIAT16-P Programmable Analog Multiplexers with 16 Differential Inputs\fP. XThis makes it possible to sample up to 128 differential channels with a single Xinterface board. XUse of at least one \fIAT16-P\fP is highly recommended as the \fIAIO8-P\fP Xoffers no signal conditioning options and only operates in a -5 to +5 Volt Xinput range. However, if you wish to use the \fIAIO8-P\fP standalone, Xinsert the following into your kernel X.Xr config 8 Xfile: X.Bd -literal -offset indent Xoptions ALOG_CHANNELS=8 X.Ed X.Pp XSelection of the input port is through the minor number: X.Pp X.Bd -literal -offset indent XThe 8 bit minor number format is UCCCCMMM, where X U: board unit (0-1) XCCCC: external multiplexer channel (0-15) (on AT-16P units) X MMM: internal multiplexer channel (0-7) (on AIO8-P card) X.Ed X.Pp X.Xr devfs 5 Xdevice node names are of the form: alog[0-1][a-p][0-7] X.Pp X.Sh IOCTL XThe following X.Xr ioctl 2 Xcalls apply to X.Nm Xdevices. Their declaration can be found in the header files X.Pa Xand X.Pa X.Bl -tag -width AD_MICRO_PERIOD_SET X.It Dv AD_MICRO_PERIOD_SET XTakes a pointer to a long argument specifying the number of microseconds Xbetween samples. Half of this is used as the external multiplexer Xsettling time and the other half as conversion time. X.It Dv AD_MICRO_PERIOD_GET XTakes a pointer to a long argument and returns the current number of Xmicroseconds between samples. X.It Dv AD_NCHANS_GET XTakes a pointer to an integer and returns the number of channels the board Xsupports. This should be 8 for a standalone \fIAIO8-P\fP or 128 for any Xother setup. X.It Dv AD_FIFOSIZE_GET XTakes a pointer to an integer and returns the size of the fifo in Xentries. The compile time option ALOG_FIFOSIZE is by default set to 64. X.It Dv AD_FIFO_TRIGGER_GET XTakes a pointer to an integer and returns the minimum number of entries a Xfifo must contain to cause X.Xr select 2 Xto return. This by default is set to 1. X.It Dv AD_FIFO_TRIGGER_SET XTakes a pointer to an integer specifying the minimum number of entries a Xfifo must contain to cause X.Xr select 2 Xto return. X.It Dv AD_START XStarts the clocked accumulation of sample values into a channel's driver fifo. XWhen a channel is first opened its software fifo is initialized in the Xstopped state. This is to prevent high sample clocks from overrunning the Xfifos before the user is ready to read from the channel. The driver Xautomatically performs an AD_START when the user issues the first read, Xexcept for channels opened with the O_NONBLOCK flag which must explicitly Xhave an AD_START issued. X.It Dv AD_STOP XStops the clocked accumulation of sample values into a channel's driver fifo. X.Sh BUGS XOn the \fIAIO8-P\fP, interrupt driven conversion (the only type Xsupported by the X.Nm Xdriver) is facilitated through 8253 timer #2. In order for interrrupts to Xbe generated you must connect line 6 to line 24 (counter 2 output to Xinterrupt input) and line 23 to line 29 (counter 2 gate to +5VDC). XThe design of the \fIAIO8-P\fP precludes the use of programmable Xgain control. X.Pp XUse the combination of non-blocking i/o, X.Xr select 2 Xand a custom fifo trigger Xwherever possible, especially with large numbers of open channels. XUsing this method, multichannel sample rates as high as 16,000 samples/sec Xhave been observed. X.Pp XSample rates lower than 32 Hz are not supported. X.Sh SEE ALSO X.Bd -literal Xhttp://www.indcompsrc.com/products/data/html/aio8g-p.html Xhttp://www.indcompsrc.com/products/data/html/at16-p.html X.Ed X.Sh AUTHOR XJamil J. Weatherbee . END-of-alog.4 echo x - alog.c sed 's/^X//' >alog.c << 'END-of-alog.c' X/* X * Copyright (c) 1997 Jamil J. Weatherbee X * All rights reserved. X * X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer X * in this position and unchanged. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. The name of the author may not be used to endorse or promote products X * derived from this software without specific prior written permission X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X * X * Industrial Computer Source model AIO8-P X * 8 channel, moderate speed analog to digital converter board with X * 128 channel MUX capability via daisy chained AT-16P units X * alog.c, character device driver, last revised November 20 1997 X * See http://www.indcompsrc.com/products/data/html/aio8g-p.html X * http://www.indcompsrc.com/products/data/html/at16-p.html X * X * Written by: Jamil J. Weatherbee X * X */ X X X/* Include Files */ X X#include "alog.h" X#if NALOG > 0 X X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X X#ifdef DEVFS X#include X#endif X X/* Local Defines */ X X/* Tests have shown that increasing the fifo size X * beyond 64 entries for this particular piece of hardware is X * unproductive */ X X#ifdef ALOG_FIFOSIZE X#define FIFOSIZE ALOG_FIFOSIZE X#else X#define FIFOSIZE 64 X#endif X X#ifdef ALOG_FIFO_TRIGGER X#define DEFAULT_FIFO_TRIGGER ALOG_FIFO_TRIGGER X#else X#define DEFAULT_FIFO_TRIGGER 1 X#endif X X#ifdef ALOG_CHANNELS X#define NUMCHANNELS ALOG_CHANNELS X#else X#define NUMCHANNELS 128 X#endif X X#ifdef ALOG_TIMO X#define READTIMO ALOG_TIMO X#else X#define READTIMO (MAX_MICRO_PERIOD*NUMCHANNELS/500000*hz) X#endif X X#define CDEV_MAJOR 86 X#define NUMPORTS 8 X#define MAXUNITS 2 X#define NUMIMUXES 8 X X#define ADLOW 0x0 X#define ADHIGH 0x1 X#define STATUS 0x2 X#define CNTR0 0x4 X#define CNTR1 0x5 X#define CNTR2 0x6 X#define CNTRCNTRL 0x7 X X#define DEVFORMAT "alog%d%c%d" X#define CLOCK2FREQ 4.165 X#define MIN_MICRO_PERIOD 25 X#define MAX_MICRO_PERIOD (65535/CLOCK2FREQ*PRIMARY_STATES) X#define DEFAULT_MICRO_PERIOD MAX_MICRO_PERIOD X#define READMAXTRIG 0.75*FIFOSIZE X#define ALOGPRI PRIBIO X#define ALOGMSG "alogio" X X#define PRIMARY_STATES 2 /* Setup and conversion are clock tick consuming */ X#define STATE_SETUP 0 X#define STATE_CONVERT 1 X#define STATE_READ 2 X X/* Notes on interrupt driven A/D conversion: X * On the AIO8-P, interrupt driven conversion (the only type supported by this X * driver) is facilitated through 8253 timer #2. In order for interrrupts to X * be generated you must connect line 6 to line 24 (counter 2 output to X * interrupt input) and line 23 to line 29 (counter 2 gate to +5VDC). X * Due to the design of the AIO8-P this precludes the use of programmable X * gain control. X */ X X/* mode bits for the status register */ X X#define EOC 0x80 X#define IEN 0x08 X#define IMUXMASK 0x07 X#define EMUXMASK 0xf0 X X/* mode bits for counter controller */ X X#define LD2MODE4 0xb8 X X/* Minor allocations: X * UCCCCMMM X * U: board unit (0-1) X * CCCC: external multiplexer channel (0-15) (on AT-16P units) X * MMM: internal multiplexer channel (0-7) (on AIO8-P card) X */ X X#define UNIT(dev) ((minor(dev) & 0x80) >> 7) X#define CHANNEL(dev) (minor(dev) & 0x7f) X#define EMUX(chan) ((chan & 0x78) >> 3) X#define EMUXMAKE(chan) ((chan & 0x78) << 1) X#define IMUX(chan) (chan & 0x07) X#define LMINOR(unit, chan) ((unit << 7)+chan) X X/* port statuses */ X X#define STATUS_UNUSED 0 X#define STATUS_INUSE 1 X#define STATUS_STOPPED 2 X#define STATUS_INIT 3 X X/* Type definitions */ X Xtypedef struct X{ X short status; /* the status of this chan */ X struct selinfo readselect; /* the select() polling info */ X u_short fifo[FIFOSIZE]; /* fifo for this chan */ X int fifostart, fifoend; /* the ptrs showing where info is stored in fifo */ X int fifosize, fifotrig; /* the current and trigger size of the fifo */ X void *devfs_token; /* the devfs token for this chan */ X int nextchan; X} talog_chan; X Xtypedef struct X{ X struct isa_device *isaunit; /* ptr to isa device information */ X talog_chan chan[NUMCHANNELS]; /* the device nodes */ X int curchan; /* the current chan being intr handled */ X int firstchan; /* the first chan to go to in list */ X int state; /* is the node in setup or convert mode */ X long microperiod; /* current microsecond period setting */ X u_char perlo, perhi; /* current values to send to clock 2 after every intr */ X X} talog_unit; X X/* Function Prototypes */ X Xstatic int alog_probe (struct isa_device *idp); /* Check for alog board */ Xstatic int alog_attach (struct isa_device *idp); /* Take alog board */ Xstatic int sync_clock2 (int unit, long period); /* setup clock 2 period */ Xstatic __inline int putfifo (talog_chan *pchan, u_short fifoent); Xstatic int alog_open (dev_t dev, int oflags, int devtype, struct proc *p); Xstatic int alog_close (dev_t dev, int fflag, int devtype, struct proc *p); Xstatic int alog_ioctl (dev_t dev, int cmd, caddr_t data, X int fflag, struct proc *p); Xstatic int alog_read (dev_t dev, struct uio *uio, int ioflag); Xstatic int alog_select (dev_t dev, int which, struct proc *p); X X/* Global Data */ X Xstatic int alog_devsw_installed = 0; /* Protect against reinit multiunit */ Xstatic talog_unit *alog_unit[NALOG]; /* data structs for each unit */ X X/* Character device switching structure */ Xstatic struct cdevsw alog_cdevsw = { alog_open, alog_close, alog_read, X nowrite, alog_ioctl, nostop, noreset, X nodevtotty, alog_select, nommap, X nostrategy, "alog", NULL, -1 }; X X/* Structure expected to tell how to probe and attach the driver X * Must be published externally (cannot be static) */ Xstruct isa_driver alogdriver = { alog_probe, alog_attach, "alog", 0 }; X X X/* handle the ioctls */ Xstatic int alog_ioctl (dev_t dev, int cmd, caddr_t data, X int fflag, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X X switch (cmd) X { X case AD_NCHANS_GET: *(int *)data = NUMCHANNELS; X return 0; X case AD_FIFOSIZE_GET: *(int *)data = FIFOSIZE; X return 0; X X case AD_FIFO_TRIGGER_GET: s = spltty(); X *(int *)data = info->chan[chan].fifotrig; X splx(s); X return 0; X X case AD_FIFO_TRIGGER_SET: X s = spltty(); X if ((*(int *)data < 1) || (*(int *)data > FIFOSIZE)) X { X splx(s); X return EPERM; X } X info->chan[chan].fifotrig = *(int *)data; X splx(s); X return 0; X X case AD_STOP: s = spltty(); X info->chan[chan].status = STATUS_STOPPED; X splx(s); X return 0; X X case AD_START: s = spltty(); X info->chan[chan].status = STATUS_INUSE; X splx(s); X return 0; X X case AD_MICRO_PERIOD_SET: X s = spltty(); X if (sync_clock2 (unit, *(long *) data)) X { X splx(s); X return EPERM; X } X splx(s); X return 0; X X case AD_MICRO_PERIOD_GET: s = spltty(); X *(long *)data = info->microperiod; X splx(s); X return 0; X X } X X return ENOTTY; X} X X X/* handle select() based read polling */ Xstatic int alog_select (dev_t dev, int which, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X X s = spltty(); X if (which == FREAD) X if (info->chan[chan].fifosize >= info->chan[chan].fifotrig) X { X splx(s); X return 1; /* ready for read */ X } X else X { X /* record this request */ X selrecord (p, &(info->chan[chan].readselect)); X splx(s); X return 0; /* not ready, yet */ X } X X splx(s); X return 0; /* not ready (any I never will be) */ X} X X X/* how to read from the board */ Xstatic int alog_read (dev_t dev, struct uio *uio, int ioflag) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s, oldtrig, toread, err = 0; X X s = spltty(); X X oldtrig = info->chan[chan].fifotrig; /* save official trigger value */ X while (uio->uio_resid >= sizeof(u_short)) /* while uio has space */ X { X if (!info->chan[chan].fifosize) /* if we have an empty fifo */ X { X if (ioflag & IO_NDELAY) /* exit if we are non-blocking */ X { err = EWOULDBLOCK; X break; X } X /* Start filling fifo on first blocking read */ X if (info->chan[chan].status == STATUS_INIT) X info->chan[chan].status = STATUS_INUSE; X /* temporarily adjust the fifo trigger to be optimal size */ X info->chan[chan].fifotrig = X min (READMAXTRIG, uio->uio_resid / sizeof(u_short)); X /* lets sleep until we have some io available or timeout */ X err = tsleep (&(info->chan[chan].fifo), ALOGPRI | PCATCH, ALOGMSG, X info->chan[chan].fifotrig*READTIMO); X if (err == EWOULDBLOCK) X { printf (DEVFORMAT ": read timeout\n", unit, X 'a'+EMUX(chan), IMUX(chan)); X } X if (err == ERESTART) err = EINTR; /* don't know how to restart */ X if (err) break; /* exit if any kind of error or signal */ X } X X /* ok, now if we got here there is something to read from the fifo */ X X /* calculate how many entries we can read out from the fifostart X * pointer */ X toread = min (uio->uio_resid / sizeof(u_short), X min (info->chan[chan].fifosize, X FIFOSIZE - info->chan[chan].fifostart)); X /* perform the move, if there is an error then exit */ X if (err = uiomove((caddr_t) X &(info->chan[chan].fifo[info->chan[chan].fifostart]), X toread * sizeof(u_short), uio)) break; X info->chan[chan].fifosize -= toread; /* fifo this much smaller */ X info->chan[chan].fifostart += toread; /* we got this many more */ X if (info->chan[chan].fifostart == FIFOSIZE) X info->chan[chan].fifostart = 0; /* wrap around fifostart */ X X } X info->chan[chan].fifotrig = oldtrig; /* restore trigger changes */ X splx(s); X return err; X} X X X/* open a channel */ Xstatic int alog_open (dev_t dev, int oflags, int devtype, struct proc *p) X{ X int unit = UNIT(dev); /* get unit no */ X int chan = CHANNEL(dev); /* get channel no */ X talog_unit *info; X int s; /* priority */ X int cur; X X if ((unit >= NALOG) || (unit >= MAXUNITS) || (chan >= NUMCHANNELS)) X return ENXIO; /* unit and channel no ok ? */ X if (!alog_unit[unit]) return ENXIO; /* unit attached */ X info = alog_unit[unit]; /* ok, this is valid now */ X X if (info->chan[chan].status) return EBUSY; /* channel busy */ X if (oflags & FREAD) X { X s=spltty(); X info->chan[chan].status = STATUS_INIT; /* channel open, read waiting */ X info->chan[chan].fifostart = info->chan[chan].fifoend = X info->chan[chan].fifosize = 0;/* fifo empty */ X info->chan[chan].fifotrig = DEFAULT_FIFO_TRIGGER; X if (info->firstchan < 0) /* if empty chain */ X { X info->firstchan = info->curchan = chan; /* rev up the list */ X info->chan[chan].nextchan = -1; /* end of the list */ X } X else /* non empty list must insert */ X { X if (chan < info->firstchan) /* this one must become first in list */ X { X info->chan[chan].nextchan = info->firstchan; X info->firstchan = chan; X } X else /* insert this one as second - last in chan list */ X { X cur = info->firstchan; X X /* traverse list as long as cur is less than chan and cur is X * not last in list */ X while ((info->chan[cur].nextchan < chan) && X (info->chan[cur].nextchan >= 0)) X cur = info->chan[cur].nextchan; X X /* now cur should point to the entry right before yours */ X info->chan[chan].nextchan = info->chan[cur].nextchan; X info->chan[cur].nextchan = chan; /* insert yours in */ X } X } X splx(s); X return 0; /* open successful */ X } X return EPERM; /* this is a read only device */ X} X X X/* close a channel */ Xstatic int alog_close (dev_t dev, int fflag, int devtype, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X int cur; X X s = spltty(); X info->chan[chan].status = STATUS_UNUSED; X X /* what if we are in the middle of a conversion ? X * then smoothly get us out of it: */ X if (info->curchan == chan) X { /* if we are last in list set curchan to first in list */ X if ((info->curchan = info->chan[chan].nextchan) < 0) X info->curchan = info->firstchan; X X info->state = STATE_SETUP; X } X X /* if this is the first channel, then make the second channel the first X * channel (note that if this is also the only channel firstchan becomes X * -1 and so the list is marked as empty */ X X if (chan == info->firstchan) X info->firstchan = info->chan[chan].nextchan; X else /* ok, so there must be at least 2 channels (and it is not the first) */ X { X cur = info->firstchan; X X /* find the entry before it (which must exist if you are closing) */ X while (info->chan[cur].nextchan < chan) X cur = info->chan[cur].nextchan; X /* at this point we must have the entry before ours */ X info->chan[cur].nextchan = info->chan[chan].nextchan; /* give our link */ X X } X X splx(s); X X return 0; /* close always successful */ X} X X X/* The probing routine - returns number of bytes needed */ Xstatic int alog_probe (struct isa_device *idp) X{ X int unit = idp->id_unit; /* this device unit number */ X int iobase = idp->id_iobase; /* the base address of the unit */ X int addr; X X if ((unit < 0) || (unit >= NALOG) || (unit >= MAXUNITS)) X { X printf ("alog: invalid unit number (%d)\n", unit); X return 0; X } X X /* the unit number is ok, lets check if used */ X if (alog_unit[unit]) X { X printf ("alog: unit (%d) already attached\n", unit); X return 0; X } X X if (inb (iobase+STATUS) & EOC) return 0; /* End of conv bit should be 0 */ X for (addr=0; addr MAX_MICRO_PERIOD) || (period < MIN_MICRO_PERIOD)) X return -1; /* error period too long */ X info->microperiod = period; /* record the period */ X clockper = (CLOCK2FREQ * period) / PRIMARY_STATES; X info->perlo = clockper & 0xff; /* least sig byte of clock period */ X info->perhi = ((clockper & 0xff00) >> 8); /* most sig byte of clock period */ X return 0; X} X X X/* The attachment routine - returns true on success */ Xstatic int alog_attach (struct isa_device *idp) X{ X int unit = idp->id_unit; /* this device unit number */ X int iobase = idp->id_iobase; /* the base address of the unit */ X talog_unit *info; /* pointer to driver specific info for unit */ X int chan; /* the channel used for creating devfs nodes */ X X if (!(info = malloc(sizeof(*info), M_DEVBUF, M_NOWAIT))) X { X printf ("alog%d: cannot allocate driver storage\n", unit); X return 0; X } X alog_unit[unit] = info; /* make sure to save the pointer */ X bzero (info, sizeof(*info)); /* clear info structure to all false */ X info->isaunit = idp; /* store ptr to isa device information */ X sync_clock2 (unit, DEFAULT_MICRO_PERIOD); /* setup perlo and perhi */ X info->firstchan = -1; /* channel lists are empty */ X X /* insert devfs nodes */ X X#ifdef DEVFS X for (chan=0; chanchan[chan].devfs_token = X devfs_add_devswf(&alog_cdevsw, LMINOR(unit, chan), DV_CHR, X UID_ROOT, GID_WHEEL, 0400, DEVFORMAT, X unit, 'a'+EMUX(chan), IMUX(chan)); X#endif X X printf ("alog%d: %d channels, %d bytes/FIFO, %d entry trigger\n", X unit, NUMCHANNELS, FIFOSIZE*sizeof(u_short), X DEFAULT_FIFO_TRIGGER); X alogintr (unit); /* start the periodic interrupting process */ X return 1; /* obviously successful */ X} X X X/* Unit interrupt handling routine (interrupts generated by clock 2) */ Xvoid alogintr (int unit) X{ X talog_unit *info = alog_unit[unit]; X int iobase = info->isaunit->id_iobase; X u_short fifoent; X X X if (info->firstchan >= 0) /* ? is there even a chan list to traverse */ X switch (info->state) X { X case STATE_READ: X if (info->chan[info->curchan].status == STATUS_INUSE) X { X if (inb (iobase+STATUS) & EOC) /* check that conversion finished */ X printf (DEVFORMAT ": incomplete conversion\n", unit, X 'a'+EMUX(info->curchan), IMUX(info->curchan)); X else /* conversion is finished (should always be) */ X { X fifoent = (inb (iobase+ADHIGH) << 8) + X inb (iobase+ADLOW); X if (putfifo(&(info->chan[info->curchan]), fifoent)) X { X printf (DEVFORMAT ": fifo overflow\n", unit, X 'a'+EMUX(info->curchan), IMUX(info->curchan)); X } X if (info->chan[info->curchan].fifosize >= X info->chan[info->curchan].fifotrig) X { X /* if we've reached trigger levels */ X selwakeup (&(info->chan[info->curchan].readselect)); X wakeup (&(info->chan[info->curchan].fifo)); X } X } X } X /* goto setup state for next channel on list */ X if ((info->curchan = info->chan[info->curchan].nextchan) < 0) X info->curchan = info->firstchan; X /* notice lack of break here this implys a STATE_SETUP */ X case STATE_SETUP: /* set the muxes and let them settle */ X#if NUMCHANNELS > NUMIMUXES /* only do this if using external muxes */ X outb (iobase+STATUS, X EMUXMAKE(info->curchan) | IMUX(info->curchan) | IEN); X info->state = STATE_CONVERT; X break; X#endif X case STATE_CONVERT: X outb (iobase+STATUS, X EMUXMAKE(info->curchan) | IMUX(info->curchan) | IEN); X outb (iobase+ADHIGH, 0); /* start the conversion */ X info->state = STATE_READ; X break; X } X else /* this is kind of like an idle mode */ X { X outb (iobase+STATUS, IEN); /* no list keep getting interrupts though */ X /* since we have no open channels spin clock rate down to X * minimum to save interrupt overhead */ X outb (iobase+CNTRCNTRL, LD2MODE4); /* counter 2 to mode 4 strobe */ X outb (iobase+CNTR2, 0xff); /* longest period we can generate */ X outb (iobase+CNTR2, 0xff); X return; X } X outb (iobase+CNTRCNTRL, LD2MODE4); /* counter 2 to mode 4 strobe */ X outb (iobase+CNTR2, info->perlo); /* low part of the period count */ X outb (iobase+CNTR2, info->perhi); /* high part of the period count */ X} X X X/* this will put an entry in fifo, returns 1 if the first item in X * fifo was wiped (overflow) or 0 if everything went fine */ Xstatic int __inline putfifo (talog_chan *pchan, u_short fifoent) X{ X pchan->fifo[pchan->fifoend] = fifoent; /* insert the entry in */ X pchan->fifoend++; /* one more in fifo */ X if (pchan->fifoend == FIFOSIZE) pchan->fifoend = 0; /* wrap around */ X /* note: I did intend to write over the oldest entry on overflow */ X if (pchan->fifosize == FIFOSIZE) /* overflowing state already */ X { X pchan->fifostart++; X if (pchan->fifostart == FIFOSIZE) pchan->fifostart = 0; X return 1; /* we overflowed */ X } X pchan->fifosize++; /* actually one bigger, else same size */ X return 0; /* went in just fine */ X} X X X/* Driver initialization */ Xstatic void alog_drvinit (void *unused) X{ X dev_t dev; /* Type for holding device major/minor numbers (int) */ X X if (!alog_devsw_installed) X { X dev = makedev (CDEV_MAJOR, 0); /* description of device major */ X cdevsw_add (&dev, &alog_cdevsw, NULL); /* put driver in cdev table */ X alog_devsw_installed=1; X } X} X X/* System initialization call instance */ X XSYSINIT (alogdev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR, X alog_drvinit,NULL); X X#endif END-of-alog.c echo x - alogio.h sed 's/^X//' >alogio.h << 'END-of-alogio.h' X/* X * Copyright (c) 1997 Jamil J. Weatherbee X * All rights reserved. X * X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer X * in this position and unchanged. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. The name of the author may not be used to endorse or promote products X * derived from this software without specific prior written permission X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X * X * Industrial Computer Source model AIO8-P X * 128 channel MUX capability via daisy chained AT-16P units X * alogio.h, definitions for alog ioctl(), last revised November 19 1997 X * See http://www.indcompsrc.com/products/data/html/aio8g-p.html X * http://www.indcompsrc.com/products/data/html/at16-p.html X * X * Written by: Jamil J. Weatherbee X * X */ X X#ifndef _SYS_ALOGIO_H_ X#define _SYS_ALOGIO_H_ X X#ifndef KERNEL X#include X#endif X#include X X/* Note: By default A/D conversions are started when a channel is open */ X X/* Halt clocked A/D conversion on an open channel */ X#define AD_STOP _IO('A', 100) X/* Restart clocked A/D conversion on an open channel */ X#define AD_START _IO('A', 101) X/* Get the number of entries the fifo for this channel will hold */ X#define AD_FIFOSIZE_GET _IOR('A', 102, int) X/* Set the minimum number of entries a fifo must contain before it X * notifies a select() or read() that is waiting for it to fill */ X#define AD_FIFO_TRIGGER_SET _IOW('A', 103, int) X/* This gets the the fifo trigger setting */ X#define AD_FIFO_TRIGGER_GET _IOR('A', 104, int) X X#endif END-of-alogio.h exit >Audit-Trail: >Unformatted: From owner-freebsd-bugs Thu Nov 20 15:10:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA17353 for bugs-outgoing; Thu, 20 Nov 1997 15:10:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA17340; Thu, 20 Nov 1997 15:10:01 -0800 (PST) (envelope-from gnats) Date: Thu, 20 Nov 1997 15:10:01 -0800 (PST) Message-Id: <199711202310.PAA17340@hub.freebsd.org> To: freebsd-bugs Cc: From: "John S. Dyson" Subject: Re: kern/5108: Kernel panic in pmap_release during wait4 Reply-To: "John S. Dyson" Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/5108; it has been noted by GNATS. From: "John S. Dyson" To: dillon@best.net Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/5108: Kernel panic in pmap_release during wait4 Date: Thu, 20 Nov 1997 18:04:08 -0500 (EST) Matt Dillon said: > > >Number: 5108 > >Category: kern > >Synopsis: pmap_release panics with 'freeing held page table page' > >Confidential: no > >Severity: non-critical > >Priority: medium > >Responsible: freebsd-bugs > >State: open > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Nov 20 12:00:01 PST 1997 > >Last-Modified: > >Originator: Matt Dillon > >Organization: > Best Internet Communications > >Release: FreeBSD 2.2.5-STABLE i386 > >Environment: > > FreeBSD 2.2.5 on PPro 200, medium to heavily loaded systems > > >Description: > > We got a kernel panic 'pmap_release: freeing held page table page'. > We got a core. The backtrace showed: > Are you running with the fixes to vm_page.c? -- John dyson@freebsd.org jdyson@nc.com From owner-freebsd-bugs Thu Nov 20 17:37:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA29186 for bugs-outgoing; Thu, 20 Nov 1997 17:37:45 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA29141; Thu, 20 Nov 1997 17:37:35 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id BAA26182; Fri, 21 Nov 1997 01:36:51 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199711210136.BAA26182@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Sergey S. Kosyakov" cc: freebsd-ports@freebsd.org, freebsd-bugs@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Is gmake so buggy? In-reply-to: Your message of "Wed, 20 Nov 1996 17:54:02 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 21 Nov 1997 01:36:51 +0000 From: Brian Somers Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Hi all! > > I'm trying to compile one packet (namely the last version of postgresql). > The compilation needs gmake. The files tree have modification time = now > (GMT + 3 + light saving time) and it seems to be that gmake do not > undestand localtime - it tells that files have modification time in future. > (May be I should establish some environmental variable for gmake?) > > I use FreeBSD-3.0-SNAP, computer's CMOS clock eq. localtime, timezone MSK > > PS. Please reply to: ks@itp.ac.ru (i'm subscribed freebsd-hardware only) Is, perhaps, the date of your posting some indication that you have date problems on your machine ? Your posting date was: Date: Wed, 20 Nov 1996 17:54:02 +0300 (MSK) ^^^^ *grin* > --- > ---------------------------------- > Sergey Kosyakov > Laboratory of Distributed Computing > Department of High-Performance Computing and Applied Network Research > Landau Institute for Theoretical Physics > E-Mail: Sergey S. Kosyakov > Date: 20-Nov-96 > Time: 17:54:02 > ---------------------------------- -- Brian , , Don't _EVER_ lose your sense of humour.... From owner-freebsd-bugs Thu Nov 20 19:50:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA08145 for bugs-outgoing; Thu, 20 Nov 1997 19:50:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA08131; Thu, 20 Nov 1997 19:50:01 -0800 (PST) (envelope-from gnats) Date: Thu, 20 Nov 1997 19:50:01 -0800 (PST) Message-Id: <199711210350.TAA08131@hub.freebsd.org> To: freebsd-bugs Cc: From: Bill Fenner Subject: Re: kern/5103: FreeBSD kernel lockup from spoofed TCP packet Reply-To: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR kern/5103; it has been noted by GNATS. From: Bill Fenner To: freebsd-gnats-submit@hub.freebsd.org Cc: Subject: Re: kern/5103: FreeBSD kernel lockup from spoofed TCP packet Date: Thu, 20 Nov 1997 19:40:35 PST Garrett Wollman wrote: > There is still an underlying bug, since > self-connect not only should work, but once did. Since 2.2.2 was OK, and 2.2.5 wasn't, it was pretty easy to determine that it's the part of 1.52 that was removed in 1.63 and 1.54.2.5 that causes 2.2.2 to be OK. It's clear that we don't want to just re-revert 1.63/1.54.2.5, since it caused other problems. One path to go down to understand exactly what's going on might be to build with TCPDEBUG and send one of these nastygrams to a server that has SO_DEBUG set. You'd need a serial console, since constantly printing messages seems to eliminate your ability to use the scrollback (at least, hitting scroll lock to pause the messages flying by didn't do anything other than make it start beeping after a few seconds). I don't have a convenient serial console, unfortunately, or I'd pursue this. Bill From owner-freebsd-bugs Thu Nov 20 20:24:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA10408 for bugs-outgoing; Thu, 20 Nov 1997 20:24:02 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA10379; Thu, 20 Nov 1997 20:23:44 -0800 (PST) (envelope-from jkh@FreeBSD.org) From: "Jordan K. Hubbard" Received: (from jkh@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id UAA16322; Thu, 20 Nov 1997 20:23:30 -0800 (PST) Date: Thu, 20 Nov 1997 20:23:30 -0800 (PST) Message-Id: <199711210423.UAA16322@freefall.freebsd.org> To: jkh@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, security-officer@FreeBSD.ORG Subject: Re: kern/5103 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: It appears to be possible to lockup a FreeBSD box with a spoofed TCP packet. Two of our shell machines were attacked tonight. Responsible-Changed-From-To: freebsd-bugs->security-officer Responsible-Changed-By: jkh Responsible-Changed-When: Thu Nov 20 20:23:02 PST 1997 Responsible-Changed-Why: The security officer should own this one until resolution. From owner-freebsd-bugs Thu Nov 20 21:55:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA15817 for bugs-outgoing; Thu, 20 Nov 1997 21:55:45 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from rumor.research.att.com (rumor.research.att.com [192.20.225.9]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id VAA15806 for ; Thu, 20 Nov 1997 21:55:39 -0800 (PST) (envelope-from ji@research.att.com) Received: from research.att.com ([135.207.30.100]) by rumor; Fri Nov 21 00:51:38 EST 1997 Received: from amontillado.research.att.com ([135.207.24.32]) by research-clone; Fri Nov 21 00:51:22 EST 1997 Received: from bual.research.att.com (bual.research.att.com [135.207.24.19]) by amontillado.research.att.com (8.8.7/8.8.7) with ESMTP id AAA21137; Fri, 21 Nov 1997 00:51:20 -0500 (EST) Received: (from ji@localhost) by bual.research.att.com (8.7.5/8.7) id AAA03044; Fri, 21 Nov 1997 00:51:19 -0500 (EST) Date: Fri, 21 Nov 1997 00:51:19 -0500 (EST) Message-Id: <199711210551.AAA03044@bual.research.att.com> From: John Ioannidis To: jkh@FreeBSD.ORG CC: jkh@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, security-officer@FreeBSD.ORG In-reply-to: <199711210423.UAA16322@freefall.freebsd.org> (jkh@FreeBSD.ORG) Subject: Re: kern/5103 Reply-To: ji@research.att.com Organization: AT&T Labs - Research Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This is an old bug, BTW; it's the simultaneous-open bug. Look in Stevens (TCP/IP Illustrated) Volume 1, chapter 18. I thought it had been fixed for 4.4BSD; BSDI 2.0 didn't have the problem. How did it re-emerge? /ji From owner-freebsd-bugs Thu Nov 20 23:00:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA18619 for bugs-outgoing; Thu, 20 Nov 1997 23:00:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA18613; Thu, 20 Nov 1997 23:00:01 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 20 Nov 1997 23:00:01 -0800 (PST) Resent-Message-Id: <199711210700.XAA18613@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, newmike@teleport.com Received: (from nobody@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA18513; Thu, 20 Nov 1997 22:57:57 -0800 (PST) (envelope-from nobody) Message-Id: <199711210657.WAA18513@hub.freebsd.org> Date: Thu, 20 Nov 1997 22:57:57 -0800 (PST) From: newmike@teleport.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/5117: panic: biodone: buffer not busy Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5117 >Category: kern >Synopsis: panic: biodone: buffer not busy >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 20 23:00:01 PST 1997 >Last-Modified: >Originator: Mike Eberdt >Organization: >Release: 2.2.5-RELEASE >Environment: FreeBSD 2.2.5-RELEASE #0: Tue Oct 21 14:33:00 GMT 1997 jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC CPU: i486DX (486-class CPU) real memory = 33554432 (32768K bytes) avail memory = 30244864 (29536K bytes) Probing for devices on PCI bus 0: chip0 rev 4 on pci0:0 chip1 rev 3 on pci0:2 vga0 rev 3 int a irq ?? on pci0:12 pci0:13: vendor=0xffff, device=0x0140, class=storage (scsi) int a irq 11 [no driver assigned] Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in bt0: Bt946C/ 0-(32bit) bus bt0: reading board settings, busmastering, int=11 bt0: version 4.22, sync, parity, 32 mbxs, 32 ccbs bt0: targ 0 sync rate=10.00MB/s(100ns), offset=08 bt0: targ 2 sync rate=10.00MB/s(100ns), offset=15 bt0: targ 6 async bt0: Using Strict Round robin scheme bt0 at 0x330 irq 11 on isa bt0 waiting for scsi devices to settle (bt0:0:0): "QUANTUM LIGHTNING 540S 241E" type 0 fixed SCSI 2 sd0(bt0:0:0): Direct-Access 525MB (1075649 512 byte sectors) (bt0:2:0): "HP C3725S 6019" type 0 fixed SCSI 2 sd1(bt0:2:0): Direct-Access 2047MB (4194058 512 byte sectors) (bt0:6:0): "SONY CD-ROM CDU-55S 1.0q" type 5 removable SCSI 2 cd0(bt0:6:0): CD-ROM cd present [300204 x 2048 byte records] npx0 flags 0x1 on motherboard npx0: INT 16 interface changing root device to sd0a >Description: System panics with 'biodone: buffer not busy' randomly, but frequently (e.g. attempting a full install seems to be a sure bet for meltdown). Hardware configuration is summarized in boot output, above. I have no previous history with FreeBSD on this hardware to offer for comparison. I obtained a crash dump; I could FTP it to you if that would help. >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Nov 21 02:03:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA28519 for bugs-outgoing; Fri, 21 Nov 1997 02:03:24 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from gvr.gvr.org (root@gvr.gvr.org [194.151.74.97]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA28505; Fri, 21 Nov 1997 02:03:05 -0800 (PST) (envelope-from guido@gvr.org) Received: (from guido@localhost) by gvr.gvr.org (8.8.6/8.8.5) id LAA23097; Fri, 21 Nov 1997 11:02:58 +0100 (MET) From: Guido van Rooij Message-Id: <199711211002.LAA23097@gvr.gvr.org> Subject: Re: kern/5103 In-Reply-To: <199711210551.AAA03044@bual.research.att.com> from John Ioannidis at "Nov 21, 97 00:51:19 am" To: ji@research.att.com Date: Fri, 21 Nov 1997 11:02:58 +0100 (MET) Cc: jkh@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, security-officer@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk John Ioannidis wrote: > This is an old bug, BTW; it's the simultaneous-open bug. Look in > Stevens (TCP/IP Illustrated) Volume 1, chapter 18. I thought it had > been fixed for 4.4BSD; BSDI 2.0 didn't have the problem. How did it > re-emerge? > I am not sure it is the same. What happens here is that the TCP stack gets a SYN in the TCPS_LISTEN state and sends back a SYN-ACK. and goes to SYN_RCVD. In the simultaneous open, a SYN is sent and pone goes to SYN_SENT and receives a SYN in that state. Garrett told me that when you send this packet from the host you are receiving it from, it does no harm. This would more or less support my idea that it is something different. -Guido From owner-freebsd-bugs Fri Nov 21 07:00:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA13111 for bugs-outgoing; Fri, 21 Nov 1997 07:00:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA13090; Fri, 21 Nov 1997 07:00:04 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 21 Nov 1997 07:00:04 -0800 (PST) Resent-Message-Id: <199711211500.HAA13090@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, sheldonh@iafrica.com Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA12454 for ; Fri, 21 Nov 1997 06:53:16 -0800 (PST) (envelope-from sheldonh@axl.iafrica.com) Received: from axl.iafrica.com [196.31.1.167] (sheldonh) by lists01.iafrica.com with esmtp (Exim 1.73 #1) id 0xYuRm-0002Zt-00; Fri, 21 Nov 1997 16:52:42 +0200 Received: (from sheldonh@localhost) by axl.iafrica.com (8.8.8/8.8.7) id QAA01581; Fri, 21 Nov 1997 16:53:06 +0200 (SAT) (envelope-from sheldonh) Message-Id: <199711211453.QAA01581@axl.iafrica.com> Date: Fri, 21 Nov 1997 16:53:06 +0200 (SAT) From: sheldonh@iafrica.com Reply-To: sheldonh@iafrica.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/5118: hier(7) manpage stills mentions FAQ & handbook Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5118 >Category: docs >Synopsis: hier(7) manpage stills mentions FAQ & handbook >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 21 07:00:02 PST 1997 >Last-Modified: >Originator: Sheldon Hearn >Organization: UUNET Internet Africa >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD 2.2-STABLE as of 18 Nov 1997 >Description: The hier(7) manpage leads one to expect FAQ and handbook directories in /usr/share/doc . These are no longer part of the base distribution. This will lead to Disappointment and Confusion, maybe even The Coming of the Big Three. >How-To-Repeat: man 7 hier >Fix: The following patch to the hier.7 source will remove references to the FAQ and handbook, thus contributing to Peace and Goodwill for all (wo)men. --- hier.7.ORIG Mon Nov 10 03:06:34 1997 +++ hier.7 Fri Nov 21 16:40:52 1997 @@ -337,11 +337,6 @@ .Tn USENIX association) .Bl -tag -width Fl -compact -.It Li FAQ/ -Frequently Asked Questions -.It Li handbook/ -.Tn FreeBSD -Handbook .It Li papers/ UNIX Papers .It Li psd/ >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Nov 21 08:36:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA19489 for bugs-outgoing; Fri, 21 Nov 1997 08:36:30 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id IAA19382; Fri, 21 Nov 1997 08:35:30 -0800 (PST) (envelope-from fenner@parc.xerox.com) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <54022(3)>; Fri, 21 Nov 1997 08:23:03 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177476>; Fri, 21 Nov 1997 08:22:51 -0800 To: Guido van Rooij cc: ji@research.att.com, jkh@freebsd.org, freebsd-bugs@freebsd.org, security-officer@freebsd.org Subject: Re: kern/5103 In-reply-to: Your message of "Fri, 21 Nov 97 02:02:58 PST." <199711211002.LAA23097@gvr.gvr.org> Date: Fri, 21 Nov 1997 08:22:48 PST From: Bill Fenner Message-Id: <97Nov21.082251pst.177476@crevenia.parc.xerox.com> Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Guido van Rooij wrote: >Garrett told me that when you send this packet from the host you are >receiving it from, it does no harm. This would more or less support my >idea that it is something different. This is not true. I've been doing my testing by sending packets from the test box, and it behaves the same whether you send it from the test box or send it from some other machine. Bill From owner-freebsd-bugs Fri Nov 21 08:52:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA20758 for bugs-outgoing; Fri, 21 Nov 1997 08:52:32 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id IAA20653; Fri, 21 Nov 1997 08:51:50 -0800 (PST) (envelope-from fenner@parc.xerox.com) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <54254(6)>; Fri, 21 Nov 1997 08:44:33 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177476>; Fri, 21 Nov 1997 08:44:24 -0800 To: ji@research.att.com cc: jkh@freebsd.org, freebsd-bugs@freebsd.org, security-officer@freebsd.org Subject: Re: kern/5103 In-reply-to: Your message of "Thu, 20 Nov 97 21:51:19 PST." <199711210551.AAA03044@bual.research.att.com> Date: Fri, 21 Nov 1997 08:44:17 PST From: Bill Fenner Message-Id: <97Nov21.084424pst.177476@crevenia.parc.xerox.com> Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk John Ioannidis wrote: >This is an old bug, BTW; it's the simultaneous-open bug. I don't think so; when you do a simultaneous open, neither socket is listening, and for this bug the endpoint has to be listening. And self-connects do work, which excercises the same machinery as simultaneous opens. Bill From owner-freebsd-bugs Fri Nov 21 12:10:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA07654 for bugs-outgoing; Fri, 21 Nov 1997 12:10:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA07641; Fri, 21 Nov 1997 12:10:02 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 21 Nov 1997 12:10:02 -0800 (PST) Resent-Message-Id: <199711212010.MAA07641@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, schweikh@noc.dfn.de Received: (from nobody@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA07100; Fri, 21 Nov 1997 12:01:57 -0800 (PST) (envelope-from nobody) Message-Id: <199711212001.MAA07100@hub.freebsd.org> Date: Fri, 21 Nov 1997 12:01:57 -0800 (PST) From: schweikh@noc.dfn.de To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/5119: name space pollution in Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5119 >Category: bin >Synopsis: name space pollution in >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 21 12:10:01 PST 1997 >Last-Modified: >Originator: Jens Schweikhardt >Organization: DFN >Release: 2.2.2-Release >Environment: FreeBSD hal9000.details.de 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Mon Aug 4 20 :11:30 CEST 1997 root@hal9000.details.de:/usr/src/sys/compile/HAL9000 i386 >Description: The following macros pollute the namespace of because it includes . This violates ISO 9899:1990 ("ISO C"): #define COLL_WEIGHTS_MAX #define ARG_MAX #define BC_STRING_MAX #define BC_DIM_MAX #define OPEN_MAX #define MAX_INPUT #define BC_SCALE_MAX #define EXPR_NEST_MAX #define RE_DUP_MAX #define MAX_CANON #define BC_BASE_MAX #define LINE_MAX #define PIPE_BUF #define LINK_MAX #define NGROUPS_MAX #define NAME_MAX #define PATH_MAX #define CHILD_MAX >How-To-Repeat: >Fix: FIX: wrap those definitions in in a #if !defined(_ANSI_SOURCE) && !defined(__STDC__) or something appropriate. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Nov 21 13:40:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA15465 for bugs-outgoing; Fri, 21 Nov 1997 13:40:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA15449; Fri, 21 Nov 1997 13:40:02 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 21 Nov 1997 13:40:02 -0800 (PST) Resent-Message-Id: <199711212140.NAA15449@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, mph@pobox.com Received: from mph124.rh.psu.edu (hunt@MPH124.rh.psu.edu [128.118.126.83]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA14304 for ; Fri, 21 Nov 1997 13:30:12 -0800 (PST) (envelope-from hunt@mph124.rh.psu.edu) Received: (from hunt@localhost) by mph124.rh.psu.edu (8.8.7/8.8.7) id QAA00709; Fri, 21 Nov 1997 16:30:09 -0500 (EST) (envelope-from hunt) Message-Id: <199711212130.QAA00709@mph124.rh.psu.edu> Date: Fri, 21 Nov 1997 16:30:09 -0500 (EST) From: mph@pobox.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: i386/5121: NO_LOCK 6x86 fix is wrong Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5121 >Category: i386 >Synopsis: NO_LOCK 6x86 fix is wrong >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 21 13:40:00 PST 1997 >Last-Modified: >Originator: Matthew Hunt >Organization: none >Release: FreeBSD 2.2.5-STABLE i386 >Environment: Cyrix 6x86 /usr/src/sys/i386/i386/initcpu.c: $Id: initcpu.c,v 1.5.2.4 1997/10/17 08:29:01 kato Exp $ >Description: As discussed in freebsd-questions, the Cyrix 6x86 has a lockup bug that should be cured with the CPU_CYRIX_NO_LOCK kernel option. For more info, see http://www.tux.org/~balsa/linux/cyrix/p11.html. initcpu.c reads: /* Initialize CCR0. */ write_cyrix_reg(CCR0, read_cyrix_reg(CCR0) | CCR0_NC1); /* Initialize CCR1. */ #ifdef CPU_CYRIX_NO_LOCK write_cyrix_reg(CCR0, read_cyrix_reg(CCR0) | CCR1_NO_LOCK); #else #ifdef FAILSAFE write_cyrix_reg(CCR0, read_cyrix_reg(CCR0) & ~CCR1_NO_LOCK); #endif #endif When the comments and the code disagree, it's a good sign that something is wrong. In fact, the code is modifying the wrong register, CCR0 instead of CCR1. With initcpu.c unchanged, and CPU_CYRIX_NO_LOCK defined, the machine is still susceptible to the attack. >How-To-Repeat: Do not modify initcpu.c. Compile with the CPU_CYRIX_NO_LOCK option. Run the exploit: static unsigned char c[4] = {0x36, 0x78, 0x38, 0x36}; main() { asm ("movl $_c, %ebx\n\t" "again: xchgl (%ebx), %eax\n\t" "movl %eax, %edx\n\t" "jmp again\n\t"); } >Fix: Apply the following patch to initcpu.c; with this patch, and CPU_CYRIX_NO_LOCK defined, the attack just runs forever, and can be stopped with control-C. --- /usr/src/sys/i386/i386/initcpu.c Fri Oct 17 04:29:01 1997 +++ initcpu.c Fri Nov 21 16:18:20 1997 @@ -306,10 +306,10 @@ /* Initialize CCR1. */ #ifdef CPU_CYRIX_NO_LOCK - write_cyrix_reg(CCR0, read_cyrix_reg(CCR0) | CCR1_NO_LOCK); + write_cyrix_reg(CCR1, read_cyrix_reg(CCR1) | CCR1_NO_LOCK); #else #ifdef FAILSAFE - write_cyrix_reg(CCR0, read_cyrix_reg(CCR0) & ~CCR1_NO_LOCK); + write_cyrix_reg(CCR1, read_cyrix_reg(CCR1) & ~CCR1_NO_LOCK); #endif #endif >Audit-Trail: >Unformatted: From owner-freebsd-bugs Fri Nov 21 14:41:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA20762 for bugs-outgoing; Fri, 21 Nov 1997 14:41:03 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA20737; Fri, 21 Nov 1997 14:40:24 -0800 (PST) (envelope-from jlemon@FreeBSD.org) From: Jonathan Lemon Received: (from jlemon@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id OAA07061; Fri, 21 Nov 1997 14:40:04 -0800 (PST) Date: Fri, 21 Nov 1997 14:40:04 -0800 (PST) Message-Id: <199711212240.OAA07061@freefall.freebsd.org> To: mph@pobox.com, jlemon@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: i386/5121 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: NO_LOCK 6x86 fix is wrong State-Changed-From-To: open-closed State-Changed-By: jlemon State-Changed-When: Fri Nov 21 14:38:10 PST 1997 State-Changed-Why: Corrected in initcpu.c:1.5.2.5, initcpu.c:1.10 From owner-freebsd-bugs Fri Nov 21 15:19:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA23333 for bugs-outgoing; Fri, 21 Nov 1997 15:19:21 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA23321; Fri, 21 Nov 1997 15:19:13 -0800 (PST) (envelope-from jraynard@FreeBSD.org) From: James Raynard Received: (from jraynard@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id PAA07285; Fri, 21 Nov 1997 15:18:53 -0800 (PST) Date: Fri, 21 Nov 1997 15:18:53 -0800 (PST) Message-Id: <199711212318.PAA07285@freefall.freebsd.org> To: nw1@cs.wustl.edu, jraynard@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/3615 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Error in /usr/src/lib/libc/gen/sigsetops.c State-Changed-From-To: open-closed State-Changed-By: jraynard State-Changed-When: Fri Nov 21 15:18:14 PST 1997 State-Changed-Why: Fixed, thanks. From owner-freebsd-bugs Fri Nov 21 21:50:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA14322 for bugs-outgoing; Fri, 21 Nov 1997 21:50:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA14315; Fri, 21 Nov 1997 21:50:02 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 21 Nov 1997 21:50:02 -0800 (PST) Resent-Message-Id: <199711220550.VAA14315@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, jamil@trojanhorse.ml.org Received: from trojanhorse.ml.org (mdean.vip.best.com [206.86.94.101]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA14056 for ; Fri, 21 Nov 1997 21:40:21 -0800 (PST) (envelope-from jamil@trojanhorse.ml.org) Received: (from jamil@localhost) by trojanhorse.ml.org (8.8.8/8.8.5) id VAA01633; Fri, 21 Nov 1997 21:40:12 -0800 (PST) Message-Id: <199711220540.VAA01633@trojanhorse.ml.org> Date: Fri, 21 Nov 1997 21:40:12 -0800 (PST) From: jamil@trojanhorse.ml.org Reply-To: jamil@trojanhorse.ml.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/5123: New Driver: Industrial Computer Source AIO8-P (alog) Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5123 >Category: kern >Synopsis: New Driver: Industrial Computer Source AIO8-P (alog) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Nov 21 21:50:01 PST 1997 >Last-Modified: >Originator: Jamil J. Weatherbee >Organization: >Release: FreeBSD 2.2.5-STABLE i386 >Environment: i386 FreeBSD, ISA Bus, AIO8-P Card and Optionally AT16-P muxes >Description: Solve the lack of decent support for low cost analog acquisition cards under freebsd. This driver operates very similarily to the labpc driver with the exception of: 1) supports non-blocking i/o 2) support of external muxes (up to 128 channels at about $26/channel) 3) software fifos 4) select call support 5) select "block" triggering enhancement to make multichannel high frequency acquisition cpu efficient 6) 12 bit channels The biggest limit is the lack of hardware fifo, frequencies are generally limited to around 3500 samples/sec without consuming excessive interrupt time. Operation to 15000 samples/sec has been observed. >How-To-Repeat: See Above. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # alog.4 # alog.c # alogio.h # echo x - Makefile sed 's/^X//' >Makefile << 'END-of-Makefile' X# Make file to install the alog driver files in their proper places X Xinstall: X install -c -o root -g wheel -m 0644 alog.c /sys/i386/isa X install -c -o root -g bin -m 0644 alogio.h /sys/sys X install -c -o bin -g bin -m 0444 alogio.h /usr/include/sys X install -c -o bin -g bin -m 444 alog.4 /usr/share/man/man4/ X gzip -f /usr/share/man/man4/alog.4 X install -c -o bin -g bin -m 444 alog.4 /usr/share/man/man4/i386/ X gzip -f /usr/share/man/man4/i386/alog.4 END-of-Makefile echo x - alog.4 sed 's/^X//' >alog.4 << 'END-of-alog.4' X.\" X.\" Copyright (c) 1997 Jamil J. Weatherbee X.\" All rights reserved. X.\" X.\" X.\" Redistribution and use in source and binary forms, with or without X.\" modification, are permitted provided that the following conditions X.\" are met: X.\" 1. Redistributions of source code must retain the above copyright X.\" notice, this list of conditions and the following disclaimer X.\" in this position and unchanged. X.\" 2. Redistributions in binary form must reproduce the above copyright X.\" notice, this list of conditions and the following disclaimer in the X.\" documentation and/or other materials provided with the distribution. X.\" 3. The name of the author may not be used to endorse or promote products X.\" derived from this software without specific prior written permission X.\" X.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X.\" X.\" Industrial Computer Source model AIO8-P X.\" 8 channel, moderate speed analog to digital converter board with X.\" 128 channel MUX capability via daisy-chained AT-16P units X.\" alog.c, character device driver, last revised November 19 1997 X.\" See http://www.indcompsrc.com/products/data/html/aio8g-p.html X.\" X.\" Written by: Jamil J. Weatherbee X.\" X.\" X.Dd November 19, 1997 X.Dt ALOG 4 i386 X.Os FreeBSD X.Sh NAME X.Nm alog X.Nd XIndustrial Computer Source AIO8-P driver X.Sh SYNOPSIS X.Cd "device alog0 at isa? port 0x260 tty irq 5 vector alogintr" X.Sh DESCRIPTION XThis driver supports the Industrial Computer Source \fIAIO8-P 8-Channel X12-Bit Analog Input board\fP. X.Pp XThis board provides 8 12 bit, single-ended analog input ports. XThe driver also directly provides support for up to 8 daisy chained X\fIAT16-P Programmable Analog Multiplexers with 16 Differential Inputs\fP. XThis makes it possible to sample up to 128 differential channels with a single Xinterface board. XUse of at least one \fIAT16-P\fP is highly recommended as the \fIAIO8-P\fP Xoffers no signal conditioning options and only operates in a -5 to +5 Volt Xinput range. However, if you wish to use the \fIAIO8-P\fP standalone, Xinsert the following into your kernel X.Xr config 8 Xfile: X.Bd -literal -offset indent Xoptions ALOG_CHANNELS=8 X.Ed X.Pp XSelection of the input port is through the minor number: X.Pp X.Bd -literal -offset indent XThe 8 bit minor number format is UCCCCMMM, where X U: board unit (0-1) XCCCC: external multiplexer channel (0-15) (on AT-16P units) X MMM: internal multiplexer channel (0-7) (on AIO8-P card) X.Ed X.Pp X.Xr devfs 5 Xdevice node names are of the form: alog[0-1][a-p][0-7] X.Pp X.Sh IOCTL XThe following X.Xr ioctl 2 Xcalls apply to X.Nm Xdevices. Their declaration can be found in the header files X.Pa Xand X.Pa X.Bl -tag -width AD_MICRO_PERIOD_SET X.It Dv AD_MICRO_PERIOD_SET XTakes a pointer to a long argument specifying the number of microseconds Xbetween samples. Half of this is used as the external multiplexer Xsettling time and the other half as conversion time. X.It Dv AD_MICRO_PERIOD_GET XTakes a pointer to a long argument and returns the current number of Xmicroseconds between samples. X.It Dv AD_NCHANS_GET XTakes a pointer to an integer and returns the number of channels the board Xsupports. This should be 8 for a standalone \fIAIO8-P\fP or 128 for any Xother setup. X.It Dv AD_FIFOSIZE_GET XTakes a pointer to an integer and returns the size of the fifo in Xentries. The compile time option ALOG_FIFOSIZE is by default set to 64. X.It Dv AD_FIFO_TRIGGER_GET XTakes a pointer to an integer and returns the minimum number of entries a Xfifo must contain to cause X.Xr select 2 Xto return. This by default is set to 1. X.It Dv AD_FIFO_TRIGGER_SET XTakes a pointer to an integer specifying the minimum number of entries a Xfifo must contain to cause X.Xr select 2 Xto return. X.It Dv AD_START XStarts the clocked accumulation of sample values into a channel's driver fifo. XWhen a channel is first opened its software fifo is initialized in the Xstopped state. This is to prevent high sample clocks from overrunning the Xfifos before the user is ready to read from the channel. The driver Xautomatically performs an AD_START when the user issues the first read, Xexcept for channels opened with the O_NONBLOCK flag which must explicitly Xhave an AD_START issued. X.It Dv AD_STOP XStops the clocked accumulation of sample values into a channel's driver fifo. X.Sh BUGS XOn the \fIAIO8-P\fP, interrupt driven conversion (the only type Xsupported by the X.Nm Xdriver) is facilitated through 8253 timer #2. In order for interrrupts to Xbe generated you must connect line 6 to line 24 (counter 2 output to Xinterrupt input) and line 23 to line 29 (counter 2 gate to +5VDC). XThe design of the \fIAIO8-P\fP precludes the use of programmable Xgain control. X.Pp XUse the combination of non-blocking i/o, X.Xr select 2 Xand a custom fifo trigger Xwherever possible, especially with large numbers of open channels. XUsing this method, multichannel sample rates as high as 16,000 samples/sec Xhave been observed. X.Pp XSample rates lower than 32 Hz are not supported. X.Sh SEE ALSO X.Bd -literal Xhttp://www.indcompsrc.com/products/data/html/aio8g-p.html Xhttp://www.indcompsrc.com/products/data/html/at16-p.html X.Ed X.Sh AUTHOR XJamil J. Weatherbee . END-of-alog.4 echo x - alog.c sed 's/^X//' >alog.c << 'END-of-alog.c' X/* X * Copyright (c) 1997 Jamil J. Weatherbee X * All rights reserved. X * X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer X * in this position and unchanged. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. The name of the author may not be used to endorse or promote products X * derived from this software without specific prior written permission X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X * X * Industrial Computer Source model AIO8-P X * 8 channel, moderate speed analog to digital converter board with X * 128 channel MUX capability via daisy chained AT-16P units X * alog.c, character device driver, last revised November 21 1997 X * See http://www.indcompsrc.com/products/data/html/aio8g-p.html X * http://www.indcompsrc.com/products/data/html/at16-p.html X * X * Written by: Jamil J. Weatherbee X * X */ X X X/* Include Files */ X X#include "alog.h" X#if NALOG > 0 X X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X#include X X#ifdef DEVFS X#include X#endif X X/* Local Defines */ X X/* Tests have shown that increasing the fifo size X * beyond 64 entries for this particular piece of hardware is X * unproductive */ X X#ifdef ALOG_FIFOSIZE X#define FIFOSIZE ALOG_FIFOSIZE X#else X#define FIFOSIZE 64 X#endif X X#ifdef ALOG_FIFO_TRIGGER X#define DEFAULT_FIFO_TRIGGER ALOG_FIFO_TRIGGER X#else X#define DEFAULT_FIFO_TRIGGER 1 X#endif X X#ifdef ALOG_CHANNELS X#define NUMCHANNELS ALOG_CHANNELS X#else X#define NUMCHANNELS 128 X#endif X X#ifdef ALOG_TIMO X#define READTIMO ALOG_TIMO X#else X#define READTIMO (MAX_MICRO_PERIOD*NUMCHANNELS/500000*hz) X#endif X X#define CDEV_MAJOR 86 X#define NUMPORTS 8 X#define MAXUNITS 2 X#define NUMIMUXES 8 X X#define ADLOW 0x0 X#define ADHIGH 0x1 X#define STATUS 0x2 X#define CNTR0 0x4 X#define CNTR1 0x5 X#define CNTR2 0x6 X#define CNTRCNTRL 0x7 X X#define DEVFORMAT "alog%d%c%d" X#define CLOCK2FREQ 4.165 X#define MIN_MICRO_PERIOD 25 X#define MAX_MICRO_PERIOD (65535/CLOCK2FREQ*PRIMARY_STATES) X#define DEFAULT_MICRO_PERIOD MAX_MICRO_PERIOD X#define READMAXTRIG 0.75*FIFOSIZE X#define ALOGPRI PRIBIO X#define ALOGMSG "alogio" X X#define PRIMARY_STATES 2 /* Setup and conversion are clock tick consuming */ X#define STATE_SETUP 0 X#define STATE_CONVERT 1 X#define STATE_READ 2 X X/* Notes on interrupt driven A/D conversion: X * On the AIO8-P, interrupt driven conversion (the only type supported by this X * driver) is facilitated through 8253 timer #2. In order for interrrupts to X * be generated you must connect line 6 to line 24 (counter 2 output to X * interrupt input) and line 23 to line 29 (counter 2 gate to +5VDC). X * Due to the design of the AIO8-P this precludes the use of programmable X * gain control. X */ X X/* mode bits for the status register */ X X#define EOC 0x80 X#define IEN 0x08 X#define IMUXMASK 0x07 X#define EMUXMASK 0xf0 X X/* mode bits for counter controller */ X X#define LD2MODE4 0xb8 X X/* Minor allocations: X * UCCCCMMM X * U: board unit (0-1) X * CCCC: external multiplexer channel (0-15) (on AT-16P units) X * MMM: internal multiplexer channel (0-7) (on AIO8-P card) X */ X X#define UNIT(dev) ((minor(dev) & 0x80) >> 7) X#define CHANNEL(dev) (minor(dev) & 0x7f) X#define EMUX(chan) ((chan & 0x78) >> 3) X#define EMUXMAKE(chan) ((chan & 0x78) << 1) X#define IMUX(chan) (chan & 0x07) X#define LMINOR(unit, chan) ((unit << 7)+chan) X X/* port statuses */ X X#define STATUS_UNUSED 0 X#define STATUS_INUSE 1 X#define STATUS_STOPPED 2 X#define STATUS_INIT 3 X X/* Type definitions */ X Xtypedef struct X{ X short status; /* the status of this chan */ X struct selinfo readselect; /* the select() polling info */ X u_short fifo[FIFOSIZE]; /* fifo for this chan */ X int fifostart, fifoend; /* the ptrs showing where info is stored in fifo */ X int fifosize, fifotrig; /* the current and trigger size of the fifo */ X void *devfs_token; /* the devfs token for this chan */ X int nextchan; X} talog_chan; X Xtypedef struct X{ X struct isa_device *isaunit; /* ptr to isa device information */ X talog_chan chan[NUMCHANNELS]; /* the device nodes */ X int curchan; /* the current chan being intr handled */ X int firstchan; /* the first chan to go to in list */ X int state; /* is the node in setup or convert mode */ X long microperiod; /* current microsecond period setting */ X u_char perlo, perhi; /* current values to send to clock 2 after every intr */ X X} talog_unit; X X/* Function Prototypes */ X Xstatic int alog_probe (struct isa_device *idp); /* Check for alog board */ Xstatic int alog_attach (struct isa_device *idp); /* Take alog board */ Xstatic int sync_clock2 (int unit, long period); /* setup clock 2 period */ Xstatic __inline int putfifo (talog_chan *pchan, u_short fifoent); Xstatic int alog_open (dev_t dev, int oflags, int devtype, struct proc *p); Xstatic int alog_close (dev_t dev, int fflag, int devtype, struct proc *p); Xstatic int alog_ioctl (dev_t dev, int cmd, caddr_t data, X int fflag, struct proc *p); Xstatic int alog_read (dev_t dev, struct uio *uio, int ioflag); Xstatic int alog_select (dev_t dev, int which, struct proc *p); X X/* Global Data */ X Xstatic int alog_devsw_installed = 0; /* Protect against reinit multiunit */ Xstatic talog_unit *alog_unit[NALOG]; /* data structs for each unit */ X X/* Character device switching structure */ Xstatic struct cdevsw alog_cdevsw = { alog_open, alog_close, alog_read, X nowrite, alog_ioctl, nostop, noreset, X nodevtotty, alog_select, nommap, X nostrategy, "alog", NULL, -1 }; X X/* Structure expected to tell how to probe and attach the driver X * Must be published externally (cannot be static) */ Xstruct isa_driver alogdriver = { alog_probe, alog_attach, "alog", 0 }; X X X/* handle the ioctls */ Xstatic int alog_ioctl (dev_t dev, int cmd, caddr_t data, X int fflag, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X X switch (cmd) X { X case FIONBIO: return 0; /* this allows for non-blocking ioctls */ X X case AD_NCHANS_GET: *(int *)data = NUMCHANNELS; X return 0; X case AD_FIFOSIZE_GET: *(int *)data = FIFOSIZE; X return 0; X X case AD_FIFO_TRIGGER_GET: s = spltty(); X *(int *)data = info->chan[chan].fifotrig; X splx(s); X return 0; X X case AD_FIFO_TRIGGER_SET: X s = spltty(); X if ((*(int *)data < 1) || (*(int *)data > FIFOSIZE)) X { X splx(s); X return EPERM; X } X info->chan[chan].fifotrig = *(int *)data; X splx(s); X return 0; X X case AD_STOP: s = spltty(); X info->chan[chan].status = STATUS_STOPPED; X splx(s); X return 0; X X case AD_START: s = spltty(); X info->chan[chan].status = STATUS_INUSE; X splx(s); X return 0; X X case AD_MICRO_PERIOD_SET: X s = spltty(); X if (sync_clock2 (unit, *(long *) data)) X { X splx(s); X return EPERM; X } X splx(s); X return 0; X X case AD_MICRO_PERIOD_GET: s = spltty(); X *(long *)data = info->microperiod; X splx(s); X return 0; X X } X X return ENOTTY; X} X X X/* handle select() based read polling */ Xstatic int alog_select (dev_t dev, int which, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X X s = spltty(); X if (which == FREAD) X if (info->chan[chan].fifosize >= info->chan[chan].fifotrig) X { X splx(s); X return 1; /* ready for read */ X } X else X { X /* record this request */ X selrecord (p, &(info->chan[chan].readselect)); X splx(s); X return 0; /* not ready, yet */ X } X X splx(s); X return 0; /* not ready (any I never will be) */ X} X X X/* how to read from the board */ Xstatic int alog_read (dev_t dev, struct uio *uio, int ioflag) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s, oldtrig, toread, err = 0; X X s = spltty(); X X oldtrig = info->chan[chan].fifotrig; /* save official trigger value */ X while (uio->uio_resid >= sizeof(u_short)) /* while uio has space */ X { X if (!info->chan[chan].fifosize) /* if we have an empty fifo */ X { X if (ioflag & IO_NDELAY) /* exit if we are non-blocking */ X { err = EWOULDBLOCK; X break; X } X /* Start filling fifo on first blocking read */ X if (info->chan[chan].status == STATUS_INIT) X info->chan[chan].status = STATUS_INUSE; X /* temporarily adjust the fifo trigger to be optimal size */ X info->chan[chan].fifotrig = X min (READMAXTRIG, uio->uio_resid / sizeof(u_short)); X /* lets sleep until we have some io available or timeout */ X err = tsleep (&(info->chan[chan].fifo), ALOGPRI | PCATCH, ALOGMSG, X info->chan[chan].fifotrig*READTIMO); X if (err == EWOULDBLOCK) X { printf (DEVFORMAT ": read timeout\n", unit, X 'a'+EMUX(chan), IMUX(chan)); X } X if (err == ERESTART) err = EINTR; /* don't know how to restart */ X if (err) break; /* exit if any kind of error or signal */ X } X X /* ok, now if we got here there is something to read from the fifo */ X X /* calculate how many entries we can read out from the fifostart X * pointer */ X toread = min (uio->uio_resid / sizeof(u_short), X min (info->chan[chan].fifosize, X FIFOSIZE - info->chan[chan].fifostart)); X /* perform the move, if there is an error then exit */ X if (err = uiomove((caddr_t) X &(info->chan[chan].fifo[info->chan[chan].fifostart]), X toread * sizeof(u_short), uio)) break; X info->chan[chan].fifosize -= toread; /* fifo this much smaller */ X info->chan[chan].fifostart += toread; /* we got this many more */ X if (info->chan[chan].fifostart == FIFOSIZE) X info->chan[chan].fifostart = 0; /* wrap around fifostart */ X X } X info->chan[chan].fifotrig = oldtrig; /* restore trigger changes */ X splx(s); X return err; X} X X X/* open a channel */ Xstatic int alog_open (dev_t dev, int oflags, int devtype, struct proc *p) X{ X int unit = UNIT(dev); /* get unit no */ X int chan = CHANNEL(dev); /* get channel no */ X talog_unit *info; X int s; /* priority */ X int cur; X X if ((unit >= NALOG) || (unit >= MAXUNITS) || (chan >= NUMCHANNELS)) X return ENXIO; /* unit and channel no ok ? */ X if (!alog_unit[unit]) return ENXIO; /* unit attached */ X info = alog_unit[unit]; /* ok, this is valid now */ X X if (info->chan[chan].status) return EBUSY; /* channel busy */ X if (oflags & FREAD) X { X s=spltty(); X info->chan[chan].status = STATUS_INIT; /* channel open, read waiting */ X info->chan[chan].fifostart = info->chan[chan].fifoend = X info->chan[chan].fifosize = 0;/* fifo empty */ X info->chan[chan].fifotrig = DEFAULT_FIFO_TRIGGER; X if (info->firstchan < 0) /* if empty chain */ X { X info->firstchan = info->curchan = chan; /* rev up the list */ X info->chan[chan].nextchan = -1; /* end of the list */ X } X else /* non empty list must insert */ X { X if (chan < info->firstchan) /* this one must become first in list */ X { X info->chan[chan].nextchan = info->firstchan; X info->firstchan = chan; X } X else /* insert this one as second - last in chan list */ X { X cur = info->firstchan; X X /* traverse list as long as cur is less than chan and cur is X * not last in list */ X while ((info->chan[cur].nextchan < chan) && X (info->chan[cur].nextchan >= 0)) X cur = info->chan[cur].nextchan; X X /* now cur should point to the entry right before yours */ X info->chan[chan].nextchan = info->chan[cur].nextchan; X info->chan[cur].nextchan = chan; /* insert yours in */ X } X } X splx(s); X return 0; /* open successful */ X } X return EPERM; /* this is a read only device */ X} X X X/* close a channel */ Xstatic int alog_close (dev_t dev, int fflag, int devtype, struct proc *p) X{ X int unit = UNIT(dev); X int chan = CHANNEL(dev); X talog_unit *info = alog_unit[unit]; X int s; X int cur; X X s = spltty(); X info->chan[chan].status = STATUS_UNUSED; X X /* what if we are in the middle of a conversion ? X * then smoothly get us out of it: */ X if (info->curchan == chan) X { /* if we are last in list set curchan to first in list */ X if ((info->curchan = info->chan[chan].nextchan) < 0) X info->curchan = info->firstchan; X X info->state = STATE_SETUP; X } X X /* if this is the first channel, then make the second channel the first X * channel (note that if this is also the only channel firstchan becomes X * -1 and so the list is marked as empty */ X X if (chan == info->firstchan) X info->firstchan = info->chan[chan].nextchan; X else /* ok, so there must be at least 2 channels (and it is not the first) */ X { X cur = info->firstchan; X X /* find the entry before it (which must exist if you are closing) */ X while (info->chan[cur].nextchan < chan) X cur = info->chan[cur].nextchan; X /* at this point we must have the entry before ours */ X info->chan[cur].nextchan = info->chan[chan].nextchan; /* give our link */ X X } X X splx(s); X X return 0; /* close always successful */ X} X X X/* The probing routine - returns number of bytes needed */ Xstatic int alog_probe (struct isa_device *idp) X{ X int unit = idp->id_unit; /* this device unit number */ X int iobase = idp->id_iobase; /* the base address of the unit */ X int addr; X X if ((unit < 0) || (unit >= NALOG) || (unit >= MAXUNITS)) X { X printf ("alog: invalid unit number (%d)\n", unit); X return 0; X } X X /* the unit number is ok, lets check if used */ X if (alog_unit[unit]) X { X printf ("alog: unit (%d) already attached\n", unit); X return 0; X } X X if (inb (iobase+STATUS) & EOC) return 0; /* End of conv bit should be 0 */ X for (addr=0; addr MAX_MICRO_PERIOD) || (period < MIN_MICRO_PERIOD)) X return -1; /* error period too long */ X info->microperiod = period; /* record the period */ X clockper = (CLOCK2FREQ * period) / PRIMARY_STATES; X info->perlo = clockper & 0xff; /* least sig byte of clock period */ X info->perhi = ((clockper & 0xff00) >> 8); /* most sig byte of clock period */ X return 0; X} X X X/* The attachment routine - returns true on success */ Xstatic int alog_attach (struct isa_device *idp) X{ X int unit = idp->id_unit; /* this device unit number */ X int iobase = idp->id_iobase; /* the base address of the unit */ X talog_unit *info; /* pointer to driver specific info for unit */ X int chan; /* the channel used for creating devfs nodes */ X X if (!(info = malloc(sizeof(*info), M_DEVBUF, M_NOWAIT))) X { X printf ("alog%d: cannot allocate driver storage\n", unit); X return 0; X } X alog_unit[unit] = info; /* make sure to save the pointer */ X bzero (info, sizeof(*info)); /* clear info structure to all false */ X info->isaunit = idp; /* store ptr to isa device information */ X sync_clock2 (unit, DEFAULT_MICRO_PERIOD); /* setup perlo and perhi */ X info->firstchan = -1; /* channel lists are empty */ X X /* insert devfs nodes */ X X#ifdef DEVFS X for (chan=0; chanchan[chan].devfs_token = X devfs_add_devswf(&alog_cdevsw, LMINOR(unit, chan), DV_CHR, X UID_ROOT, GID_WHEEL, 0400, DEVFORMAT, X unit, 'a'+EMUX(chan), IMUX(chan)); X#endif X X printf ("alog%d: %d channels, %d bytes/FIFO, %d entry trigger\n", X unit, NUMCHANNELS, FIFOSIZE*sizeof(u_short), X DEFAULT_FIFO_TRIGGER); X alogintr (unit); /* start the periodic interrupting process */ X return 1; /* obviously successful */ X} X X X/* Unit interrupt handling routine (interrupts generated by clock 2) */ Xvoid alogintr (int unit) X{ X talog_unit *info = alog_unit[unit]; X int iobase = info->isaunit->id_iobase; X u_short fifoent; X X X if (info->firstchan >= 0) /* ? is there even a chan list to traverse */ X switch (info->state) X { X case STATE_READ: X if (info->chan[info->curchan].status == STATUS_INUSE) X { X if (inb (iobase+STATUS) & EOC) /* check that conversion finished */ X printf (DEVFORMAT ": incomplete conversion\n", unit, X 'a'+EMUX(info->curchan), IMUX(info->curchan)); X else /* conversion is finished (should always be) */ X { X fifoent = (inb (iobase+ADHIGH) << 8) + X inb (iobase+ADLOW); X if (putfifo(&(info->chan[info->curchan]), fifoent)) X { X printf (DEVFORMAT ": fifo overflow\n", unit, X 'a'+EMUX(info->curchan), IMUX(info->curchan)); X } X if (info->chan[info->curchan].fifosize >= X info->chan[info->curchan].fifotrig) X { X /* if we've reached trigger levels */ X selwakeup (&(info->chan[info->curchan].readselect)); X wakeup (&(info->chan[info->curchan].fifo)); X } X } X } X /* goto setup state for next channel on list */ X if ((info->curchan = info->chan[info->curchan].nextchan) < 0) X info->curchan = info->firstchan; X /* notice lack of break here this implys a STATE_SETUP */ X case STATE_SETUP: /* set the muxes and let them settle */ X#if NUMCHANNELS > NUMIMUXES /* only do this if using external muxes */ X outb (iobase+STATUS, X EMUXMAKE(info->curchan) | IMUX(info->curchan) | IEN); X info->state = STATE_CONVERT; X break; X#endif X case STATE_CONVERT: X outb (iobase+STATUS, X EMUXMAKE(info->curchan) | IMUX(info->curchan) | IEN); X outb (iobase+ADHIGH, 0); /* start the conversion */ X info->state = STATE_READ; X break; X } X else /* this is kind of like an idle mode */ X { X outb (iobase+STATUS, IEN); /* no list keep getting interrupts though */ X /* since we have no open channels spin clock rate down to X * minimum to save interrupt overhead */ X outb (iobase+CNTRCNTRL, LD2MODE4); /* counter 2 to mode 4 strobe */ X outb (iobase+CNTR2, 0xff); /* longest period we can generate */ X outb (iobase+CNTR2, 0xff); X return; X } X outb (iobase+CNTRCNTRL, LD2MODE4); /* counter 2 to mode 4 strobe */ X outb (iobase+CNTR2, info->perlo); /* low part of the period count */ X outb (iobase+CNTR2, info->perhi); /* high part of the period count */ X} X X X/* this will put an entry in fifo, returns 1 if the first item in X * fifo was wiped (overflow) or 0 if everything went fine */ Xstatic int __inline putfifo (talog_chan *pchan, u_short fifoent) X{ X pchan->fifo[pchan->fifoend] = fifoent; /* insert the entry in */ X pchan->fifoend++; /* one more in fifo */ X if (pchan->fifoend == FIFOSIZE) pchan->fifoend = 0; /* wrap around */ X /* note: I did intend to write over the oldest entry on overflow */ X if (pchan->fifosize == FIFOSIZE) /* overflowing state already */ X { X pchan->fifostart++; X if (pchan->fifostart == FIFOSIZE) pchan->fifostart = 0; X return 1; /* we overflowed */ X } X pchan->fifosize++; /* actually one bigger, else same size */ X return 0; /* went in just fine */ X} X X X/* Driver initialization */ Xstatic void alog_drvinit (void *unused) X{ X dev_t dev; /* Type for holding device major/minor numbers (int) */ X X if (!alog_devsw_installed) X { X dev = makedev (CDEV_MAJOR, 0); /* description of device major */ X cdevsw_add (&dev, &alog_cdevsw, NULL); /* put driver in cdev table */ X alog_devsw_installed=1; X } X} X X/* System initialization call instance */ X XSYSINIT (alogdev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR, X alog_drvinit,NULL); X X#endif END-of-alog.c echo x - alogio.h sed 's/^X//' >alogio.h << 'END-of-alogio.h' X/* X * Copyright (c) 1997 Jamil J. Weatherbee X * All rights reserved. X * X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X * notice, this list of conditions and the following disclaimer X * in this position and unchanged. X * 2. Redistributions in binary form must reproduce the above copyright X * notice, this list of conditions and the following disclaimer in the X * documentation and/or other materials provided with the distribution. X * 3. The name of the author may not be used to endorse or promote products X * derived from this software without specific prior written permission X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X * X * Industrial Computer Source model AIO8-P X * 128 channel MUX capability via daisy chained AT-16P units X * alogio.h, definitions for alog ioctl(), last revised November 19 1997 X * See http://www.indcompsrc.com/products/data/html/aio8g-p.html X * http://www.indcompsrc.com/products/data/html/at16-p.html X * X * Written by: Jamil J. Weatherbee X * X */ X X#ifndef _SYS_ALOGIO_H_ X#define _SYS_ALOGIO_H_ X X#ifndef KERNEL X#include X#endif X#include X X/* Note: By default A/D conversions are started when a channel is open */ X X/* Halt clocked A/D conversion on an open channel */ X#define AD_STOP _IO('A', 100) X/* Restart clocked A/D conversion on an open channel */ X#define AD_START _IO('A', 101) X/* Get the number of entries the fifo for this channel will hold */ X#define AD_FIFOSIZE_GET _IOR('A', 102, int) X/* Set the minimum number of entries a fifo must contain before it X * notifies a select() or read() that is waiting for it to fill */ X#define AD_FIFO_TRIGGER_SET _IOW('A', 103, int) X/* This gets the the fifo trigger setting */ X#define AD_FIFO_TRIGGER_GET _IOR('A', 104, int) X X#endif END-of-alogio.h exit >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Nov 22 00:10:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA21673 for bugs-outgoing; Sat, 22 Nov 1997 00:10:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA21664; Sat, 22 Nov 1997 00:10:02 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 22 Nov 1997 00:10:02 -0800 (PST) Resent-Message-Id: <199711220810.AAA21664@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, cagney@tpgi.com.au Received: from random.tpgi.com.au (random.tpgi.com.au [203.12.160.7]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA21096 for ; Sat, 22 Nov 1997 00:01:30 -0800 (PST) (envelope-from cagney@tpgi.com.au) Received: (from smtpd@localhost) by random.tpgi.com.au (8.8.4/8.8.6) id TAA16205 for ; Sat, 22 Nov 1997 19:01:21 +1100 (EST) Received: from oberon.tpgi.com.au(203.12.160.2), claiming to be "oberon.com.au" via SMTP by random.tpgi.com.au, id smtpdAAAa003xA; Sat Nov 22 19:01:13 1997 Received: from b1.tpgi.com.au by oberon.com.au (SMI-8.6/SMI-SVR4) id TAA03187; Sat, 22 Nov 1997 19:00:58 +1100 Received: (from cagney@localhost) by b1.tpgi.com.au (8.8.7/8.7.3) id TAA17767; Sat, 22 Nov 1997 19:01:26 +1100 (EST) Message-Id: <199711220801.TAA17767@b1.tpgi.com.au> Date: Sat, 22 Nov 1997 19:01:26 +1100 (EST) From: Andrew Cagney Reply-To: cagney@tpgi.com.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/5124: No unpacked documentation in 2.2.5 CD's. Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5124 >Category: docs >Synopsis: No unpacked documentation in 2.2.5 CD's. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 22 00:10:01 PST 1997 >Last-Modified: >Originator: Andrew Cagney >Organization: >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: The 2.2.5 CD's from walnut creek. >Description: The installation doesn't include /usr/doc (Perhaphs I'm wrong). It is certainly not in the `doc' set of files. >How-To-Repeat: Install from scratch. >Fix: Fortunatly CD-2 - full file system contains the source files. o install sgmlformat package (correct name) o Mount the second CD onto /cdrom o copy /cdrom/usr/doc to /usr/doc o cd to /usr/doc and build it all >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Nov 22 02:00:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA26887 for bugs-outgoing; Sat, 22 Nov 1997 02:00:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA26867; Sat, 22 Nov 1997 02:00:02 -0800 (PST) (envelope-from gnats) Date: Sat, 22 Nov 1997 02:00:02 -0800 (PST) Message-Id: <199711221000.CAA26867@hub.freebsd.org> To: freebsd-bugs Cc: From: "Jordan K. Hubbard" Subject: Re: docs/5124: No unpacked documentation in 2.2.5 CD's. Reply-To: "Jordan K. Hubbard" Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR docs/5124; it has been noted by GNATS. From: "Jordan K. Hubbard" To: cagney@tpgi.com.au Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: docs/5124: No unpacked documentation in 2.2.5 CD's. Date: Sat, 22 Nov 1997 01:50:35 -0800 > The installation doesn't include /usr/doc (Perhaphs I'm wrong). > It is certainly not in the `doc' set of files. This is true, but it's on the 2nd CD in filesys/usr/doc so all is not lost. From owner-freebsd-bugs Sat Nov 22 02:05:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA27192 for bugs-outgoing; Sat, 22 Nov 1997 02:05:14 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from utogw.gssm.otsuka.tsukuba.ac.jp (utogw.gssm.otsuka.tsukuba.ac.jp [192.50.17.2]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id CAA27156 for ; Sat, 22 Nov 1997 02:04:57 -0800 (PST) (envelope-from ohki@gssm.otsuka.tsukuba.ac.jp) From: ohki@gssm.otsuka.tsukuba.ac.jp Received: from smr00.gssm.otsuka.tsukuba.ac.jp (smr00 [192.50.17.5]) by utogw.gssm.otsuka.tsukuba.ac.jp (8.6.12/8.6.9) with ESMTP id TAA28135; Sat, 22 Nov 1997 19:03:35 +0900 Received: from localhost (localhost [127.0.0.1]) by smr00.gssm.otsuka.tsukuba.ac.jp (8.8.5/8.8.5) with ESMTP id TAA22516; Sat, 22 Nov 1997 19:03:16 +0900 (JST) Message-Id: <199711221003.TAA22516@smr00.gssm.otsuka.tsukuba.ac.jp> To: freebsd-bugs@FreeBSD.org Subject: Pentium f00f problem -- possible fix Mime-Version: 1.0 Content-Type: text/plain;charset="us-ascii" Cc: ohki@gssm.otsuka.tsukuba.ac.jp Date: Sat, 22 Nov 1997 19:03:16 +0900 Sender: owner-freebsd-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hi FreeBSD folks You might have fixed the problem of newly discovered bug of Pentium. (code sequence of 0xf0 0x0f 0xc7 0xc8 freezes the system) I implemented the recommended solution comes from Intel, and enclosed context diffs. It is my pleasure if it helps you. --- locore.s-ORIG Sat Feb 1 21:10:54 1997 +++ locore.s Sat Nov 22 16:42:23 1997 @@ -99,6 +99,17 @@ */ .data ALIGN_DATA /* just to be sure */ +#if defined(I586_CPU) + /* + * work around for f00f problem of Pentium + * trap to page fault before the machine hangs + */ + .globl _idt + .space PAGE_SIZE - 8*7 +_idt: + .space 8*7 /* cause page fault for idt[0] to idt[6] */ + .space PAGE_SIZE +#endif defined(I586_CPU) .globl tmpstk .space 0x2000 /* space for tmpstk - temporary stack */ --- machdep.c-ORIG Thu Apr 3 15:37:31 1997 +++ machdep.c Sat Nov 22 18:50:04 1997 @@ -39,6 +39,7 @@ */ #include "npx.h" +#include "opt_cpu.h" /* XXX */ #include "opt_sysvipc.h" #include "opt_ddb.h" #include "opt_bounce.h" @@ -206,6 +207,13 @@ * Good {morning,afternoon,evening,night}. */ printf(version); +#if defined(I586_CPU) + if (cpu == CPU_586) { + unsigned *pte = (unsigned *)vtopte(idt); + *pte &= ~PG_V; + printf("Pentium -- enable workaround for f00f problem!\n"); + } +#endif defined(I586_CPU) earlysetcpuclass(); startrtclock(); identifycpu(); --- exception.s-ORIG Mon Aug 12 02:41:23 1996 +++ exception.s Sat Nov 22 18:44:22 1997 @@ -33,6 +33,7 @@ * $Id: exception.s,v 1.19 1996/08/11 17:41:23 davidg Exp $ */ +#include "opt_cpu.h" /* XXX */ #include "npx.h" /* NNPX */ #include "assym.s" /* system defines */ #include /* error return codes */ @@ -42,6 +43,9 @@ #include /* syscall numbers */ #include /* miscellaneous macros */ #include /* CPP macros */ +#if defined(I586_CPU) +#include +#endif /* defined(I586) */ #define KDSEL 0x10 /* kernel data selector */ #define SEL_RPL_MASK 0x0003 @@ -112,6 +116,39 @@ IDTVEC(prot) TRAP(T_PROTFLT) IDTVEC(page) +#if defined(I586_CPU) +#define IDTVECnm(name) __CONCAT(_X,name) + /* data segment is not KERNEL ! */ + pushl %eax + cmpl $CPU_586,%cs:_cpu + jne 1f + movl %cr2,%eax + subl $_idt,%eax + shrl $3,%eax + cmpl $6,%eax + ja 1f + /* + * page fault via accessing idt[0] to idt[6] + * dispatch to them + */ + movl %cs:trp_vec(,%eax,4),%eax + movl %eax,4(%esp) /* holding error code */ + popl %eax + addl $4,%esp /* adjust stack to discard error code */ + jmp *-4(%esp) +trp_vec: + /* order must be the same as in machdep.c */ + .long IDTVECnm(div) + .long IDTVECnm(dbg) + .long IDTVECnm(nmi) + .long IDTVECnm(bpt) + .long IDTVECnm(ofl) + .long IDTVECnm(bnd) + .long IDTVECnm(ill) +#undef IDTVECnm +1: + popl %eax +#endif /* defined(I586_CPU) */ TRAP(T_PAGEFLT) IDTVEC(mchk) pushl $0; TRAP(T_MCHK) From owner-freebsd-bugs Sat Nov 22 04:50:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA04198 for bugs-outgoing; Sat, 22 Nov 1997 04:50:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA04190; Sat, 22 Nov 1997 04:50:01 -0800 (PST) (envelope-from gnats) Date: Sat, 22 Nov 1997 04:50:01 -0800 (PST) Message-Id: <199711221250.EAA04190@hub.freebsd.org> To: freebsd-bugs Cc: From: Andrew Cagney Subject: Re: docs/5124: No unpacked documentation in 2.2.5 CD's. Reply-To: Andrew Cagney Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR docs/5124; it has been noted by GNATS. From: Andrew Cagney To: jkh@time.cdrom.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: docs/5124: No unpacked documentation in 2.2.5 CD's. Date: Sat, 22 Nov 1997 23:44:26 +1100 (WET) Excerpts from mail: 22-Nov-97 Re: docs/5124: No unpacked .. @time.cdrom.com (196*) > > The installation doesn't include /usr/doc (Perhaphs I'm wrong). > > It is certainly not in the `doc' set of files. > This is true, but it's on the 2nd CD in filesys/usr/doc so all > is not lost. Yes (but not built). I mentioned that in my FIX Andrew From owner-freebsd-bugs Sat Nov 22 05:09:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA04694 for bugs-outgoing; Sat, 22 Nov 1997 05:09:43 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from utogw.gssm.otsuka.tsukuba.ac.jp (utogw.gssm.otsuka.tsukuba.ac.jp [192.50.17.2]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id FAA04689 for ; Sat, 22 Nov 1997 05:09:33 -0800 (PST) (envelope-from ohki@gssm.otsuka.tsukuba.ac.jp) From: ohki@gssm.otsuka.tsukuba.ac.jp Received: from smr00.gssm.otsuka.tsukuba.ac.jp (smr00 [192.50.17.5]) by utogw.gssm.otsuka.tsukuba.ac.jp (8.6.12/8.6.9) with ESMTP id WAA29057; Sat, 22 Nov 1997 22:08:22 +0900 Received: from localhost (localhost [127.0.0.1]) by smr00.gssm.otsuka.tsukuba.ac.jp (8.8.5/8.8.5) with ESMTP id WAA22851; Sat, 22 Nov 1997 22:08:00 +0900 (JST) Message-Id: <199711221308.WAA22851@smr00.gssm.otsuka.tsukuba.ac.jp> To: freebsd-bugs@FreeBSD.org Cc: ohki@gssm.otsuka.tsukuba.ac.jp Subject: Re: Pentium f00f problem -- possible fix In-reply-to: Your message of "Sat, 22 Nov 97 19:03:16 JST" References: <199711221003.TAA22516@smr00.gssm.otsuka.tsukuba.ac.jp> Mime-Version: 1.0 Content-Type: text/plain;charset="us-ascii" Date: Sat, 22 Nov 1997 22:08:00 +0900 Sender: owner-freebsd-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I wrote: > Hi FreeBSD folks > > You might have fixed the problem of newly discovered bug of Pentium. > (code sequence of 0xf0 0x0f 0xc7 0xc8 freezes the system) > > I implemented the recommended solution comes from Intel, > and enclosed context diffs. > It is my pleasure if it helps you. Following is more better (since eliminating CPU-type checking at page fault handler. No efficiency penalty except Pentinum) --- i386/i386/locore.s-ORIG Sat Feb 1 21:10:54 1997 +++ i386/i386/locore.s Sat Nov 22 21:54:29 1997 @@ -99,6 +99,18 @@ */ .data ALIGN_DATA /* just to be sure */ +#if defined(I586_CPU) + /* + * workaround for f00f problem of Pentium + * trap to page fault before the machine hangs + * How can I align to a page boundary precisely? + */ + .globl _idt + .space PAGE_SIZE - 8*7 +_idt: + .space 8*7 /* cause page fault for idt[0] to idt[6] */ + .space PAGE_SIZE +#endif defined(I586_CPU) .globl tmpstk .space 0x2000 /* space for tmpstk - temporary stack */ --- i386/i386/machdep.c-ORIG Thu Apr 3 15:37:31 1997 +++ i386/i386/machdep.c Sat Nov 22 20:17:40 1997 @@ -39,6 +39,7 @@ */ #include "npx.h" +#include "opt_cpu.h" /* XXX */ #include "opt_sysvipc.h" #include "opt_ddb.h" #include "opt_bounce.h" @@ -206,6 +207,10 @@ * Good {morning,afternoon,evening,night}. */ printf(version); +#if defined(I586_CPU) + if (cpu == CPU_586) + printf("Pentium -- workaround for f00f problem enabled!\n"); +#endif defined(I586_CPU) earlysetcpuclass(); startrtclock(); identifycpu(); @@ -930,6 +935,9 @@ IDTVEC(tss), IDTVEC(missing), IDTVEC(stk), IDTVEC(prot), IDTVEC(page), IDTVEC(mchk), IDTVEC(rsvd), IDTVEC(fpu), IDTVEC(align), IDTVEC(syscall), IDTVEC(int0x80_syscall); +#if defined(I586_CPU) +extern inthand_t IDTVEC(page_f00f); +#endif /* defined(I586_CPU) */ void sdtossd(sd, ssd) @@ -1046,6 +1054,14 @@ r_idt.rd_limit = sizeof(idt) - 1; r_idt.rd_base = (int) idt; lidt(&r_idt); +#if defined(I586_CPU) + if (cpu == CPU_586) { + unsigned *pte = (unsigned *)vtopte(idt); + setidt(14, &IDTVEC(page_f00f), SDT_SYS386TGT, SEL_KPL, GSEL(GCODE_SEL, SEL_KPL)); + *pte &= ~PG_V; + printf("Pentium -- enable workaround for f00f problem!\n"); + } +#endif defined(I586_CPU) _default_ldt = GSEL(GLDT_SEL, SEL_KPL); lldt(_default_ldt); --- i386/i386/exception.s-ORIG Mon Aug 12 02:41:23 1996 +++ i386/i386/exception.s Sat Nov 22 21:53:26 1997 @@ -33,6 +33,7 @@ * $Id: exception.s,v 1.19 1996/08/11 17:41:23 davidg Exp $ */ +#include "opt_cpu.h" /* XXX */ #include "npx.h" /* NNPX */ #include "assym.s" /* system defines */ #include /* error return codes */ @@ -111,6 +112,40 @@ TRAP(T_STKFLT) IDTVEC(prot) TRAP(T_PROTFLT) +#if defined(I586_CPU) +#define IDTVECnm(name) __CONCAT(_X,name) +IDTVEC(page_f00f) + /* data segment is not KERNEL ! */ + pushl %eax + movl %cr2,%eax + subl $_idt,%eax + shrl $3,%eax + cmpl $6,%eax + ja 1f + /* + * page fault via accessing idt[0] to idt[6] + * dispatch to them + */ + movl %cs:trp_vec(,%eax,4),%eax + movl %eax,4(%esp) /* holding error code */ + popl %eax + addl $4,%esp /* adjust stack to discard error code */ + jmp *-4(%esp) + ALIGN_TEXT /* do I really need this ? */ + /* order must be the same as in machdep.c */ +trp_vec: + .long IDTVECnm(div) + .long IDTVECnm(dbg) + .long IDTVECnm(nmi) + .long IDTVECnm(bpt) + .long IDTVECnm(ofl) + .long IDTVECnm(bnd) + .long IDTVECnm(ill) +1: + popl %eax + jmp IDTVECnm(page) +#undef IDTVECnm +#endif /* defined(I586_CPU) */ IDTVEC(page) TRAP(T_PAGEFLT) IDTVEC(mchk) From owner-freebsd-bugs Sat Nov 22 05:50:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA06338 for bugs-outgoing; Sat, 22 Nov 1997 05:50:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA06320; Sat, 22 Nov 1997 05:50:01 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 22 Nov 1997 05:50:01 -0800 (PST) Resent-Message-Id: <199711221350.FAA06320@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, cagney@tpgi.com.au Received: from random.tpgi.com.au (random.tpgi.com.au [203.12.160.7]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA06077 for ; Sat, 22 Nov 1997 05:43:13 -0800 (PST) (envelope-from cagney@tpgi.com.au) Received: (from smtpd@localhost) by random.tpgi.com.au (8.8.4/8.8.6) id AAA13036 for ; Sun, 23 Nov 1997 00:43:09 +1100 (EST) Received: from mel-ppp-075.tpgi.com.au(203.12.163.75), claiming to be "b1.tpgi.com.au" via SMTP by random.tpgi.com.au, id smtpdAAAa003B5; Sun Nov 23 00:42:58 1997 Received: (from cagney@localhost) by b1.tpgi.com.au (8.8.7/8.7.3) id AAA24521; Sun, 23 Nov 1997 00:42:51 +1100 (EST) Message-Id: <199711221342.AAA24521@b1.tpgi.com.au> Date: Sun, 23 Nov 1997 00:42:51 +1100 (EST) From: Andrew Cagney Reply-To: cagney@tpgi.com.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/5125: mount man page should SEE ALSO mount_devfs Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5125 >Category: docs >Synopsis: mount man page should SEE ALSO mount_devfs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 22 05:50:00 PST 1997 >Last-Modified: >Originator: Andrew Cagney >Organization: >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: Vanila 2.2.5 >Description: The mount (1) man page doesn't mention mount_devfs >How-To-Repeat: man mount | tail -15 >Fix: Have a nice day :-) >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Nov 22 05:50:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA06349 for bugs-outgoing; Sat, 22 Nov 1997 05:50:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA06333; Sat, 22 Nov 1997 05:50:03 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 22 Nov 1997 05:50:03 -0800 (PST) Resent-Message-Id: <199711221350.FAA06333@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, cagney@tpgi.com.au Received: from random.tpgi.com.au (random.tpgi.com.au [203.12.160.7]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA06102 for ; Sat, 22 Nov 1997 05:44:22 -0800 (PST) (envelope-from cagney@tpgi.com.au) Received: (from smtpd@localhost) by random.tpgi.com.au (8.8.4/8.8.6) id AAA13100 for ; Sun, 23 Nov 1997 00:44:19 +1100 (EST) Received: from oberon.tpgi.com.au(203.12.160.2), claiming to be "oberon.com.au" via SMTP by random.tpgi.com.au, id smtpdAAAa003Cd; Sun Nov 23 00:44:12 1997 Received: from b1.tpgi.com.au by oberon.com.au (SMI-8.6/SMI-SVR4) id AAA07042; Sun, 23 Nov 1997 00:44:06 +1100 Received: (from cagney@localhost) by b1.tpgi.com.au (8.8.7/8.7.3) id AAA25765; Sun, 23 Nov 1997 00:44:38 +1100 (EST) Message-Id: <199711221344.AAA25765@b1.tpgi.com.au> Date: Sun, 23 Nov 1997 00:44:38 +1100 (EST) From: Andrew Cagney Reply-To: cagney@tpgi.com.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: gnu/5126: Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5126 >Category: gnu >Synopsis: >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 22 05:50:02 PST 1997 >Last-Modified: >Originator: Andrew Cagney >Organization: >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: `Virgin 2.2.5' (I've reverted back to 2.1.7 :-) >Description: For the program below, when compiled with G++ (-gpic) , produces the incorrect assembler: .type _d__Fv,@function _d__Fv: pushl %ebp movl %esp,%ebp pushl %ebx call L5 L5: popl %ebx addl $_GLOBAL_OFFSET_TABLE_+[.-L5],%ebx movl _DefaultHash__Fv@GOT(%ebx),%edx movl %edx,%eax jmp L3 .align 2,0x90 jmp L4 .align 2,0x90 jmp L3 .align 2,0x90 L4: L3: movl -4(%ebp),%ebx leave ret Notice that it has generated a ``@GOT'' instead of ``@GOTOFF'' for the reference to the static function DefaultHash (which has been both declared and defined). If the declaration is removed, the correct code is generated. If GCC is used, the correct code is generated. >How-To-Repeat: $ cat test.cc static void DefaultHash(void); static void DefaultHash(void) { } void * d (void) { return DefaultHash; } $ gcc -c -fpic test.cc /tmp/cc005218.s: Assembler messages: /tmp/cc005218.s:45: Warning: GOT relocation burb: `_DefaultHash__Fv' should be global $ cp test.cc test.c $ gcc -c -fpic test.c $ tail +2 test.cc > t.cc $ cat t.cc static void DefaultHash(void) { } void * d (void) { return DefaultHash; } $ gcc -c -fpic t.cc >Fix: Re-arrange code so that the static declaration isn't needed. >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Nov 22 06:00:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA06868 for bugs-outgoing; Sat, 22 Nov 1997 06:00:05 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA06840; Sat, 22 Nov 1997 06:00:01 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 22 Nov 1997 06:00:01 -0800 (PST) Resent-Message-Id: <199711221400.GAA06840@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, cagney@tpgi.com.au Received: from random.tpgi.com.au (random.tpgi.com.au [203.12.160.7]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA06718 for ; Sat, 22 Nov 1997 05:56:58 -0800 (PST) (envelope-from cagney@tpgi.com.au) Received: (from smtpd@localhost) by random.tpgi.com.au (8.8.4/8.8.6) id AAA13705 for ; Sun, 23 Nov 1997 00:56:55 +1100 (EST) Received: from oberon.tpgi.com.au(203.12.160.2), claiming to be "oberon.com.au" via SMTP by random.tpgi.com.au, id smtpdAAAa003M3; Sun Nov 23 00:56:49 1997 Received: from b1.tpgi.com.au by oberon.com.au (SMI-8.6/SMI-SVR4) id AAA07091; Sun, 23 Nov 1997 00:56:42 +1100 Received: (from cagney@localhost) by b1.tpgi.com.au (8.8.7/8.7.3) id AAA27390; Sun, 23 Nov 1997 00:57:14 +1100 (EST) Message-Id: <199711221357.AAA27390@b1.tpgi.com.au> Date: Sun, 23 Nov 1997 00:57:14 +1100 (EST) From: Andrew Cagney Reply-To: cagney@tpgi.com.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: conf/5127: Can't mount mfs file system larger than 38mb from fstab Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5127 >Category: conf >Synopsis: Can't mount mfs file system larger than 38mb from fstab >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 22 06:00:00 PST 1997 >Last-Modified: >Originator: Andrew Cagney >Organization: >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: Almost vanila 2.2.5 - Kernel configured with: options CHILD_MAX=128 options OPEN_MAX=128 options "MAXDSIZ=(256*1024*1024)" options "DFLDSIZ=(256*1024*1024)" A 500mb swap partition. >Description: Given the /etc/fstab entries: /dev/wd1b /tmp mfs rw 0 0 /dev/wd1b /mnt mfs rw,noauto 0 0 then, afer booting, mounting /mnt gives a very large (256mb) MFS /mnt. However /tmp's file system (mounted during boot) is only 38MB. Remounting the file system sorts out the problem (assming nothing is using /tmp :-) >How-To-Repeat: Reboot the system with the above kernel and FSTAB changes. Make /dev/wd1b >= 256mb. >Fix: Add/edit the lines below to /etc/rc after the edited line: mount -a -t nonfs,mfs if [ $? != 0 ]; then echo "Filesystem mount failed, startup aborted" exit 1 fi # Add mfs file systems now that all the swap is available ( ulimit -d unlimited && mount -a -t mfs ) if [ $? != 0 ]; then echo "Memory Filesystem mount failed, startup aborted" exit 1 fi >Audit-Trail: >Unformatted: From owner-freebsd-bugs Sat Nov 22 14:49:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA01468 for bugs-outgoing; Sat, 22 Nov 1997 14:49:02 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA01443; Sat, 22 Nov 1997 14:48:48 -0800 (PST) (envelope-from jmg@FreeBSD.org) From: John-Mark Gurney Received: (from jmg@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id OAA05251; Sat, 22 Nov 1997 14:48:20 -0800 (PST) Date: Sat, 22 Nov 1997 14:48:20 -0800 (PST) Message-Id: <199711222248.OAA05251@freefall.freebsd.org> To: cagney@tpgi.com.au, jmg@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: conf/5127 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: Can't mount mfs file system larger than 38mb from fstab State-Changed-From-To: open-closed State-Changed-By: jmg State-Changed-When: Sat Nov 22 14:46:52 PST 1997 State-Changed-Why: modifing daemon resource limits in /etc/login.conf is a better way to handle this... From owner-freebsd-bugs Sat Nov 22 19:56:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA15917 for bugs-outgoing; Sat, 22 Nov 1997 19:56:50 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from cyber.cybercityusa.net (cyber.cybercityusa.net [204.145.119.4] (may be forged)) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA15912; Sat, 22 Nov 1997 19:56:42 -0800 (PST) (envelope-from auto100@ccusa.net) Received: from ccusa.net ([204.145.119.121]) by cyber.cybercityusa.net (Netscape Mail Server v1.1) with SMTP id AAG335; Sat, 22 Nov 1997 21:18:19 -0600 From: auto100@ccusa.net (Mark Bott) To: auto100@ccusa.net Subject: Klaas Foundation 97-98 schedule Date: Sat, 22 Nov 1997 21:18:19 -0600 Message-ID: <19971123031642130.AAG335@ccusa.net> Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This is not a solicitation!!! This is a notification intended for other Non-profits and business leaders from the father of Polly Klaas, Marc Klaas. We doubt that there will be any additional contact from us, however if you would like to be removed from our list we will gladly do so. Please put the comment remove only in the suject line and our software will remove you from our contact list. History During a slumber party in October of 1993, 12 year old Polly Hannah Klaas was abducted at knife-point from her Petaluma, California home. A mass distribution of over 2 billion images of Polly was sent worldwide. She had soon become a symbol of love and lost innocence. The world froze one cold evening in December when the media reported that Polly, "America's Child," the beautiful girl with the warm brown eyes shown smiling in home videos for millions of TV viewers, was not found alive. The country was outraged. The public cried out for change in legislation and pro-action in crime prevention. "Polly was faced with a choice few people ever have to make," said her father, Marc Klaas. "By putting herself in mortal danger to protect her family and friends, Polly has become my greatest teacher." Marc Klaas immediately dove into a campaign to put children higher on the national priority list. With no prior media, political or public speaking experience, he immediately became savvy in affecting pro-active legislation, and sought to advocate children's issues and speak out on crime prevention. Mr. Klaas will be in the following regions the remainder of 1997 and the 1st five months of 1998. If you want a copy of the times and dates of programs closest to your area, please put your city and state in the subject box and as soon as the information is available, you will receive a copy of the agenda in your area. The programs in every area include a Town Hall Meeting and an automated fingerprint program for children with equipment that Mr. Klaas got from the Secret Service. These machines fingerprint and photograph children with no film and no ink!!!! Mr. Klaas is totally against data basing of children's names, so the only record is handed to the parent. What Mr. Klaas wants from other non profits and businesses. 1) All programs are FREE to the public and your attendance is welcome. 2) Mr. Klaas is looking for business and Non profit leaders to sit on the panel at the Town Meeting. 3) You may be able to set up a display for your business or organization at the event. Please follow the email instructions above to get the exact location nearest you. Or contact Mr. Mark J. Bott, National Program Director@ 217-529-4174. Month Region December 97 Portland, Oregon January 98 California February 98 North Carolina-South Carolina-Georgia-Florida March 98 Minnesota-Wisconsin-Illinois-Indiana-Ohio April 98 New York-NewJersey May 98 Western US Arizona-New Mexico-Colorado-Nevada-Idaho-Wyoming If you know of an interested sponsor in any area of the US, please let us know. Thank you!!!! The Klaas Foundation for Children From owner-freebsd-bugs Sat Nov 22 20:52:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA18178 for bugs-outgoing; Sat, 22 Nov 1997 20:52:36 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA18172; Sat, 22 Nov 1997 20:52:29 -0800 (PST) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.6.9) id PAA15123; Sun, 23 Nov 1997 15:51:01 +1100 Date: Sun, 23 Nov 1997 15:51:01 +1100 From: Bruce Evans Message-Id: <199711230451.PAA15123@godzilla.zeta.org.au> To: cagney@tpgi.com.au, freebsd-bugs@freebsd.org, jmg@freebsd.org Subject: Re: conf/5127 Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Synopsis: Can't mount mfs file system larger than 38mb from fstab > >State-Changed-From-To: open-closed >State-Changed-By: jmg >State-Changed-When: Sat Nov 22 14:46:52 PST 1997 >State-Changed-Why: >modifing daemon resource limits in /etc/login.conf is a better way to >handle this... And has already been handled after 2.2.5 was released. See revisions 1.14 and 1.9.2.4 of src/etc/login.conf. The problems are that mount_mfs is too conservative to raise its soft data limit above its hard data limit, and the hard data limit in /etc/login.conf was too conservative. See also revisions 1.17 and 1.20 of src/usr.sbin/newfs/mkfs.c. Bruce From owner-freebsd-bugs Sat Nov 22 22:09:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA21670 for bugs-outgoing; Sat, 22 Nov 1997 22:09:37 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA21613; Sat, 22 Nov 1997 22:09:09 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id WAA07509; Sat, 22 Nov 1997 22:08:38 -0800 (PST) Date: Sat, 22 Nov 1997 22:08:38 -0800 (PST) Message-Id: <199711230608.WAA07509@freefall.freebsd.org> To: mika@cs.caltech.edu, bde@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/5046 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Synopsis: gdb doesn't understand exponential notation State-Changed-From-To: open-closed State-Changed-By: bde State-Changed-When: Sat Nov 22 22:06:07 PST 1997 State-Changed-Why: Fixed in rev.1.12 of stdio/vfscanf.c. %Lg in c-exp.y didn't work. From owner-freebsd-bugs Sat Nov 22 23:47:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA25683 for bugs-outgoing; Sat, 22 Nov 1997 23:47:20 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA25669; Sat, 22 Nov 1997 23:47:07 -0800 (PST) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.6.9) id SAA19929; Sun, 23 Nov 1997 18:44:36 +1100 Date: Sun, 23 Nov 1997 18:44:36 +1100 From: Bruce Evans Message-Id: <199711230744.SAA19929@godzilla.zeta.org.au> To: bde@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, mika@cs.caltech.edu Subject: Re: bin/5046 Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Synopsis: gdb doesn't understand exponential notation >... >Fixed in rev.1.12 of stdio/vfscanf.c. %Lg in c-exp.y didn't work. Also fixed in 2.2. Not fixed in 2.1. Bruce