Displaying 1 50 of 314,040 commits (0.021s)

FreeBSD — user/pho/stress2/misc quota8.sh quota9.sh

Added check for QUOTA configured.
Style fix while here.

Sponsored by:        Dell EMC Isilon

FreeBSD — head/sys/netpfil/pf pf_table.c

Fix VNET leakages in PF by V_irtualizing pfr_ktables and friends.
Apparently this resolves a PF-triggered panic when destroying VNET jails.

Submitted by:        Peter Blok <peter.blok at bsd4all.org>
Reviewed by:        kp
Delta File
+29 -24 head/sys/netpfil/pf/pf_table.c
+29 -24 1 file

FreeBSD — head/sys/netpfil/pf pf_if.c

Since curvnet is already properly set on entry to event handlers,
there's no need to override it, particularly not unconditionally with
vnet0.

Submitted by:        Peter Blok <peter.blok at bsd4all.org>
Reviewed by:        kp
Delta File
+9 -27 head/sys/netpfil/pf/pf_if.c
+9 -27 1 file

FreeBSD — vendor/less v487

Tag less v487.
Delta File
+0 -0 vendor/less/v487/
+0 -0 1 file

FreeBSD — vendor/less/dist funcs.h less.man

Vendor import of less 487.
Delta File
+299 -302 vendor/less/dist/funcs.h
+184 -176 vendor/less/dist/less.man
+124 -109 vendor/less/dist/cmdbuf.c
+128 -61 vendor/less/dist/output.c
+107 -80 vendor/less/dist/wide.uni
+120 -66 vendor/less/dist/search.c
+1,449 -788 64 files not shown
+2,411 -1,582 70 files

FreeBSD — vendor/less/dist funcs.h regexp.c

Apply r316339 to vendor area.
Delta File
+302 -298 vendor/less/dist/funcs.h
+74 -102 vendor/less/dist/regexp.c
+56 -97 vendor/less/dist/cmdbuf.c
+55 -86 vendor/less/dist/screen.c
+41 -92 vendor/less/dist/search.c
+41 -76 vendor/less/dist/line.c
+514 -932 32 files not shown
+1,083 -1,683 38 files

FreeBSD — stable/11/sys/fs/fuse fuse_node.c

MFC r317273 (by cem):
fuse: Implement FOPEN_KEEP_CACHE flag
Delta File
+2 -2 stable/11/sys/fs/fuse/fuse_node.c
+2 -2 1 file

FreeBSD — stable/11/lib/libc/gen ttyname.c

MFC r316768:

Fix an out-of-bounds write when a zero-length buffer is passed.

Found with ttyname_test and CHERI bounds checking.

Reviewed by:        emaste
Obtained from:        CheriBSD
Sponsored by:        DARPA, AFRL
Delta File
+4 -0 stable/11/lib/libc/gen/ttyname.c
+4 -0 1 file

FreeBSD — head/sys/netinet tcp_lro.c

Flush the LRO ctrl as soon as lro_mbufs fills up.  There is no need to
wait for the next enqueue from the driver.

Reviewed by:        gnn@, hselasky@, gallatin@
MFC after:        1 week
Sponsored by:        Chelsio Communications
Differential Revision:        https://reviews.freebsd.org/D10432
Delta File
+5 -5 head/sys/netinet/tcp_lro.c
+5 -5 1 file

FreeBSD — head/sys/netinet tcp_lro.c

Frames that are not considered for LRO should not be counted in LRO statistics.

Reviewed by:        gnn@, hselasky@, gallatin@
MFC after:        1 week
Sponsored by:        Chelsio Communications
Differential Revision:        https://reviews.freebsd.org/D10430
Delta File
+0 -2 head/sys/netinet/tcp_lro.c
+0 -2 1 file

FreeBSD — head/usr.sbin/ntp/sntp Makefile

Use the approved syntax to build no man pages.

MFC after:        1 week
Sponsored by:        DARPA, AFRL
Delta File
+1 -1 head/usr.sbin/ntp/sntp/Makefile
+1 -1 1 file

FreeBSD — stable/10/lib/libutil humanize_number.c

MFC r316766:

Correct an out of bounds read with HN_AUTOSCALE and very large numbers.

The maximum scale is 6 (K, M, G, T, P, E) (B is 0).

Overly large explict scales were checked correctly, but for sufficently
large numbers HN_AUTOSCALE would get to 7 resulting in an out of bounds
read.

Found with humanize_number_test and CHERI bounds checking.

Reviewed by:        emaste
Obtained from:        CheriBSD
Sponsored by:        DARPA, AFRL

FreeBSD — stable/11/lib/libutil humanize_number.c

MFC r316766:

Correct an out of bounds read with HN_AUTOSCALE and very large numbers.

