Displaying 1 50 of 283,496 commits (0.023s)

FreeBSD — head/sys/net bpf_buffer.c

Remove the sleep from the buffer allocation routine.

The buffer must be allocated (or even changed) before the interface is set
and thus, there is no need to verify if the buffer is in use.

MFC after:        2 weeks
Sponsored by:        Rubicon Communications (Netgate)
Delta File
+0 -5 head/sys/net/bpf_buffer.c
+0 -5 1 file

FreeBSD — head/sys/net bpf.c

Do not allocate the buffers at opening of the descriptor, because once
the buffer is allocated we are committed to a particular buffer method
(BPF_BUFMODE_BUFFER in this case).

If we are using zero-copy buffers, the userland program must register its
buffers before set the interface.

If we are using kernel memory buffers, we can allocate the buffer at the
time that the interface is being set.

This fix allows the usage of BIOCSETBUFMODE after r235746.

Update the comments to reflect the recent changes.

MFC after:        2 weeks
Sponsored by:        Rubicon Communications (Netgate)
Delta File
+30 -13 head/sys/net/bpf.c
+30 -13 1 file

FreeBSD — head/sbin/setkey setkey.8

Summary: Remove unsupported 3des-deriv encryption algorithm from documentation.
Delta File
+0 -1 head/sbin/setkey/setkey.8
+0 -1 1 file

FreeBSD — releng/10.2/sys/conf newvers.sh

Forced commit to mark the real 10.2-RC2 point.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -0 releng/10.2/sys/conf/newvers.sh
+0 -0 1 file

FreeBSD — head/usr.bin/brandelf brandelf.1

Use standard 'THE AUTHOR' license text

Approved by:        jmg
Delta File
+1 -1 head/usr.bin/brandelf/brandelf.1
+1 -1 1 file

FreeBSD — releng/10.2/sys/amd64/conf GENERIC, releng/10.2/sys/i386/conf GENERIC

MFS r286132:
MFC r286131:
 Pull pmspcv (pms(4)) from GENERIC.  It has PCI ID conflicts
 with ahd(4), mvs(4), and likely other drivers.

Approved by:        re (implicit, release blocker)
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/arm64/arm64 machdep.c

Try to put the CPU into a low power state if we failed to otherwise halt
the system.

Obtained from:        ABT Systems Ltd
Sponsored by:        The FreeBSD Foundation
Delta File
+5 -1 head/sys/arm64/arm64/machdep.c
+5 -1 1 file

FreeBSD — head/sys/arm64/arm64 stack_machdep.c, head/sys/conf files.arm64

Load the stack in stack_save and stack_save_td. This uses the generalised
unwind_frame function to read each stack frame until either the pc or stack
are no longer withing the kernel's address space.

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

FreeBSD — stable/10/sys/amd64/conf GENERIC, stable/10/sys/i386/conf GENERIC

MFC r286131:
 Pull pmspcv (pms(4)) from GENERIC.  It has PCI ID conflicts
 with ahd(4), mvs(4), and likely other drivers.

With hat:        re
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/amd64/conf GENERIC, head/sys/i386/conf GENERIC

Pull pmspcv (pms(4)) from GENERIC.  It has PCI ID conflicts
with ahd(4), mvs(4), and likely other drivers.

MFC after:        immediately
With hat:        re
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/arm64/arm64 uma_machdep.c vm_machdep.c, head/sys/arm64/include vmparam.h

Add support for uma_small_alloc and uma_small_free, and make use of these.
This is copied from the amd64 version with minor changes. These should be
merged into a single file as from a quick look there are other copies of
the same file in other parts of the tree.

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

FreeBSD — head/sys/arm64/arm64 mem.c

Add memrw. This has had minimal testing, and will likely panic the kernel
when trying to read data from outside the DMAP region. I expect this panic
to be from within uiomove_fromphys, which needs to grow support to support
such addresses.

Obtained from:        ABT Systems Ltd
Sponsored by:        The FreeBSD Foundation
Delta File
+70 -1 head/sys/arm64/arm64/mem.c
+70 -1 1 file

