summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sh: Remove clearcmdentry()'s now unused argument.jilles2011-02-053-11/+10
|
* sh: Forget all cached command locations on any PATH change.jilles2011-02-052-24/+13
| | | | | | | | | POSIX requires this and it is simpler than the previous code that remembered command locations when appending directories to PATH. In particular, PATH=$PATH is no longer a no-op but discards all cached command locations.
* sh: Do not try to execute binary files as scripts.jilles2011-02-053-1/+28
| | | | | | | | | | If execve() returns an [ENOEXEC] error, check if the file is binary before trying to execute it using sh. A file is considered binary if at least one of the first 256 bytes is '\0'. In particular, trying to execute ELF binaries for the wrong architecture now fails with an "Exec format error" message instead of syntax errors and potentially strange results.
* 1) Typo correction in comments and one spacing change.rrs2011-02-0538-51/+82
| | | | | 2) Mass update to all copyrights. MFC after: 3 Months
* phys_addr is a PA not a VA so declare it as a vm_paddr_t not a vm_offset_t.imp2011-02-051-1/+1
|
* Make md_tp a register_t not a void *. This will keep us fromimp2011-02-053-6/+6
| | | | | | | accidentally dereferencng it and might be one fewer things to change if arm64 happens... Submitted by: rwatson's question on irc...
* sh: Remove special code for shell scripts without magic number.jilles2011-02-0417-224/+27
| | | | | | | | | | These are called "shell procedures" in the source. If execve() failed with [ENOEXEC], the shell would reinitialize itself and execute the program as a script. This requires a fair amount of code which is not frequently used (most scripts have a #! magic number). Therefore just execute a new instance of sh (_PATH_BSHELL) to run the script.
* Remove duplicate .note.GNU-stack section declaration.kib2011-02-042-4/+0
| | | | Reported by: arundel
* Since the last parameter to vm_object_shadow() is a vm_size_t and not aalc2011-02-042-8/+6
| | | | | vm_pindex_t, it makes no sense for its callers to perform atop(). Let vm_object_shadow() do that instead.
* Remove duplicate .note.GNU-stack section declaration. bcopy alreadykib2011-02-043-6/+0
| | | | | | made the neccessary provisions. Reported by: arundel
* Do not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.jkim2011-02-041-5/+5
| | | | | | | | | | When the basehome does not exist, it creates all intermediate directories as required, which is logically equivalent to mkdir(1) with -m and -p options. However, it modifies all intermediate directories, not just the final home directory unlike mkdir. This problem was introduced in two revisions, i.e., r1.59 (SVN r167919) and r1.60 (SVN r168044). MFC after: 1 month
* Correct include path.jhb2011-02-041-1/+1
| | | | | Submitted by: arundel MFC after: 1 week
* Disable TX IP checksum offloading for RTL8168C controllers. Theyongari2011-02-041-4/+19
| | | | | | | | | | | | | | | | controller in question generates frames with bad IP checksum value if packets contain IP options. For instance, packets generated by ping(8) with record route option have wrong IP checksum value. The controller correctly computes checksum for normal TCP/UDP packets though. There are two known RTL8168/8111C variants in market and the issue I observed happened on RL_HWREV_8168C_SPIN2. I'm not sure RL_HWREV_8168C also has the same issue but it would be better to assume it has the same issue since they shall share same core. RTL8102E which is supposed to be released at the time of RTL8168/8111C announcement does not have the issue. Tested by: Konstantin V. Krotov ( kkv <> insysnet dot ru )
* Make sys_signame upper case.jilles2011-02-047-40/+40
| | | | | | | | | | | | This matches the constants from <signal.h> with 'SIG' removed, which POSIX requires kill and trap to accept and 'kill -l' to write. 'kill -l', 'trap', 'trap -l' output is now upper case. In Turkish locales, signal names with an upper case 'I' are now accepted, while signal names with a lower case 'i' are no longer accepted, and the output of 'killall -l' now contains proper capital 'I' without dot instead of a dotted capital 'I'.
* We can pass a format string and args to panic(), so instead of usingemaste2011-02-041-14/+8
| | | | | | | | printf() to output some information before a panic, just include that information in the panic. Submitted by: bde Reviewed by: bde
* vdev's sectorsize should not be greater than 8 Kbytes and alsoae2011-02-041-1/+13
| | | | | | | | | it should be power of 2. This prevents non-aligned access while probing vdev's labels. PR: kern/147852 Reviewed by: pjd MFC after: 1 week
* Collapse duplicate definitions of EXT2_SB().jhb2011-02-041-17/+6
| | | | Submitted by: Pedro F. Giffuni giffunip at yahoo
* Always assert that the turnstile chain lock is held in turnstile_wait()jhb2011-02-041-2/+1
| | | | | | and remove a duplicate hash lookup. MFC after: 1 week
* When turning off TCP_NOPUSH, only call tcp_output() to immediately flushjhb2011-02-041-2/+3
| | | | | | | | any pending data if the connection is established. Submitted by: csjp Reviewed by: lstewart MFC after: 1 week
* Use M_WAITOK rather than M_NOWAIT when creating taskqueues via thejhb2011-02-041-2/+2
| | | | | | | TASKQUEUE_DEFINE macros. All the places that use these macros to create taskqueues assume that the operation succeeds. MFC after: 1 week
* 1) Fix cpu mapping per JB's suggestionsrrs2011-02-042-19/+50
| | | | | | 2) Fix it so INIT's don't always end up on CPU0 MFC after: 3 months
* Replace __LP64__ with __mips_n64. This partly reverts r217147.tijl2011-02-044-12/+12
| | | | | Requested by: jmallett, imp Approved by: kib (mentor)
* Fix typo (Tuneable -> Tunable).brucec2011-02-041-4/+4
|
* Add PEX0 and select the first serial port as console.marcel2011-02-041-0/+28
|
* Oops, fix newbie mistake that breaks the normal build.adrian2011-02-041-1/+1
|
* sh: Return only 126 or 127 for execve() failures.jilles2011-02-031-12/+5
| | | | Do not return 2 for errors other than [EACCES] or [ENOENT].
* Fix several bugs in the stream schedulers.tuexen2011-02-036-54/+67
| | | | | | From Robin Seggelmann. MFC after: 3 months.
* Modify the TX path to set and use the 11n rate scenario bits.adrian2011-02-031-25/+75
| | | | | | | | | | | | | | | This isn't strictly required to TX (at least non-agg and non-HT40, non-short-GI) frames; but as it needs to be done anyway, just get it done. Linux ath9k uses the rate scenario style path for -all- packets, legacy or otherwise. This code does much the same. Beacon TX still uses the legacy, non-rate-scenario TX descriptor setup. Ath9k also does this. This 11n rate scenario path is only called for chips in the AR5416 HAL; legacy chips use the previous interface for TX'ing.
* Disable the code I previously added from Rui's 802.11n branch.adrian2011-02-031-0/+6
| | | | | | | | | | | | A-MPDU RX interferes with packet retransmission/reordering. In local testing, I was seeing A-MPDU being negotiated and then not used by the AP sending frames to the STA; the STA would then treat non A-MPDU frames that are retransmits as out of the window and get plain confused. The hardware RX status descriptor has a "I'm part of an aggregate" bit; so this should eventually be tested and then punted to the A-MPDU reorder handling only if it has this bit set.
* Make sure that changing the ECN sysctl does not affecttuexen2011-02-036-30/+34
| | | | | | exisiting associations and endpoints. MFC after: 3 months.
* 1) Move per John Baldwin to mp_maxidrrs2011-02-037-22/+37
| | | | | | | 2) Some signed/unsigned errors found by Mac OS compiler (from Michael) 3) a couple of copyright updates on the effected files. MFC after: 3 months
* Fix for detection of MTK 3329 GPS USB devices.hselasky2011-02-032-5/+58
| | | | | | Submitted by: Mykhaylo Yehorov PR: usb/153929 Approved by: thompsa (mentor)
* The FDT describes the host controller directly. There's no need tomarcel2011-02-031-17/+10
| | | | | | | | get properties from the parent. The parent is in fact the FDT bus itself and will therefore not have the properties we're looking for. Sponsored by: Juniper Networks
* Accept r1 as having the metadata pointer argument if r0 is 0.marcel2011-02-031-4/+10
| | | | | | This provides backward compatibility with Juniper loaders. Sponsored by: Juniper Networks
* Bring the list of OIDs up-to-date to prevent conflicts.harti2011-02-031-1/+19
|
* Eliminate unnecessary page hold_count checks. These checks predatealc2011-02-032-4/+2
| | | | | | | r90944, which introduced a general mechanism for handling the freeing of held pages. Reviewed by: kib@
* Use a dedicated taskqueue with a thread that runs at a software-interruptjhb2011-02-031-3/+7
| | | | priority for the periodic polling of the machine check registers.
* Fix the per CPU stats so that:rrs2011-02-034-8/+39
| | | | | | | | | | | | 1) They don't use the giant "MAX_CPU" define and instead are allocated dynamically based on mp_ncpus 2) Will zero with the netstat -z -s -p sctp 3) Will be properly handled by both the sctp_init and finish (the multi-net stuff was incorrectly bzero'ing in sctp_init the wrong size.. the bzero is now moved to the right places). And of course the free is put in at the very end. MFC after: 3 Months
* Setup another socketpair between parent and child, so that primary sandboxedpjd2011-02-035-31/+143
| | | | | | | | | worker can ask the main privileged process to connect in worker's behalf and then we can migrate descriptor using this socketpair to worker. This is not really needed now, but will be needed once we start to use capsicum for sandboxing. MFC after: 1 week
* Add missing locking after moving keepalive_send() to remote send threadpjd2011-02-031-3/+9
| | | | | | in r214692. MFC after: 1 week
* Drop privileges after connecting to hastd, but before sending or receivingpjd2011-02-031-0/+5
| | | | | | anything. MFC after: 1 week
* Let the caller log info about successful privilege drop.pjd2011-02-033-2/+2
| | | | | | We don't want to log this in hastctl. MFC after: 1 week
* Adds an experimental option to create a pool ofrrs2011-02-039-4/+254
| | | | | | | | | threads. These serve as input threads and are queued packets based on the V-tag number. This is similar to what a modern card can do with queue's for TCP... but alas modern cards know nothing about SCTP. MFC after: 3 months (maybe)
* Include driver name in panic string, to make it easier to find these shouldemaste2011-02-031-4/+4
| | | | the panic ever occur.
* Revert part of r173264. Both aac_ioctl_sendfib and aac_ioctl_send_raw_srbemaste2011-02-031-5/+1
| | | | | | | | | | make use of the aac_ioctl_event callback, if aac_alloc_command fails. This can end up in an infinite loop in the while loop in aac_release_command. Further investigation into the issue mentioned by Scott Long [1] will be necessary. [1] http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078740.html
* Setting TARGET and TARGET_ARCH needs to be done in _MAKE, not in theimp2011-02-021-2/+2
| | | | TGTS rule as _MAKE is used elsewhere. This should fix make world.
* sh: Add test for shell script without '#!'.jilles2011-02-021-0/+11
|
* sh: Remove comment mentioning herefd, which is gone.jilles2011-02-021-2/+1
|
* Add some obsolete manpages.uqs2011-02-021-0/+6
|
* Add missing argument after r218192.bz2011-02-021-1/+1
|
OpenPOWER on IntegriCloud