Permalink
Commits on Feb 24, 2011
  1. acpi(4): Always compile the files dealing with ACPI_DEBUG into the mo…

    Sascha Wildner
    Sascha Wildner committed Feb 2, 2011
    …dule.
    
    Before this commit, one had to define ACPI_DEBUG as a make variable to
    enable debugging support in the module, such as in:
    
    $ make -DACPI_DEBUG buildkernel
    
    Specifying ACPI_DEBUG in the kernel config alone did not enable it, but
    our modules are supposed to honor kernel options. Also this was contrary
    to what the manual page says.
    
    So to make this work for ACPI_DEBUG too, we just put all the affected
    source files into SRCS and always compile them. #ifdef's in these
    source files will take care of enabling/disabling debugging support
    so a module compiled without ACPI_DEBUG defined in the kernel or on the
    command line will still not have support after this commit (I've checked
    with nm(1)).
    
    The only change for someone not using ACPI_DEBUG is a little bit of
    additional buildkernel time.
    
    FWIW, it is the same way in FreeBSD, too.
    
    Reported-by: Andrea Magliano <masterblaster@tiscali.it>
Commits on Feb 9, 2011
  1. acpi(4): Fix a bug in acpi_cpu_cstate.c (we have to write, and not to…

    Sascha Wildner
    Sascha Wildner committed Feb 9, 2011
    … read).
    
    Introduced with 10f9767. The commit message
    said "Sync ACPI with FreeBSD 7.2", even though FreeBSD 7.2 doesn't seem to
    have this code at all, so I'm not sure about what the idea behind that
    change was. I'm guessing it is a typo, since newer FreeBSDs call
    AcpiWriteBitRegister() here too.
    
    Reported-by: Andrea Magliano <masterblaster@tiscali.it>
  2. openssl: Fix CVE-2011-0014.

    Peter Avalos
    Peter Avalos committed Feb 9, 2011
Commits on Feb 7, 2011
  1. Sync zoneinfo database with tzdata2011b from elsie.nci.nih.gov

    Sascha Wildner
    Sascha Wildner committed Feb 7, 2011
    northamerica:   8.39 -> 8.40
    zone.tab:       8.38 -> 8.40
    
    * northamerica: Add America/North_Dakota/Beulah (Mercer County,
        North Dakota, moved from Mountain to Central time at the
        end of DST in 2010). Also, use the actual version number
        rather than "%W%".
    
    * zone.tab: Add America/North_Dakota/Beulah. Also, update
        Indonesian location names (with the old names retained in
        parentheses).
Commits on Feb 6, 2011
  1. Updating pkgsrc target to pull 2010Q4.

    Justin C. Sherrill
    Justin C. Sherrill committed Feb 6, 2011
Commits on Jan 30, 2011
  1. libc - Fix bogus pthread_getspecific() return value due to bug in nma…

    Matthew Dillon
    Matthew Dillon committed Jan 30, 2011
    …lloc
    
    * nmalloc was calling pthread_set_specific() prior to calling
      pthread_key_create(), causing it to use key 0 which might already
      have been allocated for other purposes.
    
    * Reorder initializations in _nmalloc_thr_init() to solve the problem.
    
    * This also solves certain application crashes (mail/milter-greylist).
    
    Reported-by: Francois Tigeot <ftigeot@wolfpond.org>
Commits on Jan 29, 2011
  1. Revert "devfs: Populate si_umajor, too."

    Sascha Wildner
    Sascha Wildner committed Jan 29, 2011
    This reverts commit 2c2ab04.
    
    It was causing the read/write remount of the root filesystem
    to fail upon booting. I'll investigate a better fix.
    
    Reported-by:   Rumko <rumcic@gmail.com>
    Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1973>
Commits on Jan 28, 2011
  1. fstat(1): Raise WARNS to 6 and fix all warnings.

    Sascha Wildner
    Sascha Wildner committed Jan 28, 2011
  2. fstat(1): Add devfs support.

    Sascha Wildner
    Sascha Wildner committed Jan 28, 2011
  3. devfs: Populate si_umajor, too.

    Sascha Wildner
    Sascha Wildner committed Jan 28, 2011
    Pointed-out-by: alexh
Commits on Jan 27, 2011
  1. installer: Add /usr/pkg/etc to sources.conf.

    Sascha Wildner
    Sascha Wildner committed Jan 27, 2011
    Previously, the installer did not copy this directory due to it being
    on a separate (read/write) mount point and cpdup not crossing mount
    point boundaries.
    
    This should also fix (for newly installed systems) the XML catalog
    problems various people were reporting.
    
    A better solution would be to make the installer's installation
    function to take this case into account.
    
    Reported-by: Pierre Abbat <phma@phma.optus.ru>
