ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 7423
Committed: Thu Jan 14 13:43:54 2016 UTC (8 years, 3 months ago) by laffer1
File size: 49776 byte(s)
Log Message:
document SCTP fix

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

Properties

Name Value
svn:keywords MidnightBSD=%H