]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoDocument r268838, support for Toradex Apalis i.MX6 board.
gjb [Tue, 14 Jul 2015 20:10:02 +0000 (20:10 +0000)]
Document r268838, support for Toradex Apalis i.MX6 board.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r266943, r267390: Support for Exynos 5420 and
gjb [Tue, 14 Jul 2015 20:09:59 +0000 (20:09 +0000)]
Document r266943, r267390: Support for Exynos 5420 and
SMP enabled by default.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r277042, support to poweroff the BeagleBone Black via
gjb [Tue, 14 Jul 2015 20:09:57 +0000 (20:09 +0000)]
Document r277042, support to poweroff the BeagleBone Black via
shutdown(8) and poweroff(8) added.

Sponsored by: The FreeBSD Foundation

8 years agoMake bsdinstall's zfsboot script align partitions to 4k/1m when the user requests it
allanjude [Tue, 14 Jul 2015 19:57:10 +0000 (19:57 +0000)]
Make bsdinstall's zfsboot script align partitions to 4k/1m when the user requests it

PR: 195174
Reviewed by: darius
Approved by: brueffer
MFC after: 3 days
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3062

8 years agomdoc: minor Xr fixes
joel [Tue, 14 Jul 2015 19:45:35 +0000 (19:45 +0000)]
mdoc: minor Xr fixes

8 years agomdoc: add missing .El
joel [Tue, 14 Jul 2015 19:43:10 +0000 (19:43 +0000)]
mdoc: add missing .El

8 years agoSet a mountpoint on the root of the pool so user-created datasets have a mountpoint...
allanjude [Tue, 14 Jul 2015 19:42:40 +0000 (19:42 +0000)]
Set a mountpoint on the root of the pool so user-created datasets have a mountpoint to inherit

Reviewed by: darius
Approved by: brueffer
MFC after: 3 days
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3063

8 years agoHave bsdinstall's zfsboot script make /var/audit its own dataset, so it is not part...
allanjude [Tue, 14 Jul 2015 19:38:26 +0000 (19:38 +0000)]
Have bsdinstall's zfsboot script make /var/audit its own dataset, so it is not part of the OS boot environment

PR: 199864
Submitted by: Jason Unovitch
Approved by: brueffer
MFC after: 3 days
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D2861

8 years agoConvert atoi(3) to stronum(3) which allows to arguments and report proper errors
bapt [Tue, 14 Jul 2015 19:16:14 +0000 (19:16 +0000)]
Convert atoi(3) to stronum(3) which allows to arguments and report proper errors
to the users

Obtained from: OpenBSD

8 years agoAlso accept "ok" to enable a device, some vendor device trees use this when
andrew [Tue, 14 Jul 2015 19:11:16 +0000 (19:11 +0000)]
Also accept "ok" to enable a device, some vendor device trees use this when
they mean "okay"

8 years agoWiden the host field so that a full IPv6 address will be seen.
markm [Tue, 14 Jul 2015 18:53:24 +0000 (18:53 +0000)]
Widen the host field so that a full IPv6 address will be seen.

8 years agoImplement the CloudABI random_get() system call.
ed [Tue, 14 Jul 2015 18:45:15 +0000 (18:45 +0000)]
Implement the CloudABI random_get() system call.

The random_get() system call works similar to getentropy()/getrandom()
on OpenBSD/Linux. It fills a buffer with random data.

This change introduces a new function, read_random_uio(), that is used
to implement read() on the random devices. We can call into this
function from within the CloudABI compatibility layer.

Approved by: secteam
Reviewed by: jmg, markm, wblock
Obtained from: https://github.com/NuxiNL/freebsd
Differential Revision: https://reviews.freebsd.org/D3053

8 years agoFix some error-handling bugs when core dump compression is enabled:
markj [Tue, 14 Jul 2015 18:24:05 +0000 (18:24 +0000)]
Fix some error-handling bugs when core dump compression is enabled:
- Ensure that core dump parameters are initialized in the error path.
- Don't call gzio_fini() on a NULL stream.

Reported by: rpaulo