Commits on Jan 25, 2011
  1. kernel - Fix namecache memory exhaustion edge case

    Matthew Dillon authored and vsrinivas committed Nov 23, 2010
    * The namecache has traditionally relied on vnode limits to avoid
      blowing up its memory pool.  However, creating millions of hardlinks
      to the same vnode easily circumvents this assumption.
    
    * Enhance the negative cache hysteresis code with a section for the
      positive cache that does the same thing, preventing the namecache
      from growing greater than 2x maxvnodes.
    
      This situation will not occur under normal operation, it is strictly
      for correctness.  The kernel should never panic on normal filesystem
      operations even if those operations are unrealistic.
    
    * Tested w/HAMMER and a few million hardlinks to a single file.
    
    Reported-by: Venkatesh Srinivas <me@acm.jhu.edu>
  2. Sync zoneinfo database with tzdata2011a from elsie.nci.nih.gov

    Sascha Wildner
    Sascha Wildner committed Jan 25, 2011
    australasia:    8.20 -> 8.22
    northamerica:   8.34 -> 8.39
    Theory:         8.5  -> 8.6
    
    * australasia: Simplification and gratuitous optimization of
        South Australia rules.
    
    * northamerica: Changes to Hawaiian time history (from an article
        by Schmitt and Cox): abandoned local mean time in 1896 rather
        than 1900; used DST during World War II.
    
    * Theory: Add section on scope of the database.
Commits on Jan 23, 2011
  1. pthread.h: Fix prototypes.

    Peter Avalos Sascha Wildner
    Peter Avalos authored and Sascha Wildner committed Jan 8, 2011
    We need to remove the condition of _POSIX_THREAD_PROCESS_SHARED for the
    pshared prototypes.  Otherwise, programs have to include unistd.h (to
    get the definition of _POSIX_THREAD_PROCESS_SHARED) before pthread.h.
    This is not the way to do things.
    
    This fixes at least kde4, and I'm sure there's others.
Commits on Jan 3, 2011
  1. <dev/netif/wi/if_wavelan_ieee.h>: Uncomment wi_req.

    Sascha Wildner
    Sascha Wildner committed Jan 3, 2011
    This, in conjunction with a few patches I submitted to pkgsrc, will
    eventually fix building the following packages:
    
    net/gtk_wicontrol
    net/wimon
    net/wistumbler
    net/wistumbler2
    net/xfce4-wavelan-plugin (and thereby meta/xfce4-extras)
Commits on Nov 29, 2010
  1. tmpfs - fix chgrp(), or chown() when one of uid/gid is to be unchanged

    YONETANI Tomokazu
    YONETANI Tomokazu committed Nov 22, 2010
    uid/gid values from function arguments were being used instead of the ones
    arranged by vop_helper_chown(), accidentally setting one of them to -1
    (4294967295) instead of leaving it unchanged.
Commits on Nov 28, 2010
  1. HAMMER VFS - Fix HAMMER_INODE_XDIRTY flags / state assertion

    Matthew Dillon
    Matthew Dillon committed Nov 28, 2010
    * The HAMMER_INODE_XDIRTY flag was not being immediately synchronized
      with the state of ip->rec_tree in one case and the delay could create
      a window of opportunity where an assertion would get hit.
    
    * Remove the window of opportunity, the assertion no longer gets hit.
    
    Reported-by: YONETANI Tomokazu <qhwt.dfly@les.ath.cx>
  2. kernel - Fix MP race in signotify_remote()

    Matthew Dillon
    Matthew Dillon committed Nov 28, 2010
    * In rare cases it is possible for a process to hop multiple cpus while
      a signal is trying to chase the process.  Adjust signotify_remote() to
      deal with the case.
  3. kernel - Fix NFS stall and likely also x86-64 seg-fault issue

    Matthew Dillon
    Matthew Dillon committed Nov 28, 2010
    * The nfs node hash code was not MPSAFE due to its use of a global
      hash table.  This could lead to a stall condition due to the
      global hash table losing track of its manual lock.  For now use a
      token to interlock hash table access and replace the manual lock
      with a lockmgr lock.
    
    * This appears to have also fixed the long-standing random seg-fault
      issue with x86-64, where a buildworld loop would seg-fault every once
      in a while for no apparent reason.  /usr/src on my test box has always
      been NFS mounted but was never considered a possible contributor to
      the problem.
    
      If NFS loses track of related nfs nodes or races operations on underlying
      vnodes while expecting their storage to remain stable it is possible
      for a random vnode to become corrupt.  How this could translate to a
      completely random seg-fault is not entirely understood but I surmise
      the unrelated cc1's binary mmap could become corrupt.
    
    Reported-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk> (nfs issue)
  4. kernel - Hold vm_token() for certain buf/bio/vm_page interactions

    Matthew Dillon
    Matthew Dillon committed Nov 28, 2010
    * Hold the vm_token when messing around with page valid and dirty bits
      in buffer cache operations.  Such race conditions are possible but would
      be very rare.
    
    * Fix inconsistent use of bio2.bio_offset when swapcache intercepts an
      I/O operation.  When this case occurs the normal filesystem VOP_STRATEGY
      function will not be called and any assumption that bio2.bio_offset
      will represent a block device offset will be invalid.
    
      To deal with this case swapcache will re-set bio_offset to NOOFFSET.
      Filesystems use this value to determine that no block device offset
      has been cached for a logical file block.
    
    Reported-by: Jan Lentfer <Jan.Lentfer@web.de> (bio_offset issue)
