Displaying 1 50 of 36,989 commits (0.009s)

DragonFlyBSD — sys/kern md5c.c

buildkernel - Fix build issue w/libmd changes

* Fix a build issue.
Delta File
+6 -6 sys/kern/md5c.c
+6 -6 1 file

DragonFlyBSD — lib/libcrypt local.h

build - remove whitespace

* Remove whitespace.
Delta File
+0 -1 lib/libcrypt/local.h
+0 -1 1 file

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

build - use libressl md5.h for kernel

* libressl's md5.h needs a minor mod for us to be able to use it
  in the kernel build.

DragonFlyBSD — sys/conf kern.fwd.mk

buildkernel - Fix -j race

* Fix -j race with forwarded header files.  Multiple threads will try to
  create the same forwarded header file, causing users of the file to
  sometimes see a partially written file.
Delta File
+4 -2 sys/conf/kern.fwd.mk
+4 -2 1 file

DragonFlyBSD — . Makefile.ssh.common Makefile.inc1, bin/csh Makefile

build - Rewire secure, remove conflicts from libmd, libcrypt

* Remove /usr/src/secure, folding all of its subsystems into
  /usr/src.  There's no point having a /usr/src/secure any more,
  the system won't run without the secure stuff, the idea that some foreign
  actor could segregate it in order to legally download code without crypto
  is absurd on the modern internet, and the U.S. government stopped caring
  decades ago.

* Remove conflicts from libmd and libcrypt.  Essentially this removes
  the SHA*_*() and MD5_*() APIs from libmd because these APIs already
  exist in lib[re]ssl.

  The older SHA*() and MD5*() APIs are partially retained for legacy base
  code, but will be removed in a later stage (moved to direct-linking the
  needed support source).

  Conflicting routines in libcrypt have been renamed and internalized to
  be libcrypt-only.

* Major rewiring of the Makefile's to support the changes.
Delta File
+0 -539 lib/libmd/rmd160c.c
+0 -500 lib/libmd/sha512c.c
+0 -480 lib/libmd/sha1c.c
+0 -446 lib/libmd/sha0c.c
+0 -300 lib/libmd/sha256c.c
+0 -142 lib/libmd/ripemd.3
+856 -848 68 files not shown
+856 -3,255 74 files

DragonFlyBSD — sys/dev/netif/iwm if_iwm_sta.c if_iwm_sta.h

if_iwm - Adjust if_iwm_sta.h prototypes, don't pass iwm_node to rm_sta().

* Since a RUN -> INIT/SCAN transition seems to immediately destroy the
  ieee80211_node for the AP, we can't read the in_assoc value from there.
  Instead just directly pass that information via a boolean_t argument.

* Adds iwm_mvm_rm_sta_id() function, which just unconditionally removes
  the station from the firmware.

