cvs commit: src/sys/kern kern_module.c src/sys/sys module.h
John Baldwin
jhb at FreeBSD.org
Wed Feb 13 13:34:06 PST 2008
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
More information about the cvs-src
mailing list