[PATCH] Only construct ucontext for SA_SIGINFO signal handlers

2015-04-02 Thread Jon TURNEY
* exceptions.cc (call_signal_handler): Only bother to construct the ucontext for signal handlers with SA_SIGINFO set. Signed-off-by: Jon TURNEY --- winsup/cygwin/ChangeLog | 5 + winsup/cygwin/exceptions.cc | 46 ++--- 2 files chan

[PATCH] Add FAQ entry on how Cygwin counters install and update MITM attacks

2015-04-02 Thread David A. Wheeler
* faq-setup.xml: Document how Cygwin secures installation and update against man-in-the-middle (MITM) attacks. Note that setup embeds a public key to check the signature of setup.ini, and that setup.ini includes SHA-512 cryptographic hashes. Signed-off-by: David A.

Re: [PATCH] Try to make sure struct _mcontext is 16-byte aligned

2015-04-02 Thread Corinna Vinschen
On Apr 2 17:24, Jon TURNEY wrote: > On x86_64, RtlCaptureContext() uses fxsave to save FPU/MMX/SSE state. > > fxsave requires that the destination address is 16-byte aligned, or it will > fault. > > CONTEXT is already annotated __attribute__ ((aligned (16))), do the same with > struct _mcontext.

[PATCH] Try to make sure struct _mcontext is 16-byte aligned

2015-04-02 Thread Jon TURNEY
On x86_64, RtlCaptureContext() uses fxsave to save FPU/MMX/SSE state. fxsave requires that the destination address is 16-byte aligned, or it will fault. CONTEXT is already annotated __attribute__ ((aligned (16))), do the same with struct _mcontext. Rearrange ucontext_t so that it's struct _mcont