Displaying 1 50 of 40,774 commits (0.009s)

DragonFlyBSD — etc/rc.d ip6addrctl

rc.d/ip6addrctl: Fix REQUIRE and afexists()

* DragonFly doesn't has the 'FILESYSTEMS' rc target.

* I forgot to implement the 'afexists()' function when import this.
  However, FreeBSD's 'afexists()' relies 'kern.features.<feature>'
  sysctls to determine whether the address family is supported, but
  DragonFly doesn't allow this.  So come up with a little 'has_inet6()'
  function for this rc script use only.

Reported-by: Thomas Nikolajsen <thomas.nikolajsen at mail.dk>
Delta File
+12 -5 etc/rc.d/ip6addrctl
+12 -5 1 file

DragonFlyBSD — share/examples/kld Makefile, share/examples/kld/syscall/module syscall.c

examples: Fix build

- While here hook 'firmware' to the main Makefile

DragonFlyBSD — sys/dev/misc/syscons syscons.c

syscons - Increase static buffer size for ttyv0.

* This allows the console on the EFI framebuffer to fill the whole screen
  on "odd" resolutions. This only takes up slightly less than 12KB extra
  space in the kernel binary size.
Delta File
+3 -3 sys/dev/misc/syscons/syscons.c
+3 -3 1 file

DragonFlyBSD — sys/dev/drm/include/drm/ttm ttm_bo_api.h, sys/dev/drm/ttm ttm_bo_util.c ttm_bo.c

drm/ttm: Remove sf_buf usage

* Use Linux memory allocation/mapping functions instead.

* Opportunistically sync some code with Linux

DragonFlyBSD — sys/dev/drm/include/linux gfp.h

drm/linux: Add a few GFP_XXX values
Delta File
+3 -0 sys/dev/drm/include/linux/gfp.h
+3 -0 1 file

DragonFlyBSD — contrib/dhcpcd README.DELETED README.DRAGONFLY

Merge branch 'vendor/DHCPCD'

Import dhcpcd 7.0.8
∈ Aaron LI - e2c425e0 - 2018-10-19 06:32:39
dhcpcd: Add READMEs

DragonFlyBSD — etc network.subr

network.subr: Support IPv6 in dhcpif()

Extend the 'dhcpif()' to support checking the interface needs DHCP for
IPv4-only, IPv6-only or either.

The 'dhcpcd' rc script in the following commit will use this new feature
to determine whether dhcpcd should do DHCPv4 or DHCPv6 or both.
Delta File
+31 -10 etc/network.subr
+31 -10 1 file

DragonFlyBSD — sys/netinet tcp_sack.c

kernel - Fix sack NULL pointer dereference

* sack_block_lookup() can get confused when the passed-in sequence
  number appears to be less than sblk_start and greater than sblk_end.
  This situation can occur when the signed integer delta test has an
  overflow due to (sblk_end - seq) overflowing the sign bit verses
  (sblk_start - seq).

  The result is that sack_block_lookup() can crash on a NULL pointer
  indirection.

* Check for the case, complain, and try to allow it.  Though I suspect
  if the case occurs at all SACK will wind up with a broken list anyway.

* I don't think this case can occur under normal conditions since TCP
  buffers do not grow to 2GB+ in size, so the crash we got was triggered
  by either an accidently malformed packet or an intentional one.
Delta File
+42 -0 sys/netinet/tcp_sack.c
+42 -0 1 file

DragonFlyBSD — sys/vfs/procfs procfs_subr.c

kernel - Fix SMP race in procfs

* procfs was not locking its pid hash table.  Implement a per-slot
  spinlock.  The hash is populated only for pid directories that are
  pushed into (e.g. ls /proc/<pid> vs ls /proc).

* Fixes a fairly rare crash that can only occur when procfs is used
  heavily.
Delta File
+62 -32 sys/vfs/procfs/procfs_subr.c
+62 -32 1 file

DragonFlyBSD — sys/dev/drm/ttm ttm_execbuf_util.c

drm/ttm: Sync ttm_execbuf_util.c with Linux

DragonFlyBSD — sys/dev/drm/ttm ttm_lock.c

drm/ttm: Sync ttm_lock.c with Linux
Delta File
+58 -98 sys/dev/drm/ttm/ttm_lock.c
+58 -98 1 file

DragonFlyBSD — share/terminfo Makefile.entries

terminfo: Build and install tmux and tmux-256color
Delta File
+2 -0 share/terminfo/Makefile.entries
+2 -0 1 file