FreeBSD — head/sys/arm64/include atomic.h

Add more atomic_swap_* functions.

Obtained from:        ABT Systems Ltd
Sponsored by:        The FreeBSD Foundation
Delta File
+19 -0 head/sys/arm64/include/atomic.h
+19 -0 1 file

FreeBSD — head/sys/arm64/include vmparam.h

Add VIRT_IN_DMAP to check if a virtual address is from the DMAP range.

Obtained from:        ABT Systems Ltd
Sponsored by:        The FreeBSD Foundation
Delta File
+4 -1 head/sys/arm64/include/vmparam.h
+4 -1 1 file

FreeBSD — head/contrib/elftoolchain brandelf

Add ELF Tool Chain's brandelf(1) to contrib

Noticed by pfg after r286070 (ar and elfdump)
Delta File
+0 -0 head/contrib/elftoolchain/brandelf/
+0 -0 1 file

FreeBSD — stable/10/sys/netpfil/pf pf.c

MFC r285945, r285960:

Respect pf rule log option before log dropped packets with IP options or
dangerous v6 headers

Reviewed by:        gnn, eri
Approved by:        gnn, glebius
Obtained from:        pfSense
Sponsored by:        Netgate
Differential Revision:        https://reviews.freebsd.org/D3222
Delta File
+2 -2 stable/10/sys/netpfil/pf/pf.c
+2 -2 1 file

FreeBSD — stable/9/contrib/bind9 CHANGES README, stable/9/contrib/bind9/doc/arm notes.xml Bv9ARM.ch09.html

Update BIND to 9.9.7-P2

This is a direct commit to stable/9 as BIND is no longer in head.

Sponsored by:        DK Hostmaster A/S

FreeBSD — head/sys/kern kern_fork.c

Fix accidental line wrapping introduced in r286122.
Delta File
+1 -2 head/sys/kern/kern_fork.c
+1 -2 1 file

FreeBSD — head/sys/compat/cloudabi cloudabi_proc.c, head/sys/compat/linux linux_fork.c

Limit rights on process descriptors.

On CloudABI, the rights bits returned by cap_rights_get() match up with
the operations that you can actually perform on the file descriptor.

Limiting the rights is good, because it makes it easier to get uniform
behaviour across different operating systems. If process descriptors on
FreeBSD would suddenly gain support for any new file operation, this
wouldn't become exposed to CloudABI processes without first extending
the rights.

Extend fork1() to gain a 'struct filecaps' argument that allows you to
construct process descriptors with custom rights. Use this in
cloudabi_sys_proc_fork() to limit the rights to just fstat() and
pdwait().

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

FreeBSD — head/sys/arm64/arm64 gic_v3.c, head/sys/arm64/conf GENERIC

Apply erratum for mrs ICC_IAR1_EL1 speculative execution on ThunderX

ERRATUM:     22978, 23154
PASS (rev.): 1.0/1.1

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

FreeBSD — stable/10 UPDATING, stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_ioctl.c

MFC: r285946 and r285947

Add warning about low KSTACK_PAGES for ZFS use.

Sponsored by:        Multiplay

FreeBSD — head/sys/dev/usb/controller dwc_otg.c

Limit the number of times we loop inside the DWC OTG poll handler to
avoid starving other fast interrupts. Fix a comment while at it.

MFC after:        1 week
Suggested by:        Svatopluk Kraus <onwahe at gmail.com>

FreeBSD — user/pho/stress2/misc parallelmount.sh

Reduce runtime and clean up script while here.

Sponsored by:        EMC / Isilon storage division

FreeBSD — user/pho/stress2/misc tmpfs4.sh

Update expected error message filter.

Sponsored by:        EMC / Isilon storage division
Delta File
+1 -1 user/pho/stress2/misc/tmpfs4.sh
+1 -1 1 file

FreeBSD — user/pho/stress2/misc snap7.sh

