CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2023/01/10 18:55:18 Modified files: lib/libc/arch/amd64: SYS.h lib/libc/arch/amd64/sys: Ovfork.S brk.S sbrk.S sigpending.S sigprocmask.S sigsuspend.S tfork_thread.S libexec/ld.so/amd64: SYS.h Log message: Add retguard to amd64 syscalls. Since we got rid of padded syscalls we have enough registers to do this. ok deraadt@ ok kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2022/03/08 17:09:45 Modified files: gnu/llvm/clang/lib/Driver/ToolChains: OpenBSD.h Log message: Arm is not ready for unwinding yet. Disable unwind info generation for now. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2022/02/27 16:45:55 Modified files: gnu/llvm/clang/lib/Driver/ToolChains: OpenBSD.h Log message: Enable unwind tables on all clang architectures. Fixes backtraces on i386 (tested by bluhm) and armv7. OK bluhm@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/09/01 07:37:14 Modified files: gnu/llvm/llvm/lib/Target/X86: X86IndirectThunks.cpp Log message: Add lfence after ret in retpoline thunk. Recommended by AMD white paper Software Techniques for Managing Speculation on AMD Processors (9.17.20) mitigation V2-1. Pointed out by bluhm@. ok bluhm@ kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/07/11 14:32:00 Modified files: gnu/llvm/llvm/lib/Target/X86: X86FixupGadgets.cpp Log message: Optimize gadget fixups for MOV instructions. Instead of swapping registers around, we can just use the REV version of the same instruction, which has the same effect but encodes differently and does not result in return bytes in the binary. This reduces the number of xchg instructions resulting from gadget fixing. Prompted by ratchov@, with input from millert@ and sthen@. ok sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/06/18 08:09:31 Modified files: regress/gnu/lib/libexecinfo: Makefile Log message: Limit regress libexecinfo to amd64 or llvm >=12. Only amd64 has unwind info by default, so this regress test only works on amd64. In llvm12, more architectures have unwind info by default, so this test should work on those architectures. Found by bluhm. OK bluhm@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/06/09 13:44:55 Modified files: distrib/sets/lists/base: mi distrib/sets/lists/comp: mi gnu/lib: Makefile include: Makefile share/man/man3 : intro.3 share/mk : bsd.prog.mk Log message: Enable libexecinfo. With some build plumbing help from jsg@ ok kettenis@ sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/06/09 13:42:46 Modified files: regress/lib: Makefile regress/lib/libc/sys: atf-c.h Log message: Enable libexecinfo regress.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/06/09 13:39:15 Added files: regress/lib/libexecinfo: Makefile t_backtrace.c Log message: Add regress test for libexecinfo. ok kettenis@ sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/06/09 13:38:15 src/regress/lib/libexecinfo Update of /cvs/src/regress/lib/libexecinfo In directory cvs.openbsd.org:/tmp/cvs-serv70266/libexecinfo Log Message: Directory /cvs/src/regress/lib/libexecinfo added to the repository
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/06/09 13:37:43 Added files: gnu/lib/libexecinfo: Makefile Symbols.map backtrace.3 backtrace.c builtin.c execinfo.h shlib_version unwind.c Log message: Add libexecinfo. Based on NetBSD implementation, without the libelf dependency. Architectures which have libunwind use libunwind, and others use a stub implementation that does nothing since __builtin methods are unreliable. Much feedback and help from jca@. ok kettenis@ sthen@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/06/09 13:33:26 src/gnu/lib/libexecinfo Update of /cvs/src/gnu/lib/libexecinfo In directory cvs.openbsd.org:/tmp/cvs-serv50662/libexecinfo Log Message: Directory /cvs/src/gnu/lib/libexecinfo added to the repository
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/04/25 10:36:57 Modified files: etc/etc.alpha : login.conf etc/etc.amd64 : login.conf etc/etc.arm64 : login.conf etc/etc.armv7 : login.conf etc/etc.hppa : login.conf etc/etc.i386 : login.conf etc/etc.landisk: login.conf etc/etc.loongson: login.conf etc/etc.luna88k: login.conf etc/etc.macppc : login.conf etc/etc.octeon : login.conf etc/etc.powerpc64: login.conf etc/etc.sgi: login.conf etc/etc.sparc64: login.conf Log message: Bump pbuild stacksize to 8M. Addresses a stack exhaustion issue with llvm11 and a small number of ports. ok kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/03/07 16:10:54 Modified files: sys/arch/amd64/conf: ld.script sys/arch/i386/conf: ld.script Log message: Explicitly align kernel text. lld11 no longer quietly aligns this when given an address, so we do the alignment explicitly. ok kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/02/14 09:16:03 Modified files: gnu/llvm/lldb/source/Plugins/Process/OpenBSD: CMakeLists.txt NativeRegisterContextOpenBSD.h NativeRegisterContextOpenBSD_arm64.cpp NativeRegisterContextOpenBSD_arm64.h NativeRegisterContextOpenBSD_x86_64.cpp NativeRegisterContextOpenBSD_x86_64.h NativeThreadOpenBSD.cpp gnu/usr.bin/clang/liblldbPluginProcess: Makefile Added files: gnu/llvm/lldb/source/Plugins/Process/OpenBSD: NativeRegisterContextOpenBSD_arch.cpp Log message: Shuffle how lldb register contexts are built. Instead of using #if defined(__arch__) to include / exclude the entire contents of the NativeRegisterContext implementations, use a single NativeRegisterContextOpenBSD_arch which includes the right arch specific register context, and provides a dummy implementation for unsupported architectures. This allows building lldb on architectures which do not have a register context implementation so it can be used as a remote client. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/02/13 14:33:54 Modified files: gnu/llvm/lldb/source/Plugins/Process/OpenBSD: NativeRegisterContextOpenBSD_x86_64.cpp NativeRegisterContextOpenBSD_x86_64.h NativeThreadOpenBSD.cpp NativeThreadOpenBSD.h Log message: Cleanup lldb amd64 support. - Remove watchpoint support since we do not support hardware watchpoints. - Support floating point regsisters in the ReadAll/WriteAll interface. - Standardize the sizes used in GerGPRSize() and GetFPRSize() to correspond to the sizes we get from ptrace. - Fix the r/w of the mmx registers to map onto the st fp registers instead of xmm registers. - Normalize some variable names to be architecture neutral. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/02/09 14:35:45 Modified files: gnu/llvm/lldb/source/Host/openbsd: Host.cpp gnu/llvm/lldb/source/Plugins/Process/OpenBSD: NativeProcessOpenBSD.cpp Log message: Fix lldb. Map deliberately invalid signal to zero when passing to PT_STEP and P_CONTINUE. Also clean up getting Environment so setting LLDB_DEBUGSERVER env vars works again. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/27 18:39:19 Modified files: gnu/usr.bin/binutils-2.17/gas: dwarf2dbg.h Log message: Extern dwarf2_loc_mark_labels. Fixes compiation with -fno-common. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/27 18:36:32 Modified files: gnu/usr.bin/binutils/gdb: Makefile.in Log message: Explicitly enable -fcommon, rather than untangle common symbols. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/27 18:20:38 Modified files: sbin/iked : iked.h proc.c Log message: Extern privsep_process. Fixes compilation with -fno-common. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/27 18:18:45 Modified files: sbin/isakmpd : transport.c transport.h Log message: Extern transport_list. Fixed compilation with -fno-common. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/20 17:16:36 Modified files: include/protocols: dumprestore.h sbin/dump : dump.h dumprmt.c itime.c main.c pathnames.h tape.c sbin/restore : restore.h tape.c Log message: Rearrange variables in dump / restore to handle -fno-common. Largely following the commit by mckusick in FreeBSD. ok naddy@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/17 17:53:20 Modified files: lib/libkeynote : header.h keynote-verify.c Log message: Move sessid definition to keynote-verify.c to avoid issues with -fno-common ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/17 17:51:15 Modified files: usr.bin/rcs: rcsprog.c rcsprog.h Log message: Move usage definition out of header file to avoid issues with -fno-common. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/17 17:49:09 Modified files: usr.bin/systat : if.c systat.h Log message: Move defiition of sum variable from header file to avoid issues with -fno-common ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/17 17:46:58 Modified files: usr.bin/compress: compress.h main.c Log message: Move definition of pmode to main.c instead of a compress.h. Avoids linker issues with -fno-common. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/17 17:44:00 Modified files: usr.bin/cdio : cdio.c extern.h Log message: Extern tracks list to avoid linker issues with -fno-common. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2021/01/01 09:43:05 Modified files: gnu/llvm/llvm/lib/CodeGen: ReturnProtectorLowering.cpp Log message: Skip leaf function optimization under some circumstances. On architectures that do not always spill the return address to the stack, it is possible for local stack frame data corruption in leaf functions to span stack frames if the retguard cookie is not spilled in the function. In leaf functions on these architectures, now spill the retguard cookie if the function contains arrays or has variables which have their address taken.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/10/22 17:35:43 Modified files: sys/arch/powerpc64/include: asm.h sys/arch/powerpc64/powerpc64: locore.S Log message: Add retguard to OPAL functions in powerpc64 locore. ok deraadt@ kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/10/21 17:53:22 Modified files: sys/arch/powerpc64/powerpc64: locore.S Log message: Add retguard macros to powerpc64 locore functions. ok deraadt@ kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/10/19 17:24:17 Modified files: lib/libc/arch/powerpc64/gen: sigsetjmp.S Log message: Retguard sigsetjmp on powerpc64. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/10/18 11:51:40 Modified files: lib/libc/arch/powerpc64/gen: setjmp.S Log message: Add powerpc64 retguard macros for setjmp / longjmp. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/10/16 17:39:25 Modified files: sys/arch/powerpc64/include: asm.h Log message: Add retguard asm macros for ppc64. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/10/12 11:21:39 Modified files: gnu/usr.bin/clang: Makefile.inc Log message: Disable retguard for clang build. Fixes build on powerpc
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/10/12 08:52:09 Modified files: gnu/llvm/clang/lib/Driver/ToolChains: Clang.cpp gnu/llvm/llvm/lib/Target/PowerPC: CMakeLists.txt PPCAsmPrinter.cpp PPCFrameLowering.cpp PPCFrameLowering.h PPCInstrInfo.td gnu/usr.bin/clang/libLLVMPowerPCCodeGen: Makefile Added files: gnu/llvm/llvm/lib/Target/PowerPC: PPCReturnProtectorLowering.cpp PPCReturnProtectorLowering.h Log message: Add RETGUARD implementation for powerpc and powerpc64. ok deraadt@ kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/09/19 12:39:37 Modified files: gnu/llvm/llvm/lib/Target/AArch64: AArch64ReturnProtectorLowering.cpp Log message: Fix frame pointer slot on aarch64 for functions that do not save callee registers with retguard enabled. ok kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/09/06 11:08:29 Modified files: libexec/login_token: init.c token.h Log message: Move definiton of struct token_types *tt to init.c from header file. Makes it build with -fno-common. ok deraadt
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/08/30 17:15:31 Modified files: lib/libc/rpc : rpc_prot.c Log message: Remove duplicate definition of _null_auth. ok millert@ deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/08/30 16:23:47 Modified files: bin/csh: csh.c csh.h dir.c dir.h proc.c proc.h Log message: Fix multiple variable definitions to avoid errors with -fno-common. ok millert@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/07/25 13:31:33 Modified files: regress/sys/kern/stackpivot: pivot.h regress/sys/kern/stackpivot/pagefault: stackpivot.c Log message: Add stackpivot asm for ppc and ppc64 regress test. Also tweak the pagefault test to work better on arches that do not modify the stack pointer on return.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/06/16 18:03:13 Modified files: sys/dev/pci: emuxki.c Log message: Do not do logical negation of a bitshifted field. Prompted by warning from clang 10. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/06/16 15:49:30 Modified files: sys/dev/rasops : rasops.c Log message: Remove old commented out line and fix indent. clang-10 complains about the misleading indentation. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/05/31 06:27:19 Modified files: lib/libc/gdtoa : hdtoa.c regress/lib/libc/printf: fp.c Log message: Fix printing long doubles on architectures with hm and lm bits. Issue reported with initial patch by e...@google.com. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/05/19 05:23:54 Modified files: lib/csu: Makefile Log message: Disable builtins on ppc in order to prevent the compiler from optimizing in calls to libc in the process boot code that might not work before things like the GOT are set up. Suggested by deraadt@ ok visa@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/02/28 09:47:41 Modified files: sys/arch/amd64/amd64: vmm.c Log message: Add a sanity check on obj_size to ensure the allocated object fits inside the vm memory range allocation. Not a problem now, but potentially a problem if guests can ever control obj_size. Noticed by Ilja Van Sprundel - thanks! ok stsp@
Re: CVS: cvs.openbsd.org: src
> CVSROOT: /cvs > Module name: src > Changes by: morti...@cvs.openbsd.org 2020/02/15 15:59:55 > > Modified files: > sys/arch/amd64/amd64: vmm.c > > Log message: > Add bounds check on addresses passed from guests in pvclock. > > Fixes an issue where a guest can write to host memory by passing bogus > addresses. > > Reported by Maxime Villard. This was ok stsp@ and Mike Larkin (mlarkin)
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/02/15 15:59:55 Modified files: sys/arch/amd64/amd64: vmm.c Log message: Add bounds check on addresses passed from guests in pvclock. Fixes an issue where a guest can write to host memory by passing bogus addresses. Reported by Maxime Villard.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/01/02 15:35:39 Modified files: sys/dev/pci: pcidevs.h pcidevs_data.h Log message: regen
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2020/01/02 15:34:41 Modified files: sys/dev/pci: ccp_pci.c pcidevs Log message: Add pci id for recent AMD CCP and use it in ccp(4). ok jsg@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/12/21 06:16:25 Modified files: gnu/llvm/tools/lldb/source/Plugins/Process/OpenBSD: CMakeLists.txt gnu/usr.bin/clang/liblldbPluginProcess: Makefile Added files: gnu/llvm/tools/lldb/source/Plugins/Process/OpenBSD: NativeRegisterContextOpenBSD_arm64.cpp NativeRegisterContextOpenBSD_arm64.h Log message: Add arm64 support for lldb. "Go for it" kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/12/16 18:34:59 Modified files: share/man/man4 : lm.4 sys/dev/ic : lm78.c lm78var.h sys/dev/isa: wbsio.c wbsioreg.h Log message: Add support for NCT6775F, NCT5104D, NCT6779D, NCT679[1235]D sensors. >From Joe Gidi.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/29 15:34:09 Modified files: sys/arch/amd64/include: fpu.h Log message: Fix size of reserved bytes section in xsave header. ok guenther@ kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/29 10:47:10 Modified files: sys/arch/amd64/amd64: mds.S Log message: Add missing retq to mds handler for knights landing. ok guenther@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/27 10:25:03 Modified files: gnu/llvm/tools/lldb/source/Plugins/Process/Utility: CMakeLists.txt gnu/llvm/tools/lldb/source/Target: UnixSignals.cpp gnu/usr.bin/clang/liblldbPluginProcess: Makefile Added files: gnu/llvm/tools/lldb/source/Plugins/Process/Utility: OpenBSDSignals.cpp OpenBSDSignals.h Log message: In lldb, use a OpenBSD signal map instead of leveraging the FreeBSD one. ok kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/27 10:15:36 Added files: regress/sys/kern/syscall_segment: Makefile gadgetsyscall.h regress/sys/kern/syscall_segment/lib: Makefile syscall_segment.c regress/sys/kern/syscall_segment/libgadgetsyscall: Makefile gadgetsyscall.c shlib_version regress/sys/kern/syscall_segment/main: Makefile syscall_segment.c Log message: Add regress tests for making syscalls from the main program text and from a shared library. ok deraadt
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/27 10:10:34 src/regress/sys/kern/syscall_segment/libgadgetsyscall Update of /cvs/src/regress/sys/kern/syscall_segment/libgadgetsyscall In directory cvs.openbsd.org:/tmp/cvs-serv18112/syscall_segment/libgadgetsyscall Log Message: Directory /cvs/src/regress/sys/kern/syscall_segment/libgadgetsyscall added to the repository
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/27 10:10:33 src/regress/sys/kern/syscall_segment/main Update of /cvs/src/regress/sys/kern/syscall_segment/main In directory cvs.openbsd.org:/tmp/cvs-serv18112/syscall_segment/main Log Message: Directory /cvs/src/regress/sys/kern/syscall_segment/main added to the repository
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/27 10:10:33 src/regress/sys/kern/syscall_segment/lib Update of /cvs/src/regress/sys/kern/syscall_segment/lib In directory cvs.openbsd.org:/tmp/cvs-serv18112/syscall_segment/lib Log Message: Directory /cvs/src/regress/sys/kern/syscall_segment/lib added to the repository
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/27 10:09:51 src/regress/sys/kern/syscall_segment Update of /cvs/src/regress/sys/kern/syscall_segment In directory cvs.openbsd.org:/tmp/cvs-serv97358/syscall_segment Log Message: Directory /cvs/src/regress/sys/kern/syscall_segment added to the repository
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/25 21:14:13 Modified files: gnu/llvm/tools/lldb/include/lldb/Host/openbsd: HostInfoOpenBSD.h gnu/llvm/tools/lldb/source/Host/openbsd: HostInfoOpenBSD.cpp gnu/llvm/tools/lldb/source/Plugins/Platform/OpenBSD: PlatformOpenBSD.cpp PlatformOpenBSD.h Log message: Add bits to allow lldb to find lldb-server. lldb likes to look at argv[0] to figure out where it might find lldb-server, but when we invoke lldb via $PATH this doesn't work, so fill in some helpers to tell it where to look. ok millert@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/25 17:12:50 Modified files: gnu/llvm/tools/lldb/source/Plugins/ObjectFile/ELF: ObjectFileELF.cpp Log message: Do not process 0 size DT_PLTRELSZ sections. Fixes an assert when running lldb with DEBUG. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/09 09:45:48 Modified files: gnu/llvm/tools/lldb/include/lldb/Utility: ArchSpec.h gnu/llvm/tools/lldb/packages/Python/lldbsuite/test/api/multithreaded: common.h gnu/llvm/tools/lldb/packages/Python/lldbsuite/test/tools/lldb-server/thread-name: main.cpp gnu/llvm/tools/lldb/source/Core: FormatEntity.cpp gnu/llvm/tools/lldb/source/Host/common: SocketAddress.cpp gnu/llvm/tools/lldb/source/Host/openbsd: Host.cpp gnu/llvm/tools/lldb/source/Host/posix: DomainSocket.cpp PipePosix.cpp gnu/llvm/tools/lldb/source/Initialization: CMakeLists.txt SystemInitializerCommon.cpp gnu/llvm/tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD: DYLDRendezvous.cpp DynamicLoaderPOSIXDYLD.cpp gnu/llvm/tools/lldb/source/Plugins/Platform/OpenBSD: PlatformOpenBSD.cpp PlatformOpenBSD.h gnu/llvm/tools/lldb/source/Plugins/Process: CMakeLists.txt gnu/llvm/tools/lldb/source/Plugins/Process/gdb-remote: GDBRemoteCommunicationServerCommon.cpp GDBRemoteCommunicationServerLLGS.cpp gnu/llvm/tools/lldb/source/Utility: ArchSpec.cpp gnu/llvm/tools/lldb/tools/lldb-server: CMakeLists.txt lldb-gdbserver.cpp gnu/usr.bin/clang: Makefile gnu/usr.bin/clang/liblldbPluginProcess: Makefile Added files: gnu/llvm/tools/lldb/source/Plugins/Process/OpenBSD: CMakeLists.txt NativeProcessOpenBSD.cpp NativeProcessOpenBSD.h NativeRegisterContextOpenBSD.cpp NativeRegisterContextOpenBSD.h NativeRegisterContextOpenBSD_x86_64.cpp NativeRegisterContextOpenBSD_x86_64.h NativeThreadOpenBSD.cpp NativeThreadOpenBSD.h gnu/usr.bin/clang/lldb-server: Makefile Log message: Add lldb support for debugging running binaries on amd64. Follows a similar model as NetBSD. Much help from patrick, kettenis and guenther. lldb and lldb-server remain not installed by default. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/09 09:25:17 src/gnu/usr.bin/clang/lldb-server Update of /cvs/src/gnu/usr.bin/clang/lldb-server In directory cvs.openbsd.org:/tmp/cvs-serv13124/gnu/usr.bin/clang/lldb-server Log Message: Directory /cvs/src/gnu/usr.bin/clang/lldb-server added to the repository
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/11/09 09:25:17 src/gnu/llvm/tools/lldb/source/Plugins/Process/OpenBSD Update of /cvs/src/gnu/llvm/tools/lldb/source/Plugins/Process/OpenBSD In directory cvs.openbsd.org:/tmp/cvs-serv13124/gnu/llvm/tools/lldb/source/Plugins/Process/OpenBSD Log Message: Directory /cvs/src/gnu/llvm/tools/lldb/source/Plugins/Process/OpenBSD added to the repository
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2019/10/26 18:26:57 Modified files: . : innovations.html Log message: Add octeon to the retguard section. Prodded by Janne Johansson - thanks!
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/10/26 18:21:47 Modified files: share/man/man1 : clang-local.1 Log message: Document retguard for octeon in clang-local. Prodded by Janne Johansson - thanks!
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/10/24 18:40:56 Modified files: gnu/llvm/lib/Target/Mips: CMakeLists.txt MipsAsmPrinter.cpp MipsFrameLowering.cpp MipsFrameLowering.h MipsInstrInfo.td gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp gnu/usr.bin/clang: Makefile.inc gnu/usr.bin/clang/libLLVMMipsCodeGen: Makefile Added files: gnu/llvm/lib/Target/Mips: MipsReturnProtectorLowering.cpp MipsReturnProtectorLowering.h Log message: Add retguard for octeon/mips64. For this architecture we use separate retguard prologue and epilogue code for static or PIC code. In the PIC case we use some additional code before the retguard epilogue to recover the function start address and the GOT pointer in order to get the per-function random cookie. Much thanks to visa@ for suggestions and advice making it all work. ok deraadt@ visa@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/09/02 06:43:54 Modified files: libexec/ld.so/mips64: ldasm.S Log message: Remove some duplicate symbol definitions. ok visa@ guenther@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/08/12 17:43:03 Modified files: gnu/llvm/lib/CodeGen: LocalStackSlotAllocation.cpp Log message: Ensure stack protector slot access is resolved by PEI. On arm64, arm, and ppc it is possible that a large stack frame will cause the stack protector slot to be reallocated at the wrong end of the frame. Noticed by tj@. ok patrick@.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/08/04 09:27:37 Modified files: regress/sys/kern/stackpivot: Makefile pivot.h Log message: Add arm64 asm for stackpivot regress test.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/07/31 19:09:09 Modified files: gnu/llvm/lib/Target/AArch64: AArch64TargetMachine.cpp Log message: The GlobalISel IRTranslator pass assumes that it is safe to use the LOAD_STACK_GUARD pseudo without consulting the value of useLoadStackGuardNode(), and then tries to add the return from getSDagStackGuard() as a parameter without consulting the return from getIRStackGuard() to see if it should do that. This means that the GlobalISel IRTranslator's implementation for Intrinsic::stackprotector is broken for platforms that implement getIRStackGuard() like we do, and this causes a segfault later when the incomplete LOAD_STACK_GUARD pseudo is lowered in the back end. Since GlobalISel is disabled on aarch64 most of the time anyway, add a bit that disables it for OpenBSD/aarch64 all the time. Fixes a crash when building on aarch64 without retguard, with a stack protector and without optimizations, which manifests when building cross-tools. ok patrick@ deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/07/28 20:08:32 Modified files: regress/sys/kern/stackpivot: Makefile pivot.h Log message: regress: Add mips64 stack pivot asm for octeon in stackpivot tests
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/06/01 11:06:31 Modified files: gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp Log message: Back out frame pointer elimination optimization.
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/06/01 09:20:08 Modified files: gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp Log message: Do not eliminate frame pointers on i386. The entire i386 ecosystem assumes it will be there. problem found by naddy@, "heck yeah" kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/05/31 13:17:39 Modified files: gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp Log message: Re-enable frame pointer elimination for x86 and mips64 if optimizations are enabled. ok visa@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/05/31 13:15:05 Modified files: gnu/llvm/lib/CodeGen: ReturnProtectorLowering.cpp gnu/llvm/lib/Target/AArch64: AArch64FrameLowering.cpp AArch64ReturnProtectorLowering.cpp Log message: Re-enable RETGUARD leaf function optimization for arm64. It turns out MachineFrameInfo.hasCalls() is unreliable, because it is up to the backends to update this information whenever they add calls to a function, and this does not always happen. ok kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/04/24 18:08:56 Modified files: gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp Log message: Also touch --param ssp-buffer-size when using retguard in lieu of the stack protector. Fixes 'unused arguments' warning when this argument is given. Noticed by robert@, ok robert@
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2019/04/12 10:55:56 Modified files: . : 65.html Log message: Include RETGUARD and ROP mitigation improvements.
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2019/04/10 19:40:10 Modified files: . : plus65.html Log message: Mention retguard leaf function optimization
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2019/04/10 19:14:07 Modified files: . : innovations.html Log message: Add entry for x86FixupGadgets pass
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/04/02 07:01:52 Modified files: gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp Log message: Enable frame pointer elimination on i386, amd64 and mips64 when given optimization flags. ok kettenis@ visa@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/04/01 21:35:08 Modified files: sys/arch/amd64/amd64: copy.S locore.S sys/arch/amd64/include: asm.h Log message: Add variable length trap padding between the retguard epilogue and the following return. This change adds a constraint that the name passed to the RETGUARD_* macros must correspond to the name in the corresponding ENTRY which starts the function (or a function which appears beforehand in the same file). Since we use the distance from the ENTRY definition to calculate how much padding to insert, the ENTRY symbol must be in scope at assembly time. This is almost always the case already, since it is the natural way to name the retguard symbols so they remain unique. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/04/01 21:02:47 Modified files: gnu/llvm/lib/Target/X86: X86MCInstLower.cpp Log message: Emit variable length trap padding in retguard epilogue. This adds more trap padding before the return while ensuring that the return is still in the same cache line. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/04/01 05:29:15 Modified files: gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp Log message: Consume SSP options when using retguard to prevent warnings. ok millert@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/04/01 02:43:30 Modified files: sys/arch/amd64/amd64: locore.S Log message: Add retguard macros to kernel setjmp / longjmp. ok deraadt@ kettenis@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/03/30 20:44:02 Modified files: gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp Log message: If using retguard, we do not also need the stack protector. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/03/30 20:39:47 Modified files: gnu/llvm/include/llvm/CodeGen: MachineFrameInfo.h ReturnProtectorLowering.h gnu/llvm/lib/CodeGen: ReturnProtectorLowering.cpp gnu/llvm/lib/Target/AArch64: AArch64FrameLowering.cpp AArch64ReturnProtectorLowering.cpp AArch64ReturnProtectorLowering.h gnu/llvm/lib/Target/X86: X86ReturnProtectorLowering.cpp Log message: Do not store the retguard cookie in frame in leaf functions if possible. Makes things slightly faster and also improves security in these functions, since the retguard cookie can't leak via the stack. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/03/30 06:37:59 Modified files: lib/libc/arch/amd64/gen: _setjmp.S setjmp.S sigsetjmp.S Log message: Add retguard macros to setjmp/longjmp on amd64. Knocks out some useful gadgets from libc. ok deraadt@, kettenis@
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2019/03/23 18:29:24 Modified files: . : events.html Added files: papers : asiabsdcon2019-rop-paper.pdf asiabsdcon2019-rop-slides.pdf Log message: Add AsiaBSDCon ROP paper and slides
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/02/22 08:28:43 Modified files: gnu/llvm/lib/Target/X86: X86FixupGadgets.cpp X86InstrCompiler.td X86MCInstLower.cpp gnu/llvm/tools/clang/include/clang/Driver: Options.td gnu/llvm/tools/clang/lib/Driver/ToolChains: Clang.cpp share/man/man1 : clang-local.1 Log message: Improve the X86FixupGadgets pass: - Target all four kinds of return bytes (c2, c3, ca, cb) - Fix up instructions using both ModR/M and SIB bytes - Force alignment before instructions with return bytes in immediates - Force alignment before instructions that have return bytes in their encoding - Add a command line switch to toggle the functionality. ok deraadt@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/02/17 14:52:20 Modified files: gnu/llvm/tools/lldb/source/Plugins/UnwindAssembly/x86: x86AssemblyInspectionEngine.cpp x86AssemblyInspectionEngine.h Log message: Skip retguard instructions in prologue detection. ok patrick@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2019/02/04 19:12:41 Modified files: gnu/llvm/lib/Target/X86: X86FrameLowering.cpp Log message: Zap unneeded argument to BuildMI(). ok dlg@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2018/11/29 18:54:17 Modified files: regress/sys/kern/stackpivot/pagefault: stackpivot.c Log message: Fix test when using malloc_conf=J ok otto@
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2018/10/21 08:35:53 Modified files: sys/dev/pci: pcidevs.h pcidevs_data.h Log message: regen
CVS: cvs.openbsd.org: src
CVSROOT:/cvs Module name:src Changes by: morti...@cvs.openbsd.org2018/10/21 08:32:39 Modified files: sys/dev/pci: pcidevs Log message: Add some devices found on Lenovo A485. ok jsg@
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2018/10/16 20:59:53 Modified files: . : 64.html Log message: Add remaning entries from ChangeLog.
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2018/10/16 17:57:01 Modified files: . : 64.html Log message: iwm(4) monitor mode did not make release.
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2018/10/15 20:02:38 Modified files: . : 64.html Log message: Add entries from ChangeLog committed before 2018/06/24 05:38:43.
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2018/10/14 21:11:04 Modified files: . : 64.html Log message: Add bits from ChangeLog that were committed before 2018/04/26 06:18:44.
CVS: cvs.openbsd.org: www
CVSROOT:/cvs Module name:www Changes by: morti...@cvs.openbsd.org2018/10/14 16:50:28 Modified files: . : 64.html Log message: Add MAP_STACK, X86FixupGadgets, and Retpoline changes.