Displaying 1 50 of 320,519 commits (0.027s)

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

mountd: Avoid memory leak by freeing dp_dirp

Introduced in r324007, the data alloced by strdup was never free'ed.
While here, remove cast to caddr_t when freeing dp.

Reported by:        bde
MFC after:        1 week
X MFC With:        r324007
Delta File
+2 -1 head/usr.sbin/mountd/mountd.c
+2 -1 1 file

FreeBSD — head/usr.bin/calendar events.c

calendar: replace strcpy/strcat with asprintf
Delta File
+1 -4 head/usr.bin/calendar/events.c
+1 -4 1 file

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

mountd: Remove unneeded cast

Reported by:        kib
MFC after:        1 week
X MFC With:        r324007
Delta File
+1 -1 head/usr.sbin/mountd/mountd.c
+1 -1 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/ztest ztest.c, head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zil.c zio.c

MFV r323535: 8585 improve batching done in zil_commit()

FreeBSD notes:
- this MFV reverts FreeBSD commit r314549 to make the merge easier
- at present our emulation of cv_timedwait_hires is rather poor,
  so I elected to use cv_timedwait_sbt directly
Please see the differential revision for details.
Unfortunately, I did not get any positive reviews, so there could be
bugs in the FreeBSD-specific piece of the merge.
Hence, the long MFC timeout.

illumos/illumos-gate at 1271e4b10dfaaed576c08a812f466f6e81370e5e

  The current implementation of zil_commit() can introduce significant
  latency, beyond what is inherent due to the latency of the underlying
  storage. The additional latency comes from two main problems:
  1. When there's outstanding ZIL blocks being written (i.e. there's
      already a "writer thread" in progress), then any new calls to
      zil_commit() will block waiting for the currently oustanding ZIL
      blocks to complete. The blocks written for each "writer thread" is
      coined a "batch", and there can only ever be a single "batch" being
      written at a time. When a batch is being written, any new ZIL
      transactions will have to wait for the next batch to be written,

    [27 lines not shown]

FreeBSD — stable/11/cddl/contrib/opensolaris/cmd/zpool zpool.8 zpool_main.c, stable/11/cddl/contrib/opensolaris/lib/libzfs/common libzfs_pool.c libzfs.h

MFC r323355: MFV r323107: 8414 Implemented zpool scrub pause/resume

illumos/illumos-gate at 1702cce751c5cb7ead878d0205a6c90b027e3de8

FreeBSD note:  rather than merging the zpool.8 update I copied the zpool
scrub section from the illumos zpool.1m to FreeBSD zpool.8 almost
verbatim.  Now that the illumos page uses the mdoc format, it was an
easier option.  Perhaps the change is not in perfect compliance with the
FreeBSD style, but I think that it is acceptible.

  This issue tracks the port of scrub pause from ZoL: 
  Currently, there is no way to pause a scrub. Pausing may be useful when
  the pool is busy with other I/O to preserve bandwidth.


  This patch adds the ability to pause and resume scrubbing.  This is achieved
  by maintaining a persistent on-disk scrub state.  While the state is 'paused'
  we do not scrub any more blocks.  We do however perform regular scan
  housekeeping such as freeing async destroyed and deadlist blocks while paused.

  Motivation and Context

    [12 lines not shown]

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

MFC r323480: zfs_get_vfs: reference a requested filesystem instead of vfs_busy-ing it

Sponsored by:        Panzura

FreeBSD — stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_ioctl.c

MFC r323480: zfs_get_vfs: reference a requested filesystem instead of vfs_busy-ing it

Sponsored by:        Panzura

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

mountd: Replace malloc+strcpy to strdup

Reviewed by:        bapt
MFC after:        1 week
Sponsored by:        Gandi.net
Differential Revision:        https://reviews.freebsd.org/D12503
Delta File
+7 -9 head/usr.sbin/mountd/mountd.c
+7 -9 1 file

FreeBSD — stable/11/lib/msun Makefile Symbol.map, stable/11/lib/msun/amd64 e_fmod.S e_fmodl.S

Synchronize most of libm with head as of r323004.  This excludes a few
arch-specific updates for powerpcspe, mips and riscv, for which support
has not been merged yet.

Bump __FreeBSD_version for the addition of cacoshl, cacosl, casinhl,
casinl, catanl, catanhl, sincos, sincosf, and sincosl.

