summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Enable GCC stack protection (aka Propolice) for userland:ru2008-06-2537-22/+126
| | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* Use "__asm __volatile" rather than "__asm" for instruction sequencesmarius2008-06-251-7/+7
| | | | | | | | | | | | | that modify condition codes (the carry bit, in this case). Without "__volatile", the compiler might add the inline assembler instructions between unrelated code which also uses condition codes, modifying the latter. This prevents the TCP pseudo header checksum calculation done in tcp_output() from having effects on other conditions when compiled with GCC 4.2.1 at "-O2" and "options INET6" left out. [1] Reported & tested by: Boris Kochergin [1] MFC after: 3 days
* Given that sun4u uses sparc64/sparc64/in_cksum.c, use the sparc64marius2008-06-251-164/+2
| | | | | | <machine/in_cksum.h> here also. MFC after: 3 days
* src/compat/ is gone back in March.ru2008-06-251-2/+2
| | | | Reported by: Mars G Miro
* Document spindown constraints as given in the original commitbz2008-06-251-1/+22
| | | | | | | | message[1] and later clarification provided by phk. [1] http://docs.freebsd.org/cgi/mid.cgi?200803171033.m2HAXOeN055116 Reviewed by: brueffer, phk, ed
* Remove the unused M_MEMDEV from the kernel.ed2008-06-252-4/+0
| | | | | | | The M_MEMDEV memory allocation pool does not seem to be used. We can live without it. Approved by: philip (mentor)
* Remove the unused major/minor numbers from iodev and memdev.ed2008-06-2512-18/+1
| | | | | | | | | Now that st_rdev is being automatically generated by the kernel, there is no need to define static major/minor numbers for the iodev and memdev. We still need the minor numbers for the memdev, however, to distinguish between /dev/mem and /dev/kmem. Approved by: philip (mentor)
* Fix links to online gcc docs.ale2008-06-251-3/+3
| | | | | Reported by: Andre Guibert de Bruet <andy@siliconlandmark.com> MFC after: 1 day
* Pass the entry down into the core write loop, so wekientzle2008-06-251-4/+6
| | | | | | can include the filename when reporting errors. Thanks to: Dan Nelson
* Months in English are capitalized (even when abbreviated).wollman2008-06-251-1/+1
|
* Quiet rc.d/syscons unless it has something to say.mtm2008-06-241-6/+35
|
* Emit opcodes closer to GNU as(1) generated codes and micro-optimize.jkim2008-06-242-59/+46
|
* Emit opcodes closer to GNU as(1) generated codes and micro-optimize.jkim2008-06-242-63/+49
|
* Make it simpler to build netgraph modules outside of the kernel sourcegnn2008-06-241-0/+2
| | | | | | tree. This change follows similar ones in the device tree. MFC after: 2 weeks
* In -p mode, don't gaurd against '..' in paths. We continue tokientzle2008-06-241-0/+1
| | | | | | check in -i mode unless --insecure is specified. PR: bin/124924
* In case of interface initialization failure remove struct in_ifaddr* fromgonzo2008-06-241-0/+8
| | | | | | | | | | in_ifaddrhashtbl in in_ifinit because error handler in in_control removes entries only for AF_INET addresses. If in_ifinit is called for the cloned inteface that has just been created its address family is not AF_INET and therefor LIST_REMOVE is not called for respective LIST_INSERT_HEAD and freed entries remain in in_ifaddrhashtbl and lead to memory corruption. PR: kern/124384
* Add two commands to _umtx_op system call to allow a simple mutex to bedavidxu2008-06-245-90/+251
| | | | | | | | | | | | | | locked and unlocked completely in userland. by locking and unlocking mutex in userland, it reduces the total time a mutex is locked by a thread, in some application code, a mutex only protects a small piece of code, the code's execution time is less than a simple system call, if a lock contention happens, however in current implemenation, the lock holder has to extend its locking time and enter kernel to unlock it, the change avoids this disadvantage, it first sets mutex to free state and then enters kernel and wake one waiter up. This improves performance dramatically in some sysbench mutex tests. Tested by: kris Sounds great: jeff
* Fix test for waiting AIFs in aac_poll(). This seems to solve theemaste2008-06-241-2/+7
| | | | | | | | problem where Adaptec's arcconf monitoring tool hangs after producing its expected output. Submitted by: Adaptec, via driver ver 15317 MFC after: 1 week
* Rehash and clean up BPF JIT compiler macros to match AT&T notations.jkim2008-06-232-143/+143
|
* Rehash and clean up BPF JIT compiler macros to match AT&T notations.jkim2008-06-232-152/+152
|
* Add a -q flag to swapon(8) to suppress informational messages. Use it inmtm2008-06-233-10/+25
| | | | | rc.d. Note: errors are not affected by this flag.
* The sysctl(8) program exits on some errors and only emits warnings onmtm2008-06-234-5/+17
| | | | | | | | | others. In the case where it displayed warnings it would still return succesfully. Modify it so that it returns the number of sysctls that it was not able to set. Make use of this in rc.d to display only *unsuccessfull* attempts to set sysctls.
* Remove the posixsem_check_destroy() MAC check. It is semantically identicaljhb2008-06-238-44/+0
| | | | | | | to doing a MAC check for close(), but no other types of close() (including close(2) and ksem_close(2)) have MAC checks. Discussed with: rwatson
* Run savecore(8) only if there is a core dump to save. If there ismtm2008-06-231-2/+5
| | | | no core dump hide the message to that effect behind $rc_quiet.
* Implement a "quiet" mode for rc.d/netif, which only outputsmtm2008-06-233-15/+23
| | | | | | | | | the interface name of interfaces that were configured. This change has the added benefit that ifn_start() and ifn_stop() in network.subr no longer write to standard output. Whether to output and what to output is now handled entirely in rc.d/netif.
* +Computers can't cruise. Meandering is a foreign concept to them.phk2008-06-231-0/+6
| | | | | | | +The computer assumes that all behavior is in pursuit of an ultimate +goal. Whenever a motorist changes his or her mind and veers off +course, the GPS lady issues that snippy announcement: "Recalculating!" + -- Joel Achenbach (www.slate.com, 20 jun 2008)
* - Use bus_foo() rather than bus_space_foo() and retire the bus tag and handlejhb2008-06-235-44/+27
| | | | | | | | | | | | from the softc. - Rework the watchdog timer to match other NIC drivers: - Start a timer in fe_init() that runs once a second and checks a counter in the softc that is identical to the deprecated 'if_timer'. - Just adjust the softc tx timeout value when sending packets instead of scheduling the timer. - Use IFQ_SET_MAXLEN(). Tested by: WATANABE Kazuhiro
* Ensure the channel is a number and not a range, the 'channel' command can bethompsa2008-06-231-1/+4
| | | | | easily mixed up with 'chanlist' and would give unexpected results by fixing the channel on the first number in the range.
* - Fix compile if WPI_DEBUG is not definedthompsa2008-06-231-27/+39
| | | | | | - Allow debug.wpi to be set from a tunable - Put ring reset messages back under debug - Add more debug output around channel init
* Ensure that KERNBASE is no less than the virtual address -2GB.alc2008-06-231-1/+1
|
* Set the sysctl(8) value in the same shell, not a subshell. This wasmtm2008-06-231-2/+2
| | | | | causing calls to netoptions_init() to not properly set a global variable, which ended up being in the parent shell.
* Turn execvpe() into an internal libc routine.ed2008-06-237-20/+12
| | | | | | | | | | | | Adding exevpe() has caused some ports to break. Even though execvpe() is a useful routine, it does not conform to any standards. This patch is a little bit different from the patch sent to the mailing list. I forgot to remove execvpe from the Symbol.map (which does not seem to miscompile libc, though). Reviewed by: davidxu Approved by: philip
* Move the diagnostic output when the rc.subr(8) glue automatically starts amtm2008-06-231-3/+9
| | | | | | | | | | service behind $rc_quiet. Instead, output a warning if the pre-command routine or the command itself failed. Arguably, it's more useful to know when a command failed to start than it is to have an endless list of "Starting ...." lines[1]. [1] - This change actually helped me to discover a bug in rc.d/{lockd,statd} (fixed in r179941) that used to fail silently before.
* Move a lot of diagnostic output behind $rc_quiet in scripts thatmtm2008-06-239-17/+19
| | | | implement their own start command.
* Align the script more with rc.d/cleanvar (which doesn't output anymtm2008-06-231-2/+2
| | | | diagnostics). Instead, move output behind $rc_quiet.
* Remove the -v flag from the command line to dumpon(8), and instead printmtm2008-06-231-1/+2
| | | | diagnostic ouput only if the command fails.
* Remove pointless informational message.mtm2008-06-231-1/+0
|
* Argh! s/nfs_client_enable/nfsclient_enable/gmtm2008-06-232-4/+4
|
* Do not print anything unless one of the net/routing options is set.mtm2008-06-232-4/+35
|
* s/daemon processes/local packages/ for consisitency.mtm2008-06-231-1/+1
|
* Always create opt_ah.h regardless of KERNBUILDDIR.thompsa2008-06-231-1/+1
|
* Add exit_delay parameter to control daemon exit delay after signal.mav2008-06-223-4/+31
| | | | | PR: bin/58696 Submitted by: sp@alkor.ru
* If S_IFIFO is passed to mknod(2), invoke kern_mkfifoat(9) to create arwatson2008-06-221-0/+4
| | | | | | | | | | | | | | | | | FIFO, as required by SUSv3. No specific privilege check is performed in this case, as FIFOs may be created by unprivileged processes (subject to the normal file system name space restrictions that may be in place). Unlike the Apple implementation, we reject requests to create a FIFO using mknod(2) if there is a non-zero dev argument to the system call, which is permitted by the Open Group specification ("... undefined ..."). We might want to revise this if we find it causes compatibility problems for applications in practice. PR: kern/74242, kern/68459 Obtained from: Apple, Inc. MFC after: 3 weeks
* Use strdup() instead of static buffer allocation to avoid 128 bytes limitmav2008-06-221-6/+18
| | | | | | | on -redirect_XXX arguments length. PR: bin/86647 Submitted by: Stephen Hurd <shurd@sasktel.net>
* Teach fifo_create regression test to also try to use mknod(2) to createrwatson2008-06-221-36/+84
| | | | | | | | fifos, as this is required by the Single UNIX Specification, although not currently implemented on FreeBSD. While here, fix a bug in the directory timestamp checking test by sleeping after querying the starting timestamp, rather than before.
* Add support for VT8237 ISA bridge.gonzo2008-06-221-0/+7
| | | | | PR: kern/120714 Event: Bugathon#5
* Add an abbreviation for adaptive mode, and document all the abreviations.obrien2008-06-222-1/+2
|
* Output information only if /etc/rc.local exists.mtm2008-06-221-4/+4
|
* Do not print anything unless at least one of the abi emulators ismtm2008-06-221-2/+8
| | | | enabled.
* Simplify this script with the added bonus that the bit about i386mtm2008-06-221-22/+17
| | | | initialization doesn't get printed unless ibcs2_enable is set.
OpenPOWER on IntegriCloud