DragonFlyBSD — sys/dev/drm/include/linux sched.h

drm/linux: Add send_sig()
Delta File
+7 -0 sys/dev/drm/include/linux/sched.h
+7 -0 1 file

DragonFlyBSD — share/man/man5 rc.conf.5

rc.conf.5: Document ip6addrctl_{policy,verbose} explicitly

Suggested-by: swildner
Delta File
+19 -17 share/man/man5/rc.conf.5
+19 -17 1 file

DragonFlyBSD — sys/dev/drm/include/drm/ttm ttm_bo_driver.h, sys/dev/drm/ttm ttm_bo_util.c ttm_bo_vm.c

drm/ttm: Rework ttm_io_prot()

Change it to be as close to the Linux version as possible.

DragonFlyBSD — . Makefile_upgrade.inc, etc Makefile

mkinitrd(8): Integrate the default configurations

Integrate the default configurations in the tool itself, and thus remove
the config file (/etc/defaults/mkinitrd.conf).  This allows to build
RELEASE 5.2 on master, because the mkinitrd.conf has been removed and is
absent on a master system.

Reported-by: swildner

DragonFlyBSD — sys/kern init_main.c

kernel - Fix typo from b227f3f50d5dc0f when filling in kpmap header.
Delta File
+2 -2 sys/kern/init_main.c
+2 -2 1 file

DragonFlyBSD — sys/dev/drm/include/asm pgtable.h pgtable_types.h

drm/linux: fix pgprot_xxx functions

DragonFlyBSD — etc/rc.d Makefile

rc.d/Makefile: Break some long lines, sort dntpd.
Delta File
+7 -4 etc/rc.d/Makefile
+7 -4 1 file

DragonFlyBSD — crypto/libressl/include/openssl md5.h

crypto - Avoid including opensslconf.h when using openssl/md5.h in kernel.

DragonFlyBSD — sys/kern kern_shutdown.c

kernel - Make the wdog.h and gpio.h includes conditional in kern_shutdown.c.
Delta File
+4 -0 sys/kern/kern_shutdown.c
+4 -0 1 file

DragonFlyBSD — sys/dev/drm linux_vmalloc.c

drm/linux: Fix vmap()

Page protection information was not being used.
Delta File
+4 -0 sys/dev/drm/linux_vmalloc.c
+4 -0 1 file

DragonFlyBSD — etc rc.subr

rc.subr: Add list_vars() function

Taken-from: FreeBSD
Delta File
+13 -0 etc/rc.subr
+13 -0 1 file

DragonFlyBSD — etc/defaults rc.conf, etc/rc.d ip6addrctl Makefile

rc.d: Add ip6addrctl (enabled by default with policy AUTO)

Bring in the ip6addrctl rc script from FreeBSD.  It is enabled by
default with policy "AUTO", so the IPv4/IP6 preference is configured on
startup.  The rc variable "ip6addrctl_policy" is used to adjust the
preference (AUTO, ipv6_prefer, ipv6_prefer).

See the rc.conf(5) man page for more details.

DragonFlyBSD — usr.sbin Makefile, usr.sbin/ip6addrctl ip6addrctl.c ip6addrctl.8

Bring in ip6addrctl(8) from FreeBSD

The ip6addrctl(8) manages the policy table of source and destination
address selection for ougoing IPv4 and IPv6 packets.

For example, this utility can be used to configure that IPv4 is
preferred on a dual-stack machine, which by default prefers IPv6.

DragonFlyBSD — sys/net if.c

net/if: Call if_ioctl() if the protocol didn't handle the ioctl

This allows for a non-interface socket (like AF_LOCAL which ifconfig(8)
now uses since commit d4e856128472e2e79172aebf65f19f527ac0010f) to use
a broader class of interface ioctls.

This fixes the regression in ifconfig(8) that is introduced by the above
mentioned commit, which changed ifconfig(8) to use AF_LOCAL socket by
default and thus caused some ioctls failures.  For example:

dfly# ifconfig tap0 create
dfly# ifconfig tap0 up
dfly# ifconfig bridge0 create
dfly# ifconfig bridge0 addm tap0

[before]
dfly# ifconfig bridge0
bridge0: flags=8002<BROADCAST,MULTICAST> mtu 1500
        ether be:48:6d:6d:a6:1f
        groups: bridge

[after]
dfly# ifconfig bridge0
bridge0: flags=8002<BROADCAST,MULTICAST> mtu 1500
        ether be:48:6d:6d:a6:1f

    [12 lines not shown]
Delta File
+21 -1 sys/net/if.c
+21 -1 1 file