Commits on Nov 23, 2010
  1. arcmsr(4): Fix up the device description a bit.

    Sascha Wildner
    Sascha Wildner committed Nov 23, 2010
  2. printf(1): Fix the printing of floats which I broke back in 2007.

    Sascha Wildner
    Sascha Wildner committed Nov 23, 2010
    I forgot braces in f386bcf
Commits on Nov 22, 2010
  1. OpenSSL: Reduce diffs to vendor source.

    Peter Avalos
    Peter Avalos committed Nov 20, 2010
  2. Make OpenSSL thread-safe.

    Peter Avalos
    Peter Avalos committed Nov 20, 2010
Commits on Nov 21, 2010
  1. kbdmap(1): Fix a segmentation fault with -r.

    Sascha Wildner
    Sascha Wildner committed Nov 21, 2010
    Reported-by:   Mikael Moghadam <binarybusiness@gmail.com>
    Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1918>
  2. build - Fix IP_DIVERT w/UP build error

    Matthew Dillon
    Matthew Dillon committed Nov 21, 2010
    Reported-by: Stephane Russell <srussell@prodigeinfo.com>
Commits on Nov 20, 2010
  1. HAMMER: Deactivate dedup in 2.8.

    Sascha Wildner
    Sascha Wildner committed Nov 20, 2010
    It was MFC'd due to suboptimal commit separation, so disallow access
    to the HAMMERIOC_DEDUP ioctl in 2.8.
    
    Also clarify this in the message we print when hammer(8) encounters
    a <v5 file system.
    
    Submitted-by: Ilya Dryomov <idryomov@gmail.com>
Commits on Nov 18, 2010
  1. Move net.wlan.force_swcrypto out of IEEE80211_DEBUG.

    Sascha Wildner Matthew Dillon
    Sascha Wildner authored and Matthew Dillon committed Nov 15, 2010
    This fixes kernel builds that don't have IEEE80211_DEBUG in the config
    (such as SOEKRIS).
  2. dummy commit

    Matthew Dillon
    Matthew Dillon committed Nov 18, 2010
  3. kernel - Fix global counter used in lockf assertions

    Matthew Dillon
    Matthew Dillon committed Nov 18, 2010
    * lockf elements can be accessed MP.
    
    * This may fix the 'panic: assertion: lf_global_counter>=0 in lf_destroy_range'
      panic.
    
    Reported-by: Peter Avalos <peter@theshell.com>
  4. Temporarily bump the mbuf cluster size

    bwalex authored and Matthew Dillon committed Nov 11, 2010
    * This solves issues with wpi. Once there is a different solution this
      can be reverted.
    
    Suggested-by: Matthew Dillon (dillon@)
  5. kernel - Add sysctl to bypass wifi chipset hardware crypto

    Matthew Dillon Matthew Dillon
    Matthew Dillon authored and Matthew Dillon committed Nov 14, 2010
    * Add sysctl net.wlan.force_swcrypto, default disabled.  If set to 1
      prior to attaching wlan to the underlying wireless interface this
      will force software crypto to be used and bypass the hardware
      crypto implemented by the wireless chipset.
    
    * Currently we know there is at least one serious issue with the
      Atheros 9280 when used with WEP2 (shows up as RSN in list scan) + WPS,
      and possibly other combinations.  The wrong transmit key winds up
      being used for broadcast packets, including ARP.
    
    * This sysctl works around the problem.  If your wpa_supplicant is able
      to connect to a network but you are unable to dhclient / use the
      network you might be hitting this problem and setting the sysctl to
      1 may fix it.
    
      Note that the sysctl must be set prior to attaching the wlan to the
      underlying wireless driver, so it is typically best to do it at boot
      time or near the top of whatever script you use.
    
    Inspired-by: 2-days of connectivity issues at NYCBSDCON.
  6. kernel - add kern.sysbeep_enable feature

    Matthew Dillon Matthew Dillon
    Matthew Dillon authored and Matthew Dillon committed Nov 14, 2010
    * Add a sysctl kern.sysbeep_enable (default on).  Setting this to 0
      will disable the system beep / bell.
    
    * Useful when messing with a laptop in a conference, those beeps can
      get really annoying.
  7. HAMMER - Check if supplied conf file exists

    Stathis Kamperis Matthew Dillon
    Stathis Kamperis authored and Matthew Dillon committed Nov 13, 2010
  8. hammer.8: Add some words about HAMMER version 5 and about upgrading t…

    Sascha Wildner Matthew Dillon
    Sascha Wildner authored and Matthew Dillon committed Nov 13, 2010
    …o it.
    
    Submitted-by: Ilya Dryomov <idryomov@gmail.com>