summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-03-12Add more regression tests for socket splicing. These find theAlexander Bluhm
kernel bugs that have slipped through.
2011-03-12excessive / at the end of a .PATH; ok guenther drahnTheo de Raadt
2011-03-12syncTheo de Raadt
2011-03-12In the original sparc V7 book (and in the v8 book), the divrem leaf code usedTheo de Raadt
local registers for a few temporaries. This was changed to use two global registers. Maybe to permit use in-kernel without conflicting with the register V7 register window handlers. (Was this done by Chris Torek? Is this related to Gordon Irlam's work? Or was it in NetBSD? Hard to tell because NetBSD removed their original cvs tree.) In V8 the ABI was tightened; more global registers became offlimits in different ways. We started supporting sun4m, and did not consider this. As a result, the global registers chosen are the wrong choice. In particular, %g7 is a poor choice for upcoming TLS work. It looks like it is safer to use %g5 and %g6 since these functions are "system software". All re-entrant parts of the system save it. On sparc64 these functions are in libc per ABI requirement, but are unused. On sparc, they occur in bootblocks (no reentrancy), kernel (reentrancy saves globals; kernel is not ABI compliant), userland libc (signal handlers save globals), and ld.so (symbol binding is not re-entrant on its own). Discussed rather extensively with guenther, kettenis, miod and drahn.
2011-03-12There existed a race when a process was trying to read from a splicedAlexander Bluhm
socket. soreceive() releases splsoftnet for uiomove(). In that moment, somove() could pull the mbuf from the receive buffer. After that, soreceive removed the mbuf again. The corrupted length accounting resulted in a panic. The fix is to block read calls in soreceive() until splicing has been finished. just commit deraadt@
2011-03-12A connection that is constantly sending data uni-directionaly fromAlexander Bluhm
the client to the server did always trigger the session timeout. The reason for this behavior was that any read event reset the client side timeout. A read event on one side must reset the timeout for the other side instead. ok deraadt@
2011-03-12These utilities can currently only operate with a 32-bit block number range,Theo de Raadt
so use daddr32_t ok jasper
2011-03-12syncTheo de Raadt
2011-03-12missing word;Jason McIntyre
2011-03-12bsd.doc.mk is dead. long live bsd.doc.mkTheo de Raadt
discussed with ingo
2011-03-12Replace the old, broken KERN_PROC ABI and its matching functionsPhilip Guenthe
in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols will continue to be supported for a few releases. Committing now that they ports people have had a couple releases to update pkgs that usd the old functions
2011-03-12Provide wrappers for the new I386_{GET,SET}_{FS,GS}BASE sysarch() calls.Philip Guenthe
In some sense, these are mainly to give names to hang manpages from.
2011-03-12Add missing __statement modifiers in various endian.h files and correctPhilip Guenthe
%1 to %0 in the i386 asm. asm correction ok drahn@
2011-03-12Provide distinct segments for the %fs and %gs selectors to use byPhilip Guenthe
default, with per-rthread base offsets and with sysarch() functions, I386_{GET,SET}_{FS,GS}BASE, for fetching and setting those base offsets. This is necessary for both rthread and Linux compat support. suggestions from kettenis@, prodding from pirofti@ and deraadt@
2011-03-12Bad bad Claudio. Fix an evil bug that caused nbr addr_tree corruption.Claudio Jeker
Do not insert neighbors first to the address tree and then assign the address to the struct. Instead pass the address to nbr_new() so all keys for the various RB trees are available when setting the neighbor up.
2011-03-12Log the fact that a session was not accepted because of missing HELLOs.Claudio Jeker
2011-03-11add -z to the extensions list in STANDARDS;Jason McIntyre
2011-03-11Zap stack garbage before passing buffer to biosd_io(), which mayKenneth R Westerback
be lied to by the BIOS about successfully reading data. ok deraadt@ weingart@
2011-03-11Add a non-standard option that affects the output TZ only. The input (forTheo de Raadt
parsing) TZ is unaffected. This makes it it easier to convert timestamps from any timezone to any other timezone -- no need for $() gymnastics ok millert
2011-03-11Check that date(1) is not passed any extra arguments.Theo de Raadt
ok millert
2011-03-11Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do.Paul Irofti
Okay guenther@, millert@.
2011-03-11The -a option shouldn't change the exit statusPhilip Guenthe
Patch from David Julio (david.a.julio at gmail.com)
2011-03-10Add support for detecting the NXP SA56004X (we have not actuallyTheo de Raadt
seen it in the wild yet, but the detection seems easy). Few bugs spotted by kettenis. ok kettenis
2011-03-10- make this easier to readJasper Lievisse Adriaanse
2011-03-10- implement several more options that will be needed to bump to 0.24Jasper Lievisse Adriaanse
(--print-provides, --print-requires and --print-requires-private) ok ckuethe@
2011-03-10- document all the environment variables that pkg-config honorsJasper Lievisse Adriaanse
ok ckuethe@ jmc@
2011-03-10honor PKG_CONFIG_DEBUG_SPEW, which is like our --debug optionJasper Lievisse Adriaanse
ok ckuethe@
2011-03-10Changing daemon_flags on already running processes can make any kind ofAntoine Jacoutot
action fail, not just reload and stop. ok sthen@
2011-03-10tweak previous;Jason McIntyre
2011-03-10allow GSSAPI authentication to detect when a server-side failure causesDamien Miller
authentication failure and don't count such failures against MaxAuthTries; bz#1244 from simon AT sxw.org.uk; ok markus@ before lock
2011-03-10Extend the documentation of the actions argument and bring this up to dateAntoine Jacoutot
after the recent changes. ok sthen@ robert@
2011-03-10Add a small comment at the top to explain what this file does.Antoine Jacoutot
Use $() constructs as it's safer than ``. Both req. by deraadt@ Use pkill instead of pgrep in rc_check so that we don't need to fiddle with redirections in reload. prodded by schwarze@ ok robert@
2011-03-10allow GSSAPI authentication to detect when a server-side failure causesDamien Miller
authentication failure and don't count such failures against MaxAuthTries; bz#1244 from simon AT sxw.org.uk; ok markus@ before lock
2011-03-09Log MAC address changes in the IPv6 neighbor discovery protocolAlexander Bluhm
cache as "ndp info overwritten". This makes the behavior similar to ARP. ok todd@, deraadt@, henning@, giovanni@, claudio@
2011-03-09smtpctl show stats displays inet4/inet6 repartition for incoming sessionsGilles Chehade
2011-03-09Make reload and check consistent with start/stop.Antoine Jacoutot
ok robert@
2011-03-09Move the redirections into the rc_cmd itself instead of rc_start andAntoine Jacoutot
rc_stop so scripts don't need to set it. ok sthen@ (on a much bigger diff) robert@
2011-03-09Implement UDP mode for tcpbench and switch tcpbench to use libevent.Claudio Jeker
In UDP mode the tcpbench client tries to flood the pipe to the maximum and the server will busy read the packets. For TCP mode nothing has changed. All the work was done by Christiano F. Haesbaert (haesbaert(at)haesbaert org). OK myself and a lot of pushing from deraadt@
2011-03-09Mention need for 512-byte CDROM drive on older SPARCs, discussed w/ miod@ ok ↵Ian Darwin
krw@
2011-03-09Knock out a bunch more UPS devices from attaching to uhid(4).Stuart Henderson
feedback/ok deraadt@
2011-03-09syncStuart Henderson
2011-03-09- add IDs for various USB HID UPS devices, extracted from NUTStuart Henderson
- switch to generic naming ("Somevendor UPS") where the vendor uses the same device ID for several devices feedback/ok deraadt@
2011-03-09zap from usage() as well; reminded by jmc@Okan Demirmen
2011-03-09HW stats debugging via ifconfig emX debug instead ofMarco Pfatschbacher
a global em_display_debug_stats variable. OK mcbride, matthew, deraadt, henning.
2011-03-09remove non-standard flagOkan Demirmen
ok jasper@, otto@
2011-03-09substitute '~' for $HOME in the \W prompt case; matches bash's behavior.Okan Demirmen
feedback from Dan Harnett OK deraadt@
2011-03-09Move rc_pre and rc_post out of the rc_start/rc_stop functions into theAntoine Jacoutot
rc_cmd start/stop actions. This way when rc.d(8) scripts override these functions, we don't loose rc_{pre,post}. Add a max 5 secs loop after rc_stop in the rc_cmd top action. This seems to be a good default for returning to command line only after the daemon has really stopped. This fixes "restart" for some daemons and allows to properly stop some others at shutdown time. Note that this is just a best-effort default, some daemons may need a lot more time to shutdown but this case is usually handled in the rc.d(8) script itself and we obviously do not want to hang the shutdown process. Call rc_cmd start/stop in restart and _not_ rc_start/rc_stop which can get overriden in a script. discussed with and inputs from sthen@ and schwarze@ ok sthen@ robert@
2011-03-09syncTheo de Raadt
2011-03-09Stilistic improvement: use clean mdoc(7) .Qq enclosures rather thanIngo Schwarze
(correct, but ugly) low-level roff(7) quoting of quote characters. As a side effect, this avoids ugly formatting caused by a nasty mandoc(1) bug with roff(7) quoting in mdoc(7) documents. Of course, that bug will ultimately get fixed as well, but that can't be done quickly. Reported by Tim van der Molen <tbvdm at xs4all dot nl> ok jmc@
2011-03-09make similar code .. more similarTodd T. Fries
ok gilles@ previous commit should have read: when copying 'struct sockaddr' data, use sa_len not sizeof(struct sockaddr_in) this fixes truncation of IPv6 addresses in the mail delivery path ok gilles@