ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 7419
Committed: Thu Jan 14 13:14:41 2016 UTC (8 years, 4 months ago) by laffer1
File size: 49568 byte(s)
Log Message:
 TCP MD5 signature denial of service

        A programming error in processing a TCP connection with both TCP_MD5SIG
        and TCP_NOOPT socket options may lead to kernel crash.

File Contents

# Content
1 Updating Information for MidnightBSD users.
2
3 20160114:
4 Fix security on bsnmpd configuration file during installation.
5
6 TCP MD5 signature denial of service
7
8 A programming error in processing a TCP connection with both TCP_MD5SIG
9 and TCP_NOOPT socket options may lead to kernel crash.
10
11 20160102:
12 Happy New Year
13
14 20151101:
15 Increase kern.ipc.somaxconn default to 256.
16
17 20151017:
18 Add initial statistics api to libmport and a driver to print
19 it in mport(1).
20
21 20151002:
22 Revised rpcbind(8) patch to fix issues with NIS
23
24 20150930:
25 In rpcbind(8), netbuf structures are copied directly, which would result in
26 two netbuf structures that reference to one shared address buffer. When one
27 of the two netbuf structures is freed, access to the other netbuf structure
28 would result in an undefined result that may crash the rpcbind(8) daemon.
29
30 20150926:
31 libmport now supports @preexec, @postexec, @preunexec and @postunexec
32 to replace @exec and @unexec.
33
34 pre exec runs afer pre-install scripts but before actual installation
35
36 post exec runs after install but before post install scripts and
37 pkg message.
38
39 pre unexec runs before pre uninstall scripts
40
41 post unexec runs before de-install scripts and after file removal.
42
43 20150917:
44 Fix kqueue write events for files > 2GB
45
46 20150825:
47 kernel:
48 fix a security issue on amd64 where the GS segment CPU register can be changed via
49 userland value in kernel mode by using an IRET with #SS or #NP exceptions.
50
51 openssh:
52 A programming error in the privileged monitor process of the sshd(8)
53 service may allow the username of an already-authenticated user to be
54 overwritten by the unprivileged child process.
55
56 A use-after-free error in the privileged monitor process of he sshd(8)
57 service may be deterministically triggered by the actions of a
58 compromised unprivileged child process.
59
60 A use-after-free error in the session multiplexing code in the sshd(8)
61 service may result in unintended termination of the connection.
62
63 20150818:
64 expat security fix
65
66 20150815:
67 libc changes:
68 setmode(3) now returns errno consistently on error.
69 libc will compile without error using clang
70
71 20150814:
72 wait6 system call added.
73
74 date(1) now handles non numeric numbers passed to -r
75 like GNU coreutils for improved compatibility.
76
77 20150811:
78 ata(4) AMD Hudson2 SATA controller support.
79 Intel lynxpoint SATA.
80
81 Fix some const warnings when building several device drivers
82 with llvm/clang.
83
84 Sync cas(4) with FreeBSD 9-stable.
85
86 Fix some minor issues with ath(4).
87
88 20150809:
89 xz 5.0.8
90
91 20150808:
92 libmport now logs installation and removal of packages to syslog.
93
94 20150805:
95 routed - fix a potential security issue where traffic from outside
96 the network can disrupt routing.
97
98 bsd patch - fix a bug with ed(1) scripts allowing unsanitized input
99 to run.
100
101 20150802:
102 jansson 2.7 library added. (libjansson is a JSON library in C)
103
104 20150728:
105 Heimdal 1.5.2 (kerberos implementation)
106
107 OpenSSL 1.0.1o
108
109 cpucontrol(8) now supports VIA CPUs. Synced with FreeBSD 9.2.
110
111 TCP Resassemly resource exhaustion bug:
112 There is a mistake with the introduction of VNET, which converted the
113 global limit on the number of segments that could belong to reassembly
114 queues into a per-VNET limit. Because mbufs are allocated from a
115 global pool, in the presence of a sufficient number of VNETs, the
116 total number of mbufs attached to reassembly queues can grow to the
117 total number of mbufs in the system, at which point all network
118 traffic would cease.
119 Obtained from: FreeBSD 8
120
121 OpenSSH
122
123 Fix two security vulnerabilities:
124 OpenSSH clients does not correctly verify DNS SSHFP records when a server
125 offers a certificate. [CVE-2014-2653]
126
127 OpenSSH servers which are configured to allow password authentication
128 using PAM (default) would allow many password attempts. A bug allows
129 MaxAuthTries to be bypassed. [CVE-2015-5600]
130
131
132 Switch to bsdpatch (from FreeBSD & OpenBSD)
133
134 20150726:
135 BSD Sort updated
136
137 sqlite 3.8.10.2
138
139 20150725:
140 Import reallocarray from OpenBSD's libc.
141
142 The reallocarray() function is similar to realloc() except it operates on
143 nmemb members of size size and checks for integer overflow in the
144 calculation nmemb * size.
145
146 20150722:
147 Fix a bug where TCP connections transitioning to LAST_ACK
148 state can get stuck. This can result in a denial of service.
149
150 20150715:
151 libmport now supports @shell and @sample in plists. This means that
152 a shell port can automatically add an entry to /etc/shells and remove
153 it upon uninstallation. For sample files, a copy is made without the
154 .sample extension if one does not exist and it is removed automatically
155 only if the md5 hash of the two files is the same.
156
157 20150709:
158 flex 2.5.39
159
160 20150702:
161 ZFS in MidnightBSD now supports lz4 compression. You can enable it
162 with zfs set compression=lz4 pool/path.
163
164 Verify it's working with
165 zfs get compressratio pool/path
166 du -h -s *
167
168 Note you must write new data when turning on compression to see
169 changes. Existing files are not compressed.
170
171 Note: While we used the same basic implementation of lz4 that
172 FreeBSD and OpenZFS uses, we did not yet implement features support
173 and the zfs version still reports 28. This may come in a future update
174 to ZFS.
175
176 20150621:
177 libmport now automatically stops services when deleting packages.
178
179 The package must have installed an rc.d script in /usr/local/etc
180 for this to work. This is equivalent to running service <name> onestop
181
182 20150618:
183 Sendmail
184
185 With the recent changes to OpenSSL to block 512 bit certificates,
186 sendmail can't connect with TLS to some servers.
187
188 Increase the default size to 1024 bit for client connections to
189 match the server configuration.
190
191 ZFS
192
193 Added ZFS TRIM support which is enabled by default. To disable
194 ZFS TRIM support set vfs.zfs.trim.enabled=0 in loader.conf.
195
196 Creating new ZFS pools and adding new devices to existing pools
197 first performs a full device level TRIM which can take a significant
198 amount of time. The sysctl vfs.zfs.vdev.trim_on_init can be set to 0
199 to disable this behaviour.
200
201 ZFS TRIM requires the underlying device support BIO_DELETE which
202 is currently provided by methods such as ATA TRIM and SCSI UNMAP
203 via CAM, which are typically supported by SSD's.
204
205 Stats for ZFS TRIM can be monitored by looking at the sysctl's
206 under kstat.zfs.misc.zio_trim.
207
208 rc.d
209
210 Reworked handling of cleanvar and FILESYSTEMS so that FILESYSTEMS
211 implies everything is mounted and ready to go.
212
213 Changed how ip6addressctl maps IPv6 on startup.
214
215 20150613:
216 tzdata 2015d
217
218 20150612:
219 OpenSSL 0.9.8zg
220
221 20150419:
222 MidnightBSD 0.6 stable branch created. Continue 0.7
223 development.
224
225 20150418:
226 sqlite 3.8.9
227
228 20150407:
229 Fix two security vulnerabilities:
230
231 The previous fix for IGMP had an overflow issue. This has been corrected.
232
233 ipv6: The Neighbor Discover Protocol allows a local router to advertise a
234 suggested Current Hop Limit value of a link, which will replace
235 Current Hop Limit on an interface connected to the link on the MidnightBSD
236 system.
237
238 20150319:
239 OpenSSL 0.9.8.zf
240
241 mksh R50e
242
243 Apple mDNSResponder 561.1.1
244
245 20150306:
246 Upgrade OpenSSL to 0.9.8ze
247
248 20150225:
249 Fix two security vulnerabilities.
250
251 1. BIND servers which are configured to perform DNSSEC validation and which
252 are using managed keys (which occurs implicitly when using
253 "dnssec-validation auto;" or "dnssec-lookaside auto;") may exhibit
254 unpredictable behavior due to the use of an improperly initialized
255 variable.
256
257 CVE-2015-1349
258
259 2. An integer overflow in computing the size of IGMPv3 data buffer can result
260 in a buffer which is too small for the requested operation.
261
262 This can result in a DOS attack.
263
264 20141211:
265 Fix a security issue with file and libmagic that can allow
266 an attacker to create a denial of service attack on any
267 program that uses libmagic.
268
269 20141109:
270 Fix building perl during buildworld when the GDBM port is installed.
271
272 20141106:
273 tzdata 2014i
274
275 20141102:
276 serf 1.3.8
277
278 20141031:
279 tnftp 20141031 fixes a security vulnerability with tnftp,
280 CVE-2014-8517.
281
282 20141028:
283 OpenSSL 0.9.8zc
284
285 20141021:
286 Fix several security vulnerabilities in routed, rtsold,
287 and namei with respect to Capsicum sandboxes looking up
288 nonexistent path names and leaking memory.
289
290 The input path in routed(8) will accept queries from any source and
291 attempt to answer them. However, the output path assumes that the
292 destination address for the response is on a directly connected
293 network.
294
295 Due to a missing length check in the code that handles DNS parameters,
296 a malformed router advertisement message can result in a stack buffer
297 overflow in rtsold(8).
298
299 20141011:
300 mksh R50d - fix field splitting regression and null
301 pointer dereference
302
303 xz 5.0.7
304
305 OpenSSH 6.6p1
306
307 20141004:
308 mksh R50c - security update for environment var bug with
309 foo vs foo+
310
311 20141002:
312 sqlite 3.8.6
313
314 sudo 1.7.8 - some issues with the current version, but we're slowly
315 getting up to date.
316
317 20141001:
318 mksh R50b
319
320 libmport now supports plist commands @dir, @owner, @group, @mode.
321
322 sudo 1.7.6p2
323
324 20140916:
325 Fix a security issue with TCP SYN.
326
327 When a segment with the SYN flag for an already existing connection arrives,
328 the TCP stack tears down the connection, bypassing a check that the
329 sequence number in the segment is in the expected window.
330
331 20140909:
332 Fixed a bug with our clearenv(3) implementation that caused segfaults
333 with some programs including Dovecot.
334
335 OpenSSL security patch:
336
337 The receipt of a specifically crafted DTLS handshake message may cause OpenSSL
338 to consume large amounts of memory. [CVE-2014-3506]
339
340 The receipt of a specifically crafted DTLS packet could cause OpenSSL to leak
341 memory. [CVE-2014-3507]
342
343 A flaw in OBJ_obj2txt may cause pretty printing functions such as
344 X509_name_oneline, X509_name_print_ex et al. to leak some information from
345 the stack. [CVE-2014-3508]
346
347 OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject to
348 a denial of service attack. [CVE-2014-3510]
349
350 20140902:
351 We're now 0.6-CURRENT
352
353 Update USB quirks to support K70 Corsair keyboard, and several
354 other devices.
355
356 20140827:
357 Perl 5.18.2
358
359 20140728:
360 Jails now run shutdown scripts.
361
362 20140710:
363 Fix a vulnerability in the control message API. A buffer is not properly cleared
364 before sharing with userland.
365
366 20140701:
367 MKSH R50
368
369 20140630:
370 File 5.19
371
372 20140605:
373 Fix four security issues with OpenSSL
374
375 20140604:
376 Sendmail failed to properly set close-on-exec for open file descriptors.
377
378 ktrace page fault kernel trace entries were set to an incorrect size which resulted
379 in a leak of information.
380
381 20140430:
382 Fix a TCP reassembly bug that could result in a DOS attack
383 of the system. It may be possible to obtain portions
384 of kernel memory as well.
385
386 20140411:
387 Update zlib to 1.2.7
388
389 20140122:
390 Support for username with length 32. Previous limit was 16
391
392 20140114:
393 Fix two security vulnerabilities.
394
395 bsnmpd contains a stack overflow when sent certain queries.
396
397 bind 9.8 when using NSEC3-signed zones zones, will crash with special
398 crafted packets.
399
400 20131228:
401 Imported FreeBSD 9.2 usb stack (plus z87 patches from stable)
402
403 Updated em(4), igb(4) and ixgbe(4)
404
405 MidnightBSD now works with Z87 Intel chipsets.
406
407 20131207:
408 Remove sparc64 architecture. It hasn't been working for awhile
409 and it's not useful for desktops anymore.
410
411 20131205:
412 OpenSSH 6.4p1
413
414 20131203:
415 Perl 5.18.1 imported.
416
417 Update less to v458
418
419 20131130:
420 Remove named from base. We still include the client utilities for
421 now until replacements can be found.
422
423 20131004:
424 rarpd supports vlan(4) and has a pid flag. (from FreeBSD)
425
426 20130917:
427 Support for 65,536 routing tables was added. A new fib specific
428 field has been added to mbuf. This is an increase from 16.
429
430 20130910:
431 Security updates: (kern.osreldate 5001)
432
433 nullfs(5)
434
435 The nullfs(5) implementation of the VOP_LINK(9) VFS operation does not
436 check whether the source and target of the link are both in the same
437 nullfs instance. It is therefore possible to create a hardlink from a
438 location in one nullfs instance to a file in another, as long as the
439 underlying (source) filesystem is the same.
440
441 ifioctl
442
443 As is commonly the case, the IPv6 and ATM network layer ioctl request
444 handlers are written in such a way that an unrecognized request is
445 passed on unmodified to the link layer, which will either handle it or
446 return an error code.
447
448 Network interface drivers, however, assume that the SIOCSIFADDR,
449 SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK requests have been
450 handled at the network layer, and therefore do not perform input
451 validation or verify the caller's credentials. Typical link-layer
452 actions for these requests may include marking the interface as "up"
453 and resetting the underlying hardware.
454
455 20130824:
456 Fix a bug in sendmail 8.14.7 that interferes with how it
457 handles AAAA records interoperating with Microsoft DNS servers.
458 FreeBSD has already reported this to Sendmail and a fix
459 will be included in the next release.
460
461 Subversion 1.8.1 is now in the base system as a static
462 binary. It has limited functionality, but can be used to
463 checkout/commit code. It is named svnlite.
464
465 20130822:
466 Fix two security vulnerabilities.
467
468 Fix an integer overflow in IP_MSFILTER (IP MULTICAST).
469 This could be exploited to read memory by a user process.
470
471 When initializing the SCTP state cookie being sent in INIT-ACK chunks,
472 a buffer allocated from the kernel stack is not completely initialized.
473
474 Import xz 5.0.4
475
476 Import sqlite 3.7.17
477
478 Import BIND 9.8.5-P2
479
480 20130814:
481 mksh R48 imported.
482
483 Sendmail 8.14.7 imported.
484
485 20130717:
486 libmport bug was fixed causing hash verification to fail.
487
488 virtio(4) imported from FreeBSD 9-stable. SCSI support not
489 included.
490
491 20130612:
492 RELENG_0_4 created for 0.4. Development continues on 0.5.
493
494 20130402:
495 Update BIND and OpenSSL to resolve security advisories.
496
497 20130305:
498 MKSH R44 imported.
499
500 20130213:
501 MKSH R42b imported
502
503 20130211:
504 MKSH R42 imported
505
506 20130125:
507 MKSH R41 imported
508
509 20130122:
510 OpenSSH 5.8p2 imported
511
512 SQLite 3.7.15.2 imported
513
514 Fixed a longstanding bug in libmport extrating new index files.
515
516 20120710:
517 BSD licensed sort imported from FreeBSD-CURRENT
518
519 For now, GNU sort is installed as gnusort, but it will
520 go away in time.
521
522 20120708:
523 tcsh 6.18.01 imported.
524
525 NetBSD's iconv imported.
526
527 libc gains strnlen(3), memrchr(3), stpncpy(3).
528
529 20120612:
530 BIND security update related to CVE-2012-1667.
531
532 Zero length resource records can cause BIND to crash resulting
533 in a DOS attack or information disclosure.
534
535 20120407:
536 mksh R40f (fixes regression)
537
538 20120328:
539 mksh R40e
540
541 Perl 5.14.2
542
543 20120229:
544 cpucontrol(8) and cpuctl(4) added from FreeBSD 7-stable.
545
546 20120209:
547 mDNSResponder 333.10 imported
548
549 20111227:
550 import raid5 module for GEOM, graid5(8)
551
552 This is experimental and known to use a lot of kernel
553 memory.
554
555 20111223:
556 telnetd: fix a root exploit from a fixed buffer that was not checked
557
558 pam: don't allow escape from policy path. Exploitable in KDE, etc.
559
560 Fix pam_ssh module:
561
562 If the pam_ssh module is enabled, attackers may be able to gain access
563 to user accounts which have unencrypted SSH private keys.
564
565 This has to due with the way that openssl works. It ignores unencrpted data.
566
567 Fix security issue with chroot and ftpd.
568
569 nsdispatch(3) doesn't know it's working in a chroot and some
570 operations can cause files to get reloaded causing a security
571 hole in things like ftpd.
572
573 20111217:
574 libdialog/dialog upgraded to an lgpl version. As it's not
575 backwardly compatable, include the old libdialog as libodialog
576
577 20111212:
578 mksh r40d imported
579
580 20111210:
581 re(4) and rl(4) updated to support new chips.
582
583 GEOM synced with FreeBSD 7-stable.
584
585 MidnightBSD GPT partition types created in sys/gpt.h and
586 setup in boot loader and GEOM.
587
588 amdsbwd(4) (amd watchdog for south bridge) updated to support
589 8xx series chipset.
590
591 20111207:
592 import bsd grep from FreeBSD/OpenBSD.
593
594 MK_BSD_GREP controls which grep is installed
595 as grep with the other as bsdgrep or gnugrep.
596
597 20111122:
598 mksh vR40c imported.
599
600 20111117:
601 BIND 9.6 ESV R5 P1
602
603 20111107:
604 tzdata 2011n
605
606 20111026:
607 mDNSResponder v320
608
609 BIND 9.6 ESV R5
610
611 20111022:
612 cflow 0.0.6 imported
613
614 20111020:
615 less v436 imported
616
617 amdsbwd(4) AMD southbridge watchdog
618
619 20111019:
620 awk 20110810 imported
621
622 et(4) Agere Gigabit Ethernet/Fast Ethernet driver added, but
623 not included in GENERIC kernel. The kernel module needs
624 testing before we can include it in GENERIC.
625
626 intr_bind code ported to allow an IRQ to be bound to one
627 specific CPU core.
628
629 20111017:
630 Time Zone Data v. 2011l (Released 10 October 2011)
631
632 Updated list of countries (iso3166) to work with new timezone data.
633
634 20111015:
635 Introduce CPU Affinity in MidnightBSD. cpuset(1) can be used
636 to control which core or group of cores can be used for a given
637 process. Several new system calls were added to support this
638 functionality in the running kernel and for 32bit binary
639 compatibility on amd64.
640
641 The scheduler default has been changed to ULE in i386 and
642 amd64. Changes were made to both schedulers (4BSD AND ULE)
643 for this feature.
644
645 This work is based on Jeff Roberson's FreeBSD 7.1 patches.
646
647 20111004:
648 Fix a problem with unix socket handling caused by the recent
649 patch to unix socket path handling. This allows network
650 apps to work under the linuxolator again.
651
652 20111001:
653 Import libfetch & fetch(1) from FreeBSD 9. Passive FTP is
654 now default and an environment variable must be set to use
655 active.
656
657 20110930:
658 Introduce quirks handling for several umass devices including
659 USB cameras. Add workaround for Cyberpower UPS devices.
660
661 Bring in further bug fixes from FreeBSD and NetBSD for alc(4).
662 Stale ip/tcp header pointers are no longer used, lockups fixed
663 when network cable is unplugged on bootup, enable TX checksum
664 offloading.
665
666 Add a new man page for gcache(8), a useful geom class when
667 working with large raid3 sets.
668
669 Restore previous workaround for Cypress pata storage controller.
670
671 20110929:
672 Sync ath(4) with FreeBSD 7.3.
673
674 The following modules are no longer available, and should be
675 removed from loader.conf:
676 ath_hal ath_rate_amrr ath_rate_onoe ath_rate_sample
677
678 alc(4) would hibernate when a cable was unplugged and often
679 required bring the interface down and up to "wake up" so that
680 a connection could be established. Disable hibernation.
681
682 20110928:
683 Fix security issues with gzip and compress related to .Z
684 files that are corrupted.
685
686 Fix path validation with unix domain sockets.
687
688 20110917:
689 Remove dependance on mports perl for generating releases as
690 it's in the base system.
691
692 20110914:
693 Import xz 5.0.3 with liblzma 5.0.3
694
695 20110813:
696 synced the sparc64 GENERIC kernel configuration with amd64.
697
698 20110806:
699 sqlite 3.7.7.1 imported
700
701 msearch(1), libmsearch and msearch.import added. msearch(1) provides
702 a full text search command line tool. libmsearch can also be used
703 to build a graphical based search in the future. You can enable
704 index building for msearch in periodic.conf or manually run the
705 /usr/libexec/msearch.index tool. Full text indexes take considerable
706 space in /var. I'm using approximately 500MB currently.
707
708 Fix a long standing bug with the periodic script to check package
709 versions. This will be obsolete with mport though.
710
711 20110710:
712 kdb_enter_why added to MidnightBSD to allow the kernel debugger to
713 know why it's in use and thus script can be run.
714
715 Yet another problem with the perl manifest was fixed
716
717 20110709:
718 cpufreq(1) is a new utility to monitor CPU frequency which may change
719 with use of powerd(8) and cpufreq(4).
720
721 20110612:
722 Update mksh to R40
723
724 Catch up ObsoleteFiles.inc to remove Perl 5.10.x. Good to run when
725 updating current (cd /usr/src && make check-old)
726
727 20110528:
728 Fix CVE-2011-1910 in BIND 9.6.x. This affects caching resolvers.
729
730 20110526:
731 newfs:
732 Raised the default blocksize for UFS/FFS filesystems from
733 16K to 32K and the default fragment size from 2K to 4K.
734
735 This should slightly imporve performance on "advanced format"
736 hard drives such as the WD EARS drives. Drives of this type
737 have emulation modes that slow down with lower sizes. Of course
738 the drive must still be aligned properly when using fdisk.
739
740 20110521:
741 mport tool now has a deleteall command. This can be used to remove
742 all packages from a system.
743
744 A few bugs with the perl 5.14 import have been fixed.
745
746 20110518:
747 Perl 5.14.0
748
749 20110517:
750 Sendmail 8.14.5
751
752 20110314:
753 DRM/DRI code updated to support newer video cards. (FreeBSD 7.1)
754
755 cdevpriv wrappers added
756
757 nss_mdns hack introduced to work around linking problem.
758
759 dnsextd fixed after update to mDNSResponder code.
760
761 20110308:
762 Introduce liblzma & xz 5.0.1 to the base system
763
764 Patch for OpenSSL security issue CVE-2011-0014.
765
766 "OSREVISION 4004"
767
768 nsswitch module for multicast dns (nss_mdns) added.
769
770 tzdata2011c
771
772 20110220:
773 cam(4) syncronized with FreeBSD 7.3.
774
775 20110219:
776 amdtemp(4) updated to support sensors framework.
777
778 20110217:
779 Perl 5.10.1 imported
780
781 20110216:
782 Introduce igb(4) and split Intel Gigabit Ethernet adapters between
783 igb(4) and em(4). Newer devices use igb(4). The code has moved
784 to sys/dev/e1000 for both devices in the kernel. igb(4) has
785 been placed in GENERIC on i386 and amd64.
786
787 Update bfe(4) to support newer devices and WOL.
788
789 20110215:
790 age(4) added.
791
792 20110208:
793 BIND 9.6.3 which fixes a bug with DNSSEC records getting added.
794
795 20110206:
796 eeemon(4) added to monitor Asus Eee PC.
797
798 20110205:
799 OpenSSH 5.7p1
800
801 GNU sort 6.9 (coreutils)
802
803 20110203:
804 one true awk 20100523 imported
805
806 sqlite 3.7.5
807
808 OpenSSL 0.9.8q
809
810 20110202:
811 tcsh 6.17.00
812
813 file 5.05
814
815 20110122:
816 Import it(4) and lm(4), with support for Super I/O hardware monitors. This
817 uses the sensors framework ported by Constantine A. Murenin (GSOC2007)
818
819 20110120:
820 BIND 9.6.2-P3
821
822 sudo 1.7.4-p6
823
824 20110115:
825 Add experimental jme(4) for Jmicron ethernet devices.
826
827 20101130:
828 A double free exists in the SSL client ECDH handling code, when
829 processing specially crafted public keys with invalid prime
830 numbers. [CVE-2010-2939]
831
832 20101120:
833 Several portions of the kernel and userland code related to UFS file
834 systems (and UFS2) cannot properly handle inode counts above 2^31 due
835 to use of int types. Based on a patch from FreeBSD, I've modified
836 our UFS2 implementation to handle unsigned values for inode counts
837 which should allow for file systems greater than 16TB.
838
839 newfs and growfs was also modified.
840
841 20101110:
842 Fix a security issue with pseudofs which could result in running code in kernel
843 context or a kernel panic depending on system configuration. This affects file
844 systems such as procfs for instance.
845
846 20101021:
847 sysrc is a utility to print and modify name/value pairs in /etc/rc.conf easily.
848 This is similar to functions present in many linux distros. The utility was
849 written by Devin Teske for FreeBSD.
850
851 20100920:
852 bzip2 security patch for integer overflow.
853
854 20100905:
855 MidnightBSD RELENG_0_3 branch created. Aggressive development continues here
856 for 0.4.
857
858 20100902:
859 Fix a security issue with libutil that allows users to bypass cpu limits in
860 login.conf in some cases. This combined with OpenSSH for example can allow
861 the user to get more resources than they're allowed.
862
863 20100822:
864 Import Apple's mDNSResponder (mdnsd).
865
866 20100814:
867 libdispatch added to MidnightBSD. This provides functionality found in
868 Mac OS X's GCD. We do not have blocks support yet. As this code is
869 licensed under Apache 2, we create a new MK_APACHE option so that
870 it's not required for all users to run code under a license they
871 may not like.
872
873 20100713:
874 mbuf readonly fix related to sendfile(2) data corruption.
875
876 20100704:
877 brainfuck(1) imported from MirBSD.
878
879 20100505:
880 zlib 1.2.5
881
882 20100430:
883 Sudo 1.7.2p6 imported
884
885 20100321:
886 Update zlib to 1.2.4
887
888 20100319:
889 Removed i586 from default i386 generic kernel.
890
891 20100317:
892 Update to tzdata2010e (time zones). This includes changes in
893 Mexico.
894
895 Add support for several newer sound cards via hda including
896 ATI and Realtek chipsets.
897
898 20100313:
899 CPU detection has been changed. VIA Padlock detection added.
900
901 20100312:
902 Fix a number of bugs and compiler warnings in libmport. Handle
903 plus signs in paths for mport.check-fake
904
905 20100311:
906 mksh R39c
907
908 20100309:
909 Sudo 1.7.2p5
910
911 sqlite3 3.6.23
912
913 mksh R39b
914
915 libffi (ffi) 3.0.9
916
917 20100206:
918 WITHOUT_LIB32 is no longer needed on AMD64. GCC was fixed to
919 properly pass arguments to ld.
920
921 re(4) and rl(4) have been updated to support several new
922 realtek chipsets. Performance has been improved on re(4).
923
924 20100204:
925 Fix a bug cropping up on AMD64 MidnightBSD with sftp
926 segfaulting.
927
928 20100116:
929 Import ash changes from FreeBSD (bin/sh) 8-Stable.
930
931 BIND 9.6.1-P2
932
933 20100110:
934 Import Sendmail 8.14.4. Fix for SSL vulnerability.
935
936 posix_spawn(3) added to MidnightBSD libc. Users may need to build and
937 install libc before doing a full buildworld when upating from 0.2 or
938 older current systems.
939
940 kqueue(2) was modified to support portions of libdispatch functionality.
941
942 20100106:
943 Bind security update. Fix a bug with DNSSEC that causes negative
944 cache entries and thus a possible DNS cache poisoning attack.
945
946 Fix a bug in ZFS that can reset permissions on system crashes.
947
948 20091228:
949 amdtemp(4) was added. It allows one to monitor to the temperature
950 of an AMD CPU such as a Phenom.
951
952 20091205:
953 OpenSSL security fix
954
955 The SSL version 3 and TLS protocols support session renegotiation without
956 cryptographically tying the new session parameters to the old parameters.
957
958 20091128:
959 OpenBSD sensors framework imported including sensorsd(8)
960
961 20091126:
962 OpenNTPD 4.4 import
963
964 Update OpenSSH to 5.3p1
965
966 mksh R39
967
968 20091124:
969 cpdup updated from DragonFly to 1.15
970
971 tzdata2009s updated with latest timezone data for November 2009.
972
973 20091010:
974 amd64 users should use WITHOUT_LIB32=yes in /etc/make.conf for now
975 to test current.
976
977 Revert unicode filename fixes from ntfs code. This was causing chaos
978 on amd64 systems.
979
980 20091006:
981 Update timezone data with tzdata2009n with the Pakistan and
982 Argentina changes.
983
984 Sync several userland utilities with versions from FreeBSD 7.0 in
985 sbin and usr.sbin.
986
987 20090919:
988 Update timezone data with tzdate2009m from September 2009.
989
990 20090729:
991 Patch for Bind 9 security vulnerability. a dynmaic update packet
992 can trigger an assertion and cause named to exit
993
994 20090606:
995 Remove PCC from the base system. This compiler will not work
996 as a system compiler for us as we've got some userland investment
997 in C++ code and may have Objective-C in the future. We're stuck
998 with a solution that supports these three languages at a minimum.
999
1000 I had wanted to keep it as an optional compiler because it is
1001 fast, however too many users want to try to use it for the base
1002 system which makes no sense.
1003
1004 A hack was added for Cypress based usb hard drive enclosures to
1005 the kernel. This should cut down on commands it claims to support
1006 but does not (at the cam layer). Found while testing ZFS on
1007 an external device.
1008
1009 20090520:
1010 The powerd daemon no longer starts automatically to improve
1011 compatibility with many systems. However, there is a new
1012 installer option in the startup section to enable it. This
1013 makes it easier to enable for users that have working systems. I thought it was only a problem on older hardware, but it freaks
1014 out my new Phenom too.
1015
1016 20090502:
1017 OpenSSH 5.2p1 import
1018
1019 ale(4) connected to the build. (kernel module only)
1020
1021 20090501:
1022 Imported makefs utility from NetBSD/FreeBSD
1023
1024 20090422:
1025 OpenSSL security update
1026
1027 The function ASN1_STRING_print_ex does not properly validate the lengths
1028 of BMPString or UniversalString objects before attempting to print them.
1029
1030 20090415:
1031 Created a Symbol.map for libc/ohash symbols
1032
1033 Updated several usr/bin usr/sbin utilities.
1034
1035 Corrected a bug with Makefile.inc1 causing the bootstrap
1036 tools to fail.
1037
1038 20090405:
1039 xorg 7.4 wants to configure its input devices via hald which does not
1040 yet work with USB. If the keyboard/mouse does not work in xorg then
1041 add
1042 Option "AllowEmptyInput" "off"
1043 to your ServerLayout section. This will cause X to use the configured
1044 kbd and mouse sections from your xorg.conf
1045
1046 20090403:
1047 mksh was disconnected a few day ago do to bugs with
1048 buildworld and mports. Now, connect it back
1049 for use as /bin/sh with a conditional called
1050 MK_ASH. By default, ash is the standard /bin/sh
1051 but we may change this later. This will allow further
1052 testing by users and developers of mksh without
1053 causing an unpleasant default experience. In the
1054 long run, we need to fix mksh compatibility.
1055
1056 20090328:
1057 Bring in mksh R37 from CVS. The dot.mkshrc files for root
1058 and skel were changed. mksh(1) now replaces ash aka sh(1)
1059 as the default /bin/sh. Please report bugs with
1060 ports, etc. The ash code will remain in the repo for awhile
1061 as I decide if we'll add something like MK_SHELL_ASH as
1062 an optional build parameter.
1063
1064 ahd was disconnected from the lint environment until
1065 the compiler bug is sorted (by updating gcc?)
1066
1067 Remove freebsd-tips from fortune files and change the
1068 default for login and profile.
1069
1070 20090327:
1071 Update libarchive to 2.5.5, tar, and add bsdcpio.
1072
1073 Also previously, ctriv has been connecting Perl 5.10
1074 to the build (part of os). This will have an impact
1075 on mports.
1076
1077 20090325:
1078 Update Bind to 9.4.3-P1
1079
1080 Update mksh to R36b
1081
1082 Update tcpdump to 3.9.8, fix libpcap to work with current.
1083
1084 Update pnpinfo, sync with FreeBSD.
1085
1086 20090115:
1087 Fix a problem with DNSSEC and BIND.
1088
1089 20090110:
1090 For applications using OpenSSL for SSL connections, an invalid SSL
1091 certificate may be interpreted as valid. This could for example be
1092 used by an attacker to perform a man-in-the-middle attack.
1093
1094 Other applications which use the OpenSSL EVP API may similarly be
1095 affected.
1096
1097 Stop cross site request forgery attacks in lukemftpd
1098
1099 20090104:
1100 Import GNU libreadline 5.2
1101
1102 20090101:
1103 Update time zone data to 2008i.
1104
1105 20081231:
1106 Correct a problem where bluetooth and netgraph sockets are not
1107 properly initialized.
1108
1109 Happy 2009.
1110
1111 20081206:
1112 Due to the massive change in the underlying system under way,
1113 we're naming the next release 1.0. The sys/sys/param.h was
1114 changed accordingly. ipfilter and ncurses were corrected
1115 using __MidnightBSD__ tests in the code.
1116
1117 The GENERIC kernel config was caught up on i386 today. Consider
1118 i386 still broken, but amd64 is running again.
1119
1120 mdoc.local was updated with the new MidnightBSD version info.
1121
1122 batt(1) was rewritten in C. It now supports several flags and
1123 runs about 8 times faster on my laptop. The default output
1124 shows the number of minutes of battery life remaining and the
1125 percentage. You can use -u to display the number of batteries or
1126 -c to get script friendly output. Consult the man page for more.
1127
1128 20081204:
1129 Work has completed on importing ZFS, jemalloc, several
1130 new devices, SCTP, updated pf, a new tempfs, linuxolator 2.6 kernel
1131 support, improved locking for file desc., audit (openbsm),
1132 openssl .98e, nfe, imporved intel high def audio, midi, updated
1133 intel gigabit (em), support for several wifi cards (intel), ...
1134
1135 Renamed 0.3-CURRENT officially. Switched to using MidnightBSD version
1136 data from param.h instead of the FreeBSD version. This means
1137 testing is now possible in the ports tree for the version
1138 and that any ports or code relying on the FreeBSD version from
1139 sys/sys/param.h will need to be fixed.
1140
1141 20080905:
1142 update nve(4) to support new hardware.
1143
1144 20080801:
1145 Import OpenBSM 1.0
1146
1147 Modify src/release to create 3 isos instead of 2 for packages.
1148
1149 etc/rc.d/firstboot now enables kdm, gnustep + slim and bsdstats.
1150
1151 Many ia64, alpha, powerpc items were removed.
1152
1153 The recent diffutils 2.8.7 import was fixed.
1154
1155 20080703:
1156 pcc was not installed properly when setting DESTDIR for live cds,
1157 or posibly jails.
1158
1159 20080627:
1160 Add firmware(9), WEP, CCMP, TKIP to GENERIC.
1161
1162 Add glabel to GENERIC.
1163
1164 Intel ICH8 mobile chipset used on some iMacs included with ata.
1165
1166 pcc connected to the build on i386. (alternative compiler)
1167
1168 ath added to GENERIC. (Atheros wireless NICs) on amd64/i386
1169
1170 20080528:
1171 Sendmail 8.14.3
1172
1173 20080516:
1174 ssh-vulnkey allows you to look for vulnerable ssh keys that
1175 were generated on Debian and Ubuntu hosts over the last
1176 few years. sshd can block offending keys with a configuration
1177 option.
1178
1179 The elf note on binaries is now set to MidnightBSD.
1180
1181 20080514:
1182 Fixed a number of problems with pcc. It is not yet connected
1183 to the build, but usable on i386 hosts. You may use it
1184 by make; make install in /usr/src/usr.bin/pcc. It will
1185 install in /usr/local as some of the files conflict with
1186 GCC versions. __MidnightBSD__ is defined in PCC as well.
1187
1188 System headers were fixed to allow pcc to compile many binaries
1189 on MidnightBSD. bin/cp will work now for instance.
1190
1191 20080430:
1192 __MidnightBSD__ is now defined via gcc. This can be tested
1193 to determine we're running on MidnightBSD in the preprocessor.
1194
1195 20080429:
1196 Import bind 9.4.2 with threading
1197
1198 libpthread (KSE) and libthr are built earlier
1199
1200 pcvt(4) removed!
1201
1202 Alias added for core2 cpus.
1203
1204 Alpha and PC98 only utilities removed from usr/sbin
1205
1206 syslogd, adduser, rmuser, mergemaster and mailwrapper have been
1207 improved. See the man pages for info.
1208
1209 periodic scripts will not send emails with empty message bodies.
1210 See mailwrapper fix.
1211
1212 20080410:
1213 Sync cpdup with DragonFly. Add parallel transaction support and
1214 -l flag to line-buffer stdout and stderr.
1215
1216 20080406:
1217 Import bzip2 1.05
1218 Import OpenSSH 4.9p1
1219
1220 20080322:
1221 The default umask was changed to 022.
1222
1223 /usr/X11R6 paths were removed from several config files.
1224
1225 .mkshrc files are now installed for root.
1226
1227 20080316:
1228 FIx a problem with gif0 tunnels and neighbors with IPV6.
1229
1230 20080312:
1231 Add lndir from X.org. This aides in the porting of MirPorts.
1232
1233 New OS versions were added to the mapage code (groff)
1234
1235 20080310:
1236 Correct a buffer overflow in ppp.
1237
1238 20080308:
1239 Remove /usr/X11R6 from manpath config.
1240
1241 20080307:
1242 Atheros driver no longer has several options set
1243 which corrects building in tinderbox on all three platforms.
1244
1245 Added a new macro to sx.h which returns true if the current
1246 thread holds an exclusive lock on a specifix sx.
1247
1248 Removed OS/2's HPFS file system. It's not maintained and
1249 I don't know anyone using OS/2 or ecomstation these days.
1250 My copy is in the closet collecting dust.
1251
1252 20080306:
1253 Synced tinderbox with FreeBSD. Modified it for MidnightBSD.
1254 Developers can now use it to check src builds.
1255
1256 20080303:
1257 Add mksh to /etc/shells, made some adjustments to options
1258 for mksh builds per suggestion upstream.
1259
1260 USB HID table updated with modern hardware list.
1261
1262 Updated BSD family true (we're not in there yet)
1263
1264 iso3166 file updated and import of tzdata2007k for
1265 new time zones.
1266
1267 Updated mksh to latest version R33.
1268
1269 20080228:
1270 Remplaced the random IP id generation code with a new
1271 version by Amit Klein.
1272
1273 20080221:
1274 Sendfile write only permissions fix.
1275
1276 Removed some HPFS and PC98 code.
1277
1278 iso639 file sycned with DragonFly.
1279
1280 20080128:
1281 Changed NTP configuration so that ips aren't cached
1282 so multiple servers are used.
1283
1284 Fix an issue with fork() in libpthread.
1285
1286 20080121:
1287 Add virtualization detection to set the HZ rate
1288 according to a VM present. VMWare and Parallels
1289 should work better like this.
1290
1291 Change to full x11 install in sysinstall. Add
1292 xorg 7 support.
1293
1294 20080115:
1295 Fix the handling of PTY's. CVE-2008-0216
1296
1297 20080105:
1298 mport delete code added, USE_MPORT_TOOLS knob aded.
1299
1300 20080101:
1301 Happy New Year
1302
1303 20071123:
1304 Update sendmail to 8.14.2
1305
1306 20071120:
1307 Update system compiler to gcc 3.4.6.
1308
1309 20071023:
1310 Updated mksh to R31d.
1311
1312 20070911:
1313 Updated mksh to version R31b.
1314
1315 Fixed stderr output in libpthread. Previously it was
1316 written to stdout.
1317
1318 20070831:
1319 Added dot.mkshrc file to support the recent change to
1320 mksh from OpenBSD's ksh derived from pdksh.
1321
1322 Added new firewall configuration. ipfw is enabled by default
1323 with a "desktop" configuration. Consult /etc/rc.firewall
1324 or ipfw show to see the ruleset used. You can disable
1325 ipfw by setting firewall_enable="NO" in /etc/rc.conf This
1326 change only effects IPv4. IPv6 does not have a firewall
1327 enabled by default.
1328
1329 20070814:
1330 Removed GNU tar source. We've been using BSD tar
1331 for awhile.
1332
1333 20070806:
1334 Finished removing umapfs and autofs from the tree.
1335
1336 20070804:
1337 BIND and Tcpdump have been patched for recent vulnerabilities.
1338
1339 We switched to BSD cpio (pax).
1340
1341 20070719:
1342 Imported cpdup from DragonFly as /bin/cpdup
1343
1344 20070716:
1345 Update GNU cpio to 2.8.
1346
1347 20070410:
1348 cvs was updated to 1.12.13. cvsbug was removed.
1349 cvs now behaves similarly to DragonFly's cvs with
1350 most of their local changes.
1351
1352 20070409:
1353 RELENG_0_1 was created. More aggresive changes will
1354 continue here.
1355
1356 20070406:
1357 Back out propolice. propolice caused several problems
1358 with our threading libraries libthr and libpthread.
1359 curthread was often NULL after the patch and many
1360 multithreaded applications would crash. We plan to
1361 work on either bringing in gcc 4.1 or developing a new
1362 patch which also corrects our threading issues later.
1363
1364 It is more important to have a stable system for our
1365 mport work and other projects at this time.
1366
1367 This is not a clean removal. It is recommended that you
1368 have a recently SNAP CD handy. You can either reinstall
1369 or perform a make buildworld and make buildkernel and
1370 make installkernel. Reboot on the cd and copy the contents
1371 of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin,
1372 /usr/lib, and /usr/libexec to the respective directories on
1373 your disk. Then you should be able to boot into single user
1374 mode and run make installworld. You will need to run
1375 chflags noschg on some of the files if you can't overwrite
1376 them.
1377
1378 You will get __guard missing errors since we had to remove
1379 this from libc.
1380
1381 You will need to rebuild any ports built while propolice was
1382 installed.
1383
1384 20070401:
1385 Importing propolice into MidnightBSD. Propolice is going to
1386 provide us with much greater security and stability in the
1387 long run. If upgrading from a pre-propolice system, please
1388 follow the these instructions:
1389
1390 cd /usr/src/lib/libc && make obj && make && make install
1391 cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
1392 cd /usr/src/lib/libpthread && make obj && make && make install
1393 cd /usr/src/lib/libthr && make obj && make && make install
1394 buildworld and kernel
1395
1396 It is adviced that any mports which were installed and/or built
1397 prior to the propolice update also be updated. If any errors
1398 or issue are encounted, please contact security@midnightbsd.org
1399 and we will be sure to investigate and come up with an expeditious
1400 fix.
1401
1402 20070314:
1403 Remove send-pr from src.
1404
1405 Switch to NetBSD's gzip.
1406
1407 Bump MBSD minor revision.
1408
1409 20070313:
1410 Imported OpenSSH 4.6p1.
1411
1412 Imported FreeBSD's libarchive and updated tar to work with it.
1413
1414 Disabled debug statements cluttering up /var/log/messages for
1415 the tcp autobuf patch applied previously.
1416
1417 20070312:
1418 Synced several audio changes from FreeBSD 6.1. Removed the
1419 BSD Daemon files from src/share.
1420
1421 20070308:
1422 Added mfi which supports LSI Logic MegaRAID SAS devices including
1423 the Dell perc5i.
1424
1425 20070206:
1426 Imported OpenBSD's sudo into source. Please install
1427 /usr/src/usr.bin/sudo/lib first before building.
1428
1429 Those who install from a snapshot after this date
1430 will not be effected.
1431
1432 20070119:
1433 Added audit group. Be sure to add audit to your /etc/group file
1434 before installing world.
1435
1436 hostapd was updated to 0.4.8.
1437
1438 An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
1439 unbreak world.
1440
1441 wpa_supplicant was updated.
1442
1443 For stability and compatibility reasons, it was decided that MidnightBSD
1444 sync with FreeBSD 6.1 Release. Nearly every change between the original
1445 fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
1446 2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
1447 will not sync every little change with FreeBSD.
1448
1449 20061231:
1450 Updated COPYRIGHT for 2007.
1451
1452 Updated and bumped libutil after importing NetBSD efun(3) functions.
1453
1454 Added MidnightBSD_version and bumped the FreeBSD version as we've
1455 synced all commits between the fork and that version. It is now safe
1456 to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
1457 Feb 26, 2006.
1458
1459 Added spell(1) and deroff(1) from NetBSD. Also added additional
1460 dict files to work with it. /usr/share/dict/american,
1461 /usr/share/dict/british and /usr/share/dict/special/math
1462
1463 Numerous man page and bug fixes.
1464
1465 20061226:
1466 Setup /usr/share/examples/cvsup SUPfiles for the new
1467 MidnightBSD CVSup server.
1468
1469 Fix a bug in burncd where it would continue forever while
1470 erasing CDRW media.
1471
1472 Add csup to /usr/bin. csup is a CVSup replacement written
1473 in C.
1474
1475 Fixed a bug with bsnmpd build from Oct 30.
1476
1477 Corrected some race conditions and fixed a few bugs in
1478 geom. Imported changes from FreeBSD RELENG_6.
1479
1480 20061225:
1481 Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
1482 that caused long double to long and long long
1483 conversion of negative numbers to always result in -1.
1484
1485 20061221:
1486 Fixed acpi_battery.c to not report an ERROR if no
1487 batteries are present.
1488
1489 Performed some minor updates on the RL and RE NIC drivers.
1490 RL should no longer panic when trying to print errors.
1491
1492 Corrected a bug with TTY.
1493
1494 20061218:
1495 Corrected a bug with libpthread where newly created suspended
1496 threads don't get scheduled.
1497
1498 20061206:
1499 Fixed a typo with the firewire security patch.
1500
1501 20061129:
1502 Minor cleanups to utilities in bin.
1503
1504 Fixed msdos file system short file name behavior to match
1505 FreeBSD.
1506
1507 20061031:
1508 Updated man pages in section 7.
1509
1510 20061030:
1511 Updated sys/dev/drm to support intel 915 and radeon
1512 r300 cards properly.
1513
1514 Synced snmpd with FreeBSD-stable.
1515
1516 Fixed a bug in rm which could cause data loss.
1517
1518 20061027:
1519 Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
1520 random, kbdmux, atkbd, and usb were updated. Changes
1521 to clearing registers on SSE enabled processors (i386)
1522 commited.
1523
1524 lukemftpd updated.
1525
1526 openssh rc script was altered which effects initial
1527 seeding.
1528
1529 20061014:
1530 Workaround for em driver problem on shared IRQ.
1531
1532 Started removal of alpha support.
1533
1534 20061013:
1535 ATA driver was updated. USB/USB1/USB2 types added.
1536
1537 20061010:
1538 OpenSSH was updated to 4.4p1.
1539
1540 20060909:
1541 OpenNTPD was added to MidnightBSD. Run make delete-old to remove
1542 the old ntpd daemon.
1543
1544 cat has a new option -D which allows you to timestamp output
1545 on a per line basis.
1546
1547 The kernel has a keyboard mux which allows you to have multiple
1548 keyboard connected simultaneously. USB keyboard support was also
1549 improved with this patch.
1550
1551 The Intel em driver was updated. Network performance was greatly
1552 increased on many systems. Additional models are supported.
1553
1554 The ATA driver was patched to fix a potential deadlock.
1555
1556 Bind was patched to fix a potential denial of service condition.
1557
1558 20060817:
1559 ksh has been added to the base system. If you previously had
1560 the port installed, it will be overwritten on the next buildworld.
1561
1562
1563
1564 To build a kernel
1565 -----------------
1566 If you are updating from a prior version of MidnightBSD (even one just
1567 a few days old), you should follow this procedure. With a
1568 /usr/obj tree with a fresh buildworld,
1569 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
1570 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
1571
1572 To test a kernel once
1573 ---------------------
1574 If you just want to boot a kernel once (because you are not sure
1575 if it works, or if you want to boot a known bad kernel to provide
1576 debugging information) run
1577 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
1578 nextboot -k testkernel
1579
1580 To just build a kernel when you know that it won't mess you up
1581 --------------------------------------------------------------
1582 This assumes you are already running a 6.X system. Replace
1583 ${arch} with the architecture of your machine (e.g. "i386",
1584 "amd64", "ia64", "pc98", "sparc64", etc).
1585
1586 cd src/sys/${arch}/conf
1587 config KERNEL_NAME_HERE
1588 cd ../compile/KERNEL_NAME_HERE
1589 make depend
1590 make
1591 make install
1592
1593 If this fails, go to the "To build a kernel" section.
1594
1595 To rebuild everything and install it on the current system.
1596 -----------------------------------------------------------
1597 # Note: sometimes if you are running current you gotta do more than
1598 # is listed here if you are upgrading from a really old current.
1599
1600 <make sure you have good level 0 dumps>
1601 make buildworld
1602 make kernel KERNCONF=YOUR_KERNEL_HERE
1603 [1]
1604 <reboot in single user> [3]
1605 mergemaster -p [5]
1606 make installworld
1607 make delete-old
1608 mergemaster [4]
1609 <reboot>
1610
1611
1612 To cross-install current onto a separate partition
1613 --------------------------------------------------
1614 # In this approach we use a separate partition to hold
1615 # current's root, 'usr', and 'var' directories. A partition
1616 # holding "/", "/usr" and "/var" should be about 2GB in
1617 # size.
1618
1619 <make sure you have good level 0 dumps>
1620 <boot into -stable>
1621 make buildworld
1622 make buildkernel KERNCONF=YOUR_KERNEL_HERE
1623 <maybe newfs current's root partition>
1624 <mount current's root partition on directory ${CURRENT_ROOT}>
1625 make installworld DESTDIR=${CURRENT_ROOT}
1626 cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
1627 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
1628 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
1629 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
1630 <reboot into current>
1631 <do a "native" rebuild/install as described in the previous section>
1632 <maybe install compatibility libraries from src/lib/compat>
1633 <reboot>
1634
1635
1636 To upgrade in-place from 5.x-stable or higher to 6.x-stable
1637 -----------------------------------------------------------
1638 <make sure you have good level 0 dumps>
1639 make buildworld [9]
1640 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
1641 [1]
1642 <reboot in single user> [3]
1643 mergemaster -p [5]
1644 make installworld
1645 make delete-old
1646 mergemaster -i [4]
1647 <reboot>
1648
1649 Make sure that you've read the UPDATING file to understand the
1650 tweaks to various things you need. At this point in the life
1651 cycle of current, things change often and you are on your own
1652 to cope. The defaults can also change, so please read ALL of
1653 the UPDATING entries.
1654
1655 Also, if you are tracking -current, you must be subscribed to
1656 freebsd-current@freebsd.org. Make sure that before you update
1657 your sources that you have read and understood all the recent
1658 messages there. If in doubt, please track -stable which has
1659 much fewer pitfalls.
1660
1661 [1] If you have third party modules, such as vmware, you
1662 should disable them at this point so they don't crash your
1663 system on reboot.
1664
1665 [3] From the bootblocks, boot -s, and then do
1666 fsck -p
1667 mount -u /
1668 mount -a
1669 cd src
1670 adjkerntz -i # if CMOS is wall time
1671 Also, when doing a major release upgrade, it is required that
1672 you boot into single user mode to do the installworld.
1673
1674 [4] Note: This step is non-optional. Failure to do this step
1675 can result in a significant reduction in the functionality of the
1676 system. Attempting to do it by hand is not recommended and those
1677 that pursue this avenue should read this file carefully, as well
1678 as the archives of freebsd-current and freebsd-hackers mailing lists
1679 for potential gotchas.
1680
1681 [5] Usually this step is a noop. However, from time to time
1682 you may need to do this if you get unknown user in the following
1683 step. It never hurts to do it all the time.
1684
1685 [8] In order to have a kernel that can run the 5.x binaries
1686 needed to do an installworld, you must include the COMPAT_FREEBSD5
1687 option in your kernel. Failure to do so may leave you with a system
1688 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
1689 is required to run the 5.x binaries on more recent kernels.
1690
1691 Make sure that you merge any new devices from GENERIC since the
1692 last time you updated your kernel config file.
1693
1694 [9] When checking out sources, you must include the -P flag to have
1695 cvs prune empty directories.
1696
1697 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
1698 "?=" instead of the "=" assignment operator, so that buildworld can
1699 override the CPUTYPE if it needs to.
1700
1701 MAKEOBJDIRPREFIX must be defined in an environment variable, and
1702 not on the command line, or in /etc/make.conf. buildworld will
1703 warn if it is improperly defined.
1704
1705 Copyright information:
1706
1707 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
1708
1709 Redistribution, publication, translation and use, with or without
1710 modification, in full or in part, in any form or format of this
1711 document are permitted without further permission from the author.
1712
1713 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
1714 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1715 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1716 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
1717 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1718 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1719 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1720 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1721 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
1722 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1723 POSSIBILITY OF SUCH DAMAGE.
1724
1725 If you find this document useful, and you want to, you may buy the
1726 author a beer.
1727
1728 Contact Warner Losh if you have any questions about your use of
1729 this document.
1730
1731 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
1732 $MidnightBSD$

Properties

Name Value
svn:keywords MidnightBSD=%H