freebsd kernel with SKQ
Go to file
Bill Paul c214e6636e Fix some of the GDB linkage setup. The l_name member of the gdb linkage
structure is always free()ed yet only sometimes malloc()ed. In particular,
it was simply set to point to l_filename from the a linker_file_t in
link_elf_link_preload_finish(). The l_filename had been malloc()ed inside
the kern_linker.c module and was being free()ed twice: once by
link_elf_unload_file() and again by linker_file_unload(), leading to
a panic.

How to duplicate the problem:

- Pre-load a kernel module from the loader, i.e. if_sis.ko
- Boot system
- Attempt to unload module with kldunload if_sis
- Bewm

The problem here is that the case where the module was loaded with kldload
after system boot would work correctly, so this bug went unnoticed until
I stubbed my toe on it just now. (Also, you can only trip this bug if
you compile a kernel with options DDB, but that's the default now.)

Fix: remember to malloc() a separate copy of the module name for the
l_name member of the gdb linkage structure in three places where the
linkage structure can be initialized.
2001-08-10 23:15:13 +00:00
bin mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
contrib libgmp has been superseded by libmp. 2001-08-10 18:41:56 +00:00
crypto output_data(), output_datalen() and netflush() didn't actually guarantee 2001-07-23 21:52:26 +00:00
etc Fix minor typo. 2001-08-09 15:36:03 +00:00
games mdoc(7) police: 2001-08-07 15:48:51 +00:00
gnu Remove libgmp build infrastructure. 2001-08-10 18:35:08 +00:00
include Rename the GLOB_MAXPATH flag of glob(3) to GLOB_LIMIT to be compatible 2001-07-29 00:52:37 +00:00
kerberos5 Revamp and diff-reduce the various secure telnets. Make sure that 2001-08-03 16:03:26 +00:00
kerberosIV Revamp and diff-reduce the various secure telnets. Make sure that 2001-08-03 16:03:26 +00:00
lib Use .Fn, .Fa, and .Dv where appropriate. 2001-08-10 20:49:38 +00:00
libexec mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
release Close a </sect1> and add a line of whitespace, discovered during 2001-08-10 21:18:35 +00:00
sbin Mark some functions as __printflike() 2001-08-10 23:12:10 +00:00
secure mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
share mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
sys Fix some of the GDB linkage setup. The l_name member of the gdb linkage 2001-08-10 23:15:13 +00:00
tools ISO_ -> ISO 2001-06-11 01:29:40 +00:00
usr.bin mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
usr.sbin Change copyright to BSD-style copyright. 2001-08-10 17:42:58 +00:00
COPYRIGHT
Makefile
Makefile.inc1 Add some features to libdevstat, and overhaul the interface a bit: 2001-08-04 18:25:48 +00:00
Makefile.upgrade
README
UPDATING Typo 2001-08-10 21:32:53 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you have to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberosIV	Kerberos package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/handbook/synching.html