The maximum scale is 6 (K, M, G, T, P, E) (B is 0).

Overly large explict scales were checked correctly, but for sufficently
large numbers HN_AUTOSCALE would get to 7 resulting in an out of bounds
read.

Found with humanize_number_test and CHERI bounds checking.

Reviewed by:        emaste
Obtained from:        CheriBSD
Sponsored by:        DARPA, AFRL

FreeBSD — head/usr.bin/getaddrinfo Makefile

Clean up Makefile.

Prefer SRCTOP vs .CURDIR relative paths.

Find libnetbsd using LIBADD infrastructure rather than manual hackery.

Reviewed by:        ngie, bapt
Obtained from:        CheriBSD
MFC after:        1 week
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D10461
Delta File
+5 -9 head/usr.bin/getaddrinfo/Makefile
+5 -9 1 file

FreeBSD — head UPDATING

Document the removal of NATM.

Relnotes:        yes
Delta File
+5 -0 head/UPDATING
+5 -0 1 file

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

Remove the NATM framework including the en(4), fatm(4), hatm(4), and
patm(4) devices.

Maintaining an address family and framework has real costs when we make
infrastructure improvements.  In the case of NATM we support no devices
manufactured in the last 20 years and some will not even work in modern
motherboards (some newer devices that patm(4) could be updated to
support apparently exist, but we do not currently have support).

With this change, support remains for some netgraph modules that don't
require NATM support code. It is unclear if all these should remain,
though ng_atmllc certainly stands alone.

Note well: FreeBSD 11 supports NATM and will continue to do so until at
least September 30, 2021.  Improvements to the code in FreeBSD 11 are
certainly welcome.

Reviewed by:        philip
Approved by:        harti
Delta File
+0 -9,079 head/sys/dev/patm/if_patm_rtables.c
+0 -3,367 head/sys/dev/en/midway.c
+0 -3,091 head/sys/dev/fatm/if_fatm.c
+0 -2,419 head/sys/dev/hatm/if_hatm.c
+0 -2,393 head/sys/dev/fatm/firmware.h
+0 -1,515 head/sys/dev/utopia/suni.h
+56 -25,012 96 files not shown
+56 -46,876 102 files

FreeBSD — head/sys/fs/nfsserver nfs_nfsdstate.c

Allow use of a write open stateid for reading in the NFSv4 server.

The NFSv4 RFCs give a server the option of allowing the use of an open
stateid for write access to be used for a Read operation.
This patch enables this by default and adds a sysctl to disable it,
for anyone who does not want this capability.
Allowing this is particularily useful for a pNFS Data Server (DS), since
they are not permitted to allow the use of special stateids.
Discovered during recent testing of the pNFS server under development.

MFC after:        2 weeks

FreeBSD — head/usr.bin/diff diffreg.c

Fix the following warning from gcc 4.2 in usr.bin/diff:

usr.bin/diff/diffreg.c: In function 'change':
usr.bin/diff/diffreg.c:1085: warning: 'i' may be used uninitialized in this function

This version of gcc is not smart enough to see that 'i' cannot actually
be used unitialized.  However, the variable is confusingly re-used, so
it is better to give it another name, and clearly initialize it before
attempting to use it.

Reviewed by:        bapt
Differential Revision: https://reviews.freebsd.org/D10484
Delta File
+7 -6 head/usr.bin/diff/diffreg.c
+7 -6 1 file

FreeBSD — head/sys/dev/bhnd bhnd_erom.h bhnd_erom_if.m, head/sys/dev/bhnd/bcma bcma_erom.c

Add support for dumping bcma/siba EROM tables to the console via a new
BHND_EROM_DUMP() method.

Dump the EROM tables to the coneole on mips/broadcom devices if bootverbose
is enabled; this functionality is primarily useful when debugging SoC EROM
parsing and device matching issues during early boot.

Reviewed by:        mizhka
Approved by:        adrian (mentor)
Sponsored by:        Plausible Labs
Differential Revision:        https://reviews.freebsd.org/D10122

FreeBSD — head/sys/dev/bhnd/nvram bhnd_nvram_data_sprom.c

Drop unused/unnecessary return statement.

Reported by:        Coverity
CID:                1373118
Approved by:        adrian (mentor, implicit)

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

Fix the last example to really replace all occurrences of the search string
in the file by adding the global (g) option at the end.  Without it, only the
first match is replaced, subsequent ones are ignored.  The intention of the
example is to demonstrate something else, but adding the g matches the example
to what the description says.

Discussed with:            brd (on IRC)
MFC after:            1 week
Delta File
+1 -1 head/usr.bin/sed/sed.1
+1 -1 1 file