MFC r305382 (by bde):

  Add asm versions of fmod(), fmodf() and fmodl() on amd64.  Add asm
  versions of fmodf() amd fmodl() on i387.

  fmod is similar to remainder, and the C versions are 3 to 9 times
  slower than the asm versions on x86 for both, but we had the strange
  mixture of all 6 variants of remainder in asm and only 1 of 6
  variants of fmod in asm.

MFC r305384 (by bde):

  Disconnect the "optimized" asm variants of cos(), sin() and tan() from
  the build on i386.  Leave them in the source tree for regression tests.

  The asm functions were always much less accurate (by a factor of more
  than 10**18 in the worst case).  They were faster on old CPUs.  But
  with each new generation of CPUs they get relatively slower.  The

    [216 lines not shown]

FreeBSD — stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_acl.c zfs_znode.c, stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys zfs_znode.h

MFC r323479,r323491: zfs: tighten debug versions of ZTOV and VTOZ

Sponsored by:        Panzura

FreeBSD — stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_acl.c zfs_znode.c, stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys zfs_znode.h

MFC r323479,r323491: zfs: tighten debug versions of ZTOV and VTOZ

Sponsored by:        Panzura

FreeBSD — head ObsoleteFiles.inc

Remove empty lines for consistency with other entries
Delta File
+0 -1 head/ObsoleteFiles.inc
+0 -1 1 file

FreeBSD — head/etc Makefile man.alias

Do not actually install uneeded alias for man
Delta File
+0 -25 head/etc/Makefile
+0 -4 head/etc/man.alias
+0 -29 2 files

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

Remove unneeded locales and alias man directories

In base, locales (and encoding) specific directories are not used
by any tool. Just remove them.

While here also remove the cat page directory for openssl

FreeBSD — head Makefile.inc1

Do not print error when running make delete-old on system
without catpages directories
Delta File
+1 -1 head/Makefile.inc1
+1 -1 1 file

FreeBSD — head/sys/opencrypto crypto.c, head/tests/sys/opencrypto cryptotest.py

crypto(9): Use a more specific error code when a capable driver is not found

When crypto_newsession() is given a request for an unsupported capability,
raise a more specific error than EINVAL.

This allows cryptotest.py to skip some HMAC tests that a driver does not

Reviewed by:        jhb, rlibby
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D12451

FreeBSD — head/contrib/gcc/config/arm unwind-arm.c

Fix the return value from _Unwind_Backtrace() on arm.

If unwinding stops due to hitting the end of the call chain, the return
value is supposed to be _URC_END_OF_STACK; other values indicate internal
errors.  The return value from get_eit_entry() is now returned without
translating it to _URC_FAILURE, so that callers can see _URC_END_OF_STACK
when it happens.

FreeBSD — head/contrib/gcc/config/arm unwind-arm.c

Fix handling of uncaught exceptions in a std::terminate() handler on arm.

When raising an exception, the unwinder searches for a catch handler and if
none is found it should invoke std::terminate() with the uncaught exception
as the "current" exception.  Before this change, the terminate handler was
invoked with no exception as current (abi::__cxa_current_exception_type()
returned NULL), because the return value from the unwinder indicated an
internal failure in unwinding.  It turns out that was because all errors
from get_eit_entry() were translated to _URC_FAILURE.  Now the error is
returned untranslated, which allows _URC_END_OF_STACK to percolate upwards
to throw_exception() in libcxxrt.  When it sees that return status it
properly calls std::terminate() with the uncaught exception installed
as the current exception, allowing custom terminate handlers to work
with it.

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

Remove the cat pages directory now that catman(1) is gone
Delta File
+4 -142 head/etc/mtree/BSD.usr.dist
+75 -0 head/ObsoleteFiles.inc
+79 -142 2 files

FreeBSD — head/cddl/usr.sbin/zfsd zfsd_event.cc

Close a memory leak when using zpool_read_all_labels

MFC after:        3 weeks
X-MFC-With:        322854
Sponsored by:        Spectra Logic Corp

FreeBSD — head/sys/kern sys_process.c

Log signal number passed to PT_STEP requests in KTR_PTRACE traces.

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

FreeBSD — head/sys/fs/tmpfs tmpfs_fifoops.c tmpfs_vnops.c

Use tmpfs_print for tmpfs FIFOs.

Reviewed by:        kib (part of a larger patch)

FreeBSD — stable/11/libexec/getty gettytab.5 main.c

MFC r323252:

Add a new getty/gettytab capability to generate an initial message dynamically.