8 years agoFix another typo. Sigh.
gjb [Tue, 14 Jul 2015 17:01:55 +0000 (17:01 +0000)]
Fix another typo.  Sigh.

Submitted by: brueffer
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

8 years agoDocument r284125, cdce(4) support for RTL8153 chipset.
gjb [Tue, 14 Jul 2015 16:56:59 +0000 (16:56 +0000)]
Document r284125, cdce(4) support for RTL8153 chipset.

Submitted by: Ben Woods
Sponsored by: The FreeBSD Foundation

8 years agoFix typo.
gjb [Tue, 14 Jul 2015 15:38:45 +0000 (15:38 +0000)]
Fix typo.

Submitted by: matteo
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

8 years agoAdd a missing break statement, which made the code default to IPv6.
brueffer [Tue, 14 Jul 2015 15:24:50 +0000 (15:24 +0000)]
Add a missing break statement, which made the code default to IPv6.

PR: 201285
Submitted by: David Binderman
MFC after: 1 week

8 years ago.ie is not supposed to be used in manpages
bapt [Tue, 14 Jul 2015 15:21:00 +0000 (15:21 +0000)]
.ie is not supposed to be used in manpages

Submitted by: carsten.kunze@arcor.de

8 years agoRegenerate system call table for r285540.
ed [Tue, 14 Jul 2015 15:12:24 +0000 (15:12 +0000)]
Regenerate system call table for r285540.

8 years agoImplement thread_tcb_set() and thread_yield().
ed [Tue, 14 Jul 2015 15:11:50 +0000 (15:11 +0000)]
Implement thread_tcb_set() and thread_yield().

The first system call is used to set the user TLS address. Right now
this system call is invoked by the C library for both the initial thread
and additional threads unconditionally, but in the future we'll only
call this if the architecture does not support this. On recent x86-64
CPUs we could use the WRFSBASE instruction.

This system call was erroneously placed in sys/compat/cloudabi64, even
though it does not depend on any pointer size dependent datastructure.
Move it to the right place.

Obtained from: https://github.com/NuxiNL/freebsd

8 years agoImplement {,p}{read,write}{,v}().
ed [Tue, 14 Jul 2015 14:33:21 +0000 (14:33 +0000)]
Implement {,p}{read,write}{,v}().

Add a routine similar to copyinuio() and freebsd32_copyinuio() that
copies in CloudABI's struct iovecs. These are then translated into
FreeBSD format and placed in a 'struct uio', so we can call into the
kern_*() functions.

Obtained from: https://github.com/NuxiNL/freebsd

8 years agoCleanup; mostly language with a little bit of mdoc style.
brueffer [Tue, 14 Jul 2015 14:01:33 +0000 (14:01 +0000)]
Cleanup; mostly language with a little bit of mdoc style.

MFC after: 1 week

8 years agoSet memory to be inner-sharable. This isn't needed on device memory as the
andrew [Tue, 14 Jul 2015 12:37:47 +0000 (12:37 +0000)]
Set memory to be inner-sharable. This isn't needed on device memory as the
MMU will ignore the attribute there, howeverit simplifies to code to alwas
set it.

Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation

8 years agoLet proc_raise() call into pksignal() directly.
ed [Tue, 14 Jul 2015 12:16:14 +0000 (12:16 +0000)]
Let proc_raise() call into pksignal() directly.

Summary:
As discussed with kib@ in response to r285404, don't call into
kern_sigaction() within proc_raise() to reset the signal to the default
action before delivery. We'd better do that during image execution.

Change the code to simply use pksignal(), so we don't waste cycles on
functions like pfind() to look up the currently running process itself.

Test Plan:
This change has also been pushed into the cloudabi branch on GitHub. The
raise() tests still seem to pass.

Reviewers: kib

Reviewed By: kib

Subscribers: imp

Differential Revision: https://reviews.freebsd.org/D3076

8 years agoFix secondary PIC initialization order
zbb [Tue, 14 Jul 2015 12:02:56 +0000 (12:02 +0000)]
Fix secondary PIC initialization order

Call arm_init_secondary before any other PIC-related functions
are called. This is necessary for GICv3 where PIC_INIT_SECONDARY
allocates resources needed for all further operations.

Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3066

