Displaying 1 50 of 310,714 commits (0.023s)

FreeBSD — stable/11/lib/libedit vi.c common.c, stable/11/lib/libedit/TEST tc1.c wtc1.c

MFC r312997, r313002:
Re-import libedit 2016-02-27 and update libedit with changes from NetBSD's

Obtained from:        NetBSD

FreeBSD — stable/11/contrib/openresolv resolvconf.in configure, stable/11/sbin/resolvconf Makefile

MFC r312992:
MFV r312970, 313160:
openresolv: update to version 3.9.0.

It is now possible to drop the _WITH_ARG vars thanks to a change to the
pdns_recursor upstreamed by Guy Yur.

FreeBSD — head/sbin/ifconfig ifbridge.c

[ifconfig] fix a memory leak!

Submitted by:        Tom Rix <trix at juniper.net>
Differential Revision:        https://reviews.freebsd.org/D9675
Delta File
+1 -1 head/sbin/ifconfig/ifbridge.c
+1 -1 1 file

FreeBSD — head/sbin/ifconfig ifieee80211.c

[ifconfig] fix a memory leak.

Submitted by:        Tom Rix <trix at juniper.net>
Differential Revision:        https://reviews.freebsd.org/D9654
Delta File
+1 -0 head/sbin/ifconfig/ifieee80211.c
+1 -0 1 file

FreeBSD — head/sbin/ifconfig ifieee80211.c, head/sys/dev/iwn if_iwn.c

[net80211] RX parameter shuffle in net80211 in preparation for 4x4 NICs and 160MHz 

* Migrate the rx_params stuff out from ieee80211_freebsd.h where it doesn't belong -
  this isn't freebsd specific anymore.

* Don't use a hard-coded number of chains in the ioctl header; now we can shuffle
  MAX_CHAINS around so it can be used in the right spot.

* Extend the signal/noisefloor levels in the mimo stats struct to userland to include
  the signal and noisefloor levels for each 20MHz slice of a 160MHz channel.

* Bump the number of EVM pilots in preparation for 4x4 and 160MHz channels.


* ath(4), STA mode
* iwn(4), STA mode
* local ath10k port, STA mode


* 11ax chips will come with 5GHz 8x8 hardware for lots of MU-MIMO - I'll re-bump it
  at that point.

    [4 lines not shown]

FreeBSD — head ObsoleteFiles.inc, head/etc/mtree BSD.tests.dist

Remove lib/libpam tests after they were removed from the source tree in r313975

X-MFC with:        r313975
Sponsored by:        Dell EMC Isilon

FreeBSD — head/contrib/openpam aclocal.m4 ltmain.sh, head/contrib/openpam/bin Makefile.in Makefile.am

Upgrade to OpenPAM Radula.

FreeBSD — head/lib/libfetch common.c fetch.c

Add a file descriptor in struct url for netrc

When using libfetch in an application that drops privileges when fetching
like pkg(8) then user complain because the application does not read anymore
${HOME}/.netrc. Now a caller can prepare a fd to the said file and manually
assign it to the structure.

It is also a first step to allow to capsicumize libfetch applications

Reviewed by:        allanjude, des
Approved by:        des
Differential Revision:        https://reviews.freebsd.org/D9678

FreeBSD — head/tests/sys/geom/eli/pbkdf2 Makefile

A forced commit to note other portion of the Makefile change accidentally
committed in r313972

The code committed in r313962 implicitly relies on python 2.x to generate
testvect.h . There are a handful of issues with this approach:

