Displaying 1 50 of 300,446 commits (0.030s)

FreeBSD — head/sys/conf files

Fix typo.
Delta File
+2 -2 head/sys/conf/files
+2 -2 1 file

FreeBSD — head/sys/modules/dtrace Makefile, head/sys/modules/dtrace/dtraceall dtraceall.c

Include FBT to modules build on RISC-V.

FreeBSD — head/sys/cddl/dev/fbt/riscv fbt_isa.c

Remove unused variables.

FreeBSD — head/sys/fs/autofs autofs_vnops.c

Remove write-only variable.

MFC after:        1 month
Delta File
+0 -2 head/sys/fs/autofs/autofs_vnops.c
+0 -2 1 file

FreeBSD — head/sys/dev/usb usb_device.c

Improve error message.

MFC after:        1 month
Delta File
+2 -2 head/sys/dev/usb/usb_device.c
+2 -2 1 file

FreeBSD — head/sys/dev/usb/template usb_template_mtp.c

Fix MTP description in the comment.

MFC after:        1 month

FreeBSD — head/sys/arm64/conf GENERIC, head/sys/conf files.arm64

Add a generic EHCI USB driver based on the Allwinner A10 driver. It is ACPI
only for now, but wouldn't be too difficult to add support for FDT.

Reviewed by:        hselasky
Obtained from:        ABT Systems Ltd
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D7352

FreeBSD — head/sys/dev/hyperv/storvsc hv_storvsc_drv_freebsd.c

hyperv/storvsc: Use busdma(9) and enable PIM_UNMAPPED by default.

The UNMAPPED I/O greatly improves userland direct disk I/O performance
by 35% ~ 135%.

Submitted by:        Hongjiang Zhang <honzhan microsoft com>
MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D7195

FreeBSD — head/sys/dev/hyperv/vmbus vmbus_var.h vmbus.c

hyperv/vmbus: Revoke unnecessary exposure of vmbus softc

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D7348

FreeBSD — head/sys/dev/hyperv/vmbus vmbus.c vmbus_et.c

hyperv/vmbus: Move driver glue to the beginning of the files

Just as most of other drivers do.  And move sysinit function close
to its SYSINIT.

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D7347

FreeBSD — head/sys/dev/hyperv/vmbus vmbus_chan.c vmbus.c

hyperv/vmbus: Forward declare static functions

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D7346

FreeBSD — head/sys/dev/hyperv/include vmbus.h hyperv_busdma.h, head/sys/dev/hyperv/vmbus vmbus_var.h vmbus_chanvar.h

hyperv/vmbus: Reindent function declarations.

MFC after:        1 week
Sponsored by:        Microsoft
Differential Revision:        https://reviews.freebsd.org/D7344

FreeBSD — stable/11/sys/conf newvers.sh

Update stable/11 to BETA3 as part of the 11.0-RELEASE cycle.

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

FreeBSD — head/sys/cam cam_xpt.c cam_xpt_internal.h, head/sys/cam/ata ata_xpt.c

Move protocol specific stuff into a linker set object that's
per-protocol. This reduces the number scsi symbols references by
cam_xpt significantly, and eliminates all ata / nvme symbols. There's
still some NVME / ATA specific code for dealing with XPT_NVME_IO and
XPT_ATA_IO respectively, and a bunch of scsi-specific code, but this
is progress.

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

FreeBSD — head/sys/cam cam_xpt.c cam_xpt_internal.h, head/sys/cam/ata ata_xpt.c

Switch to linker sets to find the xport callback object.  This
eliminates the need to special case everything in cam_xpt for new
transports. It is now a failure to not have a transport object when
registering the bus as well. You can still, however, create a
transport that's unspecified (XPT_)

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

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

Kill a few stray debug printfs.
Delta File
+0 -5 head/sys/dev/nvme/nvme_sim.c
+0 -5 1 file

FreeBSD — head/sys/vm vm_pageout.c

Remove any mention of cache (PG_CACHE) pages from the comments in
vm_pageout_scan().  That function has not cached pages since r284376.