8 years agoFix intr_machdep.c for ARM64
zbb [Tue, 14 Jul 2015 11:59:43 +0000 (11:59 +0000)]
Fix intr_machdep.c for ARM64

On ARMv8 IPIs are mapped to 0-15. Incrementing the number by 16
is wrong, because it sets a reserved bit in the IPI register.
This patch removes all "+16" to comply with specs.

Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3029

8 years agoUnbreak ggatec and ggatel on i386 after r238119, which added two more
brueffer [Tue, 14 Jul 2015 10:49:36 +0000 (10:49 +0000)]
Unbreak ggatec and ggatel on i386 after r238119, which added two more
'struct g_gate_ctl_create' fields.

While the behaviour was technically undefined on other architectures
as well, on the reporter's amd64 systems the uninitialized bytes the
kernel cares about were always zero so everything worked as expected.

PR: 197309, 199559
Submitted by: ota@j.email.ne.jp, Fabian Keil
Reviewed by: pjd
MFC after: 1 week

8 years agoSpell crypto correctly.
brueffer [Tue, 14 Jul 2015 10:47:56 +0000 (10:47 +0000)]
Spell crypto correctly.

8 years agoIf ggated's exports_find() fails, the connection is removed before
brueffer [Tue, 14 Jul 2015 09:25:10 +0000 (09:25 +0000)]
If ggated's exports_find() fails, the connection is removed before
(trying to) report the problem to the client.

sendfail() is called with an already closed socket and thus it
fails to inform the client about the problem.

Fix this by calling sendfail() before connection_remove().

PR: 195944
Submitted by: Fabian Keil
Reviewed by: pjd
MFC after: 1 week

8 years agoExpose full 32bit RSS hash from card regardless of whether RSS is defined or
hiren [Tue, 14 Jul 2015 09:13:18 +0000 (09:13 +0000)]
Expose full 32bit RSS hash from card regardless of whether RSS is defined or
not. When doing multiqueue, we are all setup to have full 32bit RSS hash from
the card. We do not need to hide that under "ifdef RSS" and should expose that
by default so others like lagg(4) can use that and avoid hashing the traffic by
themselves.

While here, delete the FreeBSD version check and use of deprecated M_FLOWID.

Reviewed by: adrian, erj
MFC after: 1 week
Sponsored by: Limelight Networks

8 years agocxgbe(4): Update T4 and T5 firmwares to 1.14.2.0.
np [Tue, 14 Jul 2015 08:02:05 +0000 (08:02 +0000)]
cxgbe(4): Update T4 and T5 firmwares to 1.14.2.0.

Obtained from: Chelsio Communications
MFC after: 3 days

8 years agoFix XTS, and name things a bit better...
jmg [Tue, 14 Jul 2015 07:45:18 +0000 (07:45 +0000)]
Fix XTS, and name things a bit better...

Though confusing, GCM using ICM_BLOCK_LEN, but ICM does not is
correct...  GCM is built on ICM, but uses a function other than
swcr_encdec...  swcr_encdec cannot handle partial blocks which is
why it must still use AES_BLOCK_LEN and is why XTS was broken by the
commit...

Thanks to the tests for helping sure I didn't break GCM w/ an earlier
patch...

I did run the tests w/o this patch, and need to figure out why they
did not fail, clearly more tests are needed...

Prodded by: peter

8 years agofix typos..
jmg [Tue, 14 Jul 2015 06:34:57 +0000 (06:34 +0000)]
fix typos..

Submitted by: brueffer

8 years agoPopulate hw.model with the CPU model information.
adrian [Tue, 14 Jul 2015 05:14:10 +0000 (05:14 +0000)]
Populate hw.model with the CPU model information.

Now you see something like:

# sysctl hw.model
hw.model: Atheros AR9330 rev 1

Tested:

* Carambola 2, AR9331 SoC

8 years agocryptodev is not needed for TCP_SIGNATURE...
jmg [Tue, 14 Jul 2015 05:09:58 +0000 (05:09 +0000)]
cryptodev is not needed for TCP_SIGNATURE...

