Displaying 1 50 of 272,237 commits (0.012s)

FreeBSD — head/usr.sbin/autofs auto_master.5

Document use of wildcards (*) and ampersands (&) in autofs map files.

Differential Revision:        https://reviews.freebsd.org/D1199
Reviewed by:        wblock@
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+20 -3 head/usr.sbin/autofs/auto_master.5
+20 -3 1 file

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

Close race between cfiscsi_offline() and new connection arrival.

Incoming connection should be either rejected or accepted and terminated.
Delta File
+17 -15 head/sys/cam/ctl/ctl_frontend_iscsi.c
+17 -15 1 file

FreeBSD — stable/10/sys/netipsec ipsec_input.c

MFC r274230:
  Pass mbuf to pfil processing before stripping outer IP header as it
  is described in if_enc(4).
Delta File
+6 -17 stable/10/sys/netipsec/ipsec_input.c
+6 -17 1 file

FreeBSD — projects/sendfile/sys/kern vfs_default.c

Catch up on r274689.

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

Simply remove the tmp dir before creating the symlink. We are doing
chroots all over the place, so there is bound to be a stale file lying
around in there (in my case samba lock files from creating accounts). If
we don't do that, the symlink later will fail.

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

Add missing error checking for kernel_port_{add,remove}().  Both can fail
for reasons yet unknown; don't make it increment cumulated_error as a kind
of temporary workaround.

MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+22 -3 head/usr.sbin/ctld/ctld.c
+22 -3 1 file

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

Remove bunch of unused lun variables.

MFC after:        1 week
Delta File
+0 -15 head/sys/cam/ctl/ctl.c
+0 -15 1 file

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

Reduce race between LUN destruction and request arrival.

MFC after:        1 week
Delta File
+5 -3 head/sys/cam/ctl/ctl.c
+5 -3 1 file

FreeBSD — head/sys/mips/mips cpu.c

Fix build for certain MIPS kernels hiding an unused variable under #ifndef.
Delta File
+2 -0 head/sys/mips/mips/cpu.c
+2 -0 1 file

FreeBSD — stable/10/sys/kern vfs_vnops.c

MFC r274501:
In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error.
Delta File
+3 -1 stable/10/sys/kern/vfs_vnops.c
+3 -1 1 file

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

Log errors for absent LUNs too.

MFC after:        1 week
Delta File
+3 -5 head/sys/cam/ctl/ctl.c
+3 -5 1 file

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

Partially reconstruct Active/Standby clusting.

In this mode one head is in Active state, supporting all commands, while
another is in Standby state, supporting only minimal LUN discovery subset.

It is still incomplete since Standby state requires reservation support,
which is impossible to do right without having interlink between heads.
But it allows to run some basic experiments.

FreeBSD — head/sys/fs/smbfs smbfs_vfsops.c

Fix smbfs to not zero out statfs f_flags field. Previously, this
made getmntinfo() return empty flags for smbfs filesystems when
called with MNT_WAIT. It's not visible with mount(8), since it uses
MNT_NOWAIT, but broke autounmount(8) operation.

PR:                195161
Differential Revision:        https://reviews.freebsd.org/D1194
Reviewed by:        kib@
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation
Delta File
+0 -2 head/sys/fs/smbfs/smbfs_vfsops.c
+0 -2 1 file

FreeBSD — user/marcel/libvdsk/bhyve block_if.c Makefile, user/marcel/libvdsk/bhyveload bhyveload.c Makefile

Use libvdsk(3) to implement block devices.

FreeBSD — user/marcel/libvdsk/bhyve Makefile, user/marcel/libvdsk/bhyveload Makefile

Build this outside a FreeBSD tree. Assume /sys works for us.

FreeBSD — user/marcel/libvdsk bhyveload

Branch head/usr.sbin/bhyveload
Delta File
+0 -0 user/marcel/libvdsk/bhyveload/
+0 -0 1 file

FreeBSD — user/marcel/libvdsk bhyve

Branch head/usr.sbin/bhyve
Delta File
+0 -0 user/marcel/libvdsk/bhyve/
+0 -0 1 file

FreeBSD — user/marcel/libvdsk libvdsk, user/marcel/libvdsk/libvdsk vdsk.c vdsk.h

Add libvdsk(3). This has effective enough to handle bhyveload and
bhyve in their current (limited) form. Under the hood this will
grow support for probing disk image formats and handling them.

FreeBSD — user/marcel libvdsk

Create a branch for bootstrapping a library that can read and write
virtual disk images. The first consumers of it being bhyveload and
bhyve. Yes, the library is called libvdsk.
Delta File
+0 -0 user/marcel/libvdsk/
+0 -0 1 file

FreeBSD — user/marcel mkimg

Remove my WIP branch for mkimg(1). Everything is in head and on stable/10
and there's no major (re-)work on the horizon that would warrant its
Delta File
+0 -0 user/marcel/mkimg/
+0 -0 1 file

FreeBSD — head/sys/powerpc/powerpc db_trace.c

Fix the powerpc64 build.

Pointy-hat to:        me
X-MFC-with:        r274735

