kib
59a00054ac
- When executing FreeBSD/amd64 binaries from FreeBSD/i386 or Linux/i386
...
processes, clear PCB_32BIT and PCB_GS32BIT bits [1].
- Reread the fs and gs bases from the msr unconditionally, not believing
the values in pcb_fsbase and pcb_gsbase, since usermode may reload
segment registers, invalidating the cache. [2].
Both problems resulted in the wrong fs base, causing wrong tls pointer
be dereferenced in the usermode.
Reported and tested by: Vyacheslav Bocharov <adeepv at gmail com> [1]
Reported by: Bernd Walter <ticsoat cicely7 cicely de>,
Artem Belevich <fbsdlist at src cx>[2]
Reviewed by: peter
MFC after: 3 days
2008-09-02 17:52:11 +00:00
ed
8496708649
Use size_t to store the return value of ttydisc_getc().
...
The ttydisc_getc() routine obtains a read length from ttyoutq_read().
For no valid reason, the current code stores this value in an int, and
returns a size_t. There is no need to perform this useless conversion.
Obtained from: //depot/projects/mpsafetty/...
2008-09-02 17:13:11 +00:00
rwatson
34b4039202
Remove XXXRW in soreceive_dgram that proves unnecessary.
...
Remove unused orig_resid variable in soreceive_dgram.
Submitted by: alfred
X-MFC with: soreceive_dgram (r180198, r180211)
2008-09-02 16:55:21 +00:00
obrien
3406a9a37d
Add gprof MIPS MD header and enable building gprof.
...
Obtained from: Juniper Networks
2008-09-02 15:35:47 +00:00
roberto
fa9e66496f
Allow again compilation w/o GNU readline. There are conditionals in
...
{ntpdc,ntpq}/Makefile.
Submitted by: Ben Kelly <bkelly@vadev.org>
2008-09-02 14:00:17 +00:00
kmacy
5800272415
Import ioctl updates for latest rev of cxgbtool
...
Obtained from: Chelsio Inc.
MFC after: 3 days
2008-09-02 07:47:14 +00:00
gshapiro
b9e5455674
Fix an ABI breakage found after the import that will be part of the
...
next version of sendmail. Putting it in now for the upcoming 7-BETA
and 6-BETA test releases.
Submitted by: Mike Tancsa
2008-09-02 04:53:24 +00:00
weongyo
7ec33e687c
free ifp allocated at ieee80211_vap_setup.
...
Reviewed by: sam, thompsa
2008-09-02 04:49:35 +00:00
kevlo
3fe0cc5a82
Use RUSAGE_SELF for the current process instead of hardcoded value
2008-09-02 02:59:38 +00:00
kevlo
50b997c3ef
Use RUSAGE_SELF for the current process instead of hardcoded value
2008-09-02 02:59:13 +00:00
kmacy
5b1439fb48
Accomodate the fact that the number of l1 pages varies with the size of the initially
...
allocated memory - this lets us boot with 3GB
MFC after: 1 month
2008-09-02 02:55:45 +00:00
nwhitehorn
840a563001
Fix a multiple locking bug in bm(4) that could cause panics on a WITNESS-enabled kernel.
...
Approved by: marcel (mentor)
MFC after: 1 day
2008-09-02 02:50:52 +00:00
kmacy
3873494459
Fix problem with large memory configuration by ensuring that all NKPT
...
page table pages have been zeroed before entering them in the page
directory
MFC after: 1 month
2008-09-02 01:32:52 +00:00
imp
cd46c93cc8
Per email to arch@ a little while ago (that was greeted with silence),
...
prefer the more common > ${.TARGET} over > opt_foo.h in modules
makefiles.
2008-09-01 23:59:00 +00:00
des
cb1bd25c2f
Belatedly add a notice about the reversed order of preference for OpenSSH
...
authentication keys.
2008-09-01 23:50:56 +00:00
obrien
34e07c5340
We're not quite ready for the full %(endian_spec).
2008-09-01 23:09:45 +00:00
dougb
595c959724
Update for version 9.4.2-P2
2008-09-01 22:55:23 +00:00
dougb
1f3acabb18
Merge from vendor/bind9/dist as of the 9.4.2-P2 import
2008-09-01 22:54:49 +00:00
obrien
188674d6ca
Add __unix__. Tweak __KPRINTF_ATTRIBUTE__ while I'm here.
2008-09-01 22:22:44 +00:00
brooks
ac94f4b6be
Wrap an 81 column SYSCTL_NODE decleration.
...
Obtained from: //depot/projects/vimage-commit2/...
2008-09-01 19:25:27 +00:00
ed
3758c00f64
Remove unneeded D_NEEDMINOR from cpuctl(4).
...
The D_NEEDMINOR flag was introduced for drivers that do not actually
depend on storing a device unit/minor number, but require the ability to
address the cdevs by this number, which is used by clone_create().
The cpuctl(4) driver sets D_NEEDMINOR, even though it doesn't use the
clone_create() API. Remove the flag, because maybe we want to get rid of
it somewhere in the far future.
2008-09-01 18:56:01 +00:00
obrien
f18a1ee8d4
Add FreeBSD/MIPS support to GCC.
2008-09-01 18:46:03 +00:00
obrien
1a39c79ce0
GDB isn't building on MIPS. Temporarily disable, to revisit soon.
2008-09-01 18:18:19 +00:00
obrien
69573b0e0c
Truss and gprof doesn't build for MIPS.
2008-09-01 18:03:09 +00:00
yar
f379ac81c2
Correct a silly typo I introduced: withing -> within.
...
Noticed by: das
2008-09-01 17:48:40 +00:00
brooks
49557993ec
Wrap a line that became too long with the addition of V_.
...
(This file contains many more unwrapped or badly wrapped lines.)
2008-09-01 17:15:29 +00:00
des
364610d759
Remove some unused files.
2008-09-01 16:34:02 +00:00
obrien
78f0698aa0
Remove extraneous NULL pointer check - the pointer is guaranteed to be non-NULL.
2008-09-01 15:10:03 +00:00
obrien
5dc67fc4b3
Minimize changes CURRENT<->releng7.
2008-09-01 15:04:38 +00:00
des
f50b650b57
Set SIZEOF_LONG_INT and SIZEOF_LONG_LONG_INT to plausible values. They
...
aren't used for anything, but that's no excuse for being silly.
2008-09-01 14:15:57 +00:00
kib
ffc7e2eee2
In rev. 1.17 (r33548) of msdosfs_fat.c, relative cluster numbers were
...
replaced by file relative sector numbers as the buffer block number when
zero-padding a file during extension. Revert the change, it causes wrong
blocks filled with zeroes on seeking beyond end of file.
PR: kern/47628
Submitted by: tegge
MFC after: 3 days
2008-09-01 13:18:16 +00:00
ticso
65d9c98ddd
use bigger local variable to calculate free space
...
int overflows at 1T free space
2008-09-01 12:32:40 +00:00
pjd
9f3f074340
When setting error to EINVAL in 'fvp == tdvp' case, jump to out label,
...
because if not, the error will be later overwritten by
mac_vnode_check_rename_to() call.
Reviewed by: rwatson
2008-09-01 10:11:39 +00:00
kmacy
83f4db13b6
Bring cxgbtool up to date with version 1.5
...
Obtained from: Chelsio Inc.
MFC after: 3 days
2008-09-01 07:50:04 +00:00
kientzle
da7b4a0824
Style: Use ARCHIVE_VERSION_NUMBER to conditionalize tests on
...
the particular libarchive version being tested instead of the
deprecated ARCHIVE_API_VERSION and ARCHIVE_VERSION_STAMP macros.
2008-09-01 05:38:33 +00:00
kmacy
4f7f14505a
Don't check if an interface can do tcp offload if there are no offload devices registered on the system.
...
Suggested by: rwatson
MFC after: 3 days
2008-09-01 05:30:22 +00:00
kientzle
3b54160eff
MfP4: set/unset tracking for atime, ctime, mtime, and size fields.
...
This generalizes the existing set/unset tracking for hardlink/symlink
fields and extends it to cover non-string fields. Eventually, this
will be further extended to cover most fields.
In particular, this is needed to correctly detect when time fields
are missing (for example, reading ustar archives doesn't set atime or
ctime) for proper time restore and is helpful when trying to determine
whether to overwrite data when restoring hardlinks.
This commit updates the tests but not the docs.
2008-09-01 04:54:29 +00:00
kientzle
12d7b9e21b
Sort the list of format names.
2008-09-01 02:50:53 +00:00
kientzle
7711ed1cf5
Use the "start_time" (time at which the restore process began)
...
to fill in a missing atime instead of substituting mtime.
PR: bin/124915
2008-09-01 02:50:24 +00:00
marcel
7f570176d9
Trace interrupts with KTR_INTR.
2008-08-31 23:54:22 +00:00
obrien
1da46bec02
Turn cc_tools/Makefile and Makefile.tgt into a "linear" read. Shared
...
parts of the configuration aren't duplicated, and arch-specific exceptions
are made "in-place". Also clean up the FreeBSD/amd64 config a little.
2008-08-31 23:38:28 +00:00
rik
affcc995ea
Add simple cd to dvd conversion script.
2008-08-31 22:08:39 +00:00
marcel
b32a4520ea
Remove redundant KTR statements.
2008-08-31 20:55:31 +00:00
marcel
970ea61218
Trace all PMAP calls using KTR_PMAP.
2008-08-31 20:08:13 +00:00
matteo
3e4620e051
Don't return always 0. Return what we get from exec_mountprog or
...
mount_fs.
PR: bin/125154
MFC after: 1 day
2008-08-31 20:08:05 +00:00
julian
ae821afba0
fix tiny nti in comment
2008-08-31 18:54:35 +00:00
gshapiro
1d76251369
A no-op commit to simulate the effect of a forced commit so the file
...
has a new timestamp as needed for mergemaster. A more long term
solution to this is needed since svn doesn't support forced commits.
2008-08-31 18:21:15 +00:00
imp
937ceba27f
Use a locally assigned address rather than stealing Atmel's which
...
might cause a conflict...
2008-08-31 18:20:01 +00:00
yar
f8df6b10b3
pkill(1) first appeared in /usr/bin, but later it was moved to /bin
...
for the convenience of rc.d. Now it has happily lived there for quite
a while. So move the pkill(1) source files from usr.bin to bin, too.
Approved by: gad
2008-08-31 14:27:59 +00:00
attilio
e2ca413d09
Decontextualize vfs_busy(), vfs_unbusy() and vfs_mount_alloc() functions.
...
Manpages are updated accordingly.
Tested by: Diego Sardina <siarodx at gmail dot com>
2008-08-31 14:26:08 +00:00