Comment that cryptodev shouldn't be used unless you know what you're
doing...

The various arm/mips and one powerpc configs that have cryptodev in
them need to be addressed, audited if they provide benefit and removed
if they don't...

8 years agoFix cleanup race between unp_dispose and unp_gc
cem [Tue, 14 Jul 2015 02:00:50 +0000 (02:00 +0000)]
Fix cleanup race between unp_dispose and unp_gc

unp_dispose and unp_gc could race to teardown the same mbuf chains, which
can lead to dereferencing freed filedesc pointers.

This patch adds an IGNORE_RIGHTS flag on unpcbs marking the unpcb's RIGHTS
as invalid/freed. The flag is protected by UNP_LIST_LOCK.

To serialize against unp_gc, unp_dispose needs the socket object. Change the
dom_dispose() KPI to take a socket object instead of an mbuf chain directly.

PR: 194264
Differential Revision: https://reviews.freebsd.org/D3044
Reviewed by: mjg (earlier version)
Approved by: markj (mentor)
Obtained from: mjg
MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division

8 years agoDocument r281440, psm(4) enhancements.
gjb [Tue, 14 Jul 2015 01:32:04 +0000 (01:32 +0000)]
Document r281440, psm(4) enhancements.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r275800, reaper facility.
gjb [Tue, 14 Jul 2015 01:32:02 +0000 (01:32 +0000)]
Document r275800, reaper facility.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r271918, fix for panic when destroying vnet jail with
gjb [Tue, 14 Jul 2015 01:31:59 +0000 (01:31 +0000)]
Document r271918, fix for panic when destroying vnet jail with
gre(4).

Sponsored by: The FreeBSD Foundation

8 years agoDocument r271917, fix for panic when destroying vnet jail with
gjb [Tue, 14 Jul 2015 01:31:57 +0000 (01:31 +0000)]
Document r271917, fix for panic when destroying vnet jail with
gif(4).

Sponsored by: The FreeBSD Foundation

8 years agoexec: textvp -> oldtextvp; binvp -> newtextvp
mjg [Tue, 14 Jul 2015 01:13:37 +0000 (01:13 +0000)]
exec: textvp -> oldtextvp; binvp -> newtextvp

This makes it consistent with the rest of the naming in do_execve.

No functional changes.

8 years agoexec plug a redundant vref + vrele of the image vnode
mjg [Tue, 14 Jul 2015 00:43:08 +0000 (00:43 +0000)]
exec plug a redundant vref + vrele of the image vnode

8 years agoracct: perform a lockless check for p_throttled
mjg [Mon, 13 Jul 2015 22:52:11 +0000 (22:52 +0000)]
racct: perform a lockless check for p_throttled

This reduces proc lock contention.

Reviewed by: trasz

8 years agoSwitch initiator IDs in target mode to the same address space as target
mav [Mon, 13 Jul 2015 21:01:24 +0000 (21:01 +0000)]
Switch initiator IDs in target mode to the same address space as target
IDs in initiator mode -- index in port database instead of handlers.

This makes initiator IDs persist across role changes and firmware resets,
when handlers previously assigned by firmware are lost and reused.

Sponsored by: iXsystems, Inc.

8 years agoDocument r272906, pfil(9) default hash change.
gjb [Mon, 13 Jul 2015 20:07:17 +0000 (20:07 +0000)]
Document r272906, pfil(9) default hash change.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r278551, ral(4) support for Ralink RT5390 and RT5392
gjb [Mon, 13 Jul 2015 20:07:14 +0000 (20:07 +0000)]
Document r278551, ral(4) support for Ralink RT5390 and RT5392
chipsets.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r282921, nvd(4) and nvme(4) included in GENERIC.
gjb [Mon, 13 Jul 2015 20:07:11 +0000 (20:07 +0000)]
Document r282921, nvd(4) and nvme(4) included in GENERIC.
Add Intel to sponsors.ent (note, &intel; cannot be used here).

Sponsored by: The FreeBSD Foundation

8 years agoDocument r273375, bhyve support for AMD processors with SVM/AMD-V.
gjb [Mon, 13 Jul 2015 20:07:09 +0000 (20:07 +0000)]
Document r273375, bhyve support for AMD processors with SVM/AMD-V.