MFC after:        3 days
Delta File
+9 -11 head/sys/vm/vm_pageout.c
+9 -11 1 file

FreeBSD — head/sys/amd64/linux Makefile, head/sys/amd64/linux32 Makefile

Don't create pointless backups of generated files in "make sysent".

Any sensible workflow will include a revision control system from which
to restore the old files if required.  In normal usage, developers just
have to clean up the mess.

Reviewed by:        jhb
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D7353

FreeBSD — head/sys/modules Makefile

cxgbe's firmware module fails to build on mips64 as well as mips32 so
disable for all mips.

Sponsored by:        DARPA, AFRL
Delta File
+1 -1 head/sys/modules/Makefile
+1 -1 1 file

FreeBSD — stable/11/share/man/man4 aio.4

MFC 303202: Update to note that operations on local files are safe.

Approved by:        re (gjb)
Delta File
+3 -1 stable/11/share/man/man4/aio.4
+3 -1 1 file

FreeBSD — head/lib/libc/sys ptrace.2

Note that not all optional ptrace events use SIGTRAP.

New child processes attached due to PTRACE_FORK use SIGSTOP instead of
SIGTRAP.  All other ptrace events use SIGTRAP.
Delta File
+12 -2 head/lib/libc/sys/ptrace.2
+12 -2 1 file

FreeBSD — stable/11/lib/libc/sys aio_fsync.2 aio_read.2, stable/11/share/man/man4 aio.4

MFC 303164: Add more documentation regarding unsafe AIO requests.

The asynchronous I/O changes made previously result in different
behavior out of the box. Previously all AIO requests failed with
ENOSYS / SIGSYS unless aio.ko was explicitly loaded. Now, some AIO
requests complete and others ("unsafe" requests) fail with EOPNOTSUPP.

Reword the introductory paragraph in aio(4) to add a general
description of AIO before describing the vfs.aio.enable_unsafe sysctl.

Remove the ENOSYS error description from aio_fsync(2), aio_read(2),
and aio_write(2) and replace it with a description of EOPNOTSUPP.

Remove the ENOSYS error description from aio_mlock(2).

Log a message to the system log the first time a process requests an
"unsafe" AIO request that fails with EOPNOTSUPP. This is modeled on
the log message used for processes using the legacy pty devices.

Approved by:        re (gjb)

FreeBSD — stable/10/sys/netinet6 icmp6.c

MFC r299829
Use Node Information flag names instead of hard-coding their values.
Delta File
+3 -1 stable/10/sys/netinet6/icmp6.c
+3 -1 1 file

FreeBSD — stable/10/sys/netinet6 nd6_rtr.c nd6.c

MFC r296063 r297397 r299213

Lock the NDP default router list and count defrouter references.

This addresses a number of race conditions that can cause crashes as a
result of unsynchronized access to the list.

Modify nd6_llinfo_timer() to acquire the nd6 lock before the LLE lock.

When expiring a neighbour cache entry we may need to look up the associated
default router, which requires the nd6 read lock. To avoid an LOR, the nd6
lock should be acquired first.

Clean up callers of nd6_prelist_add().

nd6_prelist_add() sets *newp if and only if it is successful, so there's no
need for code that handles the case where the return value is 0 and
*newp == NULL. Fix some style bugs in nd6_prelist_add() while here.

Submitted by:        Jason Wolfe <j at nitrology.com>

FreeBSD — head/sys/netinet tcp_subr.c

Call tcp_notify() directly to shoot down routes, rather than
calling in_pcbnotifyall().

This avoids lock contention on tcbinfo due to in_pcbnotifyall()
holding the tcbinfo write lock while walking all connections.

Reviewed by:        rrs, karels
MFC after:        2 weeks
Sponsored by:        Netflix, Inc.
Differential Revision:        https://reviews.freebsd.org/D7251
Delta File
+7 -6 head/sys/netinet/tcp_subr.c
+7 -6 1 file

FreeBSD — head ObsoleteFiles.inc

Add tblgen to ObsoleteFiles.inc, as it was renamed to llvm-tblgen.

