Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-07-11 | Enable the swap checker for hibernate | Mike Larkin | |
2012-07-11 | #ifdef the uvm swap checker fn for hibernate only, to save space in kernels | Mike Larkin | |
that don't use hibernate requested by and ok deraadt@ | |||
2012-07-11 | If the current offset is strictly less than the process filesize | Philip Guenthe | |
rlimit, then a write that would take it over the limit should be clamped, making it a partial write. ok beck@ | |||
2012-07-11 | add a check for the total size of swap, abort if too small. | Mike Larkin | |
used by the hibernate code. ok deraadt@ | |||
2012-07-11 | for now, restrict hibernate to root in the acpi ioctl kernel interface. | Mike Larkin | |
normal rules for controlling this interface through apmd still apply. ok deraadt@ | |||
2012-07-11 | add uvm_swap_check_range to scan for contig free space at end of swap. | Mike Larkin | |
will be needed shortly for hibernate. ok deraadt@ | |||
2012-07-11 | exit1(EXIT_THREAD) needs to call single_thread_check() so that it | Philip Guenthe | |
can be suspended and/or decrement pr->ps_singlecount if necessary. With that added, the call the other direction needs to use its own flag (EXIT_THREAD_NOCHECK) to avoid looping. problem diagnosed from a hang naddy@ hit; ok kettenis@ | |||
2012-07-10 | Make sure that we don't schedule processes on CPUs that we havetaken out of | Mark Kettenis | |
the scheduler. ok hasbaert@. deraadt@ | |||
2012-07-10 | With address family translation, the ip length of the quoted ip | Alexander 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-10 | Don't release a FILE that wan't allocated. Found by benno@ | Philip Guenthe | |
ok matthew@ benno@ | |||
2012-07-10 | We should only call need_resched() if the priority is lower than the | Christiano 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-10 | Ooops. A debug printf sneaked in. Sorry about that. | Paul Irofti | |
2012-07-10 | Place declarations for internal radix functions inside radix.c, stop | Bret Lambert | |
exporting them to the outside world via radix.h. ok claudio@ sthen@ henning@ | |||
2012-07-10 | More wraping and style. | Paul Irofti | |
2012-07-10 | Wrap | Paul Irofti | |
2012-07-10 | Instead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in the | Philip 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-10 | For setsockopt(SO_{SND,RCV}TIMEO), convert the timeval to ticks using | Philip Guenthe | |
tvtohz() so that the rounding is correct and we don't time out a tick early ok claudio@ | |||
2012-07-10 | Try to cleanup the macro magic because of socket spliceing. Since struct | Claudio Jeker | |
socket is no longer affected by option SOCKET_SPLICE we can simplyfy the code. OK bluhm@ | |||
2012-07-10 | define a PFSTATE_SCRUBMASK. relying on numeric order of flags is stupid | Henning Brauer | |
and bound to break sooner or later. | |||
2012-07-10 | in_scrubprefix needs the same netmask checking as in_addprefix (which was | Claudio 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-09 | The linux emulation exit hook needs to be able to sleep, so call it | Philip Guenthe | |
before changing p_stat to SDEAD ok pirofti@ | |||
2012-07-09 | Print the fd_set used by select in kdump. | Claudio Jeker | |
OK guenther@ and deraadt@ | |||
2012-07-09 | Tedu old comment concerning cpu affinity which does not apply anymore. | Christiano F. Haesbaert | |
ok blambert@ krw@ tedu@ miod@ | |||
2012-07-09 | Remove apic_intrcount counting in the interrupt handlers. Not that useful | Theo de Raadt | |
anymore as a debugging tool, and it is in a rather critical path. ok kettenis | |||
2012-07-09 | Remove a useless macro | Theo de Raadt | |
2012-07-09 | In reboot, no need to sched_peg_curproc() to the primary, because | Theo de Raadt | |
sched_stop_secondary_cpus() leaves us on the only cpu which is left. ok kettenis haesbaert guenther | |||
2012-07-09 | tiny little oops in untested hibernate block | Theo de Raadt | |
2012-07-09 | After a resume, re-initialize the MTRR registers on the AP processors | Theo 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-09 | Enable 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-09 | clean up ioctl() case statements | Theo de Raadt | |
2012-07-09 | acpi_disable_onegpe() is not used; ok pirofti | Theo de Raadt | |
2012-07-09 | Revert 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-09 | Compare the size of the static fd_mask against the number of bytes needed | Claudio Jeker | |
not against the number bit / number of fds in the select set. ok guenther@ | |||
2012-07-09 | DVACT_SUSPEND must be done at cold with interrupts disabled. Failure | Theo de Raadt | |
to read a hibernate image should restore the spl ok mlarkin | |||
2012-07-09 | Do not re-initialize ci_randseed on the primary cpu | Theo de Raadt | |
ok kettenis | |||
2012-07-09 | unify com at cardbus attachments | Theo de Raadt | |
2012-07-08 | The comment above amd64_mrinit_cpu() was way too specific and wrong. | Theo de Raadt | |
2012-07-08 | Quiesce and suspend devices in the resuming kernel for hibernate. | Mike Larkin | |
ok deraadt@ | |||
2012-07-08 | Move the hibernate utility pages up to account for the MP tramp page. | Mike Larkin | |
ok deraadt@ | |||
2012-07-08 | apm_kqfilter() is gone | Philip Guenthe | |
ok nicm@ | |||
2012-07-08 | Instead of casting interface address pointers, use the macro | Alexander Bluhm | |
ifatoia6(). No binary diff. OK henning@ | |||
2012-07-08 | kevent(EV_DELETE) shouldn't be calling closef(), as that releases POSIX | Philip Guenthe | |
file locks. c.f. regress/sys/kern/kqueue/kqueue-flock.c ok krw@ | |||
2012-07-08 | Use IO_NOLIMIT instead of munging the process's limits | Philip Guenthe | |
ok beck@ | |||
2012-07-08 | Instead of casting interface address pointers, use the macros NULL | Alexander Bluhm | |
and ifatoia(). No binary diff. OK blambert@ henning@ claudio@ | |||
2012-07-08 | Don't need to worry about the ATI driver here anymore. | Mark Kettenis | |
2012-07-08 | Return EROFS when a read-write mount of a read-only sd(4) device | Kenneth 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-08 | Make hibernate_free() safe to be called even if hibernate areas | Theo de Raadt | |
allocation failed ok mlarkin | |||
2012-07-08 | Reorganize some hibernate functions for easier readability. | Mike Larkin | |
Fix some incorrect/old comments. ok deraadt@ | |||
2012-07-08 | Don'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-08 | Add support for advertising dns servers and search paths in router | Peter Hessler | |
advertisements, according to RFC 6106. original diff from Stephane A. Sezer on tech@, many thanks! OK phessler@, todd@ |