Sponsored by: The FreeBSD Foundation

8 years agoSort by svn revision.
gjb [Mon, 13 Jul 2015 18:53:50 +0000 (18:53 +0000)]
Sort by svn revision.

Sponsored by: The FreeBSD Foundation

8 years agoRemove duplicate file(1) version entry.
gjb [Mon, 13 Jul 2015 18:53:48 +0000 (18:53 +0000)]
Remove duplicate file(1) version entry.

Sponsored by: The FreeBSD Foundation

8 years agoSort (yet again) by revision number.
gjb [Mon, 13 Jul 2015 18:53:46 +0000 (18:53 +0000)]
Sort (yet again) by revision number.

Sponsored by: The FreeBSD Foundation

8 years agoReword previous mkimg(1) update.
gjb [Mon, 13 Jul 2015 18:53:43 +0000 (18:53 +0000)]
Reword previous mkimg(1) update.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r279139, mkimg(1) '-c' option.
gjb [Mon, 13 Jul 2015 18:53:41 +0000 (18:53 +0000)]
Document r279139, mkimg(1) '-c' option.

Sponsored by: The FreeBSD Foundation

8 years agos/vs/versus/ to make igor(1) happy.
gjb [Mon, 13 Jul 2015 18:53:38 +0000 (18:53 +0000)]
s/vs/versus/ to make igor(1) happy.
Rewrap as result.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r276893, EFI support added to mkimg(1).
gjb [Mon, 13 Jul 2015 18:53:36 +0000 (18:53 +0000)]
Document r276893, EFI support added to mkimg(1).

Sponsored by: The FreeBSD Foundation

8 years agoDocument r282465, apple-boot, apple-hfs, apple-ufs support in gpart(8).
gjb [Mon, 13 Jul 2015 18:53:34 +0000 (18:53 +0000)]
Document r282465, apple-boot, apple-hfs, apple-ufs support in gpart(8).

Sponsored by: The FreeBSD Foundation

8 years agoBring a few simplifications to a10_gpio:
loos [Mon, 13 Jul 2015 18:19:26 +0000 (18:19 +0000)]
Bring a few simplifications to a10_gpio:

 o Return the real hardware state in gpio_pin_getflags() instead of keep
   the last state in an internal table.  Now the driver returns the real
   state of pins (input/output and pull-up/pull-down) at all times.
 o Use a spin mutex.  This is required by interrupts and the 1-wire code.
 o Use better variable names and place parentheses around them in MACROS.
 o Do not lock the driver when returning static data.

Tested with gpioled(4) and DS1820 (1-wire) sensors on banana pi.

8 years agopipe_direct_write: Fix mismatched pipelock/unlock
cem [Mon, 13 Jul 2015 17:45:22 +0000 (17:45 +0000)]
pipe_direct_write: Fix mismatched pipelock/unlock

If a signal is caught in pipelock, causing it to fail, pipe_direct_write
should not try to pipeunlock.

Reported by: pho
Differential Revision: https://reviews.freebsd.org/D3069
Reviewed by: kib
Approved by: markj (mentor)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoFix a typo in bsdinstall
allanjude [Mon, 13 Jul 2015 17:40:24 +0000 (17:40 +0000)]
Fix a typo in bsdinstall

A variable was misspelled resulting in chmod executing on the installer instead of on the target chroot

PR: 191402
Submitted by: Martin Simmons <martin@lispworks.com>
Approved by: brueffer
MFC after: 3 days
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3061

8 years agoMake role sysctl handling from r284727 less strict.
mav [Mon, 13 Jul 2015 15:51:28 +0000 (15:51 +0000)]
Make role sysctl handling from r284727 less strict.