Reduce runtime and handle umount(1) failure.

Sponsored by:        EMC / Isilon storage division
Delta File
+4 -1 user/pho/stress2/misc/snap7.sh
+4 -1 1 file

FreeBSD — head/sys/net if_stf.c

Ansify if_stf.c
Delta File
+7 -24 head/sys/net/if_stf.c
+7 -24 1 file

FreeBSD — user/pho/stress2/misc mmap3.sh mmap20.sh

White space and comment updates.

Sponsored by:        EMC / Isilon storage division

FreeBSD — head/sys/netinet ip_ecn.h

Remove unneded #include "opt_inet.h".
Delta File
+0 -4 head/sys/netinet/ip_ecn.h
+0 -4 1 file

FreeBSD — head/sys/boot/forth loader.conf

Document the existence of cloudabi_load and cloudabi64_load.
Delta File
+2 -0 head/sys/boot/forth/loader.conf
+2 -0 1 file

FreeBSD — head/sys/net pfkeyv2.h

temporarily fix build..  This isn't the final fix, and testing is
still on going, but it has passed world for mips and powerpc...

I know this has an extra semicolon, but this is the patch that is
tested...

Looks like better fix is to use _Static_assert...
Delta File
+4 -0 head/sys/net/pfkeyv2.h
+4 -0 1 file

FreeBSD — vendor/bind9 9.9.7-P2

Tag the 9.9.7-P2 release

Sponsored by:        DK Hostmaster A/S
Delta File
+0 -0 vendor/bind9/9.9.7-P2/
+0 -0 1 file

FreeBSD — vendor/bind9/dist CHANGES README, vendor/bind9/dist/doc/arm notes.xml Bv9ARM.ch09.html

Vendor import of BIND 9.9.7-P2

Sponsored by:        DK Hostmaster A/S

FreeBSD — head/sys/dev/cxgbe t4_main.c

cxgbe(4): initialize debug_flags from the kernel environment.

MFC after:        3 days
Delta File
+1 -3 head/sys/dev/cxgbe/t4_main.c
+1 -3 1 file

FreeBSD — head/sys/kern vfs_vnops.c

vn_io_fault() handling of the LOR for i/o into the file-backed buffers
has observable overhead when the buffer pages are not resident or not
mapped.  The overhead comes at least from two factors, one is the
additional work needed to detect the situation, prepare and execute
the rollbacks.  Another is the consequence of the i/o splitting into
the batches of the held pages, causing filesystems see series of the
smaller i/o requests instead of the single large request.

Note that expected case of the resident i/o buffer does not expose
these issues.  Provide a prefaulting for the userspace i/o buffers,
disabled by default.  I am careful of not enabling prefaulting by
default for now, since it would be detrimental for the applications
which speculatively pass extra-large buffers of anonymous memory to
not deal with buffer sizing (if such apps exist).

Found and tested by:        bde, emaste
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+62 -0 head/sys/kern/vfs_vnops.c
+62 -0 1 file

FreeBSD — stable/10/sys/netinet ip.h

MFC r285669:

Since the IETF has redefined the meaning of the tos field to accommodate
a set of differentiated services, set IPTOS_PREC_* macros using
IPTOS_DSCP_* macro definitions.

While here, add IPTOS_DSCP_VA macro according to RFC 5865.

Differential Revision:        https://reviews.freebsd.org/D3119
Reviewed by:        gnn
Delta File
+11 -10 stable/10/sys/netinet/ip.h
+11 -10 1 file

FreeBSD — stable/10/sys/dev/e1000 e1000_regs.h

MFC r285623:

Fix typo in register definition.

Submitted by:        James Hung
Reviewed by:        sbruno

FreeBSD — head/share/man/man9 CTASSERT.9

The implementation note isn't true anymore..

Not that anyone reads it, but those that do, remind them that this
isn't usable in userland...  I can't wait till this doc is wrong..
Delta File
+3 -7 head/share/man/man9/CTASSERT.9
+3 -7 1 file