FreeBSD — projects/release-vmimage/release/tools vmimage.subr openstack.conf

Revert r274773, after I *specifically* objected to this change
numerous times.

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/routing/sys/net if_var.h if.c, projects/routing/sys/netinet if_ether.c toecore.c

Switch IF_AFDATA lock to rmlock

FreeBSD — projects/release-vmimage/release/tools vmimage.subr openstack.conf

Change how packages are installed into VM images: Rather than chrooting
into the image and running 'pkg install' from there, use 'pkg fetch' to
download packages into a temporary location and then 'pkg add' to install
them into the image.

This simplifies the code by avoiding the need to copy /etc/resolv.conf
into the image and then delete it later, and makes it possible to cross
build (e.g., to create an amd64 image when running on i386 hardware; or
in the future for building disk images for embedded platforms).

Because pkg was implicitly installed when VM_EXTRA_PACKAGES was non-empty,
add it to VM_EXTRA_PACKAGES in azure.conf and openstack.conf to maintain
the current behaviour.

By default repo-FreeBSD.sqlite is copied into the image, (a) to match
previous behaviour, where the file would be downloaded by the chrooted
pkg invocation; and (b) because it may be useful for testing purposes,
e.g., to see why a package didn't get installed.  Because this file is
large (46 MB) and not likely to be useful in -RELEASE images which are
being launched into Clouds several months later, it can be disabled by

As far as I know this commit does not change the disk images produced in
any filesystem-visible way.

FreeBSD — head/lib/libc/gen tls.c isnan.c, head/lib/libc/include errlst.h

Use canonical __PIC__ flag

It is automatically set when -fPIC is passed to the compiler.

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

FreeBSD — projects/release-vmimage/release/tools vmimage.subr

Add NOSWAP option which can be set by a vmimage.conf file to specify that
no swap space should be created in the image.  This will be used by EC2
builds, since FreeBSD/EC2 allocates swap space on "ephemeral" disks which
are physically attached to the Xen host node.

FreeBSD — head/sbin/fsck fsck.c

Recommit r274750.
Delta File
+25 -29 head/sbin/fsck/fsck.c
+25 -29 1 file

FreeBSD — projects/routing/sys/net if_faith.c

Finish sync: remove if_faith.c
Delta File
+0 -342 projects/routing/sys/net/if_faith.c
+0 -342 1 file

FreeBSD — projects/routing Makefile.inc1 UPDATING, projects/routing/bin/sh sh.1

Sync to HEAD at r274766

FreeBSD — stable/10/share/man/man4 acpi.4

MFC r274532: Remove mostly obsolete hint to disable LAPIC timers.

It is partially covered by new code and partially by new CPUs.

PR:                195016
Submitted by:        tobias.rehbein at web.de
Delta File
+4 -12 stable/10/share/man/man4/acpi.4
+4 -12 1 file

FreeBSD — head/sys/dev/hwpmc hwpmc_mod.c

Clamp too-large hwpmc callchaindepth to the maximum

If the depth requested by the user is too large, it's better to provide
the maximum than the smaller default.

Sponsored by:        The FreeBSD Foundation
Delta File
+3 -2 head/sys/dev/hwpmc/hwpmc_mod.c
+3 -2 1 file

FreeBSD — projects/sendfile/sbin/fsck fsck.c, projects/sendfile/sys/cam/scsi scsi_low.c scsi_low.h

Merge head  r258543 through r274762.

FreeBSD — projects/bmake/share/mk dirdeps.mk meta.stage.mk

Use latest version

FreeBSD — projects/routing/sys/contrib/ipfilter/netinet ip_fil_freebsd.c, projects/routing/sys/net rt_nhops.c rt_nhops.h

Simplify API: use new NHOP_LOOKUP_AIFP flag to select what ifp
we need to return.
Rename fib[64]_lookup_nh_basic to fib[64]_lookup_nh, add flags
fields for all relevant functions.

FreeBSD — projects/sendfile/lib/libc/posix1e acl_size.c, projects/sendfile/libexec/fingerd fingerd.8

Merge head r258543 through r274754.

FreeBSD — head/sbin/fsck fsck.c

Back our r274750 until discussions on proper fix are over.
Delta File
+29 -25 head/sbin/fsck/fsck.c
+29 -25 1 file

FreeBSD — head/sys/cam/scsi scsi_low.c scsi_low.h, head/sys/dev/ct ct_machdep.h ct_isa.c

Lock the scsi_low code and the drivers which use it along with other
related cleanups:
- Require each driver to initalize a mutex in the scsi_low_softc that
  is shared with the scsi_low code.  This mutex is used for CAM SIMs,
  timers, and interrupt handlers.
- Replace the osdep function switch with direct calls to the relevant
  CAM functions and direct manipulation of timers via callout(9).
- Collapse the CAM-specific scsi_low_osdep_interface substructure
  directly into scsi_low_softc.
- Use bus_*() instead of bus_space_*().
- Return BUS_PROBE_DEFAULT from probe routines instead of 0.
- No need to zero softcs.
- Pass 0ul and ~0ul instead of 0 and ~0 to bus_alloc_resource().
- Spell "dettach" as "detach".
- Remove unused 'dvname' variables.
- De-spl().