8 years agoDocument r283307, mkimg(1) now used for i386 memstick images.
gjb [Mon, 13 Jul 2015 15:45:02 +0000 (15:45 +0000)]
Document r283307, mkimg(1) now used for i386 memstick images.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r277216, 510.status-world-kernel addition.
gjb [Mon, 13 Jul 2015 15:44:59 +0000 (15:44 +0000)]
Document r277216, 510.status-world-kernel addition.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r282693, native FreeBSD/arm build support in release tools.
gjb [Mon, 13 Jul 2015 15:44:57 +0000 (15:44 +0000)]
Document r282693, native FreeBSD/arm build support in release tools.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r262955, 3wire ttys class.
gjb [Mon, 13 Jul 2015 15:44:55 +0000 (15:44 +0000)]
Document r262955, 3wire ttys class.

Sponsored by: The FreeBSD Foundation

8 years agoSort by previous commit by revision ID.
gjb [Mon, 13 Jul 2015 15:44:52 +0000 (15:44 +0000)]
Sort by previous commit by revision ID.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r273955, growfs rc(8) script addition.
gjb [Mon, 13 Jul 2015 15:44:50 +0000 (15:44 +0000)]
Document r273955, growfs rc(8) script addition.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r284683, ttyu{1,2,3} enabled by default on arm.
gjb [Mon, 13 Jul 2015 15:44:47 +0000 (15:44 +0000)]
Document r284683, ttyu{1,2,3} enabled by default on arm.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r282613, nc(1) update to OpenBSD 5.7's version.
gjb [Mon, 13 Jul 2015 15:44:45 +0000 (15:44 +0000)]
Document r282613, nc(1) update to OpenBSD 5.7's version.

Sponsored by: The FreeBSD Foundation

8 years agoFix revision for zoneinfo update.
gjb [Mon, 13 Jul 2015 15:44:42 +0000 (15:44 +0000)]
Fix revision for zoneinfo update.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r284398, tzdata update to 2015e.
gjb [Mon, 13 Jul 2015 15:44:40 +0000 (15:44 +0000)]
Document r284398, tzdata update to 2015e.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r282608, date(1) update for compatibility with GNU.
gjb [Mon, 13 Jul 2015 15:44:37 +0000 (15:44 +0000)]
Document r282608, date(1) update for compatibility with GNU.

Sponsored by: The FreeBSD Foundation

8 years agoMarkup fixes.
brueffer [Mon, 13 Jul 2015 15:26:03 +0000 (15:26 +0000)]
Markup fixes.

8 years agoUnify port database use for target and initiator roles.
mav [Mon, 13 Jul 2015 15:11:05 +0000 (15:11 +0000)]
Unify port database use for target and initiator roles.

Aside from cleaner and more consistent code, this allows ports to be both
target and initiator same time, and easily switch from any role to any.

Sponsored by: iXsystems, Inc.

8 years agoFix a typo and duplicate word.
brueffer [Mon, 13 Jul 2015 14:25:15 +0000 (14:25 +0000)]
Fix a typo and duplicate word.

8 years agoDon't claim c99 is a wrapper around gcc; it's a wrapper around the system cc.
brueffer [Mon, 13 Jul 2015 14:13:15 +0000 (14:13 +0000)]
Don't claim c99 is a wrapper around gcc; it's a wrapper around the system cc.

PR: 201303
Submitted by: Bruce Cran
MFC after: 1 week

8 years agoset the refcount for the structure (dropped by mistake in the last commit).
luigi [Mon, 13 Jul 2015 10:23:52 +0000 (10:23 +0000)]
set the refcount for the structure (dropped by mistake in the last commit).

8 years agoAllow again periodic scripts to be run from command-line.
jlh [Mon, 13 Jul 2015 10:15:01 +0000 (10:15 +0000)]
Allow again periodic scripts to be run from command-line.

PR: 188109
Submitted by: Jason Unovitch
MFC after: 1 week

8 years agoReally fix -o
bapt [Mon, 13 Jul 2015 09:12:05 +0000 (09:12 +0000)]
Really fix -o

8 years agoAdd regression tests to ensure we keep allowing creating users with uid0
bapt [Mon, 13 Jul 2015 09:09:09 +0000 (09:09 +0000)]
Add regression tests to ensure we keep allowing creating users with uid0

8 years agoRegression fix: allow to create users with uid0
bapt [Mon, 13 Jul 2015 09:08:27 +0000 (09:08 +0000)]
Regression fix: allow to create users with uid0