DragonFlyBSD — lib/libstand nfs.c

boot - Slow down the nfs twiddle

* Slow down the twiddle rate when reading via nfs, it unnecessarily
  slows down the boot, by a lot.
Delta File
+3 -1 lib/libstand/nfs.c
+3 -1 1 file

DragonFlyBSD — lib/libc/stdio mktemp.c

libc/mktemp: Pass flags to open()

The flags from the functions that call _gettemp() are never used.

They should be included in the call to open(), otherwise features like
O_CLOEXEC don't work.

aly:
(1) Checked FreeBSD and it behaves the same way as this fix.
(2) Improve the style a bit.
Delta File
+3 -2 lib/libc/stdio/mktemp.c
+3 -2 1 file

DragonFlyBSD — sys/kern vfs_subr.c

kernel - Fix build when neither INET nor INET6 options are set.
Delta File
+2 -0 sys/kern/vfs_subr.c
+2 -0 1 file

DragonFlyBSD — sys/dev/drm/ttm ttm_bo.c

drm/ttm: Remove ttm_bo_unreserve_core()

* This function was DragonFly-specific and apparently
  isn't even needed anymore

* Sync the changed code with Linux as of ecff665f5e3f1c6909353e00b9420e45ae23d995
  "drm/ttm: make ttm reservation calls behave like reservation calls"
Delta File
+13 -31 sys/dev/drm/ttm/ttm_bo.c
+13 -31 1 file

DragonFlyBSD — sys/dev/drm/include/linux rwlock.h spinlock.h

drm: Add linux/rwlock.h

DragonFlyBSD — sys/platform/vkernel64/platform console.c

vkernel - Fix tty panic

* Fix messed up gettoken/reltoken sequence for the vkernel,
  bug was introduced in recent tty work.

Reported-by: tuxillo

DragonFlyBSD — sbin/dmesg dmesg.c

dmesg(8): Allow seeing backslashes in dmesg output.

This caused confusion already in ACPICA bug reports with pathnames
containing backslashes.

Taken-from: NetBSD
Delta File
+1 -1 sbin/dmesg/dmesg.c
+1 -1 1 file

DragonFlyBSD — sbin/dmesg dmesg.c

dmesg(8): Allow seeing backslashes in dmesg output.

This caused confusion already in ACPICA bug reports with pathnames
containing backslashes.

Taken-from: NetBSD
Delta File
+1 -1 sbin/dmesg/dmesg.c
+1 -1 1 file

DragonFlyBSD — lib/libc/gen vis.c

libc/vis: Use thread-safe mbrtoc() and wcrtomb().

Taken-from: FreeBSD
Delta File
+9 -3 lib/libc/gen/vis.c
+9 -3 1 file

DragonFlyBSD — sys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/source/common dmtbdump3.c dmtbinfo3.c

Sync ACPICA with Intel's version 20181031.

* Fix an Operation Region regression, fixing accurate checking for
  region conflicts.

* Add support for 2-byte extended opcodes in the code that continues
  parsing during the table load phase.

* Eliminate a no longer used global variable.

For detailed list, please see sys/contrib/dev/acpica/changes.txt.

DragonFlyBSD — share/zoneinfo africa NEWS

Sync zoneinfo database with tzdata2018g from ftp://ftp.iana.org/tz/releases

* Morocco switched to permanent +01 on 2018-10-27.

* Change HDT to HWT/HPT for WWII-era abbreviations in Hawaii.

For a detailed list of changes, see share/zoneinfo/NEWS.

DragonFlyBSD — share/zoneinfo africa NEWS

Sync zoneinfo database with tzdata2018g from ftp://ftp.iana.org/tz/releases

* Morocco switched to permanent +01 on 2018-10-27.

* Change HDT to HWT/HPT for WWII-era abbreviations in Hawaii.

For a detailed list of changes, see share/zoneinfo/NEWS.

DragonFlyBSD — lib/libstand tftp.c

boot - Handle tftp block overflows

* Properly truncate the block number when comparing against the
  incoming packet.  TFTP only implements 16-bit block numbers.
  This allows the boot loader to access files larger than 32MB
  via TFTP.

* Twiddle every 256 reads instead of every 16.

* Note that TFTP is not really a suitable protocol for loading the
  kernel because the ELF loader seeks past the debug info which
  can be well over a hundred megabytes in order to get to the syms.
  NFS is preferred.
Delta File
+2 -2 lib/libstand/tftp.c
+2 -2 1 file

DragonFlyBSD — test/test README

