git: kernel - Fix panic on bad device number

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Nov 11 07:45:16 PST 2026


commit 805ca132aededa6ae4c8b3499a2d5c934d78fe56
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Nov 11 07:43:58 2026 -0800

    kernel - Fix panic on bad device number
    
    * mknod() can create non-existant devices.  An attempt to do certain
      operations such as stat*() will panic the kernel with a NULL pointer
      indirection.
    
    * Fix by adding the appropriate NULL check.
    
    Reported-by: aly

Summary of changes:
 sys/kern/vfs_vnops.c | 4 ++++
 1 file changed, 4 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/805ca132aededa6ae4c8b3499a2d5c934d78fe56


-- 
DragonFly BSD source repository


More information about the Commits mailing list