Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2008 21:34:06 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_module.c src/sys/sys module.h
Message-ID:  <200802132134.m1DLY6cf049740@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2008-02-13 21:34:06 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_module.c 
    sys/sys              module.h 
  Log:
  Add an automatic kernel module version dependency to prevent loading
  modules using invalid ABI versions (e.g. a 7.x module with an 8.x kernel)
  for a given kernel:
  - Add a 'kernel' module version whose value is __FreeBSD_version.
  - Add a version dependency on 'kernel' in every module that has an
    acceptable version range of __FreeBSD_version up to the end of the
    branch __FreeBSD_version is part of.  E.g. a module compiled on 701000
    would work on kernels with versions between 701000 and 799999 inclusive.
  
  Discussed on:   arch@
  MFC after:      1 week
  
  Revision  Changes    Path
  1.54      +2 -0      src/sys/kern/kern_module.c
  1.23      +13 -0     src/sys/sys/module.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802132134.m1DLY6cf049740>