summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-07-10Make sure that we don't schedule processes on CPUs that we havetaken out ofMark Kettenis
the scheduler. ok hasbaert@. deraadt@
2012-07-10With address family translation, the ip length of the quoted ipAlexander Bluhm
packet within the icmp error packet was wrong. Fix this by using the pd2.tot_len of the inner packet and substract the old header's length. OK mikeb@ henning@
2012-07-10Don't release a FILE that wan't allocated. Found by benno@Philip Guenthe
ok matthew@ benno@
2012-07-10We should only call need_resched() if the priority is lower than theChristiano F. Haesbaert
priority of the current running process. In amd64 a call to need_resched() sends an IPI to the other cpu. This fixes aja@ problem where he would move the mouse and see 60000 IPIs being sent. Thanks to mikeb@ for bringing that subject up tuesday. Actually found this after inquiring guenther@ about some changes in mi_switch(). ok guenther@ aja@
2012-07-10Ooops. A debug printf sneaked in. Sorry about that.Paul Irofti
2012-07-10Place declarations for internal radix functions inside radix.c, stopBret Lambert
exporting them to the outside world via radix.h. ok claudio@ sthen@ henning@
2012-07-10More wraping and style.Paul Irofti
2012-07-10WrapPaul Irofti
2012-07-10Instead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in thePhilip Guenthe
three things that it needed from there: INET_ADDRSTRLEN, INET6_ADDRSTRLEN, and struct in_addr. Add protecting #ifndefs to netinet6?/in6?.h for those. ok deraadt@
2012-07-10For setsockopt(SO_{SND,RCV}TIMEO), convert the timeval to ticks usingPhilip Guenthe
tvtohz() so that the rounding is correct and we don't time out a tick early ok claudio@
2012-07-10Try to cleanup the macro magic because of socket spliceing. Since structClaudio Jeker
socket is no longer affected by option SOCKET_SPLICE we can simplyfy the code. OK bluhm@
2012-07-10define a PFSTATE_SCRUBMASK. relying on numeric order of flags is stupidHenning Brauer
and bound to break sooner or later.
2012-07-10in_scrubprefix needs the same netmask checking as in_addprefix (which wasClaudio Jeker
added in 1.40). This fixes a pathological case where in_scrubprefix would do the wrong thing. Found and reported by glebius@FreeBSD OK bluhm@
2012-07-09The linux emulation exit hook needs to be able to sleep, so call itPhilip Guenthe
before changing p_stat to SDEAD ok pirofti@
2012-07-09Print the fd_set used by select in kdump.Claudio Jeker
OK guenther@ and deraadt@
2012-07-09Tedu old comment concerning cpu affinity which does not apply anymore.Christiano F. Haesbaert
ok blambert@ krw@ tedu@ miod@
2012-07-09Remove apic_intrcount counting in the interrupt handlers. Not that usefulTheo de Raadt
anymore as a debugging tool, and it is in a rather critical path. ok kettenis
2012-07-09Remove a useless macroTheo de Raadt
2012-07-09In reboot, no need to sched_peg_curproc() to the primary, becauseTheo de Raadt
sched_stop_secondary_cpus() leaves us on the only cpu which is left. ok kettenis haesbaert guenther
2012-07-09tiny little oops in untested hibernate blockTheo de Raadt
2012-07-09After a resume, re-initialize the MTRR registers on the AP processorsTheo de Raadt
as well. This fixes very slow performance due to lots of uncached memory on buggy machines, for instance on very large memory thinkpad W500 and such. ok mlarkin kettenis sthen
2012-07-09Enable support for the 'weight' keyword in the 'least-states'Joerg Zinke
load balancing case, this allows Weighted Least States (WLS). Everything prepared on c2k11 with help from mcbride@. This finally makes PF ready for the cloud. ok henning@ mikeb@ pyr@
2012-07-09clean up ioctl() case statementsTheo de Raadt
2012-07-09acpi_disable_onegpe() is not used; ok piroftiTheo de Raadt
2012-07-09Revert previous.Kenneth R Westerback
The standards gpds are jealous gods. kettenis@ and beck@ have shown EROFS is the wrong thing to return. So revert to EACCES until a better error code is decided on.
2012-07-09Compare the size of the static fd_mask against the number of bytes neededClaudio Jeker
not against the number bit / number of fds in the select set. ok guenther@
2012-07-09DVACT_SUSPEND must be done at cold with interrupts disabled. FailureTheo de Raadt
to read a hibernate image should restore the spl ok mlarkin
2012-07-09Do not re-initialize ci_randseed on the primary cpuTheo de Raadt
ok kettenis
2012-07-09unify com at cardbus attachmentsTheo de Raadt
2012-07-08The comment above amd64_mrinit_cpu() was way too specific and wrong.Theo de Raadt
2012-07-08Quiesce and suspend devices in the resuming kernel for hibernate.Mike Larkin
ok deraadt@
2012-07-08Move the hibernate utility pages up to account for the MP tramp page.Mike Larkin
ok deraadt@
2012-07-08apm_kqfilter() is gonePhilip Guenthe
ok nicm@
2012-07-08Instead of casting interface address pointers, use the macroAlexander Bluhm
ifatoia6(). No binary diff. OK henning@
2012-07-08kevent(EV_DELETE) shouldn't be calling closef(), as that releases POSIXPhilip Guenthe
file locks. c.f. regress/sys/kern/kqueue/kqueue-flock.c ok krw@
2012-07-08Use IO_NOLIMIT instead of munging the process's limitsPhilip Guenthe
ok beck@
2012-07-08Instead of casting interface address pointers, use the macros NULLAlexander Bluhm
and ifatoia(). No binary diff. OK blambert@ henning@ claudio@
2012-07-08Don't need to worry about the ATI driver here anymore.Mark Kettenis
2012-07-08Return EROFS when a read-write mount of a read-only sd(4) deviceKenneth R Westerback
is attempted. This is instead of the current EACCES and is intended to result in better error messages from mount(8). Tweak default EROFS error text to mention fsck'ing in mount_ext2fs and mount_msdos since they both have fsck's like ffs. ok deraadt@ aja@ ian@ phessler@
2012-07-08Make hibernate_free() safe to be called even if hibernate areasTheo de Raadt
allocation failed ok mlarkin
2012-07-08Reorganize some hibernate functions for easier readability.Mike Larkin
Fix some incorrect/old comments. ok deraadt@
2012-07-08Don't hold the fd-table lock across vn_open(), as opening a FIFO may block.Philip Guenthe
Having done that, dupfdopen() has to handle a possible race. ok matthew@ krw@
2012-07-08Add support for advertising dns servers and search paths in routerPeter Hessler
advertisements, according to RFC 6106. original diff from Stephane A. Sezer on tech@, many thanks! OK phessler@, todd@
2012-07-08regenStefan Sperling
2012-07-08add another BCM43224 ID; ok and tweak mpi@Stefan Sperling
2012-07-08there was a limit on the number of pflog interfaces - 16. remove that.Henning Brauer
mostly by dynamically allocating pflogifs instead of making that a static array. ok claudio zinke
2012-07-07syncTheo de Raadt
2012-07-07another netmos cardbus serial; espie owns itTheo de Raadt
2012-07-07Fix two races in socket splicing. When somove() gets called fromAlexander Bluhm
sosplice() to move the data already there, it might sleep in m_copym(). Another process must not unsplice during that sleep, so also lock the receive buffer when sosplice is called with fd -1. The same sleep can allow network interrupts to modify the socket buffer. So use sbsync() to write back modifications within the loop instead of fixing the socket buffer after the loop. OK claudio@
2012-07-07regenJasper Lievisse Adriaanse