FreeBSD — head/usr.bin/wall ttymsg.c

Buffer overflow in wall(1).

This affected syslogd, wall and talkd.
Detected by FORTIFY_SOURCE GSoC (with clang).

Submitted by:        Oliver Pinter
Differential Revision:        https://reviews.freebsd.org/D3254
Reviewed by:        delphij, jmg
MFC after:        3 days
Delta File
+2 -2 head/usr.bin/wall/ttymsg.c
+2 -2 1 file

FreeBSD — head/sys/netipsec xform_ah.c xform_esp.c

these are comparing authenticators and need to be constant time...
This could be a side channel attack...  Now that we have a function
for this, use it...

jmgurney/ipsecgcm:        24d704cc and 7f37a14

FreeBSD — head/sys/net pfkeyv2.h, head/sys/netipsec xform_esp.c

Clean up this header file...

use CTASSERTs now that we have them...

Replace a draft w/ RFC that's over 10 years old.

Note that _AALG and _EALG do not need to match what the IKE daemons
think they should be..  This is part of the KABI...  I decided to
renumber AESCTR, but since we've never had working AESCTR mode, I'm
not really breaking anything..  and it shortens a loop by quite
a bit..

remove SKIPJACK IPsec support...  SKIPJACK never made it out of draft
(in 1999), only has 80bit key, NIST recommended it stop being used
after 2010, and setkey nor any of the IKE daemons I checked supported
it...

jmgurney/ipsecgcm: a357a33, c75808b, e008669, b27b6d6

Reviewed by:        gnn (earlier version)

FreeBSD — stable/10/usr.bin/netstat main.c

MFC r285782:
Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *).

PR:        201700
Delta File
+18 -6 stable/10/usr.bin/netstat/main.c
+18 -6 1 file

FreeBSD — releng/10.2/sys/conf newvers.sh

Update releng/10.2 to RC2 in preparation for the next set of builds.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 releng/10.2/sys/conf/newvers.sh
+1 -1 1 file

FreeBSD — releng/10.2/release/doc/en_US.ISO8859-1/relnotes article.xml

Document r286084, tar(1) sparse file fix.

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

FreeBSD — releng/10.2/release/doc/en_US.ISO8859-1/relnotes article.xml

Document r285830, specifically that the default pkg(8) repository
was switched from 'latest' to 'quarterly' for 10.2-RELEASE.

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

FreeBSD — head/sys/netipsec ipsec_output.c

Correct IPSec SA statistic keeping

The IPsec SA statistic keeping is used even for decision making on expiry/rekeying SAs.
When there are multiple transformations being done the statistic keeping might be wrong.

This mostly impacts multiple encapsulations on IPsec since the usual scenario it is not 
noticed due to the code path not taken.

Differential Revision:        https://reviews.freebsd.org/D3239
Reviewed by:                ae, gnn
Approved by:                gnn(mentor)
Delta File
+2 -1 head/sys/netipsec/ipsec_output.c
+2 -1 1 file

FreeBSD — head/sys/kern kern_sysctl.c kern_linker.c, head/sys/sys sysctl.h

Revert r285125 until rmlocks get fixed.

Right now there is a chance that sysctl unregister will cause reader to
block on the sx lock associated with sysctl rmlock, in which case kernels
with debug enabled will panic.

FreeBSD — head/usr.bin/ipcrm ipcrm.c

Use correct number of arguments to semctl() for IPC_RMID.

PR:                        118292
Submitted by:                araujo
Differential Revision:        D2669
Delta File
+1 -1 head/usr.bin/ipcrm/ipcrm.c
+1 -1 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/zfs zfs.8

Fix a rendering issue in the zfs(8) manual.

MFC after:        3 days
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/netinet tcp_var.h

Update snd_una description to make it more readable.

Differential Revision:        https://reviews.freebsd.org/D3179
Reviewed by:                gnn
Sponsored by:                Limelight Networks
Delta File
+1 -1 head/sys/netinet/tcp_var.h
+1 -1 1 file