tjr [Fri, 13 Dec 2002 09:59:40 +0000 (09:59 +0000)]
Drop filedesc lock and acquire Giant around calls to malloc() and free().
These call uma_large_malloc() and uma_large_free() which require Giant.
Fixes panic when descriptor table is larger than KMEM_ZMAX bytes
noticed by kkenn.
murray [Fri, 13 Dec 2002 06:54:33 +0000 (06:54 +0000)]
Move the creation of the DRIVERS.TXT file to a more appropriate area
of this file, so it will be created for other platforms that use a
third floppy disk, not just i386.
jake [Fri, 13 Dec 2002 00:32:29 +0000 (00:32 +0000)]
Don't run kldxref when installing modules on sparc64. kldxref and the whole
module dependency system rely on linker behaviour that is machine dependent
and not part of the elf spec, and only work by accident on other platforms.
grog [Fri, 13 Dec 2002 00:27:32 +0000 (00:27 +0000)]
Create raw plexes and subdisks, not the old volume-related ones. This
crept in in the transition to devfs, and caused a number of "device
not configured" errors.
green [Thu, 12 Dec 2002 20:32:45 +0000 (20:32 +0000)]
Account for fts(3)'s FTS_SLNONE case for symbolic links which have
a nonexistant target, in addition to the FTS_SL previously, so e.g.
setfmac -h sebsd/system_u:object_r:malloc_conf_t /etc/malloc.conf
succeeds.
markm [Thu, 12 Dec 2002 17:38:45 +0000 (17:38 +0000)]
Fix a buffer overrun in /dev/random which, due to the nature of the
kernel memory allocator, is harmless. This could be a problem for
other systems, though. I've modified Darren's patch a little.
Original patch by: Darren Schack, Isilon Systems, Inc <darrens@isilon.com>
Also analysed by: SGI, and in particular Divy Le Ray of SGI
OK'ed by: re(rwatson)
emoore [Wed, 11 Dec 2002 20:59:46 +0000 (20:59 +0000)]
(1) Problem: PANIC when loading/unloading driver
as module. This also fix's issue kern/45713.
Fix - polling was implemented incorrectly for
adapter enquiry and adapter flush.
(2) Problem: PANIC when unloading driver
as module.
Fix - device nodes are not destroyed for amr0,
and amrd* when driver is unloaded
(3) Problem: PANIC from loading driver when
3ware adapter present, error message "Warning
"amrd is usurping twed's bmaj"
Fix - put #idef freebsd version < 500000 for
bmaj -1 -> amrd_cdevsw
(4) Problem: warnings in driver when compiling
with DAMR_DEBUG param enabled in Makefile
Fix - fix the warnings so driver can compile
when -Werror is present in Makefile.
ru [Wed, 11 Dec 2002 15:55:29 +0000 (15:55 +0000)]
mdoc(7) police: Added the missing .Os call; it's not strictly
necessary nowadays, but is documented as "required", and may
become so again in the future.
marcel [Tue, 10 Dec 2002 20:11:20 +0000 (20:11 +0000)]
Pass the HCDP table address to the kernel. If no such table exists,
NULL is passed. The address of the HCDP table can be found by
iterating over the configuration tables in the EFI system table.
To avoid more duplication, a function can be called with the GUID
of interest. The function will do the scanning. Use the function
in all places where we iterate over the configuration tables in
an attempt to find a specific one.
Bump the loader version number as the result of this.
bmah [Tue, 10 Dec 2002 16:35:44 +0000 (16:35 +0000)]
Add ${BUILDNAME} and ${TARGET} to the filenames of ISO images
generated during release builds.
For the most part, re@ was doing this manually before putting ISO images
on ftp-master, but not always. This should make naming more consistent
and descriptive.
Requested by: jason andrade <jason@dstc.edu.au>, hubs@
Approved by: re (rwatson)
MFC after: 1 month
rwatson [Tue, 10 Dec 2002 16:20:34 +0000 (16:20 +0000)]
Default policies to on: if you load them or compile them into your
kernel, you should expect them to do something, so now they do. This
doesn't affect users who don't load or explicitly compile in the
policies.
scottl [Tue, 10 Dec 2002 15:52:56 +0000 (15:52 +0000)]
Play nice with GEOM and use the appropriate ioctls for getting the
partition size and sector size. The old way of groveling through the
disklabel doesn't work anymore.
marcel [Tue, 10 Dec 2002 06:22:25 +0000 (06:22 +0000)]
Change the startup code to fix a memory leak and to allow us to
accept load options (=command line options).
The call graph changes from *entry*->efi_main->efi_init, where
efi_main is the EFI equivalent of main to *entry*->efi_main->main,
where main is what you'd expect. efi_main now is what efi_init was.
The prototype of main follows that of C. The first argument is argc
and the second is argv. There is no third argument.
Allocation of heap pages is now handled by the EFI library and it
now deallocates the pages when main() returns or when exit() is
called. This allows us to safely return to the boot manager (or
EFI shell) without leaks. EFI applications are responsible to free
all memory themselves.
Handling of the load options is a bit tricky. There are either no
load options, load options in ASCII or load options in Unicode.
The EFI library will translate the ASCII options to Unicode options
as to simplify user code. Since the load options are passed as a
single string (if present) and main() accepts argc and argv, the
startup code also has to split the string into words and build the
argv vector. Here the trickiness starts. When the loader is started
from the EFI shell, argv[0] will automaticly load the program name.
In all other cases (ie through the boot manager), this is not the
case. Unfortunately, there's no trivial way to check. Hence, a
set of conditions is checked to determine if we need to fill in
argv[0] ourselves or not. This checking is not perfect. There are
known cases where it fails to do the right thing. The logic works
for most expected cases, though. This includes the case where no
options are given.
julian [Tue, 10 Dec 2002 02:33:45 +0000 (02:33 +0000)]
Unbreak the KSE code. Keep track of zobie threads using the Per-CPU storage
during the context switch. Rearrange thread cleanups
to avoid problems with Giant. Clean threads when freed or
when recycled.
chris [Tue, 10 Dec 2002 00:39:17 +0000 (00:39 +0000)]
Document the following MAC policies:
o None: Stub policy
o Seeotheruids: The "see processes and sockets owned by other users" policy
o Test: Debugging policy
rwatson [Mon, 9 Dec 2002 19:06:43 +0000 (19:06 +0000)]
Unhook LOMAC sysinstall twiddle for the time being: mac_lomac requires
the MAC Framework to be compiled into the kernel, and that's not
well-expressed in sysinstall.
bmah [Mon, 9 Dec 2002 16:55:25 +0000 (16:55 +0000)]
Move lang/perl5 from the "want to have on disc1" to the "sysinstall
requires on disc1" part of the package split list, to track the
Perl support in sysinstall. Essentially a cosmetic change.
murray [Mon, 9 Dec 2002 16:13:37 +0000 (16:13 +0000)]
Add a script to create a manifest of the drivers.flp disk. This
generates a file which will be installed as DRIVERS.TXT in the
floppies directory so that users know which device drivers are
included on drivers.flp, and whether or not they need to worry about
it.
rwatson [Mon, 9 Dec 2002 03:44:28 +0000 (03:44 +0000)]
Remove dm_root entry from struct devfs_mount. It's never set, and is
unused. Replace it with a dm_mount back-pointer to the struct mount
that the devfs_mount is associated with. Export that pointer to MAC
Framework entry points, where all current policies don't use the
pointer. This permits the SEBSD port of SELinux's FLASK/TE to compile
out-of-the-box on 5.0-CURRENT with full file system labeling support.
rwatson [Mon, 9 Dec 2002 03:41:37 +0000 (03:41 +0000)]
Remove documentation of ENABLE_VFS_IOOPT: we don't want people to use
it, so don't suggest it. It's likely going away soon also, so avoid
believing it's supported.
Suggested by: Sean Kelly <smkelly@zombie.org>
Approved by: re