summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix an integer overflow that causes fsck_ffs to crash when itiedowse2002-06-261-1/+1
| | | | | | encounters very large file sizes in the filesystem. Reviewed by: mckusick
* - Remove the Giant acquisition from linux_socket_ioctl() as it was reallyarr2002-06-261-11/+2
| | | | | | | | there to protect fdrop() (which in turn can call vrele()), however, fdrop_locked() grabs Giant for us, so we do not have to. Reviewed by: jhb Inspired by: alc
* Remove two stray lines that snuck in the cvs mergeimp2002-06-262-2/+0
|
* Add 'chflags -R noschg' to the deletion process for the TEMPROOTdougb2002-06-261-1/+2
| | | | | directory so that /var/empty, and any other such items that are added in the future can be deleted effectively.
* Backout previous delta (addition of -I${.CURDIR}/../../sys).sobomax2002-06-261-2/+1
| | | | Submitted by: bde
* Add -I${.CURDIR}/../../sys into CFLAGS, which should fix the world brokensobomax2002-06-261-1/+2
| | | | by RLIMIT_VMEM addition.
* Tone down the previous delta: don't set the system immutable flag onsheldonh2002-06-261-1/+1
| | | | | /var/empty, because it makes it difficult for mergemaster(8) to remove /var/tmp/temproot/var.
* Initialize a pointer that was left uninitialized with the previousnectar2002-06-261-0/+1
| | | | commit.
* If CLEANFILES is nil or not defined, do not try to remove it. This happensjmallett2002-06-261-0/+2
| | | | | | | when SRCS is entirely files which produce only one compiled form, and when NOMAN is defined. This does not seem to happen in STABLE. Approved by: ru
* Minor libc internal-only interface change for mapv4v6.imp2002-06-261-1/+1
|
* Include more robust checking of end of buffer that more completelyimp2002-06-264-52/+32
| | | | plugs the hole.
* Indicate that the semicolon that terminates argument lists should be intjr2002-06-261-2/+8
| | | | its own argument for -ok and -okdir.
* Make it more obvious that the semicolon that terminates -exec and -execdirtjr2002-06-261-2/+8
| | | | | argument lists must be in an argument by itself, not on the end of the previous one.
* Don't allow buffer overflow here either.imp2002-06-261-1/+3
|
* Fix a minor last, minute issue that came in after I committed.imp2002-06-261-1/+1
| | | | Noticed by: nectar
* Avoid remote buffer overflow on hostbuf[].imp2002-06-262-1/+4
| | | | Submitted by: joost Pol <joost@pine.nl>
* `pw useradd' could be used with -w without -D option.sada2002-06-261-0/+1
| | | | | | PR: docs/39770 Submitted by: sada Approved by: dd
* add default vmemoryuse (unlimited), and samplesdillon2002-06-261-0/+3
|
* Add documentation for vmemoryusedillon2002-06-261-0/+1
|
* Make libutil aware of vmemoryuse in its login.conf cap processing (akadillon2002-06-261-0/+1
| | | | sshd, /usr/bin/login, etc)
* Make limits(1) aware of the new vmemoryuse resource limit.dillon2002-06-262-16/+37
| | | | Submitted by: sheldonh
* At long last, commit the zero copy sockets code.ken2002-06-2635-10500/+14871
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAKEDEV: Add MAKEDEV glue for the ti(4) device nodes. ti.4: Update the ti(4) man page to include information on the TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS kernel options, and also include information about the new character device interface and the associated ioctls. man9/Makefile: Add jumbo.9 and zero_copy.9 man pages and associated links. jumbo.9: New man page describing the jumbo buffer allocator interface and operation. zero_copy.9: New man page describing the general characteristics of the zero copy send and receive code, and what an application author should do to take advantage of the zero copy functionality. NOTES: Add entries for ZERO_COPY_SOCKETS, TI_PRIVATE_JUMBOS, TI_JUMBO_HDRSPLIT, MSIZE, and MCLSHIFT. conf/files: Add uipc_jumbo.c and uipc_cow.c. conf/options: Add the 5 options mentioned above. kern_subr.c: Receive side zero copy implementation. This takes "disposable" pages attached to an mbuf, gives them to a user process, and then recycles the user's page. This is only active when ZERO_COPY_SOCKETS is turned on and the kern.ipc.zero_copy.receive sysctl variable is set to 1. uipc_cow.c: Send side zero copy functions. Takes a page written by the user and maps it copy on write and assigns it kernel virtual address space. Removes copy on write mapping once the buffer has been freed by the network stack. uipc_jumbo.c: Jumbo disposable page allocator code. This allocates (optionally) disposable pages for network drivers that want to give the user the option of doing zero copy receive. uipc_socket.c: Add kern.ipc.zero_copy.{send,receive} sysctls that are enabled if ZERO_COPY_SOCKETS is turned on. Add zero copy send support to sosend() -- pages get mapped into the kernel instead of getting copied if they meet size and alignment restrictions. uipc_syscalls.c:Un-staticize some of the sf* functions so that they can be used elsewhere. (uipc_cow.c) if_media.c: In the SIOCGIFMEDIA ioctl in ifmedia_ioctl(), avoid calling malloc() with M_WAITOK. Return an error if the M_NOWAIT malloc fails. The ti(4) driver and the wi(4) driver, at least, call this with a mutex held. This causes witness warnings for 'ifconfig -a' with a wi(4) or ti(4) board in the system. (I've only verified for ti(4)). ip_output.c: Fragment large datagrams so that each segment contains a multiple of PAGE_SIZE amount of data plus headers. This allows the receiver to potentially do page flipping on receives. if_ti.c: Add zero copy receive support to the ti(4) driver. If TI_PRIVATE_JUMBOS is not defined, it now uses the jumbo(9) buffer allocator for jumbo receive buffers. Add a new character device interface for the ti(4) driver for the new debugging interface. This allows (a patched version of) gdb to talk to the Tigon board and debug the firmware. There are also a few additional debugging ioctls available through this interface. Add header splitting support to the ti(4) driver. Tweak some of the default interrupt coalescing parameters to more useful defaults. Add hooks for supporting transmit flow control, but leave it turned off with a comment describing why it is turned off. if_tireg.h: Change the firmware rev to 12.4.11, since we're really at 12.4.11 plus fixes from 12.4.13. Add defines needed for debugging. Remove the ti_stats structure, it is now defined in sys/tiio.h. ti_fw.h: 12.4.11 firmware. ti_fw2.h: 12.4.11 firmware, plus selected fixes from 12.4.13, and my header splitting patches. Revision 12.4.13 doesn't handle 10/100 negotiation properly. (This firmware is the same as what was in the tree previously, with the addition of header splitting support.) sys/jumbo.h: Jumbo buffer allocator interface. sys/mbuf.h: Add a new external mbuf type, EXT_DISPOSABLE, to indicate that the payload buffer can be thrown away / flipped to a userland process. socketvar.h: Add prototype for socow_setup. tiio.h: ioctl interface to the character portion of the ti(4) driver, plus associated structure/type definitions. uio.h: Change prototype for uiomoveco() so that we'll know whether the source page is disposable. ufs_readwrite.c:Update for new prototype of uiomoveco(). vm_fault.c: In vm_fault(), check to see whether we need to do a page based copy on write fault. vm_object.c: Add a new function, vm_object_allocate_wait(). This does the same thing that vm_object allocate does, except that it gives the caller the opportunity to specify whether it should wait on the uma_zalloc() of the object structre. This allows vm objects to be allocated while holding a mutex. (Without generating WITNESS warnings.) vm_object_allocate() is implemented as a call to vm_object_allocate_wait() with the malloc flag set to M_WAITOK. vm_object.h: Add prototype for vm_object_allocate_wait(). vm_page.c: Add page-based copy on write setup, clear and fault routines. vm_page.h: Add page based COW function prototypes and variable in the vm_page structure. Many thanks to Drew Gallatin, who wrote the zero copy send and receive code, and to all the other folks who have tested and reviewed this code over the years.
* Enforce RLIMIT_VMEM on growable mappings (aka the primary stack or anydillon2002-06-261-0/+14
| | | | | | MAP_STACK mapping). Suggested by: alc
* - The previous commit message should have read that Giant was removedarr2002-06-260-0/+0
| | | | | from modnext(), modfnext(), modstat(), and modfind(). Please excuse the fumble.
* sendmail 8.12.5 has been importedgshapiro2002-06-262-2/+2
|
* Update for the sendmail 8.12.5 importgshapiro2002-06-261-4/+4
|
* Resolve conflicts from import of sendmail 8.12.5gshapiro2002-06-264-9/+11
|
* This commit was generated by cvs2svn to compensate for changes in r98841,gshapiro2002-06-2644-89/+359
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import sendmail 8.12.5gshapiro2002-06-2648-98/+370
| |
* | Fix mdoc nits in preparation for RLIMIT_VMEM support:sheldonh2002-06-261-3/+5
| | | | | | | | | | | | | | * add missing Ar macro for one instance of limitflags * fix indentation problem (not perfect, but then this is one _very_ awkward manpage mark up properly)
* | Remove out-of-date -I.fenner2002-06-261-1/+1
| |
* | Remove cruft.fenner2002-06-265-254/+0
| |
* | This is Alexander Kabaev's patch to solve the signal problem with sudillon2002-06-261-0/+11
| | | | | | | | | | | | | | (see 'zsh exits upon ^C' thread). This may be temporary be he's been running it for a year without incident so we should be golden with it. Approved by: des
* | Backout 1.51 on DES's request.dillon2002-06-261-2/+0
| | | | | | | | Approved by: des
* | - Remove Giant acquisition from modevent(), modfnext(), modstat() andarr2002-06-261-27/+11
| | | | | | | | | | | | | | modfind(). Giant is no longer needed by these functions for safe execution. Reviewed by: jhb
* | Add support for RLIMIT_VMEM. The #ifdef's were already there but getopt()dillon2002-06-261-1/+1
| | | | | | | | needed to be adjusted.
* | Part I of RLIMIT_VMEM implementation. Implement core functionality fordillon2002-06-263-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | a new resource limit that covers a process's entire VM space, including mmap()'d space. (Part II will be additional code to check RLIMIT_VMEM during exec() but it needs more fleshing out). PR: kern/18209 Submitted by: Andrey Alekseyev <uitm@zenon.net>, Dmitry Kim <jason@nichego.net> MFC after: 7 days
* | - Alleviate jail() from having the burden of acquiring Giant by simplyarr2002-06-261-3/+0
| | | | | | | | | | | | | | removing. We can do this since we no longer need Giant to safely execute jail(). Reviewed by: rwatson, jhb
* | Remove old pre-TIRPC code for getting transport handles. The code thatalfred2002-06-252-10/+0
| | | | | | | | follows spams over the contents of them making the removed code useless.
* | Complete the initial set of VM changes required to support fulliedowse2002-06-255-20/+12
| | | | | | | | | | | | | | | | | | | | | | 64-bit file sizes. This step simply addresses the remaining overflows, and does attempt to optimise performance. The details are: o Use a 64-bit type for the vm_object `size' and the size argument to vm_object_allocate(). o Use the correct type for index variables in dev_pager_getpages(), vm_object_page_clean() and vm_object_page_remove(). o Avoid an overflow in the i386 pmap_object_init_pt().
* | Turn VM_ALLOC_ZERO into a flag.jeff2002-06-252-5/+7
| | | | | | | | | | Submitted by: tegge Reviewed by: dillon
* | Reduce the amount of code that runs with the zone lock held in slab_zalloc().jeff2002-06-251-6/+8
| | | | | | | | This allows us to run the zone initialization functions without any locks held.
* | No guts, no glory. Switch to OpenSSH-portable.des2002-06-2512-12/+24
| | | | | | | | Sponsored by: DARPA, NAI Labs
* | - Merge the following from the English version:hrs2002-06-258-17/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | 1.308 -> 1.313 relnotes/common/new.sgml - Add pc98 subdir: 1.3 -> 1.4 relnotes/Makefile 1.2 -> 1.3 relnotes/common/relnotes.ent (new) -> 1.1 relnotes/pc98/Makefile (new) -> 1.1 relnotes/pc98/article.sgml - Remove ${NO_TIDY}. It is no longer needed.
* | o Eliminate vmspace::vm_minsaddr. It's initialized but never used.alc2002-06-252-6/+5
| | | | | | | | | | o Replace stale comments in vmspace by "const until freed" annotations on some fields.
* | WARNS=6'ify.obrien2002-06-251-7/+5
| | | | | | | | Style nits.
* | Prototype _start.obrien2002-06-251-2/+4
| | | | | | | | | | | | Submitted by: markm Mark some _start formal parameters __unused.
* | Don't assume that pointers are 4 bytes or sizeof(int) in size. This fixestmm2002-06-252-6/+3
| | | | | | | | | | | | the indirection operator ('*') and address examination ('x/a') on big-endian platoforms for which the above is not true, as well as on little-endian platforms if the cut-off bits are not 0.
* | pmap_kremove can no longer be used to remove the magic device mappingsjake2002-06-253-1/+16
| | | | | | | | | | | | | | installed with pmap_kenter_flags, since the physical addresses may not have an associated vm_page. Add a function to do this. Tested by: Tomi Vainio <Tomi.Vainio@Sun.COM>
* | Reduce internal code duplication, add REGRESSION_PASSFAIL([testname]) tojmallett2002-06-251-19/+14
| | | | | | | | | | | | | | handle printing of the PASS/FAIL messages. Suffix PASS/FAIL/FATAL with the string (in $directory) where $directory is ${.CURDIR} from make(1), to make it easier to use grep(1) and a bit of sed/awk to do statistics of failure for some utilities over time, etc.
OpenPOWER on IntegriCloud