- python is not an explicit build dependency for FreeBSD
- python 2.x is deprecated and will be removed sometime in the future
  (potentially before 11.x's EOL), and the script does not function with
  python 3.5 (it uses deprecated idioms and incompatible function calls).
- python(1) (by default) lives in /usr/local/bin (${LOCALBASE}/bin) and
  gentestvect.py is a dependency of testvect.h (prior to r313972) which
  means that if the mtime of the generator script was newer than the
  mtime of the test vector, it could cause a spurious build failure in
  build time or at install time.

A better solution using C/C++ should be devised.

Discussed with:        allanjude
MFC after:        2 weeks
X-MFC with:        r313962, r313972
Sponsored by:        Dell EMC Isilon

FreeBSD — head/tests/sys/geom/eli/pbkdf2 Makefile

Unbreak the build when "make obj" is executed beforehand

Using relative paths imply working directory (in this case .OBJDIR), whereas the
sources live in the .CURDIR-relative path.

MFC after:        2 weeks
X-MFC with:        r313962
Pointyhat to:        allanjude
Sponsored by:        Dell EMC Isilon

FreeBSD — stable/10/include stdlib.h

MFC r313819:
Remove outdated claim.

Despite wishful thinking the removal of these old functions hasn't
happened yet.
Delta File
+1 -1 stable/10/include/stdlib.h
+1 -1 1 file

FreeBSD — stable/11/include stdlib.h

MFC r313819:
Remove outdated claim.

Despite wishful thinking the removal of these old functions hasn't
happened yet.
Delta File
+1 -1 stable/11/include/stdlib.h
+1 -1 1 file

FreeBSD — vendor/openpam RADULA

Tag OpenPAM Radula.
Delta File
+0 -0 vendor/openpam/RADULA/
+0 -0 1 file

FreeBSD — vendor/openpam/dist aclocal.m4 ltmain.sh, vendor/openpam/dist/bin Makefile.in Makefile.am

Vendor import of OpenPAM Radula.

FreeBSD — head/sys/fs/devfs devfs_vnops.c, head/sys/kern vfs_vnops.c

Apply noexec mount option for mmap(PROT_EXEC).

Right now the noexec mount option disallows image activators to try
execve the files on the mount point.  Also, after r127187, noexec
also limits max_prot map entries permissions for mappings of files
from such mounts, but not the actual mapping permissions.

As result, the API behaviour is inconsistent.  The files from noexec
mount can be mapped with PROT_EXEC, but if mprotect(2) drops execution
permission, it cannot be re-enabled later.  Make this consistent
logically and aligned with behaviour of other systems, by disallowing
PROT_EXEC for mmap(2).

Note that this change only ensures aligned results from mmap(2) and
mprotect(2), it does not prevent actual code execution from files
coming from noexec mount.  Such files can always be read into
anonymous executable memory and executed from there.

Reported by:        shamaz.mazum at gmail.com
PR:        217062
Reviewed by:        alc
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week

FreeBSD — head/sys/arm/arm pmap-v6.c

MFamd64 r313933: microoptimize pmap_protect_pte1().

Noted by:        alc
Tested by:        mmel
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+2 -3 head/sys/arm/arm/pmap-v6.c
+2 -3 1 file

FreeBSD — head/crypto/openssh auth.c

Only notify blacklistd for successful logins in auth.c

Reported by:        Rick Adams
Reviewed by:        des
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -2 head/crypto/openssh/auth.c
+2 -2 1 file

FreeBSD — head/sys/conf files.powerpc, head/sys/powerpc/mikrotik rb_led.c

Add a driver for the RouterBoard RB800 User LED

This may work on other RouterBoard PPC platforms, but I don't have any to test

FreeBSD — head/share/man/man4 ctl.4

Document r313854 (kern.cam.ctl.iscsi.maxtags).

MFC after:        12 days
Delta File
+4 -5 head/share/man/man4/ctl.4
+4 -5 1 file

FreeBSD — head/etc/mtree BSD.tests.dist, head/sys/boot/geli Makefile

improve PBKDF2 performance

The PBKDF2 in sys/geom/eli/pkcs5v2.c is around half the speed it could be

GELI's PBKDF2 uses a simple benchmark to determine a number of iterations
that will takes approximately 2 seconds. The security provided is actually
half what is expected, because an attacker could use the optimized
algorithm to brute force the key in half the expected time.

With this change, all newly generated GELI keys will be approximately 2x
as strong. Previously generated keys will talk half as long to calculate,
resulting in faster mounting of encrypted volumes. Users may choose to
rekey, to generate a new key with the larger default number of iterations
using the geli(8) setkey command.

Security of existing data is not compromised, as ~1 second per brute force
attempt is still a very high threshold.

PR:                202365
Original Research:        https://jbp.io/2015/08/11/pbkdf2-performance-matters/
Submitted by:        Joe Pixton <jpixton at gmail.com> (Original Version), jmg (Later 
Reviewed by:        ed, pjd, delphij
Approved by:        secteam, pjd (maintainer)
MFC after:        2 weeks
Differential Revision:        https://reviews.freebsd.org/D8236

FreeBSD — head/share/misc pci_vendors

Update pci_vendors to 2017.02.15

MFC after:        3 days
Delta File
+108 -36 head/share/misc/pci_vendors
+108 -36 1 file

FreeBSD — head/sys/amd64/amd64 pmap.c

In pmap_enter(), set the PG_MANAGED flag on the new PTE in one place,
rather two places, and do so before the pmap lock is acquired.

Submitted by:        Yufeng Zhou <yz70 at rice.edu>
Reviewed by:        kib
MFC after:        1 week
Delta File
+6 -8 head/sys/amd64/amd64/pmap.c
+6 -8 1 file

FreeBSD — head/share/man/man4 cfumass.4 Makefile, head/sys/conf files

Add USB Mass Storage CTL frontend.  This makes it possible
for USB OTG-capable hardware to implement device side of USB
Mass Storage, ie pretend it's a flash drive.  It's configured
in the same way as other CTL frontends, using ctladm(8)
or ctld(8).  Differently from usfs(4), all the configuration
can be done without rebuilding the kernel.

Testing and review is welcome.  Right now I'm still moving,
and I don't have access to my test environment, so I'm somewhat
reluctant to making larger changes to this code; on the other
hand I don't want to let it sit on Phab until my testing setup
is back, because I want to get it into 11.1-RELEASE.

Reviewed by:        emaste (cursory), wblock (man page)
MFC after:        2 weeks
Relnotes:        yes
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D8787

FreeBSD — head/contrib/mdocml man.options.1 mandocd.c

Import mandoc 1.4.1rc2

FreeBSD — vendor/mdocml 1.4.1rc2, vendor/mdocml/1.4.1rc2 roff.c mdoc.7

Tag import of mandoc 1.4.1rc2

FreeBSD — vendor/mdocml/dist man.options.1 mandocd.c

Import mandoc 1.4.1rc2

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

bsdgrep: document ignored option -u

MSDOS and Windows GNU grep uses -u to mean "print byte offsets as if
running on an UNIX system." The option has no effect on systems that
do not use CRLF line endings.

PR:                171200
Submitted by:        deeptech71 at gmail.com, Anders Jensen-Waud
MFC after:        1 month
Delta File
+2 -0 head/usr.bin/grep/grep.1
+2 -0 1 file

FreeBSD — head/sys/dev/nvme nvme_sim.c

Remove obsolete comment after prior rev.
Delta File
+0 -4 head/sys/dev/nvme/nvme_sim.c
+0 -4 1 file

FreeBSD — head/contrib/libucl README.md ChangeLog.md, head/contrib/libucl/include ucl.h

Import libucl 20170219

MFC after:        3 days

FreeBSD — stable/11/usr.bin/timeout timeout.1

MFC r313867, r313869-r313870

Add history and Authors section in the manpage

Submitted by:        dteske
MFC after:        2 days
Differential Revision:        https://reviews.freebsd.org/D9419

Also add vsevolod@ in the authors

Use full name for the month

Reported by:        brueffer
Delta File
+10 -1 stable/11/usr.bin/timeout/timeout.1
+10 -1 1 file

FreeBSD — vendor/libucl 20170219, vendor/libucl/20170219 README.md configure.ac

Tag import of libucl 20170219

FreeBSD — vendor/libucl/dist README.md ChangeLog.md, vendor/libucl/dist/include ucl.h

Import libucl snapshot 20170219

FreeBSD — head/sys/cam/scsi scsi_low.c, head/sys/dev/advansys advansys.c

Remove dead mentions of CAM target mode APIs from drivers.

This makes grepping kernel for target mode implementation much easier.

FreeBSD — head/usr.bin/grep file.c

bsdgrep: fix EOF handling with --mmap

Rework part of the loop in grep_fgetln to return the rest of the line
and ensure that we still advance the buffer by the length of the rest
of the line.

PR:                165471
Submitted by:        Kyle Evans <kevans91 at ksu.edu>
MFC after:        1 month
Delta File
+11 -5 head/usr.bin/grep/file.c
+11 -5 1 file

FreeBSD — head/sys/compat/linux linux_mmap.c

There are some Linux binaries that expect the system to obey the "addr"
parameter to mmap(2), even if MAP_FIXED is not explicitly specified.
Android ART is one example.  Implement bug compatibility for this case
in linuxulator.

Reviewed by:        dchagin@
MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D9373
Delta File
+16 -1 head/sys/compat/linux/linux_mmap.c
+16 -1 1 file

FreeBSD — head/sbin/savecore savecore.c

Make savecore(8) output nicer by specifying the maximum field width
instead of minimum one (precision instead of width).

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Delta File
+1 -1 head/sbin/savecore/savecore.c
+1 -1 1 file

FreeBSD — head/sys/dev/isp isp_freebsd.c

Remove broken remnants of obsolete INOT API.

MFC after:        2 weeks
Delta File
+0 -10 head/sys/dev/isp/isp_freebsd.c
+0 -10 1 file

FreeBSD — head/sys/kern kern_mutex.c kern_rwlock.c

locks: make trylock routines check for 'unowned' value

Since fcmpset can fail without lock contention e.g. on arm, it was possible
to get spurious failures when the caller was expecting the primitive to succeed.

Reported by:        mmel

FreeBSD — head/sbin/mdconfig mdconfig.c

Make mdconfig(8) not segfault when the kernel returns garbage data.

MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Delta File
+2 -2 head/sbin/mdconfig/mdconfig.c
+2 -2 1 file

FreeBSD — projects/clang400-import/lib/libc++ Makefile

Belatedly add variant.cpp to libc++.  This completes the support for the
upcoming C++17 std::variant template.

FreeBSD — head/sys/kern kern_proc.c

Make sure the thread constructor and destructor eventhandlers are
called for all threads belonging to a procedure. Currently the first
thread in a procedure is kept around as an optimisation step and is
never freed. Because the first thread in a procedure is never freed
nor allocated, its destructor and constructor callbacks are never
called which means per thread structures allocated by dtrace and the
Linux emulation layers for example, might be present for threads which
don't need these structures.

This patch adds a thread construction and destruction call for the
first thread in a procedure.

Tested:                        dtrace, linux emulation
Reviewed by:                kib @
MFC after:                1 week
Sponsored by:                Mellanox Technologies
Delta File
+9 -0 head/sys/kern/kern_proc.c
+9 -0 1 file

FreeBSD — head/sys/amd64/linux linux_dummy.c, head/sys/amd64/linux32 linux32_dummy.c

Implement rt_tgsigqueueinfo system call used by glibc for pthread_sigqueue(3).

MFC after:        2 week

FreeBSD — head/sys/i386/i386 pmap.c

MFamd64 r313933: microoptimize pmap_protect_pde().

Noted by:        alc
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+3 -3 head/sys/i386/i386/pmap.c
+3 -3 1 file

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

Capsicum-ize lam(1)

lam(1) is used in portsnap(8), so lock it down

Reviewed by:        emaste, cem, jonathan
Sponsored by:        ScaleEngine Inc.
Differential Revision:        https://reviews.freebsd.org/D8076
Delta File
+20 -0 head/usr.bin/lam/lam.c
+20 -0 1 file

FreeBSD — head/sys/dev/isp isp_freebsd.c

Missed addition to r313936.

CTIO waitq present only in ISP_TARGET_MODE.

MFC after:        2 weeks
Delta File
+4 -0 head/sys/dev/isp/isp_freebsd.c
+4 -0 1 file

FreeBSD — head/sys/dev/isp isp_freebsd.c isp_freebsd.h

Move CTIO waitq from per-LUN to per-channel.

All resources lack of which may put CTIO into the queue are either
per-channel or potentially per-queue, but none of them are per-LUN.

This is a first step to fix live LUN disabling.  Before this change
any CTIOs held in a queue in time of disabling were just leaked.

MFC after:        2 weeks

FreeBSD — head/sys/dev/e1000 if_em.c

Restore PBA setup for igb(4) class devices.

Do no write to PBA register on igb(4) devices unless we need
to make adjustments for the 82575 and jumbo frames.

Remove redundant LPE/~LPE assignments.

Move e1000_lv_jumbo_workaround_ich8lan() invokcation into a block
so that its not executed in the igb case.

Move em(4) class assignments of RCTL values to its own code block.

Adjust a few direct accesses of ifp->mtu to use accessor functions.

PR:                216734
Submitted by:        Kaho Toshikazu <kaho at elam.kais.kyoto-u.ac.jp>
Delta File
+79 -16 head/sys/dev/e1000/if_em.c
+79 -16 1 file

FreeBSD — head/sys/x86/x86 x86_mem.c

Fix regression in r313898 on i386.

Use large enough type for calculation of mtrr physmask.  Typical
cpu_maxphyaddr is 36 or larger.

Reported and tested by:        sbruno
Sponsored by:        The FreeBSD Foundation
MFC after:        13 days
Delta File
+1 -1 head/sys/x86/x86/x86_mem.c
+1 -1 1 file

FreeBSD — head/sys/amd64/amd64 pmap.c

Microoptimize amd64/pmap.c pmap_protect_pde().

For the loop that dirties vm_pages in case superpage was written to,
check the complete condition before the loop.

Reviewed by:        alc
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+3 -3 head/sys/amd64/amd64/pmap.c
+3 -3 1 file

FreeBSD — stable/10/sys/fs/devfs devfs_devs.c

MFC r313797:
Minor style fixes.