summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-16Add a missing space.Joel Sing
2021-05-16In route detach we delete `rop_timeout' while `rop' is still linked tomvs
`rtp_list' so it could be re-added by concurrent thread. Also timeout_del(9) doesn't wait timeout proc to be finished and timeout_del_barrier(9) should be used for that. So use timeout_del_barrier(9) instead of timeout_del(9) and moved it just after refcnt_finalize(9). This fixes potential use-after-free issue in route_detach(). ok mpi@
2021-05-16Fix formatting of multi-line license comment per style(9).Joel Sing
2021-05-16Avoid pulling ssl_sigalgs.h in via ssl_locl.h.Joel Sing
Forward declare struct sigalg in ssl_locl.h and avoid including ssl_sigalgs.h. Explicitly include ssl_sigalgs.h where it is needed.
2021-05-16remove unneeded includesJonathan Gray
2021-05-16remove unneeded includesJonathan Gray
2021-05-16Sync memreg_add() implementation with arm64 and powerpc64.Mark Kettenis
2021-05-16Capabilities are only supported on a session when both sides announceClaudio Jeker
that capability. Change capa_neg_calc() to check always both the ann(ounce) and peer capa struct to figure out what was negotiated. This change affects route refersh and graceful restart (where before setting the capability in the config to 'no' would not fully disable the feature). Also ignore and warn about unexpected route refresh messages. OK benno@
2021-05-16correct prototype of acpi gpio intr_establish functionsJonathan Gray
ok kettenis@
2021-05-16Remove unnecessary includes from the bytestring APIs.Joel Sing
The bytestring APIs are self contained, hence including openssl headers here is unnecessary.
2021-05-16Explicitly include <openssl/opensslconf.h> in files using OPENSSL_NO_*Joel Sing
Where a file references to OPENSSL_NO_* conditions, ensure that we explicitly include <openssl/opensslconf.h> before any references, rather than relying on another header to pull this in.
2021-05-16mention apmd(8) in afterboot(8)paco
input and ok jmc@
2021-05-16b_saveaddr has a type of void * use NULL not 0Jonathan Gray
2021-05-16ansiJonathan Gray
2021-05-16deregisterJonathan Gray
2021-05-16ansiJonathan Gray
2021-05-16remove prototype for cpu_adjust_tsc_freq()Jonathan Gray
a matching function was never committed
2021-05-16ansiJonathan Gray
2021-05-16ansiJonathan Gray
2021-05-16add riscv asm for these two security-feature checking regress testsTheo de Raadt
with drahn
2021-05-16remove unused pre efiboot targetsJonathan Gray
2021-05-15Nuke some Capt. Obvious and soon to be obsolete comments inKenneth R Westerback
GPT_write(). Add local variables prigh and prigp, mirroring altgh and altp, to GPT_write(), eliminating some magic numbers to make clear the relationship between the various primary and alternative GPT lba fields. No intentional functional change.
2021-05-15Add back -mno-relax for now. Retain the -target option but put it onMark Kettenis
a line of its own to improve diffability with other architectures. ok drahn@
2021-05-15in kdata_abort, error must be initialized to 0 (like arm64)Theo de Raadt
spotted by drahn
2021-05-15In all the copyin family functions, must compare end-address againstTheo de Raadt
VM_MAXUSER_ADDRESS with bgtu, signed comparison is incorrect. Now passes regress/sys/copy ok drahn kettenis
2021-05-15Reorganize kernel & user fault handling into seperate functions like onTheo de Raadt
other architectures. During refactoring, found missing calls to important functions and incorrect parameter passing... ok kettenis drahn
2021-05-15copyinout.S is not usedTheo de Raadt
2021-05-15Keep internal representation of DOSPTYP_EFI partition sizes correct.Kenneth R Westerback
Translate to/from UINT32_MAX as required when translating between on-disk MBR format and internal format. No intentional functional change.
2021-05-15When looking for the last layout row used, we need to look at the layoutIngo Schwarze
row used for the previous data line containing data, not at the previous data line outright, which might be a horizontal ruler. If it is, do not restart from the first layout row but still proceed to the next data row, which may have been just read from T&. Bug originally reported by Oliver dot Corff at email dot de on groff at gnu dot org: https://lists.gnu.org/archive/html/groff/2021-03/msg00003.html and forwarded to me by bentley@. Patch OK'ed by bentley@ back in April.
2021-05-15Add missing MBR_protective_mbr() check when writing edited GPT.Kenneth R Westerback
No intentional functional change.
2021-05-15Shuffle USER_print_disk() code into a more rational, clearerKenneth R Westerback
structure. No intentional functional change.
2021-05-15Remove outdated comment. We got all httpd headers from the fcgi serverFlorian Obser
at this point.
2021-05-15Remove OUTPUT_FORMAT and OUTPUT_ARCH from linker script. These areMark Kettenis
no-ops for ld.lld. ok deraadt@
2021-05-15pmap_fault_fixup() does not need "int user"Theo de Raadt
ok kettenis
2021-05-15improve comment regarding child_return() clearing errno-indicating flagTheo de Raadt
2021-05-15Add pledge for ftpd's user processes.jan
OK tobhe@
2021-05-15Use intr_enable()/int_disable()/intr_restore() instead ofMark Kettenis
enable_interrupts()/disable_interrupts()/restore_interrupts() and remove the latter interfaces. While there move a few malloc(9) and free(9) calls to run with interrupts enabled. ok patrick@
2021-05-15Fix IPsec NAT-T to work with pipex(4). Introduce a new packet tagYASUOKA Masahiko
PACKET_TAG_IPSEC_FLOWINFO to specify the IPsec flow. ok mvs
2021-05-15Load the fault handler into the correct register.Dale Rahn
Having the onfault dance in a macro makes this almost unreadable. Initial failure found by deraadt, cause finally found.
2021-05-15Shuffle GPT_read() code into a nice switch{}, eliminatingKenneth R Westerback
unnecesary read of primary GPT when only the secondary GPT is requested. No intentional functional change.
2021-05-14Whitespace tweaks and a couple of stray u_int* in gpt_chk_mbr().Kenneth R Westerback
No intentional functional change.
2021-05-14whitespace/KNFTheo Buehler
2021-05-14amd64: specialreg.h: add MSR_TSC_ADJUSTcheloha
Where available, the IA32_TSC_ADJUST MSR may be used to make race-free relative adjustments to a logical CPU's TSC. The value in the register is interpreted as a signed 64-bit offset and added to the "real" value of the TSC whenever the TSC MSR is read. That is: RDTSC = REAL_TSC + TSC_ADJUST and: RDMSR TSC = REAL_TSC + TSC_ADJUST For example, if REAL_TSC=1 and TSC_ADJUST=1, then RDTSC would yield 2. Or if REAL_TSC=10 and TSC_ADJUST=-5, then RDTSC would yield 5. Writing TSC_ADJUST does not change the "real" underlying value of the TSC. Said another way setting TSC_ADJUST to zero will always undo any prior adjustment. This property may be useful in fixing desynchronized TSCs. In particular, buggy firmware may erroneously desynchronize a normally synchronized TSC. If this happens, in theory we can do: wrmsr(MSR_TSC_ADJUST, 0); and fix any desynchronization during boot/resume with no fuss. ok mlarkin@
2021-05-14Tweak the two copies of gpt_chk_mbr() to return the index of the MBRKenneth R Westerback
0xEE (DOSPTYP_EFI) partition, or -1 no usable such partition is found. Adopt a consistent idiom to capture the index for future use. Clean up the gpt_chk_mbr() logic to make it clearer what constraints are being applied when looking for the DOSTYP_EFI partition. No intentional functional change.
2021-05-14Properly refer to ioctl(2)kn
From Caspar Schutijser, thanks.
2021-05-14Improve libcrypto obj_xref.h generatorKinichiro Inoguchi
Modify objxref.pl to output $OpenBSD$ header and __BEGIN_HIDDEN_DECLS / __END_HIDDEN_DECLS . ok and comment from tb@
2021-05-14remove comment describing GENERICJonathan Gray
2010-10-01import OpenSSL-1.0.0aDamien Miller
2021-05-14add dwge(4) to RAMDISK as wellJonathan Gray
2021-05-14remove uneeded includesJonathan Gray