Reported by: Jan Mikkelsen <janm@transactionware.com>

8 years agoFix logic of check duplicates that has been inverted
bapt [Mon, 13 Jul 2015 09:07:38 +0000 (09:07 +0000)]
Fix logic of check duplicates that has been inverted

8 years agoRework the read routines to keep the PRNG sources happy. These work
markm [Mon, 13 Jul 2015 08:38:21 +0000 (08:38 +0000)]
Rework the read routines to keep the PRNG sources happy. These work
in units of crypto blocks, so must have adequate space to write.
This means needing to be careful about buffers and keeping track
of external read request length.

Approved by: so (/dev/random blanket)

8 years agoPrevent potential integer overflow
bapt [Mon, 13 Jul 2015 05:59:41 +0000 (05:59 +0000)]
Prevent potential integer overflow

PR: 192971
Submitted by: David Carlier <david.carlier@hardenedbsd.org>

8 years agoPrevent potential integer overflow
bapt [Mon, 13 Jul 2015 05:56:27 +0000 (05:56 +0000)]
Prevent potential integer overflow

PR: 192971
Submitted by: David Carlier <david.carlier@hardenedbsd.org>

8 years agoFixes the RF switch state polling by comparing with the revision of the
adrian [Mon, 13 Jul 2015 05:13:39 +0000 (05:13 +0000)]
Fixes the RF switch state polling by comparing with the revision of the
PHY instead of the revision of the RADIO.

This fixes the RF switch state polling.

This is from DragonflyBSD, Commit 202e28d1f65e9f35df6032400df3242a3bafb483

Obtained from: DragonflyBSD

8 years agoBump version after 4.2.8p3 import.
delphij [Sun, 12 Jul 2015 23:32:23 +0000 (23:32 +0000)]
Bump version after 4.2.8p3 import.

Note: currently 'mkver' script is using hardcoded knowledge and always
emits -a in the version string, a more through solution would be to generate
the script with something that we own.

8 years agoEnsure skeldir is abolute path (relatively to the rootdir)
bapt [Sun, 12 Jul 2015 22:08:58 +0000 (22:08 +0000)]
Ensure skeldir is abolute path (relatively to the rootdir)

8 years agopw -R <rootdir> userdel can now cleanup installation
bapt [Sun, 12 Jul 2015 21:43:57 +0000 (21:43 +0000)]
pw -R <rootdir> userdel can now cleanup installation

Rewrite rm_r to use *at function, allowing to remove home directories along with
users. only crontabs and at(1) installation are not removed

Relnotes: yes

8 years agoRework the home directory creation and copy or the skel content to use *at
bapt [Sun, 12 Jul 2015 20:29:51 +0000 (20:29 +0000)]
Rework the home directory creation and copy or the skel content to use *at
functions

This allows to simplify the code a bit for -R by not having to keep modifying
path and also prepare the code to improve support -R in userdel

While here, add regression tests for the functionality

8 years agoAdd PRINTF_BUFR_SIZE=128 to avoid interleaved output.
ian [Sun, 12 Jul 2015 19:58:12 +0000 (19:58 +0000)]
Add PRINTF_BUFR_SIZE=128 to avoid interleaved output.

8 years agoCorrect the description of MADV_DONTNEED. Specifically, after using
alc [Sun, 12 Jul 2015 19:18:19 +0000 (19:18 +0000)]
Correct the description of MADV_DONTNEED.  Specifically, after using
MADV_DONTNEED, while pages faults on the affected address range are more
likely to occur, they are not guaranteed to occur.

MFC after: 3 days

8 years agoDo not mount /var/log and /var/tmp as md(4)-backed devices.
gjb [Sun, 12 Jul 2015 19:17:05 +0000 (19:17 +0000)]
Do not mount /var/log and /var/tmp as md(4)-backed devices.

Discussed with: ian
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

8 years agoRemove excess copyright lines propogated by copy/paste
allanjude [Sun, 12 Jul 2015 19:16:19 +0000 (19:16 +0000)]
Remove excess copyright lines propogated by copy/paste

Approved by: trasz