FreeBSD — stable/11/usr.sbin/acpi/acpidump acpi.c acpidump.c

MFC r302788, r303026, r305471

r302788:
Fix the type used to hold the value returned from getopt. On arm64 char is
unsigned so will never be -1.

r303026:
Add missing flags from acpidump. These are defined in the header, but not
printed. The HW_REDUCED flag is useful as it should be set on arm64 to
comply with the ARM Server Base Boot Requirements.

r305471:
Teach acpidump how to parse ACPI 5.1 tables found on the development
ThunderX units in the netperf cluster.

FreeBSD — head/release/scripts pkg-stage.sh

Add sysutils/tmux to the DVD package set

The zsh + tmux combination is commonly wanted.

Approved by:        gjb
MFC after:        2 weeks
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -0 head/release/scripts/pkg-stage.sh
+1 -0 1 file

FreeBSD — stable/10/cddl/lib/libdtrace ip.d, stable/10/sys/netinet tcp_input.c in_kdtrace.c

Partial MFC r316676 and the required r313045

MFC r316676:

Use estimated RTT for receive buffer auto resizing instead of timestamps.
This is a partial MFC as stable/10 doesn't include the TCP stack
modularisation.

MFC r313045:

Add an mbuf to ipinfo_t translator to finish cleanup of mbuf passing to TCP
probes. This is a partial MFC (missing debug__output & debug__drop changes)
due to the massive amount of additional dtrace changes that would be
required for a full MFC.

Relnotes:        Yes
Sponsored by:        Multiplay

FreeBSD — stable/11/sbin/camcontrol camcontrol.8 persist.c

MFC r312558:

Misc Coverity fixes in camcontrol(8)

CID 1229913        Fix output of "camcontrol persist -i report_capabilities".
                The reported Persistent Reservation Types were wrong in all
                cases.
CID 1356029        Annotate the code so Coverity will know that this is a false
                positive.
CID 1366830        Fix a memory leak in "camcontrol timestamp -s"
CID 1366832        Fix a segfault that could be caused by bad drive firmware

Also, fix the man page entry for the "camcontrol epc state" command to match
what the code does.

Reviewed by:        ken, wblock
MFC after:        4 weeks
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D9239

FreeBSD — stable/11/etc/defaults periodic.conf, stable/11/etc/periodic/daily 480.leapfile-ntpd

MFC r316342, r316358

r316342:
Consolidate random sleeps in periodic scripts

Multiple periodic scripts sleep for a random amount of time in order to
mitigate the thundering herd problem. This is bad, because the sum of
multiple uniformly distributed random variables approaches a normal
distribution, so the problem isn't mitigated as effectively as it would be
with a single sleep.

This change creates a single configurable anticongestion sleep. periodic
will only sleep if at least one script requires it, and it will never sleep
more than once per invocation. It also won't sleep if periodic was run
interactively, fixing an unrelated longstanding bug.

PR:                217055
PR:                210188
Reviewed by:        cy
MFC after:        3 weeks
Differential Revision:        https://reviews.freebsd.org/D10211

r316358:
Fix man page typo from r316342


    [3 lines not shown]

FreeBSD — head/lib/libc/gen scandir.c

scandir(3): promote arraysz to size_t to match numitems.

The internal array size goes through a loop and is compared with numitems
which at its limits makes can be unreachably higher than arraysz.
Prevent an hypothetical overflow by matching the types.

MFC after:        1 week
Delta File
+1 -2 head/lib/libc/gen/scandir.c
+1 -2 1 file

FreeBSD — head/contrib/elftoolchain/elfcopy main.c

elfcopy: allow empty symbol list files

Reported by:        bz
MFC after:        2 weeks
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D10441

FreeBSD — head/sys/cam/ctl ctl.c

Change ctl_free_lun() locking.

This fixes potential callout_drain() sleep under non-sleepable lock.

PR:                218167
MFC after:        2 weeks
Delta File
+9 -18 head/sys/cam/ctl/ctl.c
+9 -18 1 file

FreeBSD — head/sys/cam/ctl ctl_backend_ramdisk.c ctl_backend_block.c

Slightly compact the code.

MFC after:        2 weeks

FreeBSD — stable/11/sys/netinet tcp_input.c tcp_output.c, stable/11/sys/netinet/tcp_stacks fastpath.c

MFC r316676:

Use estimated RTT for receive buffer auto resizing instead of timestamps

Relnotes:        Yes
Sponsored by:        Multiplay

FreeBSD — stable/10/sys/dev/isp ispmbox.h

MFC r315913: Add brackets to fix incorrect macro expansion.
Delta File
+1 -1 stable/10/sys/dev/isp/ispmbox.h
+1 -1 1 file

FreeBSD — stable/10/sys/dev/isp isp_library.c isp_pci.c