Noticed by:        pluknet
MFC after:        3 days
Delta File
+1 -0 head/ObsoleteFiles.inc
+1 -0 1 file

FreeBSD — head/sys/netinet in_prot.c, head/sys/sys systm.h proc.h

Remove BSD and USL copyright and update license block in in_prot.c, as the
code in this file was written by Robert N. M. Waston.

Move cr_can* prototypes from sys/systm.h to sys/proc.h

Reported by:        rwatson
Reviewed by:        rwatson
Approved by:        sjg (mentor)
Differential Revision:        https://reviews.freebsd.org/D7345

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

Mark spg_len and fl_pktshift static.

These variables are no longer exported to t4_netmap.c after r296478.
Delta File
+2 -2 head/sys/dev/cxgbe/t4_sge.c
+2 -2 1 file

FreeBSD — head/share/mk bsd.sys.mk, head/sys/conf kern.mk

Normalise the CWARNFLAGS inter-word spacing: remove all leading
and trailing space, and convert multiple consecutive spaces to
single space.

This helps to keep build output looking good.

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

indent: avoid calling write(2) with a negative second parameter.

negative_returns: n is passed to a parameter that cannot be negative.
Fix a style issue while here.

CID:        1008107
Delta File
+1 -1 head/usr.bin/indent/indent.c
+1 -1 1 file

FreeBSD — head/include libgen.h, head/lib/libc/gen basename.3 dirname.3

Fix up prototypes of basename(3) and dirname(3) to comply to POSIX.

POSIX allows these functions to be implemented in a way that the
resulting string is stored in the input buffer. Though some may find
this annoying, this has the advantage that it makes it possible to
implement this function in a thread-safe way. It also means that they
can be implemented in a way that they work for paths of arbitrary
length, as the output string of these functions is never longer than
max(1, len(input)).

Portable code already needs to be written with this in mind, so in my
opinion it makes very little sense to allow the existing behaviour.
Prevent the base system from falling back to this by switching over to
POSIX prototypes.

I'm not going to bump the __FreeBSD_version for this. The reason is that
it's possible to account for this change in a portable way, without
depending on a specific version of FreeBSD. An exp-run was done some
time ago. As far as I know, all regressions as a result of this have
already been fixed.

I'll give this change some time to settle. In the long run I want to
replace our copies by ones that are thread-safe and don't depend on

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

Pull a copy of the input string before calling basename() and dirname().

POSIX allows implementations of these functions to modify their input.
Delta File
+8 -3 head/usr.bin/xinstall/xinstall.c
+8 -3 1 file

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

Clean up use of basename() and dirname().

Pull copies of the input pathname string before calling basename() and
dirname() to make this comply to POSIX. Free these copies at the end of
this function. While there, remove the duplication of the 's' ->
'logfname' string. There is no need for this.
Delta File
+17 -11 head/usr.sbin/newsyslog/newsyslog.c
+17 -11 1 file

FreeBSD — head/sys/vm swap_pager.c

Do not delegate a work to geom event thread which can be done inline.

In particular, swapongeom_ev() needed event thread context when swap
pager configuration was performed under Giant and geom asserted that
Giant is not owned.  Now both of the reason went away.

On the other hand, note that swpageom_release() is called from the
bio_done context, and possible close cannot be performed inline.

Also fix some minor issues.  The swapgeom() function does not use the
td argument, remove it.  Recheck that the vnode passed is still VCHR
and not reclaimed after the lock.

Reviewed by:        mav
Tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Delta File
+21 -37 head/sys/vm/swap_pager.c
+21 -37 1 file

FreeBSD — stable/11/usr.sbin/bsdinstall/scripts hardening auto

MFC r302897:

Add new System Hardening menu and options to bsdinstall.

This patch add new 'hardening' file responsible for new bsdinstall
'System Hardening' menu allowing users to set some sane and carefully
picked system security options (like random process id's, hiding
other users/groups processes and others).

All options are OFF by default in this patch due to POLA principle
with intention to turn change some of them to ON by default in future.

