Revision
909 -
Directory Listing
-
[select for diffs]
Modified
Sun Apr 8 19:54:01 2007 UTC
(17 years, 5 months ago)
by
archite
Diff to
previous 908
,
to
selected 404
Importing initial form of bsd.patch.mk. While this is not a final version,
nor is it truly usefull to anyone other than the security officer, this
should be contained in the cvs tree now. Please note that various updates
to this mk file will continue and do not depend on it being in this form.
Revision
908 -
Directory Listing
-
[select for diffs]
Modified
Sat Apr 7 02:17:03 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 907
,
to
selected 404
Clean up the chroot patch. Remove SLOGGER definition since its no longer used. Go to WARNS 3 since there
are const errors with the second parameter of kenv. I could fix this with a const char [] definition for each entry,
but the current approach is easier to read.
This effectively equates to FreeBSD init.c 1.63 with some local changes. Like the previous chroot patch commit,
this is based on work by Oliver Fromme.
Revision
898 -
Directory Listing
-
[select for diffs]
Modified
Thu Apr 5 03:52:16 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 897
,
to
selected 404
After adding pro police, we started failing one of the regression tests that we used to pass (mutex_d).
curthread can be NULL in some cases. This was causing the test app to crash.
Revision
886 -
Directory Listing
-
[select for diffs]
Modified
Mon Apr 2 00:48:03 2007 UTC
(17 years, 5 months ago)
by
archite
Diff to
previous 885
,
to
selected 404
Importing propolice into MidnightBSD. Propolice is going to
provide us with much greater security and stability in the
long run. If upgrading from a pre-propolice system, please
follow the these instructions:
cd /usr/src/lib/libc && make obj && make && make install
cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
buildworld and kernel
It is adviced that any mports which were installed and/or built
prior to the propolice update also be updated. If any errors
or issue are encounted, please contact security@midnightbsd.org
and we will be sure to investigate and come up with an expeditious
fix.
Revision
884 -
Directory Listing
-
[select for diffs]
Modified
Fri Mar 30 05:36:52 2007 UTC
(17 years, 5 months ago)
by
ctriv
Diff to
previous 883
,
to
selected 404
Add a new variable, PORT_SYSTEM. If you set PORT_SYSTEM to "mport" in your
make.conf, your system will use the new mport package database and tools
instead of the old pkg_* binaries and /var/db/pkg.
Given that mport is in very early developement, and isn't even close to
alpha code yet, you will be ill advised to use it on your production
machine.
Revision
883 -
Directory Listing
-
[select for diffs]
Modified
Fri Mar 30 01:48:15 2007 UTC
(17 years, 5 months ago)
by
archite
Diff to
previous 882
,
to
selected 404
To avoid any confusion, the default PS1 for a user user with UID != 0
has been changed back to "$ ". Please update either ~/.profile or
~/.kshrc if you prefer to use the previous "> " PS1. While consistancy
is important, we have decided that we do not want to confuse anyone
who might mistake the previous PS1 for that of {t}csh's default prompt.
Revision
882 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 29 23:02:48 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 881
,
to
selected 404
Increase LOMTU to 32768. The previous value was set in 1995. NetBSD has been using around 32k since the BSD 4.4 lite import.
My testing has shown 32768 is faster on some workloads. There is a very slight drop transfer large, cached data but uncached data showed a noticable improvement.
Revision
881 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 29 22:44:53 2007 UTC
(17 years, 5 months ago)
by
laffer1
Diff to
previous 880
,
to
selected 404
Remove WARNS from cpufreq Makefile. kernel source Makefiles should not use WANRS as it conflicts with kernel build options.
Add additional Pentium M cpus.
Revision
869 -
Directory Listing
-
[select for diffs]
Modified
Tue Mar 20 17:02:55 2007 UTC
(17 years, 6 months ago)
by
laffer1
Diff to
previous 868
,
to
selected 404
$MidnightBSD$
The __MBSDID macro is not working as it should be with the assembler. There must be a behavior difference between FBSDID and MBSDID somewhere.
Revision
844 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 15 02:07:21 2007 UTC
(17 years, 6 months ago)
by
laffer1
Diff to
previous 843
,
to
selected 404
Increment requests counter right before we send an arp query. Without this change, EHOSTDOWN errors could be reported which would be incorrect.
Revision
806 -
Directory Listing
-
[select for diffs]
Modified
Mon Mar 12 23:32:12 2007 UTC
(17 years, 6 months ago)
by
laffer1
Diff to
previous 805
,
to
selected 404
Add MidnightBSD_version. Until we correct newvers.sh, this will report the FreeBSD value. We must first remove all references to FreeBSD_version (OSRELDATE) from mports and the src tree before we can whack this.
Revision
800 -
Directory Listing
-
[select for diffs]
Modified
Mon Mar 12 21:17:04 2007 UTC
(17 years, 6 months ago)
by
laffer1
Diff to
previous 799
,
to
selected 404
Fill in the correct rtm_index for RTM_ADD and RTM_CHANGE messages.
Allow RTM_CHANGE to change a number of route flags as specified by RTF_FMASK.
The unusued rtm_use filed in struct rt_Msghdr is redesignated as rtm_fmask field to communicate route flag changes in RTM_CHANGE messages from userland. The use count of a route was moved to rtm_rmx some time ago.
Revision
796 -
Directory Listing
-
[select for diffs]
Modified
Mon Mar 12 20:59:27 2007 UTC
(17 years, 6 months ago)
by
laffer1
Diff to
previous 795
,
to
selected 404
Sound overhaul.
Fix 8bit int overflows during channel creation and destruction on vchans.
Enforce channel/chardev numbering within 8bit boundary.
Traverse d-channels SLIT and try to reclaim free counter during channel creation.
Determine open direction using 'flags', not mode.
Don't allow opening the same device twice. (WTF?)
O_RDWR is allowed, provided that it is done by a single open and the hardware supports full duplex.
Fix pcm_unregister memory leak.
Optimize channel allocation and numbering.
Mega vchan create/destroy cleanup.
Obtained from FreeBSD
Revision
789 -
Directory Listing
-
[select for diffs]
Modified
Mon Mar 12 20:28:30 2007 UTC
(17 years, 6 months ago)
by
laffer1
Diff to
previous 788
,
to
selected 404
If the buffer lock has waiters after the bufer has changed identity then getnewbuf() needs to drop the buffer in order to wake waiters that might sleep on the buffer in the context of the old identity.
Obtained from FreeBSD (tegge) 1.491.2.8
Revision
764 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 8 17:11:18 2007 UTC
(17 years, 6 months ago)
by
laffer1
Diff to
previous 763
,
to
selected 404
If an NFS server returns more than a few EJUKEBOX errors for a given RPC request, the NFS client will back off for a very long wait (days, weeks) before retrying.
Change behavior to match solaris. There is a new sysctl nfs3_jukebox_delay which is in seconds to adjust the retry default.
Revision
743 -
Directory Listing
-
[select for diffs]
Modified
Mon Feb 19 21:30:39 2007 UTC
(17 years, 7 months ago)
by
laffer1
Diff to
previous 742
,
to
selected 404
This is a patch from Andrew Turner to allow partial booting on EFIKA. It includes ofwread.S from NetBSD. It uses the real-mode ofw interface from NetBSD and TLB exception handlers from FreeBSD's perforce //depot/user/jaras.
The ofwr_init call is not enabled by default as it breaks Macs. If the ifdef FIRMWORKSBUGS is commented out, EFIKA will work until it hits the scheduler.
Revision
737 -
Directory Listing
-
[select for diffs]
Modified
Fri Feb 9 22:32:17 2007 UTC
(17 years, 7 months ago)
by
laffer1
Diff to
previous 736
,
to
selected 404
A type * (ANY) query response containing multiple RRsets can trigger an
assertion failure.
Certain recursive queries can cause the nameserver to crash by using memory
which has already been freed.
Revision
729 -
Directory Listing
-
[select for diffs]
Modified
Wed Feb 7 15:50:03 2007 UTC
(17 years, 7 months ago)
by
laffer1
Diff to
previous 728
,
to
selected 404
TCP Auto sizing of socket buffers improves throughput on high latency links. Several new sysctls were added to control the buffers max size, etc.
Additional work is needed, but under initial testing this is working great. You must rebulid world in order for netstat to work correctly.
A few changes were made to netstat, but do not change functionality in any significant way.
Revision
712 -
Directory Listing
-
[select for diffs]
Modified
Sun Jan 28 18:22:15 2007 UTC
(17 years, 7 months ago)
by
laffer1
Diff to
previous 711
,
to
selected 404
Add additonal PATA controllers found on newer motherboards.
This specifically fixes the INTEL DP965LT which I happen to be using. Many Intel motherboards use one of these chips.
Revision
710 -
Directory Listing
-
[select for diffs]
Modified
Wed Jan 24 00:59:09 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 708
,
to
selected 404
The jail rc.d script does not check if a path inside a jail is a symbolic link before it uses a path.
/var/log/console.log and mounting/unmounting file systems inside the jail structure are not checked.
As such, the jail system is vulnerable to symlink attacks.
Revision
696 -
Directory Listing
-
[select for diffs]
Modified
Fri Jan 19 03:23:17 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 695
,
to
selected 404
Fix up IPXIP so that the network stack is run with Giant. There is unsafety in the code that requires this change for SMP systems to function properly.
Revision
689 -
Directory Listing
-
[select for diffs]
Modified
Fri Jan 19 02:33:24 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 688
,
to
selected 404
Clear the interupt source flags before processing the interupt events and turn off NIC interrupts while in the interrupt handler.
Relax the watchdog timer somewhat; don't enable it until the last packet is enqueued and if there is a TX interrupt but there are still outstanding ones reload the timer.
Revision
669 -
Directory Listing
-
[select for diffs]
Modified
Thu Jan 18 03:44:01 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 668
,
to
selected 404
Revert to setting vlan and vlandev parameters synchronously, as soon as both have been read from the command line. Still use the callback, but this time only to verify that both vlan and vlandev have been found on the command line.
Revision
668 -
Directory Listing
-
[select for diffs]
Modified
Thu Jan 18 03:39:19 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 667
,
to
selected 404
When a process is de-configuring a log file, also stop all of its PMCs that require a log file to operate.
Only stop PMCs that are in the running state.
Revision
618 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 13 15:00:24 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 617
,
to
selected 404
Further refine the bridge hack in teh arp code. Only do the special arp handling for interfaces which are actually in the bridge group, ignore all others.
Revision
603 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 13 13:51:19 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 602
,
to
selected 404
Handling of login.access(5) was moved from login(1) to pam_login_access(8) years ago. This will remove dead code, clean up manpages and install login.access.5 from the pam_login_access src dir.
Revision
591 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 13 00:10:35 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 590
,
to
selected 404
Reduce needless DNS query by lookup only appropriate address family.
Specify appropraite hints to getaddrinfo(3).
Obtain address family from peername in inetd mode.
Revision
556 -
Directory Listing
-
[select for diffs]
Modified
Sun Jan 7 22:14:28 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 555
,
to
selected 404
Fix random popping while playing in 32bit by increasing the buffer size.
Fix severe crackling under repetative module load/unload.
Make sure DMA pointer is properly aligned to avoid trunication by caller.
Add ac97 inverted external amplifier quirk for Maxselect x710s. (russian)
Trim unnecessary pointer alignment.
Revision
550 -
Directory Listing
-
[select for diffs]
Modified
Sun Jan 7 04:40:58 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 549
,
to
selected 404
Have TCP Inflight disable itself if RTT is too low.
sysctl net.inet.tcp.inflight.rttthresh specifies the threshold in milliseconds below which it will disengage inflight. It defaults to 10ms.
Revision
534 -
Directory Listing
-
[select for diffs]
Modified
Sun Jan 7 03:50:23 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 533
,
to
selected 404
Apply some patches from FreeBSD 6.1 Release for cpu detection, ioctl fixes, etc.
Change i386 GENERIC kernel to include VESA and raster support so that end users can easily switch to 800x600 and other video modes in the console. While the kernel size is larger, it makes more sense on a desktop.
Revision
525 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 6 19:25:01 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 524
,
to
selected 404
We haven't decided on how we're going to build or store the website documentation in the future yet. This will sync some problems with the imported docs in case we decide to do something with them. If not, its a handy reference until our own documentation is in place.
Revision
519 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 6 06:02:29 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 518
,
to
selected 404
Add a spinlock to handles cases where printf, etc are called simultaneously. This should fix console freezes in some circumstances.
This patch was based on a similar patch to FreeBSD stable, however, we do not use the new "enhanced" syscons code so it will require further testing. It works fine on a UNI box.
Revision
515 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 6 01:16:44 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 514
,
to
selected 404
Check the return code of sc_clean_up() in the only place missing. There is only one case where it can fail in wait_scrn_saver_stop(), but might as well check.
Revision
514 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 6 01:11:46 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 513
,
to
selected 404
Sometimes the vty switching has to be delayed; the vty to be switched is saved in sc->delayed_next_scr and toe actual switch happens later. It is possible to get into an endless loop when trying to switch to a closed vty.
To repeat:
boot single user
run kbdcontrol -b visual
quickly press alt + f2 twice.
Revision
508 -
Directory Listing
-
[select for diffs]
Modified
Wed Jan 3 03:24:21 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 507
,
to
selected 404
Remove ealloc and sprite headers. ealloc is now provided by libutil and the few definitions needed in sprite.h have been moved.
Switch to c99 stdbool.
Revision
502 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 20:04:03 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 501
,
to
selected 404
Make local changes to mdoc.local to give us .Mx for MidnightBSD. Also include recent OS releases from the other BSDs so we can reference them.
Inspired from DragonFly. OpenBSD releases are missing.
Revision
501 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 09:50:08 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 500
,
to
selected 404
Add -o and -p options from DragonFly.
-0 keyword causes rcorder to generate the dependancy list required to execute
a particular keyword.
-p generated PROVIDE keywords for the specified files.
TODO: document these.
Revision
499 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 08:13:30 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 498
,
to
selected 404
Do not pass through the tailing newline char form ctime(3) output to
setproctitle(3) in order to get rid of the \n escape sequence in ps(1) output
of a dump(8) process.
Revision
493 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 07:52:31 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 492
,
to
selected 404
Obtained from FreeBSD:
Be more like Windows and Linux and send our hostname in the host-name
option if none is given in the config file. Also add #ifdefd out
support for sending a client ID based on our MAC address.
PR: bin/94743, bin/76401
Submitted by: Frank Behrens <frank at pinky dot sax dot de>
Revision
492 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 2 07:51:20 2007 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 491
,
to
selected 404
Obtained from FreeBSD:
It is possible for bpf to return a length such that:
length != BPF_WORDALIGN(length)
This meeans that it is possible for this to be true:
interface->rbuf_offset > interface->rbuf_len
Handle this case in the test for running out of packets. While
OpenBSD's solution of setting interface->rbuf_len to
BPF_WORDALIGN(length) is safe due to the size of the buffer, I think
this solution results in less hidden assumptions.
This should fix the problem of dhclient running away and consuming 100%
CPU.
PR: bin/102226
Submitted by: Joost Bekkers <joost at jodocus.org>
Revision
454 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 31 21:10:52 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 453
,
to
selected 404
Just to clarify compatiblity, we've merged all changes between the import date of Feb 24 and the tcsh Feb 26 commit in FreeBSD. Bump the version number.
Revision
440 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 31 09:59:48 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 439
,
to
selected 404
Add NetBSD efun(3) functions...
esetfunc, easprintf, efopen, ecalloc, emalloc, erealloc, estrdup, estrlcat, estrlcpy, evasprintf
Some code in the tree already includes this such as fsck and rcorder. This will make NetBSD code porting easier. Note our libutil uses libutil.h instead of util.h.
Revision
437 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 31 08:58:59 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 436
,
to
selected 404
Replace 4k mbuf clusters with PAGE_SIZE clusters. This should improve TCP/IP performance.
Also add new MidnightBSD_version which will someday replace osreldate etc.
Revision
435 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 31 07:08:37 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 434
,
to
selected 404
Add spell(1) from NetBSD. spell is a spell check program originating from Version 6 AT&T UNIX. It was opened up by Caldera and cleaned up by Todd Miller at OpenBSD, then additonal work was done by perry @ NetBSD.
I've decided to place the dictionary files in src/share/dict/* to keep usr.bin clean. The code is not very clean and could use improvement. I've left the NetBSD TODO for this purpose.
Revision
409 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 28 01:24:38 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 408
,
to
selected 404
Sync with FreeBSD RELENG_6_2.
Reparent the process that executes the window= command from the ttys to the init. This prevents zombies from being accumulated.
Revision
404 -
Directory Listing
-
[selected]
Modified
Thu Dec 28 01:15:07 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 403
Crossreference nextboot(8)
Revision
390 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 23:54:55 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 389
,
to
selected 404
Check the entire length of the current argument for the EOF string, but don't assume an ANSI string and thus don't use strcmp(3) which looks for NUL.
Revision
385 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 23:38:19 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 384
,
to
selected 404
Import getent(1), a program which retrieves and displays entries from the administrative database such as hosts, using the lookup order in nsswitch.conf(5).
Imported from FreeBSD, NetBSD.
Revision
374 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 04:51:23 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 373
,
to
selected 404
Look for BSD label at 512-byte offset, if not found on the very beginning of the second sector. This makes it compatible with labels created by disklabel(8) on non-512-byte-per-sector devices.
Import from FreeBSD.
Revision
373 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 04:48:57 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 372
,
to
selected 404
Delay an orphan event if provider has still in-flight I/O requests. GEOM classes can then detach safely from the provider when an orphan event is received. Fixes a 'detach with active requests' panic for gstripe/gconcat under load.
Imported/Obtained from FreeBSD.
Revision
371 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 04:45:12 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 370
,
to
selected 404
Add g_duplicate_bio() function which does the same thing as g_clone_bio() except it allocates new bio with a M_WAITOK flag.
sys/geom/geom.h
sys/geom/geom_io.c
Import from FreeBSD.
Revision
361 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 02:32:32 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 360
,
to
selected 404
Remove additional alpha bit...
Don't create stray objects on pc98. We may still support pc98.
Detect that the audit group is missing earlier during install.
Revision
360 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 02:27:33 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 359
,
to
selected 404
Don't attempt to compile DEFAULTS and don't attempt to compile LINT twice.
Do not discard the current value of __MAKE_CONF when testing whether MAKEOBJDIRPREFIX is set at a wrong place.
Revision
354 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 27 01:15:48 2006 UTC
(17 years, 8 months ago)
by
laffer1
Diff to
previous 353
,
to
selected 404
Change burncd so that if CDRIOCGETPROGRESS does not return a good value, CDIOCRESET is used to determine when the command is complete.
This corrects a bug with some CD/DVD recorders working with rewritable media where they never complete.
Based on a patch by Luigi Rizzo on stable@freebsd.org.
Revision
342 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 21 16:47:20 2006 UTC
(17 years, 9 months ago)
by
laffer1
Diff to
previous 341
,
to
selected 404
Fix some race conditions in TTY code. tty and sessrele(), doenterpgrp(), leavepgrp(), pgdelete() and enterpgrp(). The tty code is still under giant lock, but the session/pgrp release code just used proctree_locks. P_CONTROLT isn't really fully locked too in enterpgrp().
Obtained from FreeBSD, mbr.
Revision
341 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 21 16:31:26 2006 UTC
(17 years, 9 months ago)
by
laffer1
Diff to
previous 340
,
to
selected 404
Retest tp->t_session because Giant might have been temporarily dropped while waiting for proctree_lock, allowing for an intervening tty_close() that cleared tp_>t_session.
Obtained from FreeBSD,tegge.
Revision
340 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 21 16:22:39 2006 UTC
(17 years, 9 months ago)
by
laffer1
Diff to
previous 339
,
to
selected 404
Consistently use if_printf() only in interface methods: if_start, if_ioctl, if_watchdog, etc or in functions that are used by these methods only. In all other cases, device_printf should be used.
This also fixes several panics when if_printf() is called before softc->ifp was initialized.
Revision
339 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 21 16:18:09 2006 UTC
(17 years, 9 months ago)
by
laffer1
Diff to
previous 338
,
to
selected 404
IF_LLADDR does not necessarily return aligned memory addresses. Since accessing ID registers in rt181x9 needs 32bit register access and RL_IDR6/RL_IDR7 registers are reserved registers bzero() is needed before copying the ethernet address.
This fixes a bug in Sparc64
Obtained from FreeBSD, yongari.
Revision
338 -
Directory Listing
-
[select for diffs]
Modified
Mon Dec 18 23:50:50 2006 UTC
(17 years, 9 months ago)
by
laffer1
Diff to
previous 337
,
to
selected 404
As discussed on freebsd-threads@freebsd.org, a libpthread bug exists that this patch by Peter Edwards Corrects.
Here is a summary:
I've a problem when a process uses:
libpthread
detached threads
mixed bound/unbound threads
suspended threads (a la pthread_resume_np())
whereby some newly created suspended threads don't get scheduled.
I think I've tracked it down, so if someone could review the
reasoning, I'd be grateful.
Newly launched threads have a "struct pthread" that may be allocated
from a freelist of GCed threads. Apparently, when detached threads
enter the GCed list, they can still have the "active" flag set on
them. Later, this causes problems when this thread is recycled and
resumed, because _thr_setrunnable_unlocked() doesn't add it to a
run queue.
thr_cleanup can be called either from the bound-threads scheduler,
or the unbound scheduler. One callsite clears "active", "needswitchout",
and "lock_switch" to zero before the call. The other callsite just
clears "check_pending". I think these flags are all either bound-thread
or unbound-thread specific, and that there was an unintended
assumption that the thread would remain with the same "boundedness"
after being recycled, which isn't neccessarily the case. (Or another
way - the idea was that there was no need to clear the "active"
flag on a bound thread, as its only used for unbound threads, but
a GCed bound thread might be recycled into an unbound thread)
Given that, it seems correct to clean up the thread the same way
for both cases, and just move that code into thr_cleanup.
Revision
330 -
Directory Listing
-
[select for diffs]
Modified
Fri Nov 24 19:41:57 2006 UTC
(17 years, 10 months ago)
by
laffer1
Diff to
previous 329
,
to
selected 404
Check that -w width is not above maximum. Use DWIDTH constant instead of a hard coded constant.
Reported by Gruzicki Wlodek on Bugtraq.
Obtained from FreeBSD, NetBSD, and OpenBSD.
Revision
321 -
Directory Listing
-
[select for diffs]
Modified
Mon Oct 30 18:51:07 2006 UTC
(17 years, 10 months ago)
by
laffer1
Diff to
previous 320
,
to
selected 404
i915 attachment and running fixed.
i915 vblank support.
Radeon's new memory map support.
ATI PCI/PCIE GART fix.
r300 fixes
Hack to radeon module to shut up errors.
Obtained from FreeBSD stable
Revision
319 -
Directory Listing
-
[select for diffs]
Modified
Mon Oct 30 16:55:24 2006 UTC
(17 years, 10 months ago)
by
laffer1
Diff to
previous 318
,
to
selected 404
Be reasonable when overwrite mode is enabled and there are hard links. Overwriting when links > 1 will cause data loss.
Obtained from FreeBSD, OpenBSD.
Revision
314 -
Directory Listing
-
[select for diffs]
Modified
Mon Oct 30 14:50:16 2006 UTC
(17 years, 10 months ago)
by
laffer1
Diff to
previous 313
,
to
selected 404
Only catch SIGINFO when LIBPTHREAD_DEBUG is defined in the environment.
Eliminate a race condition in timed waist (cv, mutex, sleeps).
Don't forget to init a TAILQ before using it.
Allocate a thread's tcb last so it is easier to handle failures to malloc() siginfo.
Include needed headers obtained through pthread.h
Obtained from FreeBSD (March 2006 MFC)
Revision
298 -
Directory Listing
-
[select for diffs]
Modified
Sat Oct 28 04:16:57 2006 UTC
(17 years, 10 months ago)
by
laffer1
Diff to
previous 297
,
to
selected 404
Don't set CR0_NE and CR0_MP in npx_probe() as they are already set earlier in cpu_setregs().
If we know this CPU has a FPU via cpuid, just assume INT16 and make the dmesg quiet. This is true for all Pentium class processors and even some 486DX systems.
Revision
281 -
Directory Listing
-
[select for diffs]
Modified
Thu Oct 26 21:17:32 2006 UTC
(17 years, 10 months ago)
by
laffer1
Diff to
previous 280
,
to
selected 404
Part 2 of our large ata update. Most of these changes come from FreeBSD 6-stable or 6.1 Release. We should be at least at 6.1 release levels with our support for devices with this commit.
Add support for the JMicron JMB361, 365 and 366 chips.
Make the ATAPI sense data accessible when using the ioctl interface.
Revision
276 -
Directory Listing
-
[select for diffs]
Modified
Wed Oct 18 15:52:35 2006 UTC
(17 years, 11 months ago)
by
laffer1
Diff to
previous 275
,
to
selected 404
Avoid a warning for each whiteout found during ls -lW
# ls -lW
total 2
-rw-r--r-- 1 root wheel 6 Oct 18 14:46 file1
ls: ./file2: No such file or directory
w--------- 0 root wheel 0 Jan 1 1970 file2
From FreeBSD rev 1.76
Revision
267 -
Directory Listing
-
[select for diffs]
Modified
Fri Oct 13 23:15:50 2006 UTC
(17 years, 11 months ago)
by
laffer1
Diff to
previous 266
,
to
selected 404
Only use the channel in the request given to ata_completed if
its still present.
Only look for ICRC and CORR errors on ATA devices not ATAPI.
Get rid of all the long long and mixint casting in printfs'.
On all our platforms intmax == int64_t so simply using %j to
print int64_ts' is safe all over, and doesn't pollute the code.
Update atapi-fd to support direct devices such as disks.
ATAUSB will need to hook inot the delayed boot identity to
have interrupts running, so externalize it.
Add USB modes.
Revision
266 -
Directory Listing
-
[select for diffs]
Modified
Fri Oct 13 20:43:48 2006 UTC
(17 years, 11 months ago)
by
laffer1
Diff to
previous 265
,
to
selected 404
Keep the parent device (channel) around in ata_request so that we don't
panic on device removal or failure.
Clean up ata_fail_requests to prevent the queue mnging to fail.
Ensure ata_reinit does things in the right order to prevent panics.
Revision
244 -
Directory Listing
-
[select for diffs]
Modified
Tue Oct 10 15:23:51 2006 UTC
(17 years, 11 months ago)
by
laffer1
Diff to
previous 243
,
to
selected 404
Fix bug in malloc_uninit():
Releasing items from the mt_zone can not be done by a simple uma_zfree() call since mt_zone is allocated with the UMA_ZONE_MALLOC flag. Use uma_zfree_arg instead and supply the slam.
This bug can cause panics in low memory conditions while unloading kernel modules containing MALLOC_DEFINE(...) statements.
This commit brings kern_malloc.c up to FreeBSD 6.1 release equivalency.
Revision
227 -
Directory Listing
-
[select for diffs]
Modified
Sun Oct 8 15:06:27 2006 UTC
(17 years, 11 months ago)
by
laffer1
Diff to
previous 226
,
to
selected 404
Fix the case where the user specifies an alternate heading for some output format keyword and the keyword they picked is an alias to some other keyword. This includes the segfault fixes. (FreeBSD)
Revision
221 -
Directory Listing
-
[select for diffs]
Modified
Sun Oct 8 06:07:29 2006 UTC
(17 years, 11 months ago)
by
laffer1
Diff to
previous 220
,
to
selected 404
When enabling A20 put upper limit on amount of time we wait for the keyboard controller to get ready (65K x ISA access time, visually around 1 second). If we have wait more than that amount it's likely that the hardware is a legacy-free system and doesn't have a keyboard controller and doesn't require enabling A20 at all.
This makes cdboot/pxeldr work on MacBook Pro systems with Boot Camp and some IBM Netvista systems such as the S40.
Revision
173 -
Directory Listing
-
[select for diffs]
Modified
Sun Sep 17 02:37:31 2006 UTC
(18 years ago)
by
laffer1
Diff to
previous 172
,
to
selected 404
Update from 6.0.5 to 6.1.4 Intel driver. This update adds support for one additional NIC and hopefully will fix some problems with the em found on some Dell gx260's negotiating below gigabit speeds!
Revision
166 -
Directory Listing
-
[select for diffs]
Modified
Sat Sep 9 13:48:40 2006 UTC
(18 years ago)
by
laffer1
Diff to
previous 165
,
to
selected 404
Changed -p flag to -D for "Date". Cleaned up the manual. The utility now checks the length of the format argument and gives an error immediately.
I do not want cat to become a general purpose filter, but this functionality seems quite useful.
Revision
165 -
Directory Listing
-
[select for diffs]
Modified
Fri Sep 8 14:04:24 2006 UTC
(18 years ago)
by
laffer1
Diff to
previous 164
,
to
selected 404
A new flag, -p, was added to cat which allows dates to be prepended to each line of output. This could be useful when logging from scripts, etc.
The format is based on strftime
so cat -p %D test might print out
09/08/06testing this
if the file test contained testing this.
This is based on a patch floating around FreeBSD-Current.
Revision
164 -
Directory Listing
-
[select for diffs]
Modified
Thu Sep 7 18:52:52 2006 UTC
(18 years ago)
by
laffer1
Diff to
previous 163
,
to
selected 404
recursive DNS server, a remote attacker sending enough recursive
queries for the replies to arrive after all the interested clients
have left the recursion queue will trigger an INSIST failure in the
named(8) daemon. Also for a a recursive DNS server, an assertion
failure can occour when processing a query whose reply will contain
more than one SIG(covered) RRset.
For an authoritative DNS server serving a RFC 2535 DNSSEC zone which
is queried for the SIG records where there are multiple SIG(covered)
RRsets (e.g. a zone apex), named(8) will trigger an assertion failure
when it tries to construct the response.
Revision
162 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 6 14:57:43 2006 UTC
(18 years ago)
by
laffer1
Diff to
previous 161
,
to
selected 404
Work around a deadlock when ATA waits for the taskqueue to call back for completion and something else is holding the taskqueue waiting for ATA to return.
Fixes the "semaphore timeout !! DANGER Will Robinson !!" messages. This patch was obtained from FreeBSD ata-queue.c 1.50.2.3 (march 1 2006) and ata-all.h from the same time.
Revision
134 -
Directory Listing
-
[select for diffs]
Modified
Sun Aug 27 18:49:41 2006 UTC
(18 years ago)
by
laffer1
Diff to
previous 133
,
to
selected 404
Added Eric Anderson's patch for cp which adds -a an -l flags.
-a is an archive mode which is equivalent to -PpR
-l is link mode where regular files are hard linked instead of copied.
Revision
133 -
Directory Listing
-
[select for diffs]
Modified
Fri Aug 25 06:24:52 2006 UTC
(18 years, 1 month ago)
by
laffer1
Diff to
previous 132
,
to
selected 404
ACPI patches for laptops and other changes related to the new sleep_queue / em driver commit.
if_media was updated to allow import of bce and some baudrate changes in vge.
Revision
131 -
Directory Listing
-
[select for diffs]
Modified
Fri Aug 25 06:20:58 2006 UTC
(18 years, 1 month ago)
by
laffer1
Diff to
previous 130
,
to
selected 404
Patched ACPI problem in hwpcm which needs further testing. randomdev was updated along with it.
mii had a bug with recently driver patches as a function was missing to set the ifmedia_baudrate(). The function was added elsewhere.
Revision
120 -
Directory Listing
-
[select for diffs]
Modified
Thu Aug 24 05:35:39 2006 UTC
(18 years, 1 month ago)
by
laffer1
Diff to
previous 119
,
to
selected 404
Intel gigabit network driver (em) updated to 6.05 with FreeBSD 6-stable enhancements. Commit required a sync to a new version of the sleep queue routines which also fixed a deadlock problem. An ACPI issue with some laptops has been noted and a fix will be forthcoming.
Revision
117 -
Directory Listing
-
[select for diffs]
Modified
Thu Aug 24 00:18:42 2006 UTC
(18 years, 1 month ago)
by
laffer1
Diff to
previous 116
,
to
selected 404
rdate's -c flag was not working as -DLEAPSECONDS was not used in the base system to maintain posix compliance. Instead, rdate was altered to read a "right" subdirectory just as openbsd does. In right, leapsecond versions of all the zones are built so that we can maintain legal time if needed.
Revision
99 -
Directory Listing
-
[select for diffs]
Modified
Mon Aug 21 05:54:56 2006 UTC
(18 years, 1 month ago)
by
laffer1
Diff to
previous 98
,
to
selected 404
Do to naming conflicts, openntpd had to be commited to its own directory src/contrib/openntpd. This commit should clean up most of the mess. I should plan these things out more carefully. :)
Revision
46 -
Directory Listing
-
[select for diffs]
Modified
Fri Aug 4 17:10:41 2006 UTC
(18 years, 1 month ago)
by
laffer1
Diff to
previous 45
,
to
selected 404
FreeBSD-SA6:13 and 14 were patched. The nis software and amd athlon fpu handling fixed. Changes to echo and pfctl are needed to fix compile bugs with changes related to cvs tags and macros.
Revision
6 -
Directory Listing
-
[select for diffs]
Modified
Sat Feb 25 02:38:42 2006 UTC
(18 years, 7 months ago)
by
laffer1
Diff to
previous 3
,
to
selected 404
This commit was generated by cvs2svn to compensate for changes in r5, which
included commits to RCS files with non-trunk default branches.
Revision
3 -
Directory Listing
-
[select for diffs]
Modified
Sat Feb 25 02:29:52 2006 UTC
(18 years, 7 months ago)
by
laffer1
Diff to
previous 2
,
to
selected 404
This commit was generated by cvs2svn to compensate for changes in r2, which
included commits to RCS files with non-trunk default branches.