MFC r315908: Unify initiator and target DMA setup and command sending.

The code is so alike that it is pointless to keep it separate.

FreeBSD — stable/10/sys/dev/isp isp_freebsd.h

MFC r315870: isp field in struct isp_pcmd is also unused.

FreeBSD — stable/10/sys/dev/isp isp_freebsd.c isp_freebsd.h

MFC r315869: Remove write-only crn field from struct isp_pcmd.

FreeBSD — stable/10/sys/dev/isp isp.c isp_freebsd.h

MFC r315708: Cleanup response queue processing.

FreeBSD — stable/11/sys/dev/isp ispmbox.h

MFC r315913: Add brackets to fix incorrect macro expansion.
Delta File
+1 -1 stable/11/sys/dev/isp/ispmbox.h
+1 -1 1 file

FreeBSD — head/sys/arm64/arm64 vm_machdep.c, head/sys/conf options.arm64

Call the PSCI reset from cpu_reset on arm64. When rebooting from DDB the
kernel calls this directly so the event handler is not called, meaning
the computer fails to reboot.

Tested by:        cognet
MFC after:        1 week
Sponsored by:        DARPA, AFRL

FreeBSD — stable/11/sys/dev/isp isp_library.c isp_pci.c

MFC r315908: Unify initiator and target DMA setup and command sending.

The code is so alike that it is pointless to keep it separate.

FreeBSD — stable/11/sys/dev/isp isp_freebsd.h

MFC r315870: isp field in struct isp_pcmd is also unused.

FreeBSD — stable/11/sys/dev/isp isp_freebsd.c isp_freebsd.h

MFC r315869: Remove write-only crn field from struct isp_pcmd.

FreeBSD — stable/11/sys/dev/isp isp.c isp_freebsd.h

MFC r315708: Cleanup response queue processing.

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

Switch isp_reset to scratchpad not requiring ISP_MBOXDMASETUP.

MFC after:        1 week
Delta File
+2 -2 head/sys/dev/isp/isp.c
+2 -2 1 file

FreeBSD — head/sys/dev/cxgbe/cxgbei icl_cxgbei.c

Use proper alignment constant for uma_zcreate().

Previous code panicked on KASSERT with INVARIANTS enabled.

MFC after:        2 weeks

FreeBSD — stable/11/sys/arm64/arm64 pmap.c

MFC r316679:
Do not lose dirty bits for removing PROT_WRITE on arm64.
Delta File
+5 -0 stable/11/sys/arm64/arm64/pmap.c
+5 -0 1 file

FreeBSD — head/sys/dev/hyperv/netvsc if_hn.c

hyperv/hn: Use channel0, i.e. TX ring0, for TCP SYN/SYN|ACK.

Hyper-V hot channel effect:
Operation latency on hot channel is only _half_ of the operation
latency on cold channels.

This commit takes the advantage of the above Hyper-V host channel
effect, and can reduce more than 75% latency and more than 50%
latency stdev, i.e. lower and more stable/predictable latency,
for various types of web server workloads.

MFC after:        3 days
Sponsored by:        Microsoft
Delta File
+91 -11 head/sys/dev/hyperv/netvsc/if_hn.c
+91 -11 1 file

FreeBSD — stable/10/usr.sbin/ctld ctld.c ctld.h

MFC r316677: Do not register in CTL portal groups without portals.

From config synthax point of view such portal groups are not incorrect,
but they are useless since can not receive any connection.  And since
CTL port resource is very limited, it is good to save it.

FreeBSD — stable/11/usr.sbin/ctld ctld.c ctld.h

MFC r316677: Do not register in CTL portal groups without portals.

From config synthax point of view such portal groups are not incorrect,
but they are useless since can not receive any connection.  And since
CTL port resource is very limited, it is good to save it.

FreeBSD — head/usr.sbin/nfsuserd nfsuserd.c

Fix the default uid/gid values in nfsuserd.c

This patch sets the default uid/gid values for "nobody" and "nogroup"
to the values in the password and group databases. Normally nfsuserd(8)
will override these with whatever is in the password/group databases,
so these values are only used when the databases entries aren't available.
It would be nice to use the definitions in sys/conf.h, but those are
in the _KERNEL section of the file.

Reported by:        tez at pkgsrc.org
Submitted by:        tez at pkgsrc.org
MFC after:        2 weeks
Delta File
+2 -2 head/usr.sbin/nfsuserd/nfsuserd.c
+2 -2 1 file

FreeBSD — head/lib/msun/src e_asin.c

msun: Remove trailing space in Sunsoft copyright statement.

Submittedby:        kargl
Delta File
+1 -1 head/lib/msun/src/e_asin.c
+1 -1 1 file