This modification adds a new gettytab(5) option (iM) to specify a
program to run that will generate the initial (banner) message that is
displayed before the login prompt. Such a capability is useful when
dynamic information is needed in the banner message that cannot be
supplied by the set of % substitution sequences available in the "im"

Sponsored by:        Dell EMC

FreeBSD — head/sys/boot/efi/libefi efipart.c

libefi: efipart_floppy() will should not pass acpi pointer if the HID test fails

The current efipart_floppy() implementation is leaking the acpi pointer.

FreeBSD — head/lib/libcapsicum capsicum_helpers.h

capsicum_helpers: Add SEEK to default stdio rights set

PR:                219173
Sponsored by:        Dell EMC Isilon

FreeBSD — stable/11/libexec/getty gettytab.5

MFC r317801 (by trasz):

Fix markup in gettytab(5).

Approved by:        vangyzen (mentor)
Sponsored by:        Dell EMC
Delta File
+36 -36 stable/11/libexec/getty/gettytab.5
+36 -36 1 file

FreeBSD — stable/10/sys/cam/scsi scsi_all.c, stable/11/sys/cam/scsi scsi_all.c

MFC:        r323840

Remove an ancient comment about the existence of READ(16)/WRITE(16) for MMC.

FreeBSD — stable/11/libexec/getty subr.c gettytab.5

MFC r313107 (by danfe):
Try to fix the old "he capability is stupid" bug in gettytab(5)/getty(8)

There is one capability explicitly documented in gettytab(5) as stupid: he.
And it is indeed.  It was meant to facilitate system hostname modification,
but is hardly usable in practice because it allows very limited editing
(e.g., it depends on a particular hostname length, making it non-generic).

Replace it with simple implementation that treats ``he'' as POSIX extended
regular expression which is matched against the hostname.  If there are no
parenthesized subexpressions in the pattern, entire matched string is used
as the final hostname.  Otherwise, use the first matched subexpression.
If the pattern does not match, the original hostname is not modified.

Using regex(3) gives more freedom, does not complicate the code very much,
and makes a lot more sense, in turn making ``he'' less stupid and actually
useful (e.g., it is now possible to obtain node or domain names from the
original hostname string, without knowing it in advance).

Approved by:        vangyzen (mentor)
Sponsored by:        Dell EMC

FreeBSD — head/sys/cddl/compat/opensolaris/sys kcondvar.h, head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs dmu_tx.c

Use nstosbt() instead of multiplying by SBT_1NS to avoid roundoff errors.

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

FreeBSD — user/pho/stress2/misc trim2.sh trim.sh

Return fsck(1) status.

Sponsored by:        Dell EMC Isilon

FreeBSD — head/sys/dev/neta if_mvneta.c

Fix gcc compilation issues in the mvneta driver

Compiling mvneta driver with gcc unveiled two issues, that
required fixing.

Reported by: andrew
Obtained from: Semihalf
Delta File
+13 -12 head/sys/dev/neta/if_mvneta.c
+13 -12 1 file

FreeBSD — head/sys/vm vm_page.c

Change vm_page_try_to_free() to require a managed page.  Essentially,
vm_page_try_to_free() is testing conditions, like clean versus dirty,
that only vary in managed pages.

Suggested by:        kib
Reviewed by:        markj
X-MFC after:        never
Delta File
+8 -7 head/sys/vm/vm_page.c
+8 -7 1 file

FreeBSD — head/sys/contrib/vchiq/interface/vchiq_arm vchiq_2835_arm.c

Modernize the use of vm_page_unwire().  Since r288122, vm_page_unwire()
has returned TRUE when the wire count transitions to zero, eliminating
the need for callers to inspect the page's wire count.

MFC after:        1 week

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

Small style(9) issue: spaces vs TAB.

FreeBSD — projects/runtime-coverage/share/mk bsd.lib.mk

Unbreak pic library link/compilation when MK_COVERAGE == no

Use a separate variable (PIC_OBJS) for the objects that should be in a
pic-enabled static library.

This unbreaks libexec/rtld-elf compilation when MK_COVERAGE == no.

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

Change a panic to an error return.

There was a panic() in the NFS server's write operation that didn't
need to be a panic() and could just be an error return.
This patch makes that change.
Found by code inspection during development of the pNFS service.

MFC after:        2 weeks

FreeBSD — head/sys/geom geom_subr.c

g_resize_provider_event: Do not invoke orphan method twice