Just note that the previous commit was to hammer2 only.

The tmpfs logic turned out to be correct after closer review.
Delta File
+0 -1 test/test/README
+0 -1 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_xops.c

kernel/{hammer2,tmpfs}: Fix ENOTDIR/EISDIR logic.

It caused confusion like this:

vm64# touch /usr/obj/t
vm64# rmdir /usr/obj/t
rmdir: /usr/obj/t: Is a directory
vm64#

Likewise unlink(2) on a directory also gives the wrong error
("Not a directory").

This also causes Ruby's unlink() file method to fail.

Reported-by: tuxillo
Delta File
+2 -2 sys/vfs/hammer2/hammer2_xops.c
+2 -2 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_xops.c

kernel/{hammer2,tmpfs}: Fix ENOTDIR/EISDIR logic.

It caused confusion like this:

vm64# touch /usr/obj/t
vm64# rmdir /usr/obj/t
rmdir: /usr/obj/t: Is a directory
vm64#

Likewise unlink(2) on a directory also gives the wrong error
("Not a directory").

This also causes Ruby's unlink() file method to fail.

Reported-by: tuxillo
Delta File
+2 -2 sys/vfs/hammer2/hammer2_xops.c
+2 -2 1 file

DragonFlyBSD — sys/vfs/tmpfs tmpfs_subr.c

tmpfs - Use atomic_fetchadd_long() to allocate inode numbers

* Since DFly inode numbers are 64 bits wide, tmpfs just increments a
  per-mount counter to allocate a new inode.

* We had some old code in tmpfs to allocate inode numbers which wrapped
  a tmpfs mount lock around the increment.  This is totally unnecessary.
  Use atomic_fetchadd_long() instead.

Reported-by: mjg
Delta File
+1 -3 sys/vfs/tmpfs/tmpfs_subr.c
+1 -3 1 file

DragonFlyBSD — sys/kern uipc_syscalls.c

kernel - Fix getsockname() on unnamed AF_LOCAL sockets

* Fix getsockname() on unnamed AF_LOCAL sockets.  The socket structure
  does not actually bother storing a sockaddr, so sa is returned NULL.
  In this situation, just dummy-up an AF_LOCAL sockaddr.

* Don't bother copyout()ing sa_len unless it has changed.

Reported-by: tuxillo
Delta File
+26 -7 sys/kern/uipc_syscalls.c
+26 -7 1 file

DragonFlyBSD — sys/kern uipc_syscalls.c

kernel - Fix getsockname() on unnamed AF_LOCAL sockets

* Fix getsockname() on unnamed AF_LOCAL sockets.  The socket structure
  does not actually bother storing a sockaddr, so sa is returned NULL.
  In this situation, just dummy-up an AF_LOCAL sockaddr.

* Don't bother copyout()ing sa_len unless it has changed.

Reported-by: tuxillo
Delta File
+26 -7 sys/kern/uipc_syscalls.c
+26 -7 1 file

DragonFlyBSD — sys/platform/pc64/x86_64 pmap.c

kernel - MFC pmap panic fix from master

* MFC the pd_pv test for certain race case retries in the pmap
  code.  pv_put() was being called unconditionally on a pd_pv
  pointer that could be NULL.

Reported-by: gjs278
Delta File
+4 -2 sys/platform/pc64/x86_64/pmap.c
+4 -2 1 file

DragonFlyBSD — share/misc bsd-family-tree

bsd-family-tree: Sync with FreeBSD (OpenBSD 6.4).
Delta File
+3 -2 share/misc/bsd-family-tree
+3 -2 1 file

DragonFlyBSD — sys/kern makesyscalls.sh, sys/sys sysproto.h

<sys/sysproto.h>: Add back one needed newline and regenerate header.
Delta File
+0 -5 sys/sys/sysproto.h
+1 -1 sys/kern/makesyscalls.sh
+1 -6 2 files

DragonFlyBSD — sys/kern makesyscalls.sh

<sys/sysproto.h>: Fix excessive newlines.
Delta File
+6 -6 sys/kern/makesyscalls.sh
+6 -6 1 file

DragonFlyBSD — sys/sys wait.h

<sys/wait.h>: Put the enum name under __BSD_VISIBLE.

POSIX only defines idtype_t. In <sys/procctl.h> i just left it because
that whole file isn't covered by the standard anyway.

While here, cleanup whitespace a little bit and clarify DragonFly or
FreeBSD a bit better in a comment.
Delta File
+15 -11 sys/sys/wait.h
+15 -11 1 file