History log of /openbsd-src/sys/kern/subr_hibernate.c (Results 26 – 50 of 152)
Revision Date Author Comments
# cde4819c 08-Jul-2021 mlarkin <mlarkin@openbsd.org>

whitespace fixes, no code change.


# 678831be 10-Mar-2021 jsg <jsg@openbsd.org>

spelling

ok gnezdo@ semarie@ mpi@


# a552a180 21-Jun-2018 mlarkin <mlarkin@openbsd.org>

don't let the retguard skip region exceed the space we have reserved for
it in the piglet during unhibernate. Missed this block during the previous
commit. We'll panic, which will likely just reboot

don't let the retguard skip region exceed the space we have reserved for
it in the piglet during unhibernate. Missed this block during the previous
commit. We'll panic, which will likely just reboot the machine, but that's
better than trashing a chunk and causing mystery errors later.

show more ...


# 65052cac 21-Jun-2018 mlarkin <mlarkin@openbsd.org>

Save and restore retguard area during hibernate unpack. This copies the
original retguard data to the piglet and bcopys it back in place
immediately before resuming via the ACPI Sx trampoline.

ok de

Save and restore retguard area during hibernate unpack. This copies the
original retguard data to the piglet and bcopys it back in place
immediately before resuming via the ACPI Sx trampoline.

ok deraadt, guenther, tested by many.

show more ...


# ac992051 17-Aug-2017 mlarkin <mlarkin@openbsd.org>

print why the signature block check of an unhibernate attempt failed, to
let people know what changed.

ok kettenis, phessler


# bee1d453 22-Jun-2017 deraadt <deraadt@openbsd.org>

calculate a "sum" based upon pointers to functions all over the kernel,
so that an unhibernate kernel can detect if it is running with the
kernel it booted.
ok mlarkin


# b237021b 27-Mar-2017 deraadt <deraadt@openbsd.org>

If hibernate_alloc() encounters a problem it should undo the partial
work.
ok mlarkin kettenis


# 938d8250 27-Sep-2016 dlg <dlg@openbsd.org>

move from RB macros to RBT functions


# 262a556a 16-Sep-2016 dlg <dlg@openbsd.org>

move the vm_page struct from being stored in RB macro trees to RBT functions

vm_page structs go into three trees, uvm_objtree, uvm_pmr_addr, and
uvm_pmr_size. all these have been moved to RBT code.

move the vm_page struct from being stored in RB macro trees to RBT functions

vm_page structs go into three trees, uvm_objtree, uvm_pmr_addr, and
uvm_pmr_size. all these have been moved to RBT code.

this should give us a decent chunk of code space back.

show more ...


# 07e1ce2a 05-Sep-2016 beck <beck@openbsd.org>

Fix hibernation - make stack protector writable during resume
Committing for guenther@ because he is on United and apparently
they break ssh (as well as guitars)

ok deraadt@ in the car from cambridge


# 0d3478fd 01-Sep-2016 akfaew <akfaew@openbsd.org>

Fix undefined behaviour when comparing pointers by casting them to vaddr_t.

OK mlarkin@


# 3120f534 04-May-2015 mlarkin <mlarkin@openbsd.org>

Clarify that hibernate_resume must be called with interrupts enabled.


# 464029d7 07-Feb-2015 mlarkin <mlarkin@openbsd.org>

Preserve a page's worth of random data on hibernate resume. Used to improve
entropy after resuming.

Tested on i386 and amd64.
ok deraadt@


# 87dd1dd0 07-Feb-2015 deraadt <deraadt@openbsd.org>

New framework that allows hibernate to pass in entropy from it's fresh
boot.
ok mlarkin


# 78e2b1f8 06-Feb-2015 mlarkin <mlarkin@openbsd.org>

Fix a hibernate crash on some machines due to unmapping a page that
may not have been mapped previously (in the failure to hibernate case).

Also ensure that the lowmem ptp is mapped in all cases (no

Fix a hibernate crash on some machines due to unmapping a page that
may not have been mapped previously (in the failure to hibernate case).

Also ensure that the lowmem ptp is mapped in all cases (not just MP).

ok kettenis

show more ...


# dcbeefea 12-Jan-2015 deraadt <deraadt@openbsd.org>

hibernate_suspend() should not pmap_kremove by itself; hibernate_free()
must do that. otherwise, pmap_kremove is called twice. i386 in particular
does not tolerate that, found by sebastia
ok mlarki

hibernate_suspend() should not pmap_kremove by itself; hibernate_free()
must do that. otherwise, pmap_kremove is called twice. i386 in particular
does not tolerate that, found by sebastia
ok mlarkin kettenis

show more ...


# d06b9c1e 22-Dec-2014 mlarkin <mlarkin@openbsd.org>

fix an error in piglet allocation when requesting an alignment < PAGE_SIZE
(which we never did, but it was a bug nonetheless).

ok kettenis, deraadt


# 03d1830d 17-Dec-2014 tedu <tedu@openbsd.org>

remove lock.h from uvm_extern.h. another holdover from the simpletonlock
era. fix uvm including c files to include lock.h or atomic.h as necessary.
ok deraadt


# 1e8cdc2e 16-Nov-2014 deraadt <deraadt@openbsd.org>

Replace a plethora of historical protection options with just
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove

Replace a plethora of historical protection options with just
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove UVM_ADV_* wrapper, using the standard names.
ok doug guenther kettenis

show more ...


# d6871fe2 05-Nov-2014 mlarkin <mlarkin@openbsd.org>

No reason to have things like the hibernate allocation area and chunk
ordering regions mapped executable, so remove those permissions.

ok deraadt@


# ffbce50e 02-Nov-2014 mlarkin <mlarkin@openbsd.org>

Unmap the hibernate hiballoc page after we are done with it.

ok deraadt, kettenis


# 2d9bd9b8 22-Oct-2014 mlarkin <mlarkin@openbsd.org>

Remove some unused/unneeded code.


# 259dfafe 22-Oct-2014 mlarkin <mlarkin@openbsd.org>

Use the global piglet address variables as sparingly as possible to avoid
redundant copies of the same information. No functional change.

Also add some comments as to how these globals are used.


# 9a033ad3 16-Oct-2014 mlarkin <mlarkin@openbsd.org>

No need to reserve separate KVA ranges for the RLE and copy pages in
hibernate anymore.


# b498c5a9 09-Oct-2014 mlarkin <mlarkin@openbsd.org>

fix some data type mismatches in the zlib paths in hibernate


1234567