* The iwm_mvm_rm_sta() function shouldn't actually remove the station from
  firmware when we are still associated (i.e. during a RUN -> INIT/SCAN

* So when disassociating we will first call iwm_mvm_rm_sta() to drain the
  queues/fifos. Later during disassociation we will then use
  iwm_mvm_rm_sta_id() to actually remove the station.

Inspired-By: Linux iwlwifi

DragonFlyBSD — sys/dev/netif/iwm if_iwm_power.c if_iwm.c

if_iwm - Make powersaving more similar to Linux iwlwifi behaviour.

* Add a per-vap ps_disabled flag, and use it for a workaround which fixes
  an association issue when powersaving is enabled.

* Compute flag that should correpsond to the mvmif->bss_conf.ps flag in
  Linux's iwlwifi (e.g. this disallows powersaving when not associated

Inspired-By: Linux iwlwifi

DragonFlyBSD — sys/conf files, sys/dev/drm drm_dp_helper.c linux_i2c.c

drm: Implement and use the Linux i2c API

* This is mainly to the benefit of the drm/i915 driver

* Sync key portions of code with Linux 4.4

* Key drm functions using the DragonFly-specific iic(4) API
  have been copied and renamed with an _iic suffix

* The drm/radeon driver no longer being actively developed, the
  intent is to keep it functional with a frozen API

Thanks to Johannes Hofmann for figuring out we could live with
a dummy default bit_xfer() implementation

DragonFlyBSD — sys/dev/netif/iwm if_iwm_power.c

if_iwm - Clean up if_iwm_power.c a bit. Fix iwm_power_scheme debug print.
Delta File
+3 -4 sys/dev/netif/iwm/if_iwm_power.c
+3 -4 1 file

DragonFlyBSD — sys/dev/drm drm_drv.c drm_fops.c, sys/dev/drm/i915 i915_dma.c i915_gem_gtt.c

drm: Implement and use Linux struct device

DragonFlyBSD — sys/dev/drm/include/linux i2c.h, sys/kern subr_bus.c

kernel: Rename the struct behind device_t to bsd_device

Thus making it not clash with the Linux struct device anymore

Inspired-by: proposed FreeBSD changes

DragonFlyBSD — sys/bus/isa/x86_64 isa_device.h, sys/bus/pci pcivar.h

kernel: Replace struct device* by device_t

We don't want to directly mention struct device anywhere.

DragonFlyBSD — sys/netinet ip_carp.c ip_carp.h

carp: Add net.inet.carp.setroute to disable routes changes.

It can be useful as described in the related DragonFly-bug.

DragonFly-bug: http://bugs.dragonflybsd.org/issues/2960
Submitted-by: Francis GUDIN
Delta File
+15 -7 sys/netinet/ip_carp.c
+3 -1 sys/netinet/ip_carp.h
+18 -8 2 files

DragonFlyBSD — sys/vfs/hammer hammer_io.c hammer.h


enum hammer_io_type has existed since 2007, but the name of each
element HAMMER_STRUCTURE_XXX doesn't clearly show the purpose of
this enum. It should be HAMMER_IOTYPE_XXX.

This isn't for ondisk structures, so it doesn't affect userspace.

DragonFlyBSD — sys/vfs/hammer hammer_io.c hammer_ondisk.c

sys/vfs/hammer: Add hammer_zone_to_iotype()/hammer_io_to_iostring()

hammer_io_read() uses iotype string only for debugging purpose.
It has nothing to do with the code logic, so separate it from

DragonFlyBSD — sys/vfs/hammer hammer_io.c hammer_ondisk.c

sys/vfs/hammer: Fix zone/iotype/iostring conversion

This isn't explcitly mentioned in documentations/comments/etc,
but HAMMER_STRUCTURE_META_BUFFER is mapped to zone-{2,4,8,9}.
Avoid using default: case when we know that.

hammer_io_read() needs a case for zone-2 with "buffer" string.
This avoids using a wrong message "meta?" for zone-2.

DragonFlyBSD — sys/dev/netif/iwm if_iwm_power.c if_iwm.c

if_iwm - Switch arguments from iwm_node* to iwm_vap* in if_iwm_power.c.

* Power management handling is per-vap, not per-node, so we should pass
  the iwm_vap in these arguments.

DragonFlyBSD — sys/ddb db_run.c db_command.c

kernel/ddb: Fix type mismatch in different objects.

Found while playing with LTO.

While there, use true/false types from <sys/types.h>.
Delta File
+5 -5 sys/ddb/db_run.c
+1 -1 sys/ddb/db_command.c
+6 -6 2 files

DragonFlyBSD — usr.sbin/config main.c

config(8): Comment out some linux emulation remains.

Linux emulation is already removed, no point to have broken symlink
in buildkernel obj directory (X86_64_GENERIC/arch_linux).
Delta File
+7 -2 usr.sbin/config/main.c
+7 -2 1 file

DragonFlyBSD — . Makefile_upgrade.inc, include stdbool.h

Remove <sys/stdbool.h>. The kernel has bool etc. in <sys/types.h> now.

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - Already call iwm_mvm_power_update_mac() during SCAN<->AUTH paths.

* Otherwise we would never update powersaving settings until we complete
  an association, after the first authentication attempt.

* This corresponds to what Linux iwlwifi seems to do.
Delta File
+12 -6 sys/dev/netif/iwm/if_iwm.c
+12 -6 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - Refuse connection to APs with beacon interval < 16.

Taken-From: Linux iwlwifi (git 48bc13072109ea58465542aa1ee31b4e1065468a)
Delta File
+15 -0 sys/dev/netif/iwm/if_iwm.c
+15 -0 1 file

DragonFlyBSD — sbin/routed defs.h if.c, sbin/routed/rtquery rtquery.c

routed(8): Remove SGI specific code.
Delta File
+1 -27 sbin/routed/defs.h
+1 -19 sbin/routed/if.c
+1 -10 sbin/routed/trace.c
+1 -10 sbin/routed/main.c
+1 -7 sbin/routed/rtquery/rtquery.c
+3 -3 sbin/routed/parms.c
+5 -5 5 files not shown
+13 -81 11 files

DragonFlyBSD — usr.sbin/mtree mtree.c

mtree(8): Use getcwd().
Delta File
+1 -2 usr.sbin/mtree/mtree.c
+1 -2 1 file

DragonFlyBSD — sys/kern syscalls.master init_sysent.c, sys/sys sysproto.h syscall.h

kernel: Mark some syscalls obsolete which are really libc functions.

DragonFlyBSD — usr.bin/gzip znew

znew(1): Convert to use sh.

No Korn shell in base system.
Delta File
+2 -3 usr.bin/gzip/znew
+2 -3 1 file

DragonFlyBSD — lib/libmd md5c.c, sys/kern md5c.c

Unbreak buildkernel.

Follow up to 21137e2f155845448ff3979f5b05b12b642c40a2.
 * Update <sys/md5.h> to match sys/kern/md5c.c and lib/libmd/md5c.c.
 * Limit exposure of MD5 functions in kernel, only 3 are needed.

TBI: what about casts (void *) for *Init() in sys/opencrypto/xform.c ?
Delta File
+7 -3 sys/kern/md5c.c
+6 -4 sys/sys/md5.h
+1 -2 lib/libmd/md5c.c
+14 -9 3 files

DragonFlyBSD — lib/libcrypt Makefile, lib/libmd sha512c.c sha.h

libcrypt - Internalize additional symbols

* Internalize additional symbols which conflict with libssl or libressl.
  This works around the apache https issue we had by avoiding a buggy
  error path that will be fixed upstream.  This also fixes a bogus fetch
  failures we were having while testing https.

* Make the *_Init() API for MD5, SHA*, etc in libmd compatible with libssl
  and libressl.

* Note that libmd is inheritently incompatible with lib[re]ssl, so look
  for an upcoming fix for that (maybe we can remove it entirely).
Delta File
+6 -4 lib/libmd/sha512c.c
+4 -3 lib/libcrypt/Makefile
+2 -2 lib/libmd/sha.h
+2 -2 lib/libmd/sha512.h
+2 -1 lib/libmd/md4c.c
+2 -1 lib/libmd/md5c.c
+15 -10 10 files not shown
+33 -23 16 files

DragonFlyBSD — sys/conf files, sys/dev/netif/iwm if_iwm_sta.c if_iwm_sta.h

if_iwm - Factor out firmware station handling into if_iwm_sta.c.

* This adds iwm_mvm_rm_sta(), which will be used to tear down firmware
  state for better/cleaner iwm_newstate() handling.

* Makes iwm_enable_txq() and iwm_mvm_flush_tx_path() non-static, add
  the declarations to if_iwm_util.h for now.

Taken-From: Linux iwlwifi

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - No need for iwm_assoc() in AUTH->ASSOC transition.

* Hence no need to keep stuff in separate iwm_assoc() function, just
  inline the stuff into iwm_newstate().
Delta File
+15 -39 sys/dev/netif/iwm/if_iwm.c
+15 -39 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c if_iwm_mac_ctxt.c

if_iwm - Properly implement iwm_wme_update callback function.

* Inspired by iwn(4) and Linux iwlwifi.

* Read wme parameters into a buffer within struct iwm_vap in

* If we aren't associated yet, the new settings will soon be sent
  by iwm_mvm_mac_ctxt_changed() during association.

* If we are already associated, explicitly call iwm_mvm_mac_ctxt_changed()
  from iwm_wme_update() to send the new settings to the firmware.

* Change iwm_mvm_ac_to_tx_fifo mapping, to fit the freebsd net80211
  WME stream class numbering, instead of Linux's enum ieee80211_ac_numbers.

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - Deduplicate code in iwm_auth() from an if condition.
Delta File
+18 -36 sys/dev/netif/iwm/if_iwm.c
+18 -36 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwm.c

if_iwm - Handle AUTH->SCAN/INIT and ASSOC->SCAN/INIT better

* Tear down the relevant firmware state (i.e. the station, the vif binding)
  in these transition cases.

* Before this case would leave the firmware state lying around, resulting
  in errors and firmware panics in the subsequent association attempts.
Delta File
+33 -0 sys/dev/netif/iwm/if_iwm.c
+33 -0 1 file

DragonFlyBSD — lib/libc/gen arc4random.3

kernel - Minor documentation adjustment for arc4random

* Minor documentation adjustment for arc4random
Delta File
+1 -1 lib/libc/gen/arc4random.3
+1 -1 1 file

DragonFlyBSD — sys/vfs/msdosfs msdosfs_conv.c

kernel - Fix directory scanning bug in msdosfs

* Fix a directory scanning bug in msdosfs where an incorrect d_namlen
  was being returned.

Reported-by: htse, t_dfbsd, tuxillo
Delta File
+2 -6 sys/vfs/msdosfs/msdosfs_conv.c
+2 -6 1 file

DragonFlyBSD — sys/vfs/msdosfs msdosfs_conv.c

kernel - Fix directory scanning bug in msdosfs

* Fix a directory scanning bug in msdosfs where an incorrect d_namlen
  was being returned.

Reported-by: htse, t_dfbsd, tuxillo
Delta File
+2 -6 sys/vfs/msdosfs/msdosfs_conv.c
+2 -6 1 file

DragonFlyBSD — usr.bin/chflags chflags-compat.h Makefile

bootstrap: Add workaround for chflagsat() from 4.0.

Avoid failing syscalls during installworld while updating from DragonFly 4.0.
Add special private version of chflagsat() to aid while performing migration.
Add triple protection for this private implementation variant.
Hopefully chflags-compat.h would never need any newer additions.

Since there are other issues that require both installkernel and installworld,
standard installkernel, reboot and installworld is not possible while updating
to recent DragonFly releases. chflags(1) must be handled with care.

Tested-on: kern.osreldate == 400000 updating straight to master (4.7).
  installworld step fail only on single non fatal chflags: invalid flag: xlink
  For make upgrade to work sendmail must be removed from /etc/mail/mailer.conf
  reboot(8) must be used cause shutdown is only functional only on new kernel.

Submitted-by: dillon@

DragonFlyBSD — gnu/usr.bin/grep Makefile.inc, share/mk sys.mk

bootstrap: Fix old boostrapping issue once and for all part 2.

In f08f1baa605ef8f4a93a42e1d790a9fcfb44df35 I forgot to git add -p the line to
export WORLD_VERSION variable to make it constant through buildworld process.
This time add it close so it would not get lost again, fail window was 1 month.
make buildworld WORLD_VERSION=400300 still have worked.

While there, add bootstrap workaround to bootstrap from 4.0-RELEASE too.
chflags(1) issue with chflagsat() is a bit more subtle, will be pushed later.

Tested-on: dfly-x86_64-4.0.6_REL.img updating straight to 4.7-DEVELOPMENT.
  Not bad considering DragonFly 4.0 had gcc44 + gcc47 and was still able to
  bootstrap the DragonFly 4.7 having gcc v5.0 as main compiler.

Reported-by: dillon@

DragonFlyBSD — sys/boot/dloader config.c Makefile

sys/boot: Remove empty source.

DragonFlyBSD — sys/sys stdint.h

<wchar.h>: Add support for compilers -fshort-wchar.

Both clang and gcc need to be able to override wchar_t type.
Delta File
+5 -1 sys/sys/stdint.h
+5 -1 1 file

DragonFlyBSD — share/mk bsd.sys.mk

bsd.sys.mk: Make buildworld permissive for -Os and -Og.

Both -Os and -Og reduce amount of how much code can be inlined.
Since all real issues should be already addressed during standard -O and -O2
buildworlds, make -Winline and -Wmaybe-uninitialized as non fatal diagnostics.

Having -Os and -Og working out of the box will also help to crosscheck if
given WARNS level is not too high and just happened to barelly pass at -O.
Delta File
+11 -0 share/mk/bsd.sys.mk
+11 -0 1 file

DragonFlyBSD — gnu/lib/gcc47 Makefile.inc, gnu/usr.bin/cc47 Makefile.inc

gcc47: Allow gcc47 to compile itself at WORLD_CCOPTLEVEL=g.

Override supplied -Og when gcc47 is bootstrapping itself.
-Og is very useful in some heavy debugging seasions so it is better to give
developers an easy workaround than fail for a single part of buildworld.

Only intended for WORLD_CCOPTLEVEL=g compilations to not require to explictly
disable the alternative compiler (NO_ALTCOMPILER=true).
Note that -Og is mostly -O1 with few optimizations disabled.

DragonFlyBSD — . Makefile_upgrade.inc, include Makefile

Remove dead /usr/include/compat symlink, too.

Followup commit to 6737a4ffb92.
Delta File
+1 -0 Makefile_upgrade.inc
+0 -1 include/Makefile
+1 -1 2 files

DragonFlyBSD — . UPDATING, sys/bus/pci pci_user.c

kernel: Remove the COMPAT_43 kernel option along with all related code.

It is commented out in our default kernel config files for almost five
years now, since 9466f37df5258f3bc3d99ae43627a71c1c085e7d.

Approved-by:   dillon
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2946>

DragonFlyBSD — share/misc bsd-family-tree

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

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

October 13, 2016 snapshot from http://pciids.sourceforge.net/
Delta File
+104 -25 share/misc/pci_vendors
+104 -25 1 file

DragonFlyBSD — sys/cpu/x86_64/include stdint.h, sys/dev/drm/include/linux types.h ww_mutex.h

<sys/types.h>: Add definitions of bool, true and false for the kernel.

Remove some local definitions in drivers and also switch boolean_t
over to _Bool (if available).

This is similar to how FreeBSD does it.

DragonFlyBSD — usr.sbin/tcpdchk Makefile

tcpdchk(8): Honor global CFLAGS.

Forgot to include in 8d378610e3b5687c707bc8aad4e11a3a96bea2fc for tcpdmatch(8).
Delta File
+1 -1 usr.sbin/tcpdchk/Makefile
+1 -1 1 file

DragonFlyBSD — sys/net route.c

route: addroute may change rt->rt_ifa; keep the local copy in sync.

Reported-by: pecan
Delta File
+2 -0 sys/net/route.c
+2 -0 1 file

DragonFlyBSD — gnu/usr.bin/binutils225/block2 Makefile.block2, gnu/usr.bin/binutils225/block2/gas Makefile

binutils225: Honor global CFLAGS.

Make CFLAGS partially overridable so to preserve global CFLAGS.
block2/ld has its own config.h but still requires bfd.h.
Ensure that private config.h takes precedence over general bulibs one.

While testing noticed that block2/gas ignores its config.h, so fix that too.
block2/libgold is fine, since it uses block3/Makefile.gld.