Like r266444, g_resize_provider_event can attempt to orphan an already
orphaned geom_dev consumer.  This will cause a panic in g_dev_orphan.  Apply
the same fix as was applied to g_orphan_register.

Reviewed by:        ae
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D12469
Delta File
+8 -0 head/sys/geom/geom_subr.c
+8 -0 1 file

FreeBSD — projects/runtime-coverage/etc/mtree Makefile

Re-add BSD.coverage.dist install

This was an accidental mismerge in r321458 (MFC from ^/head)

FreeBSD — projects/runtime-coverage/contrib/one-true-awk lib.c run.c, projects/runtime-coverage/share/man/man4 mps.4 mpr.4

MFhead at r323974

FreeBSD — head/sys/fs/nfsclient nfs_clcomsubs.c

Remove 0 filling from nfsm_uiombuflist().

nfsm_uiombuflist() zero filled the mbuf list to a multiple of 4bytes
as required for XDR. Unfortunately that modified an mbuf list after
it was m_copym()'d and was broken. This patch removes the zero filling code.
Since nfsm_uiombuflist() is not yet used in head/current, this has no
effect on users.
The function will be used by a future commit of code that adds Flex
File Layout support.

FreeBSD — head/sys/vm vm_page.c vm_page.h

Optimize vm_page_try_to_free().  Specifically, the call to pmap_remove_all()
can be avoided when the page's containing object has a reference count of
zero.  (If the object has a reference count of zero, then none of its pages
can possibly be mapped.)

Address nearby style issues in vm_page_try_to_free(), and change its
return type to "bool".

Reviewed by:        kib, markj
MFC after:        1 week
Delta File
+11 -9 head/sys/vm/vm_page.c
+1 -1 head/sys/vm/vm_page.h
+12 -10 2 files

FreeBSD — head/usr.bin/calendar/calendars calendar.freebsd

Add myself to the calendar.freebsd

Reviewed by:    pfg (mentor)
Approved by:    pfg (mentor)

FreeBSD — head/tools/tools/nanobsd defaults.sh

Fix packages with interactive post install scripts.

Tell pkg(8) we're running non-interactively so packages that with
interactive post install scripts don't hang.

Submitted by: Guido van Rooij

FreeBSD — head/sys/arm/conf VIRT

Remove the VIRT kernel config, it's now useable through GENERIC.

Sponsored by:        DARPA, AFRL
Delta File
+0 -59 head/sys/arm/conf/VIRT
+0 -59 1 file

FreeBSD — head/share/man/man4 mpr.4 mps.4, head/sys/dev/mpr mpr.c

Add the ability to report and set debug flags as text strings instead of
just integer flags.  Report both for convenience.

Submitted by:        Eygene Ryabinkin (manpage)
Sponsored by:        Netflix

FreeBSD — stable/11/sys/powerpc/aim mmu_oea.c mmu_oea64.c

MFC r323676:
Implement mmu_page_init for AIM platforms.

FreeBSD — head/sys/arm/conf GENERIC, head/sys/arm/freescale/imx files.imx6

Add i.MX6 and Xilinx to GENERIC.

Merge in the missing devices from the IMX6 and ZEDBOARD kernel configs. The
Freescale sdma device has been renamed to fslsdma to mark it as a platform
specific driver.

Reviewed by:        ian
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D11564

FreeBSD — head/sys/arm/broadcom/bcm2835 bcm2835_sdhci.c, head/sys/arm/ti ti_sdhci.c

Rename sdhci_cam_start_slot() into sdhci_start_slot()

This change allows to just call sdhci_start_slot() in SDHCI drivers
and not to think about which stack handles the operation.

As a side effect, this will also fix MMCCAM with sdhci_acpi driver.

Approved by:        imp (mentor)
Differential Revision:        https://reviews.freebsd.org/D12471

FreeBSD — head/contrib/one-true-awk lib.c

Don't display empty error context.

Context extraction didn't handle this case and showed uninitialized memory.

Obtained from: OpenBSD lib.c 1.21
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D12379
Delta File
+1 -1 head/contrib/one-true-awk/lib.c
+1 -1 1 file

FreeBSD — head/contrib/one-true-awk run.c

Fix %c for floating values that become 0 when coerced to int.

Obtained from: OpenBSD run.c 1.36 (From Jeremy Devenport)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D12379
Delta File
+1 -1 head/contrib/one-true-awk/run.c
+1 -1 1 file