8 years agoSince r284198, ls(1) just always depends libxo(3), not only in case of
marius [Sun, 12 Jul 2015 18:40:31 +0000 (18:40 +0000)]
Since r284198, ls(1) just always depends libxo(3), not only in case of
MK_LS_COLORS or !RELEASE_CRUNCH.

8 years agoUse the monotonic (uptime) counter rather than time-of-day to measure elapsed
ian [Sun, 12 Jul 2015 18:38:17 +0000 (18:38 +0000)]
Use the monotonic (uptime) counter rather than time-of-day to measure elapsed
time between ntp_adjtime() clock offset adjustments.  This eliminates spurious
frequency steering after a large clock step (such as a 1970->2015 step on a
system with no battery-backed clock hardware).

This problem was discovered after the import of ntpd 4.2.8, which does things
in a slightly different (but still correct) order than the 4.2.4 we had
previously.  In particular, 4.2.4 would step the clock then immediately after
use ntp_adjtime() to set the frequency and offset to zero, which captured the
post-step time-of-day as a side effect.  In 4.2.8, ntpd sets frequency and
offset to zero before any initial clock step, capturing the time as 1970-ish,
then when it next calls ntp_adjtime() it's with a non-zero offset measurement.
This non-zero value gets multiplied by the apparent 45-year interval, which
blows up into a completely bogus frequency steer.  That gets clamped to
500ppm, but that's still enough to make the clock drift so fast that ntpd has
to keep stepping it every few minutes to compensate.

8 years agoAdd ARM64TODO comments to ACPI PCI stubs
zbb [Sun, 12 Jul 2015 18:32:16 +0000 (18:32 +0000)]
Add ARM64TODO comments to ACPI PCI stubs

This will make searching for missing functionalities easier.

8 years ago* Address review (and add a bit myself).
markm [Sun, 12 Jul 2015 18:14:38 +0000 (18:14 +0000)]
* Address review (and add a bit myself).
 - Tweek man page.
 - Remove all mention of RANDOM_FORTUNA. If the system owner wants YARROW or DUMMY, they ask for it, otherwise they get FORTUNA.
 - Tidy up headers a bit.
 - Tidy up declarations a bit.
 - Make static in a couple of places where needed.
 - Move Yarrow/Fortuna SYSINIT/SYSUNINIT to randomdev.c, moving us towards a single file where the algorithm context is used.
 - Get rid of random_*_process_buffer() functions. They were only used in one place each, and are better subsumed into those places.
 - Remove *_post_read() functions as they are stubs everywhere.
 - Assert against buffer size illegalities.
 - Clean up some silly code in the randomdev_read() routine.
 - Make the harvesting more consistent.
 - Make some requested argument name changes.
 - Tidy up and clarify a few comments.
 - Make some requested comment changes.
 - Make some requested macro changes.

* NOTE: the thing calling itself a 'unit test' is not yet a proper
  unit test, but it helps me ensure things work. It may be a proper
  unit test at some time in the future, but for now please don't make
  any assumptions or hold any expectations.

Differential Revision: https://reviews.freebsd.org/D2025
Approved by: so (/dev/random blanket)

8 years agoImplement stubs for ACPI PCI routines
zbb [Sun, 12 Jul 2015 17:28:31 +0000 (17:28 +0000)]
Implement stubs for ACPI PCI routines

ACPI driver requires special functions to be provided by machdep code.
Add temporary stubs to satisfy the compiler when both "pci" and "acpi"
are enabled in the kernel configuration file.

Reviewed by:   andrew
Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3028

8 years agoRun a shell in the jail when no command is specified.
jamie [Sun, 12 Jul 2015 17:03:50 +0000 (17:03 +0000)]
Run a shell in the jail when no command is specified.
Add a new flag, -l, for a clean environment, same as jail(8) exec.clean.
Change the GET_USER_INFO macro into a function.

PR: 201300
Submitted by: Willem Jan Withagen
MFC after: 3 days

8 years agoAdd minimum regression tests for pw -R
bapt [Sun, 12 Jul 2015 09:42:10 +0000 (09:42 +0000)]
Add minimum regression tests for pw -R