git: DragonFly_RELEASE_5_0 kernel - Fix tapN creation >= 32 units, fix pty issues >= 32 ptys

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 21 18:19:40 PDT 2018


commit 095422fab17a80173d19945ec66d07cdd9fa1b44
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Mar 21 18:11:10 2018 -0700

    kernel - Fix tapN creation >= 32 units, fix pty issues >= 32 ptys
    
    * Fix ifconfig tapN create for N >= 32.
    
    * devfs_clone_bitmap_chk(), which only if_tap uses, was returning
      the wrong default value for unit numbers beyond the current
      dynamic size of the bitmap.
    
    * Both devfs_clone_bitmap_chk() and devfs_clone_bitmap_put()
      were improperly using (1 << unit) instead of (1L << unit)
      when masking the 64-bit (long) bitmap elements, resulting in
      chaos for units >= 32.
    
    * This also should fix pty issues >= 32 ptys.
    
    Reported-by: Aaron Li

Summary of changes:
 sys/vfs/devfs/devfs_helper.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/095422fab17a80173d19945ec66d07cdd9fa1b44


-- 
DragonFly BSD source repository


More information about the Commits mailing list