Tested by:        no one

FreeBSD — head/sys/i386/isa spic.c

Lock spic(4) and mark it MPSAFE:
- Add a per-softc mutex as a driver lock.
- Use callout(9) instead of timeout(9).
- Set softc pointer in si_drv1 of cdev instead of looking softc
  up via devclass in cdev methods.

Tested by:        no one
Delta File
+39 -31 head/sys/i386/isa/spic.c
+39 -31 1 file

FreeBSD — head/sys/dev/wl if_wl.c if_wl.h

Various fixes for wl(4):
- Don't recurse driver mutex.
- Don't hold driver mutex across fubyte/subyte.
- Replace fubyte/subyte loops with copyin/copyout calls.
- Use relatively sane locking in wl_ioctl().
- Use bus space accessors instead of in*()/out*().
- Use callout(9) instead of timeout(9).
- Stop watchdog timer in detach and don't hold mutex across
- Use device_printf() and if_printf().
- De-spl().

Tested by:        no one
Delta File
+394 -418 head/sys/dev/wl/if_wl.c
+26 -14 head/sys/dev/wl/if_wl.h
+420 -432 2 files

FreeBSD — stable/10/usr.bin/grep/regex tre-fastmatch.c

bsdgrep: Work-around for segmentation fault.

Fix by David Carlier.

MFC of r272127
Obtained from:        HardenedBSD
PR:                167921

FreeBSD — head/sys/cam/scsi scsi_xpt.c

Remove residual xpt_release_device() call left after r272406 cleanup.

Excessive release here could trigger use-after-free condition and kernel
panic on LUN 0 disconnect.

MFC after:        1 week
Delta File
+1 -17 head/sys/cam/scsi/scsi_xpt.c
+1 -17 1 file

FreeBSD — stable/10/sys/netinet6 ip6_ipsec.c, stable/10/sys/netipsec ipsec_input.c ipsec_output.c

MFC r274434:
  Fix ips_out_nosa errors accounting.

MFC r274454:
  ipsec6_process_packet is called before ip6_output fixes ip6_plen.
  Update ip6_plen before bpf processing to be able see correct value.

MFC r274455:
  We don't return sp pointer, thus NULL assignment isn't needed.
  And reference to sp will be freed at the end.

MFC r274465:
  Remove redundant ip6_plen initialization.

MFC r274466:
  Strip IP header only when we act in tunnel mode.

MFC r274467:
  Count statistics for the specific address family.

Sponsored by:        Yandex LLC

FreeBSD — projects/sendfile/sys/sys buf.h, projects/sendfile/sys/vm vnode_pager.c

o Since pager bufs are never put on freelist, share the space in
  the structure in union.
o Add iodone callback pointer to the b_pager.
o In vnode_pager use new b_pager.pg_iodone to store iodone
  pointer, eliminating the getpages_data structure and need to
  allocate it.

Suggested by:        kib
Sponsored by:        Netflix
Sponsored by:        Nginx, Inc.

FreeBSD — head/sys/geom/part g_part_bsd.c

Actually, that was a bad idea. Go back to MAXPARTITIONS.

Submitted by: bruce
Delta File
+1 -1 head/sys/geom/part/g_part_bsd.c
+1 -1 1 file

FreeBSD — head/sys/mips/include cache_mipsNN.h cpuregs.h, head/sys/mips/mips cache_mipsNN.c cache.c

Add L2-cache writeback/flush operations. Supported 32,128-byte line-size,
else ignored. Cavium Networks also ignored as it has non-standard config

Obtained from:        NetBSD
Sponsored by:        DARPA, AFRL

FreeBSD — head/sys/dev/fdt fdt_common.c

The ranges parent bus address may just be a tag to the entry in the parent
node. Take this in to account by searching until we find the range for the
root node.

Differential Revision:        https://reviews.freebsd.org/D1160
Reviewed by:        ian
Obtained from:        ABT Systems Ltd
Sponsored by:        The FreeBSD Foundation
Delta File
+87 -4 head/sys/dev/fdt/fdt_common.c
+87 -4 1 file

FreeBSD — head/sbin/fsck fsck.c

Use geom attribute "PART::type" to determine partition type and choose
relevant fsck_xxx utility.

MFC after:        1 week
Delta File
+25 -29 head/sbin/fsck/fsck.c
+25 -29 1 file

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

Spell out "Windows" - no need to censor it in a man page
Delta File
+1 -1 head/share/man/man4/splash.4
+1 -1 1 file

FreeBSD — stable/10/sys/kern kern_umtx.c

MFC r274478:
Fix assertion, &uc->uc_busy is never zero, the intent is to test the
uc_busy value, and not its address.
Delta File
+1 -2 stable/10/sys/kern/kern_umtx.c
+1 -2 1 file

FreeBSD — stable/10/sys/kern kern_lock.c

MFC r274474:
Do not try to dereference thread pointer when the value is not a pointer.
Delta File
+8 -3 stable/10/sys/kern/kern_lock.c
+8 -3 1 file