Reviewed by:        adrian, allanjude, bdrewery, nwhitehorn
Approved by:        re@, adrian, allanjude

FreeBSD — head/sys/vm swap_pager.c

Fix style and typo.

Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+4 -4 head/sys/vm/swap_pager.c
+4 -4 1 file

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

Call basename() and dirname() in the POSIXly correct way.

Pull copies of the input string, as these functions are allowed to
modify them. Free the copies after creating the new pathname string.
Delta File
+17 -5 head/usr.sbin/uathload/uathload.c
+17 -5 1 file

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

Call basename() in a portable way.

Pull a copy of the filename string before calling basename(). Change the
loop to not return on its own, so we can put a free() statement at the
Delta File
+10 -5 head/usr.bin/grep/util.c
+10 -5 1 file

FreeBSD — head/usr.bin/sed main.c

Don't call basename() and dirname() in an unportable way.

POSIX allows these functions to modify their input buffer, so that they
have storage for the return value. Pull copies of the filename before
calling these utility functions.
Delta File
+8 -2 head/usr.bin/sed/main.c
+8 -2 1 file

FreeBSD — head/sys/conf ldscript.sparc64 ldscript.arm

remove CONSTRUCTORS from kernel linker scripts

The linker script CONSTRUCTORS keyword is only meaningful "when linking
object file formats which do not support arbitrary sections, such as
ECOFF and XCOFF"[1] and is ignored for other object file formats.

LLVM's lld does not yet accept (and ignore) CONSTRUCTORS, so just remove
CONSTRUCTORS from the linker scripts as it has no effect.

[1] https://sourceware.org/binutils/docs/ld/Output-Section-Keywords.html

Reviewed by:        kib
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D7343

FreeBSD — head/share/man/man5 src.conf.5

Regenerate src.conf.5 after r303394
Delta File
+3 -3 head/share/man/man5/src.conf.5
+3 -3 1 file

FreeBSD — head/sys/modules/i2c/iicbb Makefile, head/sys/modules/uart Makefile

Build ofw_bus_if.h for modules for RISC-V.

FreeBSD — head/sys/modules/dtrace/dtrace Makefile

Build DTrace assym.o with -msoft-float flag for RISC-V so we have
correct flag in ELF file.

Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5

FreeBSD — head/sys/conf kern.mk

o Add warn flags required to build modules with GCC 6.1;
o Sort GCC 4.8 warn flags.

Sponsored by:        DARPA, AFRL
Sponsored by:        HEIF5
Delta File
+16 -6 head/sys/conf/kern.mk
+16 -6 1 file

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

Fix r303429 build with invariants.
Delta File
+1 -1 head/sys/dev/ntb/ntb.c
+1 -1 1 file

FreeBSD — head/sys/kern init_sysent.c syscalls.c, head/sys/sys syscall.h syscall.mk

Regenerate system call table for r303435.

FreeBSD — head/lib/libc/sys msgrcv.2, head/sys/kern syscalls.master

Change the return type of msgrcv() to ssize_t as required by POSIX.

It looks like the msgrcv() system call is already written in such a way
that the size is internally computed as a size_t and written into all of
td_retval[0]. This means that it is effectively already returning
ssize_t. It's just that the userspace prototype doesn't match up.

FreeBSD — stable/11/sys/kern vfs_aio.c

MFC r303154:
Declare aio requests on files from local filesystems safe.

Approved by:        re (gjb)
Delta File
+13 -1 stable/11/sys/kern/vfs_aio.c
+13 -1 1 file

FreeBSD — stable/10/sys/dev/pty pty.c, stable/10/sys/kern subr_prf.c

MFC r303151:
Provide counter_warning(9) KPI.

MFC r303155:
Hide counted_warning(9) under #ifdef _KERNEL braces.

FreeBSD — stable/11/sys/dev/pty pty.c, stable/11/sys/kern subr_prf.c

MFC r303151:
Provide counter_warning(9) KPI.

MFC r303155:
Hide counted_warning(9) under #ifdef _KERNEL braces